81f963d37ccf0d5962f562b3b04a7a5deb2c3589
[gnulib.git] / ChangeLog
1 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         * gnulib-tool (func_filter_filelist): Fix comment.
4
5 2009-03-20  Bruno Haible  <bruno@clisp.org>
6
7         Make sockets.h self-contained.
8         * lib/sockets.c: Include sockets.h first.
9         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
10
11 2009-03-19  Eric Blake  <ebb9@byu.net>
12
13         doc: mention more functions added in cygwin 1.7.0
14         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15         addition.
16         * doc/posix-functions/log2f.texi: Likewise.
17
18 2009-03-19  Jim Meyering  <meyering@redhat.com>
19
20         fsusage: avoid syntax error due to statement-before-declaration
21         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22         after all declarations.  Reported by Matthew Woehlke in
23         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
24
25 2009-03-18  Eric Blake  <ebb9@byu.net>
26
27         build-aux/compile: sync from automake
28         * build-aux/compile: New file, from automake.
29         * config/srclist.txt: Mention build-aux/compile.
30
31 2009-03-17  Bruno Haible  <bruno@clisp.org>
32
33         * lib/git-merge-changelog.c: Fix typo in comment.
34         Reported by Reuben Thomas <rrt@sc3d.org>.
35
36 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37
38         * m4/regex.m4: update and improve help for
39         --without-included-regex.
40
41 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42
43         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44         failure on missing include files.
45
46 2009-03-17  Eric Blake  <ebb9@byu.net>
47
48         doc: mention more functions added in cygwin 1.7.0
49         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50         addition.
51         * doc/posix-functions/fwscanf.texi: Likewise.
52         * doc/posix-functions/swprintf.texi: Likewise.
53         * doc/posix-functions/swscanf.texi: Likewise.
54         * doc/posix-functions/vfwprintf.texi: Likewise.
55         * doc/posix-functions/vfwscanf.texi: Likewise.
56         * doc/posix-functions/vswprintf.texi: Likewise.
57         * doc/posix-functions/vswscanf.texi: Likewise.
58         * doc/posix-functions/vwprintf.texi: Likewise.
59         * doc/posix-functions/vwscanf.texi: Likewise.
60         * doc/posix-functions/wcscasecmp.texi: Likewise.
61         * doc/posix-functions/wcsdup.texi: Likewise.
62         * doc/posix-functions/wcsftime.texi: Likewise.
63         * doc/posix-functions/wcsncasecmp.texi: Likewise.
64         * doc/posix-functions/wprintf.texi: Likewise.
65         * doc/posix-functions/wscanf.texi: Likewise.
66         * doc/glibc-functions/gethostbyname2.texi: Likewise.
67
68 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69
70         maint.mk: really add $(AM_MAKEFLAGS)
71         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
72         was inadvertently omitted in the last commit.
73         Spotted by Bruno Haible.
74
75         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
76         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
77         $(AM_MAKEFLAGS)' rather than plain `make'.
78
79         gnulib-tool: execute $MAKE not make
80         * gnulib-tool: Default $MAKE to 'make'.
81         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
82         than make.  Initialize $MAKE in the do-autobuild script.
83
84         gnulib-tool: use $MAKE not make in generated files
85         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
86         make, in generated files.  Initialize $MAKE in the do-autobuild
87         script.
88
89         * top/GNUmakefile (_have-git-version-gen): Fix typo.
90
91         GNUmakefile: disable parallelism only for multiple, recursive targets
92         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
93         additions in the Makefile.
94         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
95         by Automake.
96         (.NOTPARALLEL): Only disable parallel builds if multiple targets
97         are listed on the command line and at least one of them is
98         listed in $(ALL_RECURSIVE_TARGETS).
99
100 2009-03-14  Bruno Haible  <bruno@clisp.org>
101
102         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
103         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
104         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
105         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
106         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
107         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
108         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
109         unistr/u8-uctomb.
110         * modules/unistr/u8-strchr (Depends-on): Likewise.
111         * modules/unistr/u8-strrchr (Depends-on): Likewise.
112         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
113         unistr/u16-uctomb.
114         * modules/unistr/u16-strchr (Depends-on): Likewise.
115         * modules/unistr/u16-strrchr (Depends-on): Likewise.
116
117 2009-03-12  Bruno Haible  <bruno@clisp.org>
118
119         Work around select() bug on Interix 3.5.
120         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
121         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
122         * m4/select.m4: New file.
123         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
124         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
125         * modules/select (Files): Add m4/select.m4.
126         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
127         * modules/nanosleep (Depends-on): Add select.
128         * modules/poll (Depends-on): Likewise.
129         * doc/posix-functions/select.texi: Mention the Interix bug.
130         Reported by Markus Duft <mduft@gentoo.org>.
131
132         * lib/select.c: Renamed from lib/winsock-select.c.
133         * modules/select (Files): Add lib/select.c, remove
134         lib/winsock-select.c.
135         (configure.ac): Update.
136
137 2009-03-12  Jim Meyering  <meyering@redhat.com>
138
139         avoid gcc warnings about unused macro definitions
140         * lib/readtokens.c (STREQ): Remove unused definition.
141         * lib/xmalloc.c (SIZE_MAX): Likewise.
142         * lib/openat-die.c (N_): Likewise.
143         * lib/mountlist.c (SIZE_MAX): Remove definition.
144         Instead, include <stdint.h>.
145         * lib/readutmp.c: Likewise.
146         * modules/readutmp (Depends-on): Add stdint.
147         * modules/mountlist (Depends-on): Add stdint.
148         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
149
150 2009-03-10  Bruno Haible  <bruno@clisp.org>
151
152         Tests for module 'mbmemcasecoll'.
153         * modules/mbmemcasecoll-tests: New file.
154         * tests/test-mbmemcasecoll1.sh: New file.
155         * tests/test-mbmemcasecoll2.sh: New file.
156         * tests/test-mbmemcasecoll3.sh: New file.
157         * tests/test-mbmemcasecoll.c: New file.
158
159         New module 'mbmemcasecoll'.
160         * lib/mbmemcasecoll.h: New file.
161         * lib/mbmemcasecoll.c: New file.
162         * modules/mbmemcasecoll: New file.
163
164         * tests/test-mbmemcasecmp.h: New file, extracted from
165         tests/test-mbmemcasecmp.c.
166         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
167         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
168         (main): Update.
169         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
170
171 2009-03-09  Bruno Haible  <bruno@clisp.org>
172
173         Tests for module 'mbmemcasecmp'.
174         * modules/mbmemcasecmp-tests: New file.
175         * tests/test-mbmemcasecmp1.sh: New file.
176         * tests/test-mbmemcasecmp2.sh: New file.
177         * tests/test-mbmemcasecmp3.sh: New file.
178         * tests/test-mbmemcasecmp.c: New file.
179
180         New module 'mbmemcasecmp'.
181         * lib/mbmemcasecmp.h: New file.
182         * lib/mbmemcasecmp.c: New file.
183         * modules/mbmemcasecmp: New file.
184
185 2009-03-09  Bruno Haible  <bruno@clisp.org>
186
187         Tests for module 'unicase/ulc-casecoll'.
188         * modules/unicase/ulc-casecoll-tests: New file.
189         * tests/unicase/test-ulc-casecoll1.sh: New file.
190         * tests/unicase/test-ulc-casecoll2.sh: New file.
191         * tests/unicase/test-ulc-casecoll.c: New file.
192
193         New module 'unicase/ulc-casecoll'.
194         * lib/unicase.h (ulc_casecoll): New declaration.
195         * lib/unicase/ulc-casecoll.c: New file.
196         * modules/unicase/ulc-casecoll: New file.
197
198         New module 'unicase/ulc-casexfrm'.
199         * lib/unicase.h (ulc_casexfrm): New declaration.
200         * lib/unicase/ulc-casexfrm.c: New file.
201         * modules/unicase/ulc-casexfrm: New file.
202
203 2009-03-09  Bruno Haible  <bruno@clisp.org>
204
205         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
206         invocations.
207
208         * m4/mbscasecmp.m4: Remove file.
209         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
210         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
211
212         * m4/mbscasestr.m4: Remove file.
213         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
214         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
215
216         * m4/mbschr.m4: Remove file.
217         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
218         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
219
220         * m4/mbscspn.m4: Remove file.
221         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
222         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
223
224         * m4/mbslen.m4: Remove file.
225         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
226         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
227
228         * m4/mbsncasecmp.m4: Remove file.
229         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
230         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
231
232         * m4/mbsnlen.m4: Remove file.
233         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
234         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
235
236         * m4/mbspbrk.m4: Remove file.
237         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
238         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
239
240         * m4/mbspcasecmp.m4: Remove file.
241         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
242         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
243
244         * m4/mbsrchr.m4: Remove file.
245         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
246         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
247
248         * m4/mbssep.m4: Remove file.
249         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
250         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
251
252         * m4/mbsspn.m4: Remove file.
253         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
254         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
255
256         * m4/mbsstr.m4: Remove file.
257         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
258         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
259
260         * m4/mbstok_r.m4: Remove file.
261         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
262         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
263
264         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
265
266         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
267         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
268
269         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
270
271 2009-03-08  Bruno Haible  <bruno@clisp.org>
272
273         Tests for module 'unicase/ulc-casecmp'.
274         * modules/unicase/ulc-casecmp-tests: New file.
275         * tests/unicase/test-ulc-casecmp1.sh: New file.
276         * tests/unicase/test-ulc-casecmp2.sh: New file.
277         * tests/unicase/test-ulc-casecmp.c: New file.
278
279         New module 'unicase/ulc-casecmp'.
280         * lib/unicase.h (ulc_casecmp): New declaration.
281         * lib/unicase/ulc-casecmp.c: New file.
282         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
283         'const SRC_UNIT *'.
284         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
285         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
286         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
287         * modules/unicase/ulc-casecmp: New file.
288
289         Tests for module 'unicase/u32-is-cased'.
290         * modules/unicase/u32-is-cased-tests: New file.
291         * tests/unicase/test-u32-is-cased.c: New file.
292
293         Tests for module 'unicase/u16-is-cased'.
294         * modules/unicase/u16-is-cased-tests: New file.
295         * tests/unicase/test-u16-is-cased.c: New file.
296
297         Tests for module 'unicase/u8-is-cased'.
298         * modules/unicase/u8-is-cased-tests: New file.
299         * tests/unicase/test-u8-is-cased.c: New file.
300         * tests/unicase/test-is-cased.h: New file.
301
302         New module 'unicase/u32-is-cased'.
303         * lib/unicase/u32-is-cased.c: New file.
304         * modules/unicase/u32-is-cased: New file.
305
306         New module 'unicase/u16-is-cased'.
307         * lib/unicase/u16-is-cased.c: New file.
308         * modules/unicase/u16-is-cased: New file.
309
310         New module 'unicase/u8-is-cased'.
311         * lib/unicase/u8-is-cased.c: New file.
312         * lib/unicase/u-is-cased.h: New file.
313         * modules/unicase/u8-is-cased: New file.
314
315         Tests for module 'unicase/u32-is-casefolded'.
316         * modules/unicase/u32-is-casefolded-tests: New file.
317         * tests/unicase/test-u32-is-casefolded.c: New file.
318
319         Tests for module 'unicase/u16-is-casefolded'.
320         * modules/unicase/u16-is-casefolded-tests: New file.
321         * tests/unicase/test-u16-is-casefolded.c: New file.
322
323         Tests for module 'unicase/u8-is-casefolded'.
324         * modules/unicase/u8-is-casefolded-tests: New file.
325         * tests/unicase/test-u8-is-casefolded.c: New file.
326         * tests/unicase/test-is-casefolded.h: New file.
327
328         New module 'unicase/u32-is-casefolded'.
329         * lib/unicase/u32-is-casefolded.c: New file.
330         * modules/unicase/u32-is-casefolded: New file.
331
332         New module 'unicase/u16-is-casefolded'.
333         * lib/unicase/u16-is-casefolded.c: New file.
334         * modules/unicase/u16-is-casefolded: New file.
335
336         New module 'unicase/u8-is-casefolded'.
337         * lib/unicase/u8-is-casefolded.c: New file.
338         * modules/unicase/u8-is-casefolded: New file.
339
340         Tests for module 'unicase/u32-is-titlecase'.
341         * modules/unicase/u32-is-titlecase-tests: New file.
342         * tests/unicase/test-u32-is-titlecase.c: New file.
343
344         Tests for module 'unicase/u16-is-titlecase'.
345         * modules/unicase/u16-is-titlecase-tests: New file.
346         * tests/unicase/test-u16-is-titlecase.c: New file.
347
348         Tests for module 'unicase/u8-is-titlecase'.
349         * modules/unicase/u8-is-titlecase-tests: New file.
350         * tests/unicase/test-u8-is-titlecase.c: New file.
351         * tests/unicase/test-is-titlecase.h: New file.
352
353         New module 'unicase/u32-is-titlecase'.
354         * lib/unicase/u32-is-titlecase.c: New file.
355         * modules/unicase/u32-is-titlecase: New file.
356
357         New module 'unicase/u16-is-titlecase'.
358         * lib/unicase/u16-is-titlecase.c: New file.
359         * modules/unicase/u16-is-titlecase: New file.
360
361         New module 'unicase/u8-is-titlecase'.
362         * lib/unicase/u8-is-titlecase.c: New file.
363         * modules/unicase/u8-is-titlecase: New file.
364
365         Tests for module 'unicase/u32-is-lowercase'.
366         * modules/unicase/u32-is-lowercase-tests: New file.
367         * tests/unicase/test-u32-is-lowercase.c: New file.
368
369         Tests for module 'unicase/u16-is-lowercase'.
370         * modules/unicase/u16-is-lowercase-tests: New file.
371         * tests/unicase/test-u16-is-lowercase.c: New file.
372
373         Tests for module 'unicase/u8-is-lowercase'.
374         * modules/unicase/u8-is-lowercase-tests: New file.
375         * tests/unicase/test-u8-is-lowercase.c: New file.
376         * tests/unicase/test-is-lowercase.h: New file.
377
378         New module 'unicase/u32-is-lowercase'.
379         * lib/unicase/u32-is-lowercase.c: New file.
380         * modules/unicase/u32-is-lowercase: New file.
381
382         New module 'unicase/u16-is-lowercase'.
383         * lib/unicase/u16-is-lowercase.c: New file.
384         * modules/unicase/u16-is-lowercase: New file.
385
386         New module 'unicase/u8-is-lowercase'.
387         * lib/unicase/u8-is-lowercase.c: New file.
388         * modules/unicase/u8-is-lowercase: New file.
389
390         Tests for module 'unicase/u32-is-uppercase'.
391         * modules/unicase/u32-is-uppercase-tests: New file.
392         * tests/unicase/test-u32-is-uppercase.c: New file.
393
394         Tests for module 'unicase/u16-is-uppercase'.
395         * modules/unicase/u16-is-uppercase-tests: New file.
396         * tests/unicase/test-u16-is-uppercase.c: New file.
397
398         Tests for module 'unicase/u8-is-uppercase'.
399         * modules/unicase/u8-is-uppercase-tests: New file.
400         * tests/unicase/test-u8-is-uppercase.c: New file.
401         * tests/unicase/test-is-uppercase.h: New file.
402
403         New module 'unicase/u32-is-uppercase'.
404         * lib/unicase/u32-is-uppercase.c: New file.
405         * modules/unicase/u32-is-uppercase: New file.
406
407         New module 'unicase/u16-is-uppercase'.
408         * lib/unicase/u16-is-uppercase.c: New file.
409         * modules/unicase/u16-is-uppercase: New file.
410
411         New module 'unicase/u8-is-uppercase'.
412         * lib/unicase/u8-is-uppercase.c: New file.
413         * modules/unicase/u8-is-uppercase: New file.
414
415         New module 'unicase/u32-is-invariant'.
416         * lib/unicase/u32-is-invariant.c: New file.
417         * modules/unicase/u32-is-invariant: New file.
418
419         New module 'unicase/u16-is-invariant'.
420         * lib/unicase/u16-is-invariant.c: New file.
421         * modules/unicase/u16-is-invariant: New file.
422
423         New module 'unicase/u8-is-invariant'.
424         * lib/unicase/u8-is-invariant.c: New file.
425         * lib/unicase/invariant.h: New file.
426         * lib/unicase/u-is-invariant.h: New file.
427         * modules/unicase/u8-is-invariant: New file.
428
429         Tests for module 'unicase/u32-casecoll'.
430         * modules/unicase/u32-casecoll-tests: New file.
431         * tests/unicase/test-u32-casecoll.c: New file.
432
433         Tests for module 'unicase/u16-casecoll'.
434         * modules/unicase/u16-casecoll-tests: New file.
435         * tests/unicase/test-u16-casecoll.c: New file.
436
437         Tests for module 'unicase/u8-casecoll'.
438         * modules/unicase/u8-casecoll-tests: New file.
439         * tests/unicase/test-u8-casecoll.c: New file.
440
441         New module 'unicase/u32-casecoll'.
442         * lib/unicase/u32-casecoll.c: New file.
443         * modules/unicase/u32-casecoll: New file.
444
445         New module 'unicase/u16-casecoll'.
446         * lib/unicase/u16-casecoll.c: New file.
447         * modules/unicase/u16-casecoll: New file.
448
449         New module 'unicase/u8-casecoll'.
450         * lib/unicase/u8-casecoll.c: New file.
451         * lib/unicase/u-casecoll.h: New file.
452         * modules/unicase/u8-casecoll: New file.
453
454         New module 'unicase/u32-casexfrm'.
455         * lib/unicase/u32-casexfrm.c: New file.
456         * modules/unicase/u32-casexfrm: New file.
457
458         New module 'unicase/u16-casexfrm'.
459         * lib/unicase/u16-casexfrm.c: New file.
460         * modules/unicase/u16-casexfrm: New file.
461
462         New module 'unicase/u8-casexfrm'.
463         * lib/unicase/u8-casexfrm.c: New file.
464         * lib/unicase/u-casexfrm.h: New file.
465         * modules/unicase/u8-casexfrm: New file.
466
467         Tests for module 'unicase/u32-casecmp'.
468         * modules/unicase/u32-casecmp-tests: New file.
469         * tests/unicase/test-u32-casecmp.c: New file.
470
471         Tests for module 'unicase/u16-casecmp'.
472         * modules/unicase/u16-casecmp-tests: New file.
473         * tests/unicase/test-u16-casecmp.c: New file.
474
475         Tests for module 'unicase/u8-casecmp'.
476         * modules/unicase/u8-casecmp-tests: New file.
477         * tests/unicase/test-u8-casecmp.c: New file.
478         * tests/unicase/test-casecmp.h: New file.
479
480         New module 'unicase/u32-casecmp'.
481         * lib/unicase/u32-casecmp.c: New file.
482         * modules/unicase/u32-casecmp: New file.
483
484         New module 'unicase/u16-casecmp'.
485         * lib/unicase/u16-casecmp.c: New file.
486         * modules/unicase/u16-casecmp: New file.
487
488         New module 'unicase/u8-casecmp'.
489         * lib/unicase/u8-casecmp.c: New file.
490         * lib/unicase/u-casecmp.h: New file.
491         * modules/unicase/u8-casecmp: New file.
492
493         Tests for module 'unicase/u32-casefold'.
494         * modules/unicase/u32-casefold-tests: New file.
495         * tests/unicase/test-u32-casefold.c: New file.
496
497         Tests for module 'unicase/u16-casefold'.
498         * modules/unicase/u16-casefold-tests: New file.
499         * tests/unicase/test-u16-casefold.c: New file.
500
501         Tests for module 'unicase/u8-casefold'.
502         * modules/unicase/u8-casefold-tests: New file.
503         * tests/unicase/test-u8-casefold.c: New file.
504
505         New module 'unicase/u32-casefold'.
506         * lib/unicase/u32-casefold.c: New file.
507         * modules/unicase/u32-casefold: New file.
508
509         New module 'unicase/u16-casefold'.
510         * lib/unicase/u16-casefold.c: New file.
511         * modules/unicase/u16-casefold: New file.
512
513         New module 'unicase/u8-casefold'.
514         * lib/unicase/u8-casefold.c: New file.
515         * lib/unicase/u-casefold.h: New file.
516         * modules/unicase/u8-casefold: New file.
517
518         New module 'unicase/tocasefold'.
519         * lib/unicase/casefold.h: New file.
520         * lib/unicase/tocasefold.c: New file.
521         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
522         * modules/unicase/tocasefold: New file.
523
524         Tests for module 'unicase/u32-totitle'.
525         * modules/unicase/u32-totitle-tests: New file.
526         * tests/unicase/test-u32-totitle.c: New file.
527
528         Tests for module 'unicase/u16-totitle'.
529         * modules/unicase/u16-totitle-tests: New file.
530         * tests/unicase/test-u16-totitle.c: New file.
531
532         Tests for module 'unicase/u8-totitle'.
533         * modules/unicase/u8-totitle-tests: New file.
534         * tests/unicase/test-u8-totitle.c: New file.
535
536         New module 'unicase/u32-totitle'.
537         * lib/unicase/u32-totitle.c: New file.
538         * modules/unicase/u32-totitle: New file.
539
540         New module 'unicase/u16-totitle'.
541         * lib/unicase/u16-totitle.c: New file.
542         * modules/unicase/u16-totitle: New file.
543
544         New module 'unicase/u8-totitle'.
545         * lib/unicase/u8-totitle.c: New file.
546         * lib/unicase/u-totitle.h: New file.
547         * modules/unicase/u8-totitle: New file.
548
549         Tests for module 'unicase/u32-tolower'.
550         * modules/unicase/u32-tolower-tests: New file.
551         * tests/unicase/test-u32-tolower.c: New file.
552
553         Tests for module 'unicase/u16-tolower'.
554         * modules/unicase/u16-tolower-tests: New file.
555         * tests/unicase/test-u16-tolower.c: New file.
556
557         Tests for module 'unicase/u8-tolower'.
558         * modules/unicase/u8-tolower-tests: New file.
559         * tests/unicase/test-u8-tolower.c: New file.
560
561         New module 'unicase/u32-tolower'.
562         * lib/unicase/u32-tolower.c: New file.
563         * modules/unicase/u32-tolower: New file.
564
565         New module 'unicase/u16-tolower'.
566         * lib/unicase/u16-tolower.c: New file.
567         * modules/unicase/u16-tolower: New file.
568
569         New module 'unicase/u8-tolower'.
570         * lib/unicase/u8-tolower.c: New file.
571         * modules/unicase/u8-tolower: New file.
572
573         Tests for module 'unicase/u32-toupper'.
574         * modules/unicase/u32-toupper-tests: New file.
575         * tests/unicase/test-u32-toupper.c: New file.
576
577         Tests for module 'unicase/u16-toupper'.
578         * modules/unicase/u16-toupper-tests: New file.
579         * tests/unicase/test-u16-toupper.c: New file.
580
581         Tests for module 'unicase/u8-toupper'.
582         * modules/unicase/u8-toupper-tests: New file.
583         * tests/unicase/test-u8-toupper.c: New file.
584
585         New module 'unicase/u32-toupper'.
586         * lib/unicase/u32-toupper.c: New file.
587         * modules/unicase/u32-toupper: New file.
588
589         New module 'unicase/u16-toupper'.
590         * lib/unicase/u16-toupper.c: New file.
591         * modules/unicase/u16-toupper: New file.
592
593         New module 'unicase/u8-toupper'.
594         * lib/unicase/u8-toupper.c: New file.
595         * modules/unicase/u8-toupper: New file.
596
597         New module 'unicase/u32-casemap'.
598         * lib/unicase/u32-casemap.c: New file.
599         * modules/unicase/u32-casemap: New file.
600
601         New module 'unicase/u16-casemap'.
602         * lib/unicase/u16-casemap.c: New file.
603         * modules/unicase/u16-casemap: New file.
604
605         New module 'unicase/u8-casemap'.
606         * lib/unicase/unicasemap.h: New file.
607         * lib/unicase/u8-casemap.c: New file.
608         * lib/unicase/u-casemap.h: New file.
609         * modules/unicase/u8-casemap: New file.
610
611         New module 'unicase/special-casing'.
612         * lib/unicase/special-casing.h: New file.
613         * lib/unicase/special-casing.c: New file.
614         * lib/unicase/special-casing-table.gperf: New file, generated by
615         gen-uni-tables.c.
616         * modules/unicase/special-casing: New file.
617
618         Tests for module 'unicase/locale-language'.
619         * modules/unicase/locale-language-tests: New file.
620         * tests/unicase/test-locale-language.sh: New file.
621         * tests/unicase/test-locale-language.c: New file.
622
623         New module 'unicase/locale-language'.
624         * lib/unicase/locale-language.c: New file.
625         * lib/unicase/locale-languages.gperf: New file.
626         * modules/unicase/locale-language: New file.
627
628         Generate more tables for case conversion and case folding.
629         * lib/gen-uni-tables.c (SCC_*): New enum items.
630         (struct special_casing_rule): New type.
631         (casing_rules, num_casing_rules, allocated_casing_rules): New
632         variables.
633         (add_casing_rule, fill_casing_rules): New functions.
634         (struct casefold_rule): New type.
635         (casefolding_rules, num_casefolding_rules,
636         allocated_casefolding_rules): New variables.
637         (fill_casefolding_rules): New function.
638         (unicode_casefold): New variable.
639         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
640         sort_casing_rules, output_casing_rules): New functions.
641         (main): Accept to more arguments: SpecialCasing.txt and
642         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
643         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
644         Output mapping for casefolding.
645
646         * lib/unicase.h: Include stdbool.h, uninorm.h.
647         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
648         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
649         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
650         arguments.
651         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
652         resultp arguments.
653         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
654         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
655         resultp arguments.
656         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
657         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
658         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
659         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
660         declarations.
661         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
662
663 2009-03-08  Bruno Haible  <bruno@clisp.org>
664
665         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
666         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
667         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
668         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
669
670 2009-03-07  Bruno Haible  <bruno@clisp.org>
671
672         Adjust u*_normcmp, u*_normcoll API.
673         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
674         u16_normcoll, u32_normcoll): Change failure conventions.
675         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
676         errno and return -1.
677         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
678
679 2009-03-07  Bruno Haible  <bruno@clisp.org>
680
681         Tests for module 'uninorm/u32-normcoll'.
682         * modules/uninorm/u32-normcoll-tests: New file.
683         * tests/uninorm/test-u32-normcoll.c: New file.
684
685         Tests for module 'uninorm/u16-normcoll'.
686         * modules/uninorm/u16-normcoll-tests: New file.
687         * tests/uninorm/test-u16-normcoll.c: New file.
688
689         Tests for module 'uninorm/u8-normcoll'.
690         * modules/uninorm/u8-normcoll-tests: New file.
691         * tests/uninorm/test-u8-normcoll.c: New file.
692
693 2009-03-07  Bruno Haible  <bruno@clisp.org>
694
695         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
696         tests/uninorm/test-u32-normcmp.c.
697         * tests/uninorm/test-u32-normcmp.c: Include it.
698         (test_nonascii): New function, extracted from main. Add some more
699         tests.
700         (main): Invoke test_ascii and test_nonascii.
701         * modules/uninorm/u32-normcmp-tests (Files): Add
702         tests/uninorm/test-u32-normcmp.h.
703         (Depends-on): Remove uninorm/u32-normcmp.
704
705         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
706         tests/uninorm/test-u16-normcmp.c.
707         * tests/uninorm/test-u16-normcmp.c: Include it.
708         (test_nonascii): New function, extracted from main. Add some more
709         tests.
710         (main): Invoke test_ascii and test_nonascii.
711         * modules/uninorm/u16-normcmp-tests (Files): Add
712         tests/uninorm/test-u16-normcmp.h.
713         (Depends-on): Remove uninorm/u16-normcmp.
714
715         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
716         tests/uninorm/test-u8-normcmp.c.
717         * tests/uninorm/test-u8-normcmp.c: Include it.
718         (test_nonascii): New function, extracted from main. Add some more
719         tests.
720         (main): Invoke test_ascii and test_nonascii.
721         * modules/uninorm/u8-normcmp-tests (Files): Add
722         tests/uninorm/test-u8-normcmp.h.
723         (Depends-on): Remove uninorm/u8-normcmp.
724
725 2009-03-07  Bruno Haible  <bruno@clisp.org>
726
727         New module 'uninorm/u32-normcoll'.
728         * lib/uninorm/u32-normcoll.c: New file.
729         * modules/uninorm/u32-normcoll: New file.
730
731         New module 'uninorm/u16-normcoll'.
732         * lib/uninorm/u16-normcoll.c: New file.
733         * modules/uninorm/u16-normcoll: New file.
734
735         New module 'uninorm/u8-normcoll'.
736         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
737         declarations.
738         * lib/uninorm/u8-normcoll.c: New file.
739         * lib/uninorm/u-normcoll.h: New file.
740         * modules/uninorm/u8-normcoll: New file.
741
742         New module 'uninorm/u32-normxfrm'.
743         * lib/uninorm/u32-normxfrm.c: New file.
744         * modules/uninorm/u32-normxfrm: New file.
745
746         New module 'uninorm/u16-normxfrm'.
747         * lib/uninorm/u16-normxfrm.c: New file.
748         * modules/uninorm/u16-normxfrm: New file.
749
750         New module 'uninorm/u8-normxfrm'.
751         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
752         declarations.
753         * lib/uninorm/u8-normxfrm.c: New file.
754         * lib/uninorm/u-normxfrm.h: New file.
755         * modules/uninorm/u8-normxfrm: New file.
756
757 2009-03-07  Bruno Haible  <bruno@clisp.org>
758
759         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
760         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
761         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
762
763 2009-03-07  Bruno Haible  <bruno@clisp.org>
764
765         New module 'memxfrm'.
766         * lib/memxfrm.h: New file.
767         * lib/memxfrm.c: New file.
768         * modules/memxfrm: New file.
769
770 2009-03-07  Bruno Haible  <bruno@clisp.org>
771
772         New module 'memcmp2'.
773         * lib/memcmp2.h: New file.
774         * lib/memcmp2.c: New file.
775         * modules/memcmp2: New file.
776
777 2009-03-07  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'uninorm/decomposing-form'.
780         * modules/uninorm/decomposing-form-tests: New file.
781         * tests/uninorm/test-decomposing-form.c: New file.
782
783         New module 'uninorm/decomposing-form'.
784         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
785         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
786         Add 'decomposing_variant' field.
787         * lib/uninorm/decomposing-form.c: New file.
788         * lib/uninorm/nfc.c (uninorm_nfc): Update.
789         * lib/uninorm/nfd.c (uninorm_nfd): Update.
790         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
791         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
792         * modules/uninorm/decomposing-form: New file.
793         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
794         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
795
796 2009-03-07  Bruno Haible  <bruno@clisp.org>
797
798         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
799         strings.
800
801 2009-03-06  Bruno Haible  <bruno@clisp.org>
802
803         Tests for module 'uninorm/u32-normcmp'.
804         * tests/uninorm/test-u32-normcmp.c: New file.
805         * modules/uninorm/u32-normcmp-tests: New file.
806
807         Tests for module 'uninorm/u16-normcmp'.
808         * tests/uninorm/test-u16-normcmp.c: New file.
809         * modules/uninorm/u16-normcmp-tests: New file.
810
811         Tests for module 'uninorm/u8-normcmp'.
812         * tests/uninorm/test-u8-normcmp.c: New file.
813         * modules/uninorm/u8-normcmp-tests: New file.
814
815         New module 'uninorm/u32-normcmp'.
816         * lib/uninorm/u32-normcmp.c: New file.
817         * modules/uninorm/u32-normcmp: New file.
818
819         New module 'uninorm/u16-normcmp'.
820         * lib/uninorm/u16-normcmp.c: New file.
821         * modules/uninorm/u16-normcmp: New file.
822
823         New module 'uninorm/u8-normcmp'.
824         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
825         declarations.
826         * lib/uninorm/u8-normcmp.c: New file.
827         * lib/uninorm/u-normcmp.h: New file.
828         * modules/uninorm/u8-normcmp: New file.
829
830 2009-03-06  Bruno Haible  <bruno@clisp.org>
831
832         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
833         Reported by Eric Blake.
834
835 2009-03-06  Eric Blake  <ebb9@byu.net>
836             Bruno Haible  <bruno@clisp.org>
837
838         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
839         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
840         condition.
841         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
842         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
843         condition.
844         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
845
846 2009-03-06  Eric Blake  <ebb9@byu.net>
847
848         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
849         to avoid compiler warnings.
850         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
851
852 2009-03-05  Bruno Haible  <bruno@clisp.org>
853
854         * tests/test-ftell.c (main): Disable test beyond end of file on
855         FreeMiNT.
856         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
857
858 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
859
860         * lib/filevercmp.c: Move hidden files up in ordering.
861         * tests/test-filevercmp.c: Add tests for hidden files.
862
863 2009-03-04  Bruno Haible  <bruno@clisp.org>
864
865         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
866         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
867         AM_CFLAGS.
868         Reported by Simon Josefsson.
869
870 2009-03-03  Bruno Haible  <bruno@clisp.org>
871
872         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
873         Reported by Simon Josefsson.
874
875         * doc/ld-version-script.texi: Update node reference.
876
877 2009-03-03  Bruno Haible  <bruno@clisp.org>
878
879         * modules/visibility (License): Change to 'unlimited'.
880         Suggested by Simon Josefsson.
881
882 2009-03-03  Jim Meyering  <meyering@redhat.com>
883
884         unlinkdir: cannot_unlink_dir may modify process state
885         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
886         it's neither thread-safe nor appropriate for use in a library.
887
888 2009-03-03  Eric Blake  <ebb9@byu.net>
889
890         test-closein: silence test under Darwin
891         * tests/test-closein.sh: Ignore stderr from cat, since we don't
892         care if it dies from EPIPE or EBADF.
893
894 2009-03-03  Bruno Haible  <bruno@clisp.org>
895
896         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
897         earlier.
898         * doc/visibility.texi: Fix @node and @section.
899
900 2009-03-03  Simon Josefsson  <simon@josefsson.org>
901
902         * doc/gnulib.texi: Link to sections for ld version script and
903         visibility.
904         * doc/visibility.texi: Add @node and @section.
905         * modules/ld-version-script: New module.
906         * m4/ld-version-script.m4: New file.
907         * doc/ld-version-script.texi: New file.
908
909 2009-03-02  David Lutterkort  <lutter@redhat.com>
910
911         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
913
914 2009-03-02  Bruno Haible  <bruno@clisp.org>
915
916         * doc/visibility.texi: Mention libtool's -export-symbols option.
917
918 2009-03-02  Jim Meyering  <meyering@redhat.com>
919
920         announce-gen: new option: --no-print-checksums
921         * build-aux/announce-gen (usage): Describe it.
922         (print_checksums): Print a newline here, not in the [*] footnote.
923         (main): Honor it.
924
925 2009-03-01  Bruno Haible  <bruno@clisp.org>
926
927         Use socklen_t in the native Windows replacements prototypes.
928         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
929         instead of 'int'.
930         * lib/getsockopt.c (rpl_getsockopt): Likewise.
931         * lib/setsockopt.c (rpl_setsockopt): Likewise.
932         * modules/getsockopt (Depends-on): Add socklen.
933         * modules/setsockopt (Depends-on): Add socklen.
934
935 2009-03-01  Bruno Haible  <bruno@clisp.org>
936
937         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
938         least 4.2.
939
940 2009-03-01  Eric Blake  <ebb9@byu.net>
941             Bruno Haible  <bruno@clisp.org>
942
943         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
944         error messages.
945         * lib/wait-process.c (wait_subprocess): Omit error message about
946         deadly signal sent to the child of termsigp != NULL.
947
948 2009-03-01  Eric Blake  <ebb9@byu.net>
949
950         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
951
952 2009-03-01  Bruno Haible  <bruno@clisp.org>
953
954         Avoid a gcc warning.
955         * tests/test-sched.c (b): Make global.
956         Reported by Eric Blake.
957
958 2009-01-19  Martin Lambers  <marlam@marlam.de>
959
960         Provide POSIX semantics for socket timeout options on W32.
961         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
962         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
963         * modules/setsockopt: Depend on sys_time module for struct timeval.
964         * modules/getsockopt: Depend on sys_time module for struct timeval.
965
966 2009-03-01  Simon Josefsson  <simon@josefsson.org>
967
968         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
969         __USE_GNU, for consistency with netdb.in.h.
970         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
971
972 2009-03-01  Bruno Haible  <bruno@clisp.org>
973
974         More support for FreeMiNT.
975         * lib/fseeko.c (rpl_fseeko): Complete last commit.
976         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
977
978 2009-03-01  Bruno Haible  <bruno@clisp.org>
979
980         More support for FreeMiNT.
981         * lib/fpurge.c (fpurge): Correct last commit.
982         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
983
984 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
985
986         Fix unportable awk script in vc-list-files.
987         * build-aux/vc-list-files: In the replacement awk script, use
988         substr with a second argument of 1, not zero.
989         Report by Simon Josefsson.
990
991 2009-02-28  Bruno Haible  <bruno@clisp.org>
992
993         More support for FreeMiNT.
994         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
995         to FreeMiNT today.
996         * lib/fwriting.c (fwriting): Likewise.
997         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
998
999 2009-02-28  Bruno Haible  <bruno@clisp.org>
1000
1001         * tests/test-freadseek.c (main): Disable test beyond end of file on
1002         FreeMiNT.
1003         * tests/test-ftello.c (main): Likewise.
1004         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1005
1006 2009-02-28  Bruno Haible  <bruno@clisp.org>
1007
1008         Add tentative support for FreeMiNT.
1009         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1010         * lib/fpurge.c (fpurge): Likewise.
1011         * lib/freadable.c (freadable): Likewise.
1012         * lib/freading.c (freading): Likewise.
1013         * lib/freadptr.c (freadptr): Likewise.
1014         * lib/freadseek.c (freadptrinc): Likewise.
1015         * lib/fseeko.c (rpl_fseeko): Likewise.
1016         * lib/fseterr.c (fseterr): Likewise.
1017         * lib/fwritable.c (fwritable): Likewise.
1018         * lib/fwriting.c (fwriting): Likewise.
1019         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1020         Hourihane.
1021         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1022
1023 2009-02-28  Bruno Haible  <bruno@clisp.org>
1024
1025         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1026         SIGCHLD.
1027         Reported by Jim Meyering.
1028
1029 2009-02-28  Bruno Haible  <bruno@clisp.org>
1030
1031         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1032         Mention the results of these tests on various platforms.
1033         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1034         order.
1035         * doc/posix-functions/printf.texi: Likewise.
1036         * doc/posix-functions/snprintf.texi: Likewise.
1037         * doc/posix-functions/sprintf.texi: Likewise.
1038         * doc/posix-functions/vfprintf.texi: Likewise.
1039         * doc/posix-functions/vprintf.texi: Likewise.
1040         * doc/posix-functions/vsnprintf.texi: Likewise.
1041         * doc/posix-functions/vsprintf.texi: Likewise.
1042         * doc/glibc-functions/obstack_printf.texi: Likewise.
1043         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1044
1045 2009-02-28  Bruno Haible  <bruno@clisp.org>
1046
1047         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1048         Reported by Loïc Minier <lool@dooz.org>.
1049
1050 2009-02-27  Bruno Haible  <bruno@clisp.org>
1051
1052         * gnulib-tool (func_import): Make the sed expression used to create the
1053         sed script for updating the .gitignore file POSIX compliant.
1054         Reported by Eric Blake.
1055
1056 2009-02-27  Bruno Haible  <bruno@clisp.org>
1057
1058         * gnulib-tool (sed): Don't alias as "sed --posix".
1059         Reported by Eric Blake.
1060
1061 2009-02-27  Bruno Haible  <bruno@clisp.org>
1062
1063         Avoid test link errors.
1064         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1065         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1066         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1067         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1069
1070 2009-02-27  Bruno Haible  <bruno@clisp.org>
1071
1072         Avoid spurious "(cached)" in configure output.
1073         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1074         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1075         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1076         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1077         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1078         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1079         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1080         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1081         Reported by Eric Blake.
1082
1083 2009-02-27  Eric Blake  <ebb9@byu.net>
1084
1085         printf: fix regression in previous patch
1086         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1087
1088 2009-02-27  Bruno Haible  <bruno@clisp.org>
1089
1090         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1091         value.
1092         * lib/stdint.in.h: Likewise.
1093         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1094
1095 2009-02-27  Eric Blake  <ebb9@byu.net>
1096
1097         doc: mention more functions added in cygwin 1.7.0
1098         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1099         addition.
1100         * doc/posix-functions/open_wmemstream.texi: Likewise.
1101         * doc/posix-functions/wcsnlen.texi: Likewise.
1102         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1103         * doc/posix-functions/wcstod.texi: Likewise.
1104         * doc/posix-functions/wcstof.texi: Likewise.
1105         * doc/posix-functions/wcstoimax.texi: Likewise.
1106         * doc/posix-functions/wcstok.texi: Likewise.
1107         * doc/posix-functions/wcstoumax.texi: Likewise.
1108
1109         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1110         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1111         * doc/posix-functions/fprintf.texi: Update.
1112         * doc/posix-functions/printf.texi: Update.
1113         * doc/posix-functions/snprintf.texi: Update.
1114         * doc/posix-functions/sprintf.texi: Update.
1115         * doc/posix-functions/vfprintf.texi: Update.
1116         * doc/posix-functions/vprintf.texi: Update.
1117         * doc/posix-functions/vsnprintf.texi: Update.
1118         * doc/posix-functions/vsprintf.texi: Update.
1119         * doc/glibc-functions/obstack_printf.texi: Update.
1120         * doc/glibc-functions/obstack_vprintf.texi: Update.
1121
1122 2009-02-26  Eric Blake  <ebb9@byu.net>
1123
1124         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1125         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1126         compilation bug by using runtime conversion.
1127         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1128         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1129         * modules/ceill-tests (Files): Use nan.h.
1130         * modules/floorl-tests (Files): Likewise.
1131         * modules/frexpl-tests (Files): Likewise.
1132         * modules/isnanl-tests (Files): Likewise.
1133         * modules/ldexpl-tests (Files): Likewise.
1134         * modules/roundl-tests (Files): Likewise.
1135         * modules/truncl-tests (Files): Likewise.
1136         * tests/test-ceill.c (main): Use a working NaN.
1137         * tests/test-floorl.c (main): Likewise.
1138         * tests/test-frexpl.c (main): Likewise.
1139         * tests/test-isnan.c (test_long_double): Likewise.
1140         * tests/test-isnanl.h (main): Likewise.
1141         * tests/test-ldexpl.h (main): Likewise.
1142         * tests/test-roundl.h (main): Likewise.
1143         * tests/test-truncl.h (main): Likewise.
1144         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1145
1146 2009-02-26  Eric Blake  <ebb9@byu.net>
1147             Bruno Haible  <bruno@clisp.org>
1148
1149         Work around a *printf bug with %ls on Solaris.
1150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1151         precision is specified, sprintf stops converting the wide string
1152         argument when the number of bytes that have been produced by this
1153         conversion equals or exceeds the precision.
1154         * doc/posix-functions/fprintf.texi: Update.
1155         * doc/posix-functions/printf.texi: Update.
1156         * doc/posix-functions/snprintf.texi: Update.
1157         * doc/posix-functions/sprintf.texi: Update.
1158         * doc/posix-functions/vfprintf.texi: Update.
1159         * doc/posix-functions/vprintf.texi: Update.
1160         * doc/posix-functions/vsnprintf.texi: Update.
1161         * doc/posix-functions/vsprintf.texi: Update.
1162         * doc/glibc-functions/obstack_printf.texi: Update.
1163         * doc/glibc-functions/obstack_vprintf.texi: Update.
1164
1165 2009-02-26  Eric Blake  <ebb9@byu.net>
1166
1167         stdlib: favor compiler check of random.h
1168         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1169         to avoid an ObjC random.h installed by Swarm.
1170
1171 2009-02-26  Bruno Haible  <bruno@clisp.org>
1172
1173         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1174         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1175         Reported by Gary V. Vaughan <gary@gnu.org>.
1176
1177 2009-02-26  Bruno Haible  <bruno@clisp.org>
1178
1179         Fix *printf behaviour regarding the %ls directive.
1180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1181         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1182         NEED_PRINTF_DIRECTIVE_LS.
1183         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1184         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1186         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1187         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1188         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1189         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1190         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1192         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1193         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1194         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1195         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1197         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1198         * doc/posix-functions/fprintf.texi: Update.
1199         * doc/posix-functions/printf.texi: Update.
1200         * doc/posix-functions/snprintf.texi: Update.
1201         * doc/posix-functions/sprintf.texi: Update.
1202         * doc/posix-functions/vfprintf.texi: Update.
1203         * doc/posix-functions/vprintf.texi: Update.
1204         * doc/posix-functions/vsnprintf.texi: Update.
1205         * doc/posix-functions/vsprintf.texi: Update.
1206         * doc/glibc-functions/obstack_printf.texi: Update.
1207         * doc/glibc-functions/obstack_vprintf.texi: Update.
1208         Reported by Eric Blake.
1209
1210 2009-02-25  Bruno Haible  <bruno@clisp.org>
1211
1212         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1213         with known value.
1214         Reported by Gary V. Vaughan <gary@gnu.org>.
1215
1216 2009-02-25  Bruno Haible  <bruno@clisp.org>
1217
1218         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1219         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1220         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1221         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1222         Reported by Gary V. Vaughan <gary@gnu.org>.
1223
1224 2009-02-25  Bruno Haible  <bruno@clisp.org>
1225
1226         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1227         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1228         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1229         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1230         Reported by Gary V. Vaughan <gary@gnu.org>.
1231
1232 2009-02-25  Eric Blake  <ebb9@byu.net>
1233
1234         tests: skip fseek/ftell tests if ungetc is broken
1235         * m4/ungetc.m4: New file.
1236         * modules/fseek-tests: Split test, so ungetc dependency is
1237         separate from rest of test.
1238         * modules/fseeko-tests: Likewise.
1239         * modules/ftell-tests: Likewise.
1240         * modules/ftello-tests: Likewise.
1241         * tests/test-fseek.c (main): Isolate ungetc dependency.
1242         * tests/test-fseeko.c (main): Likewise.
1243         * tests/test-ftell.c (main): Likewise.
1244         * tests/test-ftello.c (main): Likewise.
1245         * tests/test-fseek2.sh: New file.
1246         * tests/test-fseeko2.sh: Likewise.
1247         * tests/test-ftell2.sh: Likewise.
1248         * tests/test-ftello2.sh: Likewise.
1249
1250 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1251
1252         test-getaddrinfo: fix usage of skip return code 77
1253         * tests/test-gettaddrinfo.c: Return skip code 77 only
1254         for first occurance of skip (4x77 is not 77)
1255
1256 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1257
1258         strtod: avoid C99 decl-after-statement
1259         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1260
1261 2009-02-24  Eric Blake  <ebb9@byu.net>
1262
1263         strtod: detect HP-UX 11.31 bug
1264         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1265         Reported by Gary V. Vaughan.
1266
1267 2009-02-23  Bruno Haible  <bruno@clisp.org>
1268
1269         Fix invalid read past end of memory block.
1270         * lib/vasnprintf.c (DCHAR_SET): Define.
1271         (local_wcslen): Define only when needed.
1272         (local_strnlen, local_wcsnlen): New functions.
1273         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1274         directives that involve a conversion ourselves.
1275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1276         wcsnlen, mbrtowc, wcrtomb.
1277         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1278         * tests/test-vasprintf-posix.c (test_function): Likewise.
1279         * tests/test-snprintf-posix.h (test_function): Likewise.
1280         * tests/test-sprintf-posix.h (test_function): Likewise.
1281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1282
1283 2009-02-22  Bruno Haible  <bruno@clisp.org>
1284
1285         Implement new clarified decomposition of Hangul syllables.
1286         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1287         of type LTV, return only a pairwise decomposition.
1288         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1289         Likewise.
1290         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1291         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1292         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1293
1294 2009-02-22  Bruno Haible  <bruno@clisp.org>
1295
1296         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1297         zero-length results and shrink excess allocated memory.
1298         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1299         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1300         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1301         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1302         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1303         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1304         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1305         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1306         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1307         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1308         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1309         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1310
1311 2009-02-21  Bruno Haible  <bruno@clisp.org>
1312
1313         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1314         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1315         spaces after a period. Put a space between a macro name and its
1316         argument list. Trivial rewordings.
1317         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1318         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1319         (main): Return 0 explicitly.
1320
1321 2009-02-21  Bruno Haible  <bruno@clisp.org>
1322
1323         Tests for module 'uninorm/filter'.
1324         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1325         * modules/uninorm/filter-tests: New file.
1326
1327         New module 'uninorm/filter'.
1328         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1329         uninorm_filter_flush, uninorm_filter_free): New declarations.
1330         * lib/uninorm/uninorm-filter.c: New file.
1331         * modules/uninorm/filter: New file.
1332
1333 2009-02-21  Bruno Haible  <bruno@clisp.org>
1334
1335         Tests for module 'uninorm/nfkc'.
1336         * tests/uninorm/test-nfkc.c: New file.
1337         * tests/uninorm/test-u8-nfkc.c: New file.
1338         * tests/uninorm/test-u16-nfkc.c: New file.
1339         * tests/uninorm/test-u32-nfkc.c: New file.
1340         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1341         * tests/uninorm/test-u32-nfkc-big.c: New file.
1342         * modules/uninorm/nfkc-tests: New file.
1343
1344         New module 'uninorm/nfkc'.
1345         * lib/uninorm/nfkc.c: New file.
1346         * modules/uninorm/nfkc: New file.
1347
1348         Tests for module 'uninorm/nfkd'.
1349         * tests/uninorm/test-nfkd.c: New file.
1350         * tests/uninorm/test-u8-nfkd.c: New file.
1351         * tests/uninorm/test-u16-nfkd.c: New file.
1352         * tests/uninorm/test-u32-nfkd.c: New file.
1353         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1354         * tests/uninorm/test-u32-nfkd-big.c: New file.
1355         * modules/uninorm/nfkd-tests: New file.
1356
1357         New module 'uninorm/nfkd'.
1358         * lib/uninorm/nfkd.c: New file.
1359         * modules/uninorm/nfkd: New file.
1360
1361         Tests for module 'uninorm/nfc'.
1362         * tests/uninorm/test-nfc.c: New file.
1363         * tests/uninorm/test-u8-nfc.c: New file.
1364         * tests/uninorm/test-u16-nfc.c: New file.
1365         * tests/uninorm/test-u32-nfc.c: New file.
1366         * tests/uninorm/test-u32-nfc-big.sh: New file.
1367         * tests/uninorm/test-u32-nfc-big.c: New file.
1368         * modules/uninorm/nfc-tests: New file.
1369
1370         New module 'uninorm/nfc'.
1371         * lib/uninorm/nfc.c: New file.
1372         * modules/uninorm/nfc: New file.
1373
1374         Tests for module 'uninorm/nfd'.
1375         * tests/uninorm/test-nfd.c: New file.
1376         * tests/uninorm/test-u8-nfd.c: New file.
1377         * tests/uninorm/test-u16-nfd.c: New file.
1378         * tests/uninorm/test-u32-nfd.c: New file.
1379         * tests/uninorm/test-u32-nfd-big.sh: New file.
1380         * tests/uninorm/test-u32-nfd-big.c: New file.
1381         * tests/uninorm/test-u32-normalize-big.h: New file.
1382         * tests/uninorm/test-u32-normalize-big.c: New file.
1383         * tests/uninorm/NormalizationTest.txt: New file, created from
1384         Unicode 5.1.0 NormalizationTest.txt.
1385         * modules/uninorm/nfd-tests: New file.
1386
1387         New module 'uninorm/nfd'.
1388         * lib/uninorm/nfd.c: New file.
1389         * modules/uninorm/nfd: New file.
1390
1391         New module 'uninorm/u32-normalize'.
1392         * lib/uninorm/u32-normalize.c: New file.
1393         * modules/uninorm/u32-normalize: New file.
1394
1395         New module 'uninorm/u16-normalize'.
1396         * lib/uninorm/u16-normalize.c: New file.
1397         * modules/uninorm/u16-normalize: New file.
1398
1399         New module 'uninorm/u8-normalize'.
1400         * lib/uninorm/u8-normalize.c: New file.
1401         * lib/uninorm/normalize-internal.h: New file.
1402         * lib/uninorm/u-normalize-internal.h: New file.
1403         * modules/uninorm/u8-normalize: New file.
1404
1405         New module 'uninorm/decompose-internal'.
1406         * lib/uninorm/decompose-internal.c: New file.
1407         * modules/uninorm/decompose-internal: New file.
1408
1409         Tests for module 'uninorm/composition'.
1410         * tests/uninorm/test-composition.c: New file.
1411         * modules/uninorm/composition-tests: New file.
1412
1413         New module 'uninorm/composition'.
1414         * lib/uninorm/composition.c: New file.
1415         * lib/uninorm/composition-table.gperf: New file, generated by
1416         gen-uni-tables.
1417         * modules/uninorm/composition: New file.
1418
1419         Tests for module 'uninorm/compat-decomposition'.
1420         * tests/uninorm/test-compat-decomposition.c: New file.
1421         * modules/uninorm/compat-decomposition-tests: New file.
1422
1423         New module 'uninorm/compat-decomposition'.
1424         * lib/uninorm/decompose-internal.h: New file.
1425         * lib/uninorm/compat-decomposition.c: New file.
1426         * modules/uninorm/compat-decomposition: New file.
1427
1428         Tests for module 'uninorm/canonical-decomposition'.
1429         * tests/uninorm/test-canonical-decomposition.c: New file.
1430         * modules/uninorm/canonical-decomposition-tests: New file.
1431
1432         New module 'uninorm/canonical-decomposition'.
1433         * lib/uninorm/canonical-decomposition.c: New file.
1434         * modules/uninorm/canonical-decomposition: New file.
1435
1436         Tests for module 'uninorm/decomposition'.
1437         * tests/uninorm/test-decomposition.c: New file.
1438         * modules/uninorm/decomposition-tests: New file.
1439
1440         New module 'uninorm/decomposition'.
1441         * lib/uninorm/decomposition.c: New file.
1442         * modules/uninorm/decomposition: New file.
1443
1444         New module 'uninorm/decomposition-table'.
1445         * lib/uninorm/decomposition-table.h: New file.
1446         * lib/uninorm/decomposition-table.c: New file.
1447         * lib/uninorm/decomposition-table1.h: New file, generated by
1448         gen-uni-tables.
1449         * lib/uninorm/decomposition-table2.h: New file, generated by
1450         gen-uni-tables.
1451         * modules/uninorm/decomposition-table: New file.
1452
1453         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1454         (UC_DECOMP_*): New enumeration items.
1455         (get_decomposition): New function.
1456         (struct decomp_table): New type.
1457         (output_decomposition, output_decomposition_tables): New functions.
1458         (unicode_composition_exclusions): New variable.
1459         (fill_composition_exclusions, debug_output_composition_tables): New
1460         functions.
1461         (main): Accept one more argument. Invoke fill_composition_exclusions.
1462         Output decomposition and composition tables.
1463
1464         New module 'uninorm/base'.
1465         * lib/uninorm.h: New file.
1466         * lib/unictype.h: Update comment.
1467         * modules/uninorm/base: New file.
1468
1469 2009-02-21  David Lutterkort  <lutter@redhat.com>
1470
1471         Tests for module 'safe-alloc'.
1472         * tests/test-safe-alloc.c: New file.
1473         * modules/safe-alloc-tests: New file.
1474
1475         New module 'safe-alloc'.
1476         * lib/safe-alloc.h: New file.
1477         * lib/safe-alloc.c: New file.
1478         * m4/safe-alloc.m4: New file.
1479         * modules/safe-alloc: New file.
1480         * doc/safe-alloc.texi: New file.
1481         * doc/gnulib.texi: Include it.
1482         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1483         safe-alloc.
1484
1485 2009-02-18  Bruno Haible  <bruno@clisp.org>
1486
1487         Fix link error on non-glibc systems.
1488         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1489         variable.
1490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1491
1492 2009-02-18  Jim Meyering  <meyering@redhat.com>
1493
1494         fts: avoid used-uninitialized error due to recent change
1495         * lib/fts.c (fts_read): Guard uses of the new member,
1496         parent->fts_n_dirs_remaining, since it's not relevant for
1497         the parent of a directory specified on the command-line.
1498
1499 2009-02-17  James Youngman  <jay@gnu.org>
1500             Bruno Haible  <bruno@clisp.org>
1501
1502         * m4/include_next.m4: Reformulate comment.
1503
1504 2009-02-16  Jim Meyering  <meyering@redhat.com>
1505
1506         fts: add #if guards so that the fts_lgpl module still builds
1507         * lib/fts.c: Guard just-added hash-table-using parts with
1508         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1509         Reported by Simon Josefsson.
1510
1511 2009-02-15  Bruno Haible  <bruno@clisp.org>
1512
1513         * modules/array-mergesort-tests: New file.
1514         * tests/test-array-mergesort.c: New file.
1515
1516         New module 'array-mergesort'.
1517         * modules/array-mergesort: New file.
1518         * lib/array-mergesort.h: New file.
1519
1520 2009-02-15  Bruno Haible  <bruno@clisp.org>
1521
1522         Fix 2009-02-07 commit.
1523         * lib/gen-uni-tables.c (output_predicate, output_category,
1524         output_combclass, output_bidi_category, output_decimal_digit,
1525         output_digit, output_numeric, output_mirror, output_scripts,
1526         output_ident_category, output_simple_mapping): Fix format directives.
1527         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1528
1529 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1530
1531         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1532         fixes are available from IBM.
1533
1534 2009-02-13  Jim Meyering  <meyering@redhat.com>
1535
1536         fts: arrange not to stat non-directories in more cases
1537         This makes GNU find (when it doesn't need to stat each file)
1538         *much* more efficient at traversing reiserfs file systems.
1539         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1540         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1541         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1542         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1543         (leaf_optimization_applies): New function.
1544         (LCO_hash, LCO_compare): New helper functions.
1545         (link_count_optimize_ok): New function.
1546         (fts_stat): Initialize new member (if dir).
1547         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1548         we've just stat'ed a directory.  Skip the stat call when possible.
1549         ---
1550         Note this AFS-related exchange:
1551         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1552         and note find's pioctl call in find/fstype.c.
1553         But that is necessary only if you want to enable the
1554         optimization for AFS, and for now, I don't.
1555
1556         fts: move a function definition "up" (no semantic change)
1557         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1558         "up" to precede upcoming use of a related function.
1559
1560 2009-02-11  Jim Meyering  <meyering@redhat.com>
1561
1562         fts: correct internal computation of nlinks (optimization-related)
1563         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1564         whether the current entry is a directory, so don't test it.
1565
1566 2009-02-10  Bruno Haible  <bruno@clisp.org>
1567
1568         Tests for module 'uniwbrk/ulc-wordbreaks'.
1569         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1570         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1571         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1572
1573         Tests for module 'uniwbrk/u32-wordbreaks'.
1574         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1575         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1576
1577         Tests for module 'uniwbrk/u16-wordbreaks'.
1578         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1579         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1580
1581         Tests for module 'uniwbrk/u8-wordbreaks'.
1582         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1583         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1584
1585 2009-02-10  Bruno Haible  <bruno@clisp.org>
1586
1587         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1588         property.
1589         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1590         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1591         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1592
1593 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1594
1595         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1596         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1597
1598 2009-02-10  Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1601         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1602         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1603         * lib/unilbrk/u8-possible-linebreaks.c: Update.
1604         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1605         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1606
1607 2009-02-09  Simon Josefsson  <simon@josefsson.org>
1608
1609         * lib/sockets.h (gl_fd_to_handle): New function.
1610
1611         * tests/test-sockets.c: Call gl_fd_to_handle.
1612
1613 2009-02-09  Bruno Haible  <bruno@clisp.org>
1614
1615         * doc/havelib.texi: Document the conventions on bi-arch systems.
1616
1617 2009-02-08  Bruno Haible  <bruno@clisp.org>
1618
1619         Document the AC_LIB_LINKFLAGS macro.
1620         * doc/havelib.texi: New file, mostly written on 2005-05-24.
1621         * doc/gnulib.texi: Include it.
1622
1623 2009-02-08  Bruno Haible  <bruno@clisp.org>
1624
1625         Fix wrong order of sections, compared to TOC.
1626         * doc/gnulib.texi: Include relocatable-maint.texi after the
1627         "Regular expressions" node, not before.
1628
1629 2009-02-08  Bruno Haible  <bruno@clisp.org>
1630
1631         Tests for module 'unicase/totitle'.
1632         * modules/unicase/totitle-tests: New file.
1633
1634         Tests for module 'unicase/tolower'.
1635         * modules/unicase/tolower-tests: New file.
1636
1637         Tests for module 'unicase/toupper'.
1638         * modules/unicase/toupper-tests: New file.
1639         * tests/unicase/test-mapping-part1.h: New file.
1640         * tests/unicase/test-mapping-part2.h: New file.
1641
1642         New module 'unicase/totitle'.
1643         * modules/unicase/totitle: New file.
1644         * lib/unicase/totitle.c: New file.
1645
1646         New module 'unicase/tolower'.
1647         * modules/unicase/tolower: New file.
1648         * lib/unicase/tolower.c: New file.
1649
1650         New module 'unicase/toupper'.
1651         * modules/unicase/toupper: New file.
1652         * lib/unicase/toupper.c: New file.
1653         * lib/unicase/simple-mapping.h: New file.
1654
1655         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1656         (mapping_table): New structure.
1657         (output_simple_mapping): New function.
1658         (main): Invoke output_simple_mapping_test and output_simple_mapping.
1659         * modules/gen-uni-tables (Description): Update.
1660         * lib/unicase/toupper.h: New file, automatically generated by
1661         gen-uni-tables.
1662         * lib/unicase/tolower.h: New file, automatically generated by
1663         gen-uni-tables.
1664         * lib/unicase/totitle.h: New file, automatically generated by
1665         gen-uni-tables.
1666         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1667         gen-uni-tables.
1668         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1669         gen-uni-tables.
1670         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1671         gen-uni-tables.
1672
1673         New module 'unicase/base'.
1674         * modules/unicase/base: New file.
1675         * lib/unicase.h: New file.
1676
1677 2009-02-08  Bruno Haible  <bruno@clisp.org>
1678
1679         New module 'uniwbrk/ulc-wordbreaks'.
1680         * modules/uniwbrk/ulc-wordbreaks: New file.
1681         * lib/uniwbrk/ulc-wordbreaks.c: New file.
1682
1683         New module 'uniwbrk/u32-wordbreaks'.
1684         * modules/uniwbrk/u32-wordbreaks: New file.
1685         * lib/uniwbrk/u32-wordbreaks.c: New file.
1686
1687         New module 'uniwbrk/u16-wordbreaks'.
1688         * modules/uniwbrk/u16-wordbreaks: New file.
1689         * lib/uniwbrk/u16-wordbreaks.c: New file.
1690
1691         New module 'uniwbrk/u8-wordbreaks'.
1692         * modules/uniwbrk/u8-wordbreaks: New file.
1693         * lib/uniwbrk/u8-wordbreaks.c: New file.
1694         * lib/uniwbrk/u-wordbreaks.h: New file.
1695
1696         New module 'uniwbrk/table'.
1697         * modules/uniwbrk/table: New file.
1698         * lib/uniwbrk/wbrktable.h: New file.
1699         * lib/uniwbrk/wbrktable.c: New file.
1700
1701         New module 'uniwbrk/wordbreak-property'.
1702         * modules/uniwbrk/wordbreak-property: New file.
1703         * lib/uniwbrk/wordbreak-property.c: New file.
1704
1705         * lib/gen-uni-tables.c (WBP_*): New enum items.
1706         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1707         (unicode_org_wbp): New variable.
1708         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1709         New functions.
1710         (wbp_table): New structure.
1711         (output_wbp, output_wbrk_tables): New functions.
1712         (main): Accept additional argument. Invoke fill_org_wbp,
1713         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1714         output_wbrk_tables.
1715         * modules/gen-uni-tables (Description): Update.
1716         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1717         gen-uni-tables.
1718
1719         New module 'uniwbrk/base'.
1720         * modules/uniwbrk/base: New file.
1721         * lib/uniwbrk.h: New file.
1722
1723 2009-02-08  Bruno Haible  <bruno@clisp.org>
1724
1725         Update to Unicode 5.1.0.
1726         * lib/gen-uni-tables.c (is_property_alphabetic): Include
1727         U+2185..U+2188.
1728         (is_property_default_ignorable_code_point): Don't include characters
1729         of category Cc or Cs and not-a-characters.
1730         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1731         U+0D79, U+109E, U+109F, U+A60C.
1732         * lib/unictype/bidi_of.h: Regenerated.
1733         * lib/unictype/blocks.h: Regenerated.
1734         * lib/unictype/categ_C.h: Regenerated.
1735         * lib/unictype/categ_Cf.h: Regenerated.
1736         * lib/unictype/categ_Cn.h: Regenerated.
1737         * lib/unictype/categ_L.h: Regenerated.
1738         * lib/unictype/categ_Ll.h: Regenerated.
1739         * lib/unictype/categ_Lm.h: Regenerated.
1740         * lib/unictype/categ_Lo.h: Regenerated.
1741         * lib/unictype/categ_Lu.h: Regenerated.
1742         * lib/unictype/categ_M.h: Regenerated.
1743         * lib/unictype/categ_Mc.h: Regenerated.
1744         * lib/unictype/categ_Me.h: Regenerated.
1745         * lib/unictype/categ_Mn.h: Regenerated.
1746         * lib/unictype/categ_N.h: Regenerated.
1747         * lib/unictype/categ_Nd.h: Regenerated.
1748         * lib/unictype/categ_Nl.h: Regenerated.
1749         * lib/unictype/categ_No.h: Regenerated.
1750         * lib/unictype/categ_P.h: Regenerated.
1751         * lib/unictype/categ_Pd.h: Regenerated.
1752         * lib/unictype/categ_Pe.h: Regenerated.
1753         * lib/unictype/categ_Pf.h: Regenerated.
1754         * lib/unictype/categ_Pi.h: Regenerated.
1755         * lib/unictype/categ_Po.h: Regenerated.
1756         * lib/unictype/categ_Ps.h: Regenerated.
1757         * lib/unictype/categ_S.h: Regenerated.
1758         * lib/unictype/categ_Sk.h: Regenerated.
1759         * lib/unictype/categ_Sm.h: Regenerated.
1760         * lib/unictype/categ_So.h: Regenerated.
1761         * lib/unictype/categ_of.h: Regenerated.
1762         * lib/unictype/combining.h: Regenerated.
1763         * lib/unictype/ctype_alnum.h: Regenerated.
1764         * lib/unictype/ctype_alpha.h: Regenerated.
1765         * lib/unictype/ctype_graph.h: Regenerated.
1766         * lib/unictype/ctype_lower.h: Regenerated.
1767         * lib/unictype/ctype_print.h: Regenerated.
1768         * lib/unictype/ctype_punct.h: Regenerated.
1769         * lib/unictype/ctype_upper.h: Regenerated.
1770         * lib/unictype/decdigit.h: Regenerated.
1771         * lib/unictype/digit.h: Regenerated.
1772         * lib/unictype/mirror.h: Regenerated.
1773         * lib/unictype/numeric.h: Regenerated.
1774         * lib/unictype/pr_alphabetic.h: Regenerated.
1775         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
1776         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
1777         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
1778         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
1779         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
1780         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
1781         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
1782         * lib/unictype/pr_combining.h: Regenerated.
1783         * lib/unictype/pr_dash.h: Regenerated.
1784         * lib/unictype/pr_decimal_digit.h: Regenerated.
1785         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
1786         * lib/unictype/pr_deprecated.h: Regenerated.
1787         * lib/unictype/pr_diacritic.h: Regenerated.
1788         * lib/unictype/pr_extender.h: Regenerated.
1789         * lib/unictype/pr_format_control.h: Regenerated.
1790         * lib/unictype/pr_grapheme_base.h: Regenerated.
1791         * lib/unictype/pr_grapheme_extend.h: Regenerated.
1792         * lib/unictype/pr_grapheme_link.h: Regenerated.
1793         * lib/unictype/pr_id_continue.h: Regenerated.
1794         * lib/unictype/pr_id_start.h: Regenerated.
1795         * lib/unictype/pr_ideographic.h: Regenerated.
1796         * lib/unictype/pr_ignorable_control.h: Regenerated.
1797         * lib/unictype/pr_lowercase.h: Regenerated.
1798         * lib/unictype/pr_math.h: Regenerated.
1799         * lib/unictype/pr_numeric.h: Regenerated.
1800         * lib/unictype/pr_other_alphabetic.h: Regenerated.
1801         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
1802         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
1803         * lib/unictype/pr_other_id_continue.h: Regenerated.
1804         * lib/unictype/pr_other_lowercase.h: Regenerated.
1805         * lib/unictype/pr_other_math.h: Regenerated.
1806         * lib/unictype/pr_punctuation.h: Regenerated.
1807         * lib/unictype/pr_sentence_terminal.h: Regenerated.
1808         * lib/unictype/pr_soft_dotted.h: Regenerated.
1809         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
1810         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
1811         * lib/unictype/pr_unified_ideograph.h: Regenerated.
1812         * lib/unictype/pr_uppercase.h: Regenerated.
1813         * lib/unictype/pr_xid_continue.h: Regenerated.
1814         * lib/unictype/pr_xid_start.h: Regenerated.
1815         * lib/unictype/pr_zero_width.h: Regenerated.
1816         * lib/unictype/scripts.h: Regenerated.
1817         * lib/unictype/scripts_byname.gperf: Regenerated.
1818         * lib/unictype/sy_java_ident.h: Regenerated.
1819         * lib/unilbrk/lbrkprop1.h: Regenerated.
1820         * lib/unilbrk/lbrkprop2.h: Regenerated.
1821         * tests/unictype/test-categ_C.c: Regenerated.
1822         * tests/unictype/test-categ_Cf.c: Regenerated.
1823         * tests/unictype/test-categ_Cn.c: Regenerated.
1824         * tests/unictype/test-categ_L.c: Regenerated.
1825         * tests/unictype/test-categ_Ll.c: Regenerated.
1826         * tests/unictype/test-categ_Lm.c: Regenerated.
1827         * tests/unictype/test-categ_Lo.c: Regenerated.
1828         * tests/unictype/test-categ_Lu.c: Regenerated.
1829         * tests/unictype/test-categ_M.c: Regenerated.
1830         * tests/unictype/test-categ_Mc.c: Regenerated.
1831         * tests/unictype/test-categ_Me.c: Regenerated.
1832         * tests/unictype/test-categ_Mn.c: Regenerated.
1833         * tests/unictype/test-categ_N.c: Regenerated.
1834         * tests/unictype/test-categ_Nd.c: Regenerated.
1835         * tests/unictype/test-categ_Nl.c: Regenerated.
1836         * tests/unictype/test-categ_No.c: Regenerated.
1837         * tests/unictype/test-categ_P.c: Regenerated.
1838         * tests/unictype/test-categ_Pd.c: Regenerated.
1839         * tests/unictype/test-categ_Pe.c: Regenerated.
1840         * tests/unictype/test-categ_Pf.c: Regenerated.
1841         * tests/unictype/test-categ_Pi.c: Regenerated.
1842         * tests/unictype/test-categ_Po.c: Regenerated.
1843         * tests/unictype/test-categ_Ps.c: Regenerated.
1844         * tests/unictype/test-categ_S.c: Regenerated.
1845         * tests/unictype/test-categ_Sk.c: Regenerated.
1846         * tests/unictype/test-categ_Sm.c: Regenerated.
1847         * tests/unictype/test-categ_So.c: Regenerated.
1848         * tests/unictype/test-ctype_alnum.c: Regenerated.
1849         * tests/unictype/test-ctype_alpha.c: Regenerated.
1850         * tests/unictype/test-ctype_graph.c: Regenerated.
1851         * tests/unictype/test-ctype_lower.c: Regenerated.
1852         * tests/unictype/test-ctype_print.c: Regenerated.
1853         * tests/unictype/test-ctype_punct.c: Regenerated.
1854         * tests/unictype/test-ctype_upper.c: Regenerated.
1855         * tests/unictype/test-decdigit.h: Regenerated.
1856         * tests/unictype/test-digit.h: Regenerated.
1857         * tests/unictype/test-numeric.h: Regenerated.
1858         * tests/unictype/test-pr_alphabetic.c: Regenerated.
1859         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
1860         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
1861         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
1862         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
1863         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
1864         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
1865         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
1866         * tests/unictype/test-pr_combining.c: Regenerated.
1867         * tests/unictype/test-pr_dash.c: Regenerated.
1868         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
1869         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
1870         * tests/unictype/test-pr_deprecated.c: Regenerated.
1871         * tests/unictype/test-pr_diacritic.c: Regenerated.
1872         * tests/unictype/test-pr_extender.c: Regenerated.
1873         * tests/unictype/test-pr_format_control.c: Regenerated.
1874         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
1875         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
1876         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
1877         * tests/unictype/test-pr_id_continue.c: Regenerated.
1878         * tests/unictype/test-pr_id_start.c: Regenerated.
1879         * tests/unictype/test-pr_ideographic.c: Regenerated.
1880         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
1881         * tests/unictype/test-pr_lowercase.c: Regenerated.
1882         * tests/unictype/test-pr_math.c: Regenerated.
1883         * tests/unictype/test-pr_numeric.c: Regenerated.
1884         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
1885         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
1886         Regenerated.
1887         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
1888         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
1889         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
1890         * tests/unictype/test-pr_other_math.c: Regenerated.
1891         * tests/unictype/test-pr_punctuation.c: Regenerated.
1892         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
1893         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
1894         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
1895         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
1896         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
1897         * tests/unictype/test-pr_uppercase.c: Regenerated.
1898         * tests/unictype/test-pr_xid_continue.c: Regenerated.
1899         * tests/unictype/test-pr_xid_start.c: Regenerated.
1900         * tests/unictype/test-pr_zero_width.c: Regenerated.
1901
1902         Update to Unicode 5.1.0.
1903         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
1904         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
1905         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
1906         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
1907         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
1908         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
1909         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
1910         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
1911         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
1912         (nonspacing_table_ind): Update.
1913         * tests/uniwidth/test-uc_width2.sh: Update expected result.
1914
1915         Update to Unicode 5.1.0.
1916         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
1917         code transform.
1918         * lib/uniname/uniname.c (unicode_character_name,
1919         unicode_name_character): Add the range 0x1Fxxx to the code transform.
1920         * lib/uniname/uninames.h: Regenerated.
1921         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
1922
1923 2009-02-07  Bruno Haible  <bruno@clisp.org>
1924
1925         Merge gen-ctype and gen-lbrk into a single program.
1926         * lib/gen-uni-tables.c: New file, incorporating
1927         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
1928         Add directory prefixes to the names of the generated files.
1929         * lib/unictype/gen-ctype.c: Remove file.
1930         * lib/unilbrk/gen-lbrk.c: Remove file.
1931         * modules/gen-uni-tables: New file.
1932         * modules/unictype/gen-ctype: Remove file.
1933         * modules/unilbrk/gen-lbrk: Remove file.
1934
1935 2009-02-07  Bruno Haible  <bruno@clisp.org>
1936
1937         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
1938
1939         New module 'unistr/u32-strcoll'.
1940         * modules/unistr/u32-strcoll: New file.
1941         * lib/unistr/u32-strcoll.c: New file.
1942
1943         New module 'unistr/u16-strcoll'.
1944         * modules/unistr/u16-strcoll: New file.
1945         * lib/unistr/u16-strcoll.c: New file.
1946
1947         New module 'unistr/u8-strcoll'.
1948         * modules/unistr/u8-strcoll: New file.
1949         * lib/unistr/u8-strcoll.c: New file.
1950         * lib/unistr/u-strcoll.h: New file.
1951
1952 2009-02-07  Bruno Haible  <bruno@clisp.org>
1953
1954         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
1955         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1956         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
1957         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
1958         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
1959         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
1960
1961 2009-02-07  Bruno Haible  <bruno@clisp.org>
1962
1963         Make 64-bit clean.
1964         * lib/unictype/gen-ctype.c (output_predicate, output_category,
1965         output_combclass, output_bidi_category, output_decimal_digit,
1966         output_digit, output_numeric, output_mirror, output_scripts,
1967         output_ident_category): Use proper width specifier in format strings.
1968
1969 2009-02-07  Bruno Haible  <bruno@clisp.org>
1970
1971         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
1972         failure behaviour.
1973
1974 2009-02-07  Jim Meyering  <meyering@redhat.com>
1975
1976         regex: avoid compilation failure with upcoming gcc-4.4
1977         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
1978         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
1979         "... error: integer overflow in preprocessor expression".
1980
1981 2009-02-05  Ben Pfaff  <blp@gnu.org>
1982
1983         Fix link errors on Windows when close module is used.
1984         * modules/close: Add $(LIB_CLOSE) to Link section.
1985         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
1986         $(LIB_CLOSE) on Windows.
1987
1988 2009-02-05  Jim Meyering  <meyering@redhat.com>
1989
1990         still avoid unused-parameter warnings, but do it cleanly
1991         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
1992         (get_fs_usage): Cast to void instead.
1993         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
1994         (dev_from_mount_options, read_file_system_list): Cast to void.
1995         Prompted by Bruno Haible.
1996
1997 2009-02-04  Jim Meyering  <meyering@redhat.com>
1998
1999         fsusage.c: correct copyright year
2000         * lib/fsusage.c: Reflect year in which the change is pushed into
2001
2002         avoid misc. warnings
2003         * lib/fsusage.c (UNUSED_PARAM): Define.
2004         (get_fs_usage): Mark parameter "disk" as unused.
2005         * lib/getugroups.c (getgrent): Use "void" in prototype.
2006         * lib/mountlist.c: Mark unused parameters.
2007         (read_file_system_list): Declare a local with "const".
2008         * lib/nanosleep.c (getnow): Declare static.
2009         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2010
2011         dirfd: set errno upon failure
2012         * lib/dirfd.c: Include <errno.h>.
2013         Set errno to ENOTSUP when returning -1.
2014         * modules/dirfd (Depends-on): Add errno.
2015         Suggested by John Kodis <kodis@comcast.net>.
2016
2017 2009-02-01  Bruno Haible  <bruno@clisp.org>
2018
2019         Don't assume sizeof (long) >= sizeof (void *).
2020         * lib/memcmp.c: Include stdint.h.
2021         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2022         srcp2 to 'const byte *'.
2023         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2024         types to uintptr_t.
2025         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2026         * modules/memcmp (Depends-on): Add stdint.
2027         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2028
2029 2009-01-30  Eric Blake  <ebb9@byu.net>
2030
2031         fix more require-before-expand issues
2032         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2033         expand, AC_PROG_AWK.
2034         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2035
2036 2009-01-28  Eric Blake  <ebb9@byu.net>
2037
2038         version-etc: use consistent URL formatting
2039         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2040         Improve formatting.  Use fputs for string without %.
2041
2042 2009-01-28  Jim Meyering  <meyering@redhat.com>
2043
2044         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2045         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2046         "underquoted definition of NAME" from autoconf-2.59.
2047
2048 2009-01-28  Bruno Haible  <bruno@clisp.org>
2049
2050         * doc/gnulib.texi: Add "Obsolete modules" to index.
2051
2052 2009-01-28  Jim Meyering  <meyering@redhat.com>
2053
2054         useless-if-before-free: recognize more variants
2055         * build-aux/useless-if-before-free: Also recognize e.g.,
2056         if (NULL != p) free (p);
2057
2058 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2059
2060         test-getaddrinfo: skip (don't fail) this test when there's no network
2061         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2062         on the presumption that it means you lack network access.
2063
2064 2009-01-26  Jim Meyering  <meyering@redhat.com>
2065
2066         fflush: avoid warnings on modern systems
2067         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2068         pos and result, into scopes where they're used.
2069
2070 2009-01-26  Eric Blake  <ebb9@byu.net>
2071
2072         Silence warning reintroduced by recent extensions patch.
2073         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2074         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2075         autoconf.
2076
2077         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2078         * m4/00gnulib.m4: New file.
2079         * gnulib-tool (func_get_filelist): Always use it.
2080         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2081         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2082
2083 2009-01-25  Bruno Haible  <bruno@clisp.org>
2084
2085         Make test-quotearg work on MacOS X and AIX.
2086         * tests/test-quotearg.sh: New file.
2087         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2088         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2089         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2090         include <libintl.h>.
2091         (fake_locale): Remove variable.
2092         (gettext, dgettext, dcgettext): Remove functions.
2093         (main): Instead of setting a fake locale, set a real locale. Call
2094         textdomain and bindtextdomain.
2095         * modules/quotearg-tests (Files): Add the new files.
2096         (Depends-on): Add gettext, setenv, unsetenv.
2097         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2098         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2099         Augment TESTS_ENVIRONMENT.
2100
2101 2009-01-25  Bruno Haible  <bruno@clisp.org>
2102
2103         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2104         fr_FR.ISO8859-1 locale on MacOS X.
2105         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2106         ja_JP.eucJP locale on MacOS X.
2107         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2108         zh_CN.GB18030 locale on MacOS X.
2109
2110 2009-01-25  Bruno Haible  <bruno@clisp.org>
2111
2112         Avoid link errors on MacOS X 10.3.
2113         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2114         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2115
2116 2009-01-25  Bruno Haible  <bruno@clisp.org>
2117
2118         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2119         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2120         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2121         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2122         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2123         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2124         posix_spawnattr_init, posix_spawnattr_setsigmask,
2125         posix_spawnattr_setflags, posix_spawnattr_destroy.
2126
2127         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2128         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2129         * modules/execute (Files): Remove m4/posix_spawn.m4.
2130         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2131         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2132         posix_spawnattr_init, posix_spawnattr_setsigmask,
2133         posix_spawnattr_setflags, posix_spawnattr_destroy.
2134
2135 2009-01-25  Bruno Haible  <bruno@clisp.org>
2136
2137         * lib/glthread/threadlib.c: Include <stdlib.h>.
2138
2139 2009-01-25  Bruno Haible  <bruno@clisp.org>
2140
2141         * lib/glthread/threadlib.c (dummy): New declaration.
2142
2143 2009-01-25  Bruno Haible  <bruno@clisp.org>
2144
2145         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2146         multibyte characters also for the GB18030 encoding. Don't crash when
2147         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2148
2149 2009-01-25  Bruno Haible  <bruno@clisp.org>
2150
2151         Avoid redefining 'struct random_data' on OSF/1 5.1.
2152         * lib/stdlib.in.h: Include <random.h> if it exists.
2153         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2154         HAVE_RANDOM_H. Include <random.h> when testing whether
2155         'struct random_data' exists.
2156         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2157
2158 2009-01-25  Bruno Haible  <bruno@clisp.org>
2159
2160         Don't install charset.alias on MacOS X >= 10.3.
2161         * lib/localcharset.c (DARWIN7): New macro.
2162         (get_charset_aliases): Hardcode the result for Darwin7.
2163         * modules/localcharset (install-exec-local): Don't install
2164         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2165
2166 2009-01-25  Bruno Haible  <bruno@clisp.org>
2167
2168         Don't install charset.alias on mingw and Cygwin.
2169         * modules/localcharset (install-exec-local): Don't install
2170         charset.alias on mingw and Cygwin, if the file does not yet exist.
2171         The result for these platforms is hardcoded in localcharset.c.
2172
2173 2009-01-25  Bruno Haible  <bruno@clisp.org>
2174
2175         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2176         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2177         before requiring AC_USE_SYSTEM_EXTENSIONS.
2178
2179 2009-01-25  Jim Meyering  <meyering@redhat.com>
2180
2181         c-strtod: avoid warnings
2182         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2183         "assignment discards qualifiers from pointer target type" warnings.
2184
2185 2009-01-24  Bruno Haible  <bruno@clisp.org>
2186
2187         Add support for non-UTF-8 locales on MacOS X.
2188         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2189         canonical encodings. For Darwin 7 and newer, don't map traditional
2190         encodings to UTF-8.
2191         Reported by Vincent Lefevre <vincent@vinc17.org>
2192         at <http://savannah.gnu.org/bugs/?25235>.
2193
2194 2009-01-24  Bruno Haible  <bruno@clisp.org>
2195
2196         * doc/gnulib.texi (Obsolete modules): New section.
2197         Reported by Mike Frysinger <vapier@gentoo.org>.
2198
2199 2009-01-24  Bruno Haible  <bruno@clisp.org>
2200
2201         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2202         (%.dvi): New rule.
2203
2204 2009-01-24  Bruno Haible  <bruno@clisp.org>
2205
2206         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2207         Reported by Eric Blake.
2208
2209 2009-01-24  Bruno Haible  <bruno@clisp.org>
2210
2211         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2212         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2213         Reported by Gary V. Vaughan <gary@gnu.org>.
2214
2215 2009-01-24  Bruno Haible  <bruno@clisp.org>
2216
2217         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2218
2219 2009-01-23  Bruno Haible  <bruno@clisp.org>
2220
2221         Make c-strtod, c-strtold usable in libraries.
2222         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2223         (C_STRTOD): Call strdup instead of xstrdup.
2224         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2225         * modules/c-strtold (Depends-on): Likewise.
2226         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2227         * NEWS: Mention the change.
2228         Reported by Michael Gold <mgold@ncf.ca>.
2229
2230 2009-01-23  Jim Meyering  <meyering@redhat.com>
2231
2232         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2233         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2234         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2235
2236 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2237
2238         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2239         GNU CoreUtils.
2240         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2241         * modules/version-etc (Description): Update.
2242
2243 2009-01-22  Bruno Haible  <bruno@clisp.org>
2244
2245         Cache the C locale object.
2246         * lib/c-strtod.c (c_locale_cache): New variable.
2247         (c_locale): New function.
2248         (C_STRTOD): Use it, and don't call freelocale.
2249         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2250         Suggested by Paolo Bonzini.
2251
2252 2009-01-21  Bruno Haible  <bruno@clisp.org>
2253
2254         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2255         conditions other than overflow.
2256
2257 2009-01-21  Bruno Haible  <bruno@clisp.org>
2258
2259         * lib/c-strtod.c: Include errno.h.
2260         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2261         value from STRTOD_L and STRTOD.
2262
2263 2009-01-21  Bruno Haible  <bruno@clisp.org>
2264         and Jim Meyering  <meyering@redhat.com>
2265
2266         nanosleep: skip configure test (fail it) for apple universal builds
2267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2268         universal builds, assume that nanosleep does not work.
2269         * modules/nanosleep (Depends-on): Add multiarch.
2270
2271         mktime: skip configure test (fail it) for apple universal builds
2272         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2273         universal builds, assume that mktime does not work.
2274         * modules/mktime (Depends-on): Add multiarch.
2275
2276 2009-01-21  Eric Blake  <ebb9@byu.net>
2277
2278         multiarch: avoid expand-before-require warning
2279         * modules/multiarch (configure.ac): Require, rather than expand,
2280         gl_MULTIARCH.
2281         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2282         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2283         enforce that all clients require it.  Partial reversion of
2284         2008-12-29 patch.
2285
2286         error: avoid expand-before-require warning
2287         * modules/errno (configure.ac): Require, rather than expand,
2288         gl_HEADER_ERRNO_H.
2289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2290         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2291         enforce that all clients require it.
2292
2293         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2294         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2295         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2296         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2297
2298 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2299
2300         Revert:
2301         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2302
2303         regex: do not depend on obsolete modules.
2304         * modules/regex: Remove memcmp and memmove.
2305
2306 2009-01-20  Bruno Haible  <bruno@clisp.org>
2307
2308         Make the 'link' module link on Windows NT 4.
2309         * lib/link.c (_WIN32_WINNT): Don't define.
2310         (CreateHardLinkFuncType): New type.
2311         (CreateHardLinkFunc, initialized): New variables.
2312         (initialize): New function.
2313         (link): Invoke CreateHardLink indirectly through the function pointer.
2314
2315 2009-01-20  Bruno Haible  <bruno@clisp.org>
2316
2317         Fix compilation failure on mingw.
2318         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2319
2320 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2321
2322         * doc/c-strtod.texi: Mention a couple of restrictions.
2323
2324 2009-01-20  Jim Meyering  <meyering@redhat.com>
2325
2326         gettimeofday: move more declarations out of functions
2327         * lib/gettimeofday.c: Move extern declarations of tzset and
2328         gmtime out of containing functions.  Prompted by Bruno Haible.
2329
2330 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2331
2332         regex: do not depend on obsolete modules.
2333         * modules/regex: Remove memcmp and memmove.
2334
2335 2009-01-19  Bruno Haible  <bruno@clisp.org>
2336
2337         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2338         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2339         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2340         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2341         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2342
2343 2009-01-19  Bruno Haible  <bruno@clisp.org>
2344
2345         * tests/test-link.c: Include <errno.h>.
2346         (main): Exit with code 77 when a hard link cannot be created due to
2347         the file system.
2348         * tests/test-link.sh: Skip test when a hard link cannot be created due
2349         to the file system.
2350         Suggested by Eric Blake.
2351
2352 2009-01-19  Martin Lambers  <marlam@marlam.de>
2353
2354         * modules/link-tests: New file.
2355         * tests/test-link.sh: New file.
2356         * tests/test-link.c: New file.
2357
2358 2009-01-19  Eric Blake  <ebb9@byu.net>
2359
2360         doc: mention another function added in cygwin 1.7.0
2361         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2362         Another new function in cygwin 1.7.
2363
2364 2009-01-19  Bruno Haible  <bruno@clisp.org>
2365
2366         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2367         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2368         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2369         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2370         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2371         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2372         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2373         * m4/md4.m4 (gl_MD4): Likewise.
2374         * m4/md5.m4 (gl_MD5): Likewise.
2375         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2376         * m4/sha1.m4 (gl_SHA1): Likewise.
2377         * m4/sha256.m4 (gl_SHA256): Likewise.
2378         * m4/sha512.m4 (gl_SHA512): Likewise.
2379
2380 2009-01-19  Bruno Haible  <bruno@clisp.org>
2381
2382         * modules/uniname/uniname-tests (Depends-on): Add progname.
2383         * tests/uniname/test-uninames.c: Include progname.h.
2384         (main): Call set_program_name.
2385
2386         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2387         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2388         (main): Call set_program_name.
2389
2390         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2391         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2392         (main): Call set_program_name.
2393
2394         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2395         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2396         (main): Call set_program_name.
2397
2398         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2399         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2400         (main): Call set_program_name.
2401
2402         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2403         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2404         (main): Call set_program_name.
2405
2406         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2407         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2408         (main): Call set_program_name.
2409
2410         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2411         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2412         (main): Call set_program_name.
2413
2414         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2415         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2416         (main): Call set_program_name.
2417
2418 2009-01-19  Eric Blake  <ebb9@byu.net>
2419
2420         test-unistd: test previous patch
2421         * tests/test-unistd.c: Test *_FILENO macros.
2422
2423         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2424         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2425         Guarantee a definition.
2426         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2427         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2428         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2429         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2430         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2431         Likewise.
2432         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2433         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2434         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2435         Likewise.
2436         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2437         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2438         (STDERR_FILENO): Likewise.
2439         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2440         (STDERR_FILENO): Likewise.
2441         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2442         (STDERR_FILENO): Likewise.
2443         Reported by Elbert Pol.
2444
2445 2009-01-19  Eric Blake  <ebb9@byu.net>
2446
2447         doc: mention more functions added in cygwin 1.7.0
2448         * doc/posix-functions/abort.texi (abort): Update wording related
2449         to cygwin.
2450         * doc/posix-functions/daylight.texi (daylight): Likewise.
2451         * doc/posix-functions/optarg.texi (optarg): Likewise.
2452         * doc/posix-functions/optarg.texi (opterr): Likewise.
2453         * doc/posix-functions/optarg.texi (optind): Likewise.
2454         * doc/posix-functions/optarg.texi (optopt): Likewise.
2455         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2456         worked in 1.5.x, and was withdrawn in 1.7.
2457         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2458         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2459         cygwin versions.
2460         * doc/posix-functions/perror.texi (perror): Likewise.
2461         * doc/posix-functions/printf.texi (printf): Likewise.
2462         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2463         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2464         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2465         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2466         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2467         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2468         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2469         Likewise.
2470         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2471         Likewise.
2472         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2473         this function.
2474         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2475         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2476         Likewise.
2477         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2478         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2479         * doc/posix-functions/confstr.texi (confstr): Likewise.
2480         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2481         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2482         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2483         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2484         * doc/posix-functions/fputws.texi (fputws): Likewise.
2485         * doc/posix-functions/fwide.texi (fwide): Likewise.
2486         * doc/posix-functions/getwc.texi (getwc): Likewise.
2487         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2488         * doc/posix-functions/putwc.texi (putwc): Likewise.
2489         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2490         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2491         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2492         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2493         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2494         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2495         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2496         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2497         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2498         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2499         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2500
2501 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2502
2503         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2504         * lib/ioctl.c: Include <sys/ioctl.h>.
2505
2506 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2507
2508         * modules/getdate-tests (Depends-on): Add progname.
2509         * tests/test-getdate.c: Use progname module, to avoid link errors
2510         on non-glibc systems.
2511
2512 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2513
2514         * modules/filenamecat-tests (Depends-on): Add progname.
2515         * modules/fstrcmp-tests (Depends-on): Likewise.
2516
2517         * tests/test-filenamecat.c: Use progname module, to avoid link
2518         errors on non-glibc systems.
2519         * tests/test-fstrcmp.c: Likewise.
2520
2521 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2522
2523         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2524         * lib/gettimeofday.c: Move extern declaration out of function.
2525
2526 2009-01-18  Bruno Haible  <bruno@clisp.org>
2527
2528         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2529         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2530         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2531
2532 2009-01-18  Bruno Haible  <bruno@clisp.org>
2533
2534         * lib/strftime.c (MEMPCPY): Remove unused macro.
2535         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2536
2537 2009-01-18  Martin Lambers  <marlam@marlam.de>
2538
2539         New module 'link'.
2540         * lib/unistd.in.h (link): New declaration.
2541         * lib/link.c: New file.
2542         * m4/link.m4: New file.
2543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2544         HAVE_LINK.
2545         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2546         * modules/link: New file.
2547         * doc/posix-functions/link.texi: Mention the new module.
2548
2549 2009-01-18  Bruno Haible  <bruno@clisp.org>
2550
2551         * tests/test-avltree_list.c (main): Call set_program_name.
2552         * tests/test-avltree_oset.c (main): Likewise.
2553         * tests/test-obstack-printf.c: Include progname.h.
2554         (main): Call set_program_name.
2555         * tests/test-quotearg.c: Include progname.h.
2556         (main): Call set_program_name.
2557         * tests/test-xmemdup0.c: Include progname.h.
2558         (main): Call set_program_name.
2559
2560 2009-01-18  Bruno Haible  <bruno@clisp.org>
2561
2562         New module 'alphasort'.
2563         * lib/dirent.in.h (alphasort): New declaration.
2564         * lib/alphasort.c: New file, from glibc with modifications.
2565         * m4/alphasort.m4: New file.
2566         * modules/alphasort: New file.
2567         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2568         HAVE_ALPHASORT.
2569         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2570         HAVE_ALPHASORT.
2571         * doc/posix-functions/alphasort.texi: Mention the new module and the
2572         portability problems.
2573
2574 2009-01-18  Bruno Haible  <bruno@clisp.org>
2575
2576         New module 'scandir'.
2577         * lib/dirent.in.h (scandir): New declaration.
2578         * lib/scandir.c: New file, from glibc with modifications.
2579         * m4/scandir.m4: New file.
2580         * modules/scandir: New file.
2581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2582         HAVE_SCANDIR.
2583         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2584         HAVE_SCANDIR.
2585         * doc/posix-functions/scandir.texi: Mention the new module and the
2586         portability problems.
2587
2588 2009-01-17  Bruno Haible  <bruno@clisp.org>
2589
2590         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2591         Update documentation.
2592         (func_remove_suffix): Escape all dots in the suffix. Update
2593         documentation.
2594         (func_filter_filelist): Update documentation.
2595         Reported by Ralf Wildenhues.
2596
2597 2009-01-17  Bruno Haible  <bruno@clisp.org>
2598
2599         * modules/dprintf-posix-tests: New file.
2600         * tests/test-dprintf-posix.sh: New file.
2601         * tests/test-dprintf-posix.c: New file.
2602
2603         New modules 'dprintf', 'dprintf-posix'.
2604         * lib/stdio.in.h (dprintf): New declaration.
2605         * lib/dprintf.c: New file.
2606         * m4/dprintf.m4: New file.
2607         * m4/dprintf-posix.m4: New file.
2608         * modules/dprintf: New file.
2609         * modules/dprintf-posix: New file.
2610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2611         HAVE_DPRINTF, REPLACE_DPRINTF.
2612         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2613         HAVE_DPRINTF, REPLACE_DPRINTF.
2614         * doc/posix-functions/dprintf.texi: Mention the new modules.
2615
2616 2009-01-17  Bruno Haible  <bruno@clisp.org>
2617
2618         * modules/vdprintf-posix-tests: New file.
2619         * tests/test-vdprintf-posix.sh: New file.
2620         * tests/test-vdprintf-posix.c: New file.
2621
2622         New modules 'vdprintf', 'vdprintf-posix'.
2623         * lib/stdio.in.h (vdprintf): New declaration.
2624         * lib/vdprintf.c: New file.
2625         * m4/vdprintf.m4: New file.
2626         * m4/vdprintf-posix.m4: New file.
2627         * modules/vdprintf: New file.
2628         * modules/vdprintf-posix: New file.
2629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2630         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2631         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2632         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2633         * doc/posix-functions/vdprintf.texi: Mention the new modules.
2634
2635 2009-01-17  Bruno Haible  <bruno@clisp.org>
2636
2637         Fix replacement of fopen on mingw.
2638         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2639         mingw.
2640
2641 2009-01-17  Bruno Haible  <bruno@clisp.org>
2642
2643         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2644         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2645
2646 2009-01-17  Bruno Haible  <bruno@clisp.org>
2647
2648         Avoid test-fflush2.sh failure on mingw.
2649         * tests/test-fflush2.c: Include binary-io.h.
2650         (main): Put standard input into binary mode.
2651         * modules/fflush-tests (Depends-on): Add binary-io.
2652
2653 2009-01-17  Bruno Haible  <bruno@clisp.org>
2654
2655         * lib/wchar.in.h: In another particular situation, include only the
2656         system's <wchar.h> file.
2657         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2658         Reported by Albert Chin-A-Young <china@thewrittenword.com>
2659         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2660
2661 2009-01-17  Bruno Haible  <bruno@clisp.org>
2662
2663         Support for stripping executables in --enable-relocatable.
2664         * build-aux/install-reloc: Expect one more argument, or an environment
2665         variable RELOC_STRIP_PROG. If set, strip the destination program and
2666         its wrapper.
2667         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2668         RELOC_STRIP_PROG.
2669         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2670         to set RELOCATABLE_STRIP.
2671         * NEWS: Mention the new Makefile requirement.
2672
2673 2009-01-17  Bruno Haible  <bruno@clisp.org>
2674
2675         * build-aux/install-reloc: Remove debugging information left over by
2676         C compiler on MacOS X.
2677
2678 2009-01-17  Bruno Haible  <bruno@clisp.org>
2679
2680         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2681         * lib/progreloc.c (find_executable): Fix type of pointer passed to
2682         _NSGetExecutablePath.
2683
2684 2009-01-16  Jim Meyering  <meyering@redhat.com>
2685
2686         strerror: avoid warnings about discarding "const"
2687         * lib/strerror.c (rpl_strerror): Instead of returning a const
2688         string from each and every "case", use a variable, and add a single
2689         cast after the switch.
2690
2691 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
2692
2693         * lib/arpa_inet.in.h: Add extern "C" block for C++.
2694
2695 2009-01-16  Bruno Haible  <bruno@clisp.org>
2696
2697         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2698         array initializer syntax that also works in C++ mode.
2699         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2700
2701 2009-01-16  Jim Meyering  <meyering@redhat.com>
2702
2703         poll: suppress a warning
2704         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2705         to ignore "...unsigned expression < 0 is always false" warnings.
2706
2707 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
2708
2709         poll: remove declarations of unused variables
2710         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2711         sockbuf and optlen.
2712
2713 2009-01-15  Bruno Haible  <bruno@clisp.org>
2714
2715         Make fflush-after-ungetc POSIX compliant on BSD systems.
2716         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2717         (clear_ungetc_buffer): Implement also for other systems.
2718         (rpl_fflush): On glibc systems, invoke
2719         clear_ungetc_buffer_preserving_position. Otherwise, invoke
2720         clear_ungetc_buffer after fetching the stream's position, not before.
2721
2722 2009-01-15  Bruno Haible  <bruno@clisp.org>
2723
2724         Make fflush-after-ungetc POSIX compliant on glibc systems.
2725         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2726         after ungetc.
2727         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2728         (rpl_fflush): On glibc systems, simply call the system's fflush
2729         function after clearing the ungetc buffer.
2730         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2731         Instead, lseek only to the end of file, then use the system's fseeko
2732         for the rest. On glibc systems, reset the EOF indicator bit.
2733
2734 2009-01-15  Jim Meyering  <meyering@redhat.com>
2735
2736         openmp.m4: revert quote-adding change, for portability to older autoconf
2737         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2738         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2739         Simon Josefsson noticed the problem when using autoconf-2.61.
2740
2741 2009-01-15  Bruno Haible  <bruno@clisp.org>
2742
2743         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2744         * tests/test-fflush2.c (ASSERT): Always fail.
2745         (main): Add two tests for fflush() after ungetc(), taking into account
2746         the Austin Group's clarification.
2747         Suggested by Eric Blake.
2748
2749 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
2750
2751         mktime.m4: remove K&R-style function prototypes
2752         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
2753         for the Sun C++ compiler.
2754
2755 2009-01-14  Bruno Haible  <bruno@clisp.org>
2756
2757         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
2758         while including <wchar.h>.
2759         * lib/wchar.in.h: In two particular situations on HP-UX, include only
2760         the system's <wchar.h> file.
2761         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2762
2763 2009-01-14  Bruno Haible  <bruno@clisp.org>
2764
2765         * m4/csharp.m4: Don't mention gettext on the serial number line.
2766         * m4/csharpexec.m4: Likewise.
2767         * m4/eaccess.m4: Likewise.
2768         * m4/javaexec.m4: Likewise.
2769         * m4/sig_atomic_t.m4: Likewise.
2770         * m4/tmpdir.m4: Likewise.
2771         * m4/intldir.m4: Bump gettext version.
2772         * m4/lib-ld.m4: Likewise.
2773
2774 2009-01-14  Bruno Haible  <bruno@clisp.org>
2775
2776         * lib/progname.c (set_program_name): Add more comments.
2777         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2778
2779 2009-01-14  Simon Josefsson  <simon@josefsson.org>
2780
2781         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
2782         were sys/stat.h does not define it.
2783
2784 2009-01-14  Jim Meyering  <meyering@redhat.com>
2785
2786         many *.m4 files: improve m4 quoting
2787         99% of this change was performed by running the following commands:
2788         git ls-files | grep '\.m4$' | xargs perl -pi \
2789           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
2790           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2791           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2792           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
2793         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
2794         The remainder were to add Copyright dates, increment serial numbers,
2795         undo some changes in comments, exclude m4/intl.m4, and add quotes
2796         around the "1" in ",1" where the unusual spacing prohibited the
2797         above regexps from doing the job.  For more details, see
2798         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
2799         * m4/acl.m4: Modified.
2800         * m4/afs.m4: Likewise.
2801         * m4/alloca.m4: Likewise.
2802         * m4/argp.m4: Likewise.
2803         * m4/argz.m4: Likewise.
2804         * m4/atexit.m4: Likewise.
2805         * m4/bison-i18n.m4: Likewise.
2806         * m4/bison.m4: Likewise.
2807         * m4/byteswap.m4: Likewise.
2808         * m4/c-stack.m4: Likewise.
2809         * m4/c-strtod.m4: Likewise.
2810         * m4/calloc.m4: Likewise.
2811         * m4/canonicalize-lgpl.m4: Likewise.
2812         * m4/chown.m4: Likewise.
2813         * m4/clock_time.m4: Likewise.
2814         * m4/codeset.m4: Likewise.
2815         * m4/copy-file.m4: Likewise.
2816         * m4/csharp.m4: Likewise.
2817         * m4/csharpcomp.m4: Likewise.
2818         * m4/csharpexec.m4: Likewise.
2819         * m4/d-ino.m4: Likewise.
2820         * m4/d-type.m4: Likewise.
2821         * m4/dirfd.m4: Likewise.
2822         * m4/double-slash-root.m4: Likewise.
2823         * m4/eaccess.m4: Likewise.
2824         * m4/eealloc.m4: Likewise.
2825         * m4/environ.m4: Likewise.
2826         * m4/errno_h.m4: Likewise.
2827         * m4/euidaccess.m4: Likewise.
2828         * m4/execute.m4: Likewise.
2829         * m4/fatal-signal.m4: Likewise.
2830         * m4/fchdir.m4: Likewise.
2831         * m4/fcntl_h.m4: Likewise.
2832         * m4/fileblocks.m4: Likewise.
2833         * m4/filenamecat.m4: Likewise.
2834         * m4/findprog.m4: Likewise.
2835         * m4/flexmember.m4: Likewise.
2836         * m4/fnmatch.m4: Likewise.
2837         * m4/fopen.m4: Likewise.
2838         * m4/fpending.m4: Likewise.
2839         * m4/fprintf-posix.m4: Likewise.
2840         * m4/free.m4: Likewise.
2841         * m4/frexp.m4: Likewise.
2842         * m4/frexpl.m4: Likewise.
2843         * m4/fsusage.m4: Likewise.
2844         * m4/ftruncate.m4: Likewise.
2845         * m4/gc-camellia.m4: Likewise.
2846         * m4/gc-random.m4: Likewise.
2847         * m4/gc.m4: Likewise.
2848         * m4/getaddrinfo.m4: Likewise.
2849         * m4/getcwd-abort-bug.m4: Likewise.
2850         * m4/getcwd-path-max.m4: Likewise.
2851         * m4/getdate.m4: Likewise.
2852         * m4/getdomainname.m4: Likewise.
2853         * m4/getgroups.m4: Likewise.
2854         * m4/gethostname.m4: Likewise.
2855         * m4/gethrxtime.m4: Likewise.
2856         * m4/getline.m4: Likewise.
2857         * m4/getloadavg.m4: Likewise.
2858         * m4/getndelim2.m4: Likewise.
2859         * m4/getpass.m4: Likewise.
2860         * m4/gettext.m4: Likewise.
2861         * m4/gettime.m4: Likewise.
2862         * m4/gettimeofday.m4: Likewise.
2863         * m4/gnulib-common.m4: Likewise.
2864         * m4/group-member.m4: Likewise.
2865         * m4/host-os.m4: Likewise.
2866         * m4/iconv.m4: Likewise.
2867         * m4/iconv_open.m4: Likewise.
2868         * m4/inet_ntop.m4: Likewise.
2869         * m4/inet_pton.m4: Likewise.
2870         * m4/inline.m4: Likewise.
2871         * m4/intldir.m4: Likewise.
2872         * m4/intlmacosx.m4: Likewise.
2873         * m4/intmax.m4: Likewise.
2874         * m4/intmax_t.m4: Likewise.
2875         * m4/inttypes.m4: Likewise.
2876         * m4/inttypes_h.m4: Likewise.
2877         * m4/inttypes-pri.m4: Likewise.
2878         * m4/isapipe.m4: Likewise.
2879         * m4/isnand.m4: Likewise.
2880         * m4/isnanf.m4: Likewise.
2881         * m4/isnanl.m4: Likewise.
2882         * m4/javacomp.m4: Likewise.
2883         * m4/javaexec.m4: Likewise.
2884         * m4/jm-winsz1.m4: Likewise.
2885         * m4/jm-winsz2.m4: Likewise.
2886         * m4/lchown.m4: Likewise.
2887         * m4/lcmessage.m4: Likewise.
2888         * m4/ldexpl.m4: Likewise.
2889         * m4/lib-ld.m4: Likewise.
2890         * m4/lib-link.m4: Likewise.
2891         * m4/libsigsegv.m4: Likewise.
2892         * m4/link-follow.m4: Likewise.
2893         * m4/localcharset.m4: Likewise.
2894         * m4/locale-fr.m4: Likewise.
2895         * m4/locale-ja.m4: Likewise.
2896         * m4/locale-tr.m4: Likewise.
2897         * m4/locale-zh.m4: Likewise.
2898         * m4/lock.m4: Likewise.
2899         * m4/longlong.m4: Likewise.
2900         * m4/ls-mntd-fs.m4: Likewise.
2901         * m4/lstat.m4: Likewise.
2902         * m4/malloc.m4: Likewise.
2903         * m4/mathl.m4: Likewise.
2904         * m4/mbrtowc.m4: Likewise.
2905         * m4/mbstate_t.m4: Likewise.
2906         * m4/mbswidth.m4: Likewise.
2907         * m4/memchr.m4: Likewise.
2908         * m4/memcmp.m4: Likewise.
2909         * m4/memcpy.m4: Likewise.
2910         * m4/memmem.m4: Likewise.
2911         * m4/memmove.m4: Likewise.
2912         * m4/mempcpy.m4: Likewise.
2913         * m4/memrchr.m4: Likewise.
2914         * m4/memset.m4: Likewise.
2915         * m4/minmax.m4: Likewise.
2916         * m4/mkdir-slash.m4: Likewise.
2917         * m4/mkdtemp.m4: Likewise.
2918         * m4/mktime.m4: Likewise.
2919         * m4/mmap-anon.m4: Likewise.
2920         * m4/mountlist.m4: Likewise.
2921         * m4/nanosleep.m4: Likewise.
2922         * m4/nls.m4: Likewise.
2923         * m4/nocrash.m4: Likewise.
2924         * m4/open.m4: Likewise.
2925         * m4/openat.m4: Likewise.
2926         * m4/openmp.m4: Likewise.
2927         * m4/pathmax.m4: Likewise.
2928         * m4/perl.m4: Likewise.
2929         * m4/physmem.m4: Likewise.
2930         * m4/pipe.m4: Likewise.
2931         * m4/po.m4: Likewise.
2932         * m4/poll.m4: Likewise.
2933         * m4/posixtm.m4: Likewise.
2934         * m4/posixver.m4: Likewise.
2935         * m4/printf-frexp.m4: Likewise.
2936         * m4/printf-frexpl.m4: Likewise.
2937         * m4/printf-posix.m4: Likewise.
2938         * m4/printf-posix-rpl.m4: Likewise.
2939         * m4/printf.m4: Likewise.
2940         * m4/progtest.m4: Likewise.
2941         * m4/putenv.m4: Likewise.
2942         * m4/readline.m4: Likewise.
2943         * m4/readlink.m4: Likewise.
2944         * m4/readutmp.m4: Likewise.
2945         * m4/realloc.m4: Likewise.
2946         * m4/regex.m4: Likewise.
2947         * m4/relocatable.m4: Likewise.
2948         * m4/relocatable-lib.m4: Likewise.
2949         * m4/rename-dest-slash.m4: Likewise.
2950         * m4/rename.m4: Likewise.
2951         * m4/rmdir-errno.m4: Likewise.
2952         * m4/rmdir.m4: Likewise.
2953         * m4/roundf.m4: Likewise.
2954         * m4/roundl.m4: Likewise.
2955         * m4/rpmatch.m4: Likewise.
2956         * m4/save-cwd.m4: Likewise.
2957         * m4/selinux-selinux-h.m4: Likewise.
2958         * m4/setenv.m4: Likewise.
2959         * m4/settime.m4: Likewise.
2960         * m4/sig2str.m4: Likewise.
2961         * m4/sig_atomic_t.m4: Likewise.
2962         * m4/signalblocking.m4: Likewise.
2963         * m4/signbit.m4: Likewise.
2964         * m4/sigpipe.m4: Likewise.
2965         * m4/sockets.m4: Likewise.
2966         * m4/sockpfaf.m4: Likewise.
2967         * m4/st_dm_mode.m4: Likewise.
2968         * m4/stat-time.m4: Likewise.
2969         * m4/stdbool.m4: Likewise.
2970         * m4/stdint.m4: Likewise.
2971         * m4/stdint_h.m4: Likewise.
2972         * m4/stpcpy.m4: Likewise.
2973         * m4/stpncpy.m4: Likewise.
2974         * m4/strcase.m4: Likewise.
2975         * m4/strchrnul.m4: Likewise.
2976         * m4/strcspn.m4: Likewise.
2977         * m4/strdup.m4: Likewise.
2978         * m4/strftime.m4: Likewise.
2979         * m4/strndup.m4: Likewise.
2980         * m4/strnlen.m4: Likewise.
2981         * m4/strpbrk.m4: Likewise.
2982         * m4/strptime.m4: Likewise.
2983         * m4/strsep.m4: Likewise.
2984         * m4/strtod.m4: Likewise.
2985         * m4/strtoimax.m4: Likewise.
2986         * m4/strtok_r.m4: Likewise.
2987         * m4/strtol.m4: Likewise.
2988         * m4/strtoll.m4: Likewise.
2989         * m4/strtoul.m4: Likewise.
2990         * m4/strtoull.m4: Likewise.
2991         * m4/strtoumax.m4: Likewise.
2992         * m4/strverscmp.m4: Likewise.
2993         * m4/threadlib.m4: Likewise.
2994         * m4/timegm.m4: Likewise.
2995         * m4/tm_gmtoff.m4: Likewise.
2996         * m4/tmpdir.m4: Likewise.
2997         * m4/tmpfile.m4: Likewise.
2998         * m4/tzset.m4: Likewise.
2999         * m4/uintmax_t.m4: Likewise.
3000         * m4/unlinkdir.m4: Likewise.
3001         * m4/unlocked-io.m4: Likewise.
3002         * m4/uptime.m4: Likewise.
3003         * m4/userspec.m4: Likewise.
3004         * m4/utimbuf.m4: Likewise.
3005         * m4/utime.m4: Likewise.
3006         * m4/utimes-null.m4: Likewise.
3007         * m4/utimes.m4: Likewise.
3008         * m4/vararrays.m4: Likewise.
3009         * m4/vasnprintf.m4: Likewise.
3010         * m4/vfprintf-posix.m4: Likewise.
3011         * m4/vprintf-posix.m4: Likewise.
3012         * m4/wait-process.m4: Likewise.
3013         * m4/wchar_t.m4: Likewise.
3014         * m4/wint_t.m4: Likewise.
3015         * m4/write-any-file.m4: Likewise.
3016         * m4/yield.m4: Likewise.
3017
3018 2009-01-13  Bruno Haible  <bruno@clisp.org>
3019
3020         Avoid test-copy-file.sh failures when ACL support insufficient.
3021         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3022         TESTS_ENVIRONMENT.
3023         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3024         Reported by Jim Meyering.
3025
3026 2009-01-13  Bruno Haible  <bruno@clisp.org>
3027
3028         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3029         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3030         * modules/unistdio/u8-printf-parse (Files): Likewise.
3031         * modules/unistdio/u32-printf-parse (Files): Likewise.
3032         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3033
3034 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3035
3036         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3037         and m4/inttypes_h.m4 too.
3038
3039 2009-01-12  Eric Blake  <ebb9@byu.net>
3040
3041         tests: IRIX 6.2 cc can't compile -0.0 into .data
3042         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3043         rather than at compile-time.
3044         * tests/test-floorl.c (minus_zero): Likewise.
3045         * tests/test-frexpl.c (minus_zero): Likewise.
3046         * tests/test-isnan.c (minus_zerol): Likewise.
3047         * tests/test-isnanl.h (minus_zero): Likewise.
3048         * tests/test-ldexpl.c (minus_zero): Likewise.
3049         * tests/test-roundl.c (minus_zero): Likewise.
3050         * tests/test-signbit.c (minus_zerol): Likewise.
3051         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3052         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3053         * tests/test-truncl.c (minus_zero): Likewise.
3054         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3055         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3056         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3057
3058 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3059
3060         regex: fix glibc bug 9697
3061         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3062         handling.
3063
3064 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3065
3066         regex: fix glibc bug 697
3067         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3068         being NULL also if there are no backreferences.
3069
3070 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3071
3072         regex: merge glibc changes
3073         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3074         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3075         re_string_skip_chars, re_string_reconstruct): Likewise.
3076         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3077
3078 2009-01-07  Jim Meyering  <meyering@redhat.com>
3079
3080         poll: filter through cppi
3081         * lib/poll.c: Indent cpp directives to reflect nesting.
3082
3083 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3084
3085         poll: don't return uninitialized
3086         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3087
3088 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3089
3090         avoid compile failure on AIX 6.1
3091         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3092         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3093
3094 2009-01-04  Jim Meyering  <meyering@redhat.com>
3095
3096         remove duplicate inclusion of <stdio.h>
3097         * tests/test-fprintf-posix.c: Likewise.
3098         * tests/test-printf-posix.c: Likewise.
3099         * tests/test-snprintf-posix.c: Likewise.
3100         * tests/test-sprintf-posix.c: Likewise.
3101         * tests/test-vasprintf-posix.c: Likewise.
3102         * tests/test-vfprintf-posix.c: Likewise.
3103         * tests/test-vprintf-posix.c: Likewise.
3104         * tests/test-vsnprintf-posix.c: Likewise.
3105         * tests/test-vsprintf-posix.c: Likewise.
3106
3107 2009-01-03  Jim Meyering  <meyering@redhat.com>
3108
3109         gnulib-tool: fix sed-based filtering
3110         * gnulib-tool (func_filter_filelist): Remove extra backslash
3111         in sed_fff_filter definition.
3112
3113 2009-01-02  Jim Meyering  <meyering@redhat.com>
3114
3115         strftime: avoid compilation failure on Solaris 2.6
3116         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3117         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3118         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3119         be available.  Reported by Tom G. Christensen.  Details in
3120         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3121
3122 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3123             Bruno Haible  <bruno@clisp.org>
3124
3125         Speed up gnulib-tool by doing more string processing through shell
3126         built-ins.
3127         * gnulib-tool (fast_func_append): New variable.
3128         (func_remove_prefix, func_remove_suffix): New functions.
3129         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3130         (func_filter_filelist): New function.
3131         (func_get_dependencies): Use func_remove_suffix instead of sed.
3132         (func_get_automake_snippet): Use func_filter_filelist instead of a
3133         subshell and sed invocation.
3134
3135 2009-01-01  Bruno Haible  <bruno@clisp.org>
3136
3137         Fix a security bug.
3138         * gnulib-tool (func_import, import, update): Don't allow the characters
3139         '"', '$', '`', '\' in macro arguments that become part of commands that
3140         are evaluated.
3141
3142 2009-01-01  Bruno Haible  <bruno@clisp.org>
3143
3144         * gnulib-tool (func_reset_sigpipe): Add more comments.
3145
3146 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3147
3148         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3149         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3150         already know the answer.
3151
3152 2009-01-01  Jim Meyering  <meyering@redhat.com>
3153
3154         * lib/version-etc.c (version_etc_va): Update copyright year.
3155
3156 2008-12-30  Bruno Haible  <bruno@clisp.org>
3157
3158         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3159         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3160         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3161
3162 2008-12-29  Eric Blake  <ebb9@byu.net>
3163
3164         multiarch: avoid autoconf AC_REQUIRE bug
3165         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3166         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3167         2.63 and older.
3168         Reported by Bruno Haible, and analyzed in
3169         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3170
3171 2008-12-29  Bruno Haible  <bruno@clisp.org>
3172
3173         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3174         files in subdirectories correctly.
3175         Reported by Ralf Wildenhues.
3176
3177 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3178
3179         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3180         rather than 'join FILE -', for Solaris join.
3181
3182 2008-12-29  Bruno Haible  <bruno@clisp.org>
3183
3184         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3185         quoting.
3186         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3187         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3188         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3189         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3190         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3191         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3192         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3193         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3194         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3195         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3196         * m4/nls.m4 (AM_NLS): Likewise.
3197         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3198         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3199         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3200         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3201         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3202         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3203         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3204         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3205         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3206         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3207         * m4/xsize.m4 (gl_XSIZE): Likewise.
3208         Suggested by Jim Meyering.
3209
3210 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3211
3212         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3213         * lib/parse-duration.c: use a switch instead of cascading if's.
3214
3215 2008-12-29  Eric Blake  <ebb9@byu.net>
3216
3217         wchar.h: supply WEOF on Irix 5.3
3218         * lib/wchar.in.h (wint_t): Also supply WEOF.
3219         * lib/wctype.in.h (wint_t): Likewise.
3220         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3221         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3222         Reported by Tom G. Christensen.
3223
3224 2008-12-26  Bruno Haible  <bruno@clisp.org>
3225
3226         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3227         i486, i586, i686.
3228
3229 2008-12-26  Bruno Haible  <bruno@clisp.org>
3230
3231         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3232
3233 2008-12-26  Bruno Haible  <bruno@clisp.org>
3234
3235         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3236         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3237         not __STDC_CONSTANT_MACROS.
3238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3239
3240 2008-12-25  Bruno Haible  <bruno@clisp.org>
3241
3242         Add support for universal builds to vasnprintf.
3243         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3244         universal builds, guess no.
3245         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3246         * modules/vasprintf-posix (Depends-on): Likewise.
3247         * modules/fprintf-posix (Depends-on): Likewise.
3248         * modules/vfprintf-posix (Depends-on): Likewise.
3249         * modules/snprintf-posix (Depends-on): Likewise.
3250         * modules/vsnprintf-posix (Depends-on): Likewise.
3251         * modules/sprintf-posix (Depends-on): Likewise.
3252         * modules/vsprintf-posix (Depends-on): Likewise.
3253         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3260
3261         Add support for universal builds to <inttypes.h>.
3262         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3263         _SCNu64_PREFIX): In Apple
3264         universal builds, define directly, using _LP64.
3265         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3266         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3267         * modules/inttypes (Depends-on): Add multiarch.
3268         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3269
3270         Add support for universal builds to <stdint.h>.
3271         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3272         universal builds, define directly, using _LP64.
3273         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3274         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3275         and size_t.
3276         * modules/stdint (Depends-on): Add multiarch.
3277         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3278
3279         New module 'multiarch'.
3280         * modules/multiarch: New file.
3281         * m4/multiarch.m4: New file.
3282
3283 2008-12-25  Bruno Haible  <bruno@clisp.org>
3284
3285         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3286
3287 2008-12-25  Bruno Haible  <bruno@clisp.org>
3288
3289         * modules/btowc (License): Relicense under LGPLv2+.
3290         * modules/mbsinit (License): Likewise.
3291         * modules/mbrtowc (License): Likewise.
3292         * modules/wcrtomb (License): Likewise.
3293         * modules/streq (License): Likewise.
3294         Reported by David Lutterkort <lutter@redhat.com>.
3295
3296 2008-12-23  Bruno Haible  <bruno@clisp.org>
3297
3298         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3299
3300 2008-12-23  Bruno Haible  <bruno@clisp.org>
3301
3302         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3303         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3304         GETADDRINFO_LIB, not in LIBS.
3305         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3306         * modules/canon-host (Link): Likewise.
3307         * NEWS: Mention the change.
3308         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3309         GETADDRINFO_LIB.
3310
3311 2008-12-22  Bruno Haible  <bruno@clisp.org>
3312
3313         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3314         * doc/posix-functions/iswalpha_l.texi: Likewise.
3315         * doc/posix-functions/iswblank_l.texi: Likewise.
3316         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3317         * doc/posix-functions/iswctype_l.texi: Likewise.
3318         * doc/posix-functions/iswdigit_l.texi: Likewise.
3319         * doc/posix-functions/iswgraph_l.texi: Likewise.
3320         * doc/posix-functions/iswlower_l.texi: Likewise.
3321         * doc/posix-functions/iswprint_l.texi: Likewise.
3322         * doc/posix-functions/iswpunct_l.texi: Likewise.
3323         * doc/posix-functions/iswspace_l.texi: Likewise.
3324         * doc/posix-functions/iswupper_l.texi: Likewise.
3325         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3326         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3327         * doc/posix-functions/open_wmemstream.texi: Likewise.
3328         * doc/posix-functions/swscanf.texi: Likewise.
3329         * doc/posix-functions/towctrans_l.texi: Likewise.
3330         * doc/posix-functions/towlower.texi: Likewise.
3331         * doc/posix-functions/towlower_l.texi: Likewise.
3332         * doc/posix-functions/towupper.texi: Likewise.
3333         * doc/posix-functions/towupper_l.texi: Likewise.
3334         * doc/posix-functions/vfwprintf.texi: Likewise.
3335         * doc/posix-functions/vfwscanf.texi: Likewise.
3336         * doc/posix-functions/vswscanf.texi: Likewise.
3337         * doc/posix-functions/vwprintf.texi: Likewise.
3338         * doc/posix-functions/vwscanf.texi: Likewise.
3339         * doc/posix-functions/wcpcpy.texi: Likewise.
3340         * doc/posix-functions/wcpncpy.texi: Likewise.
3341         * doc/posix-functions/wcscasecmp.texi: Likewise.
3342         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3343         * doc/posix-functions/wcscoll_l.texi: Likewise.
3344         * doc/posix-functions/wcsdup.texi: Likewise.
3345         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3346         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3347         * doc/posix-functions/wcsnlen.texi: Likewise.
3348         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3349         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3350         * doc/posix-functions/wctrans_l.texi: Likewise.
3351         * doc/posix-functions/wctype_l.texi: Likewise.
3352         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3353         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3354         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3355         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3356         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3357         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3358         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3359         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3360         * doc/glibc-functions/wcschrnul.texi: Likewise.
3361         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3362         * doc/glibc-functions/wcstod_l.texi: Likewise.
3363         * doc/glibc-functions/wcstof_l.texi: Likewise.
3364         * doc/glibc-functions/wcstol_l.texi: Likewise.
3365         * doc/glibc-functions/wcstold_l.texi: Likewise.
3366         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3367         * doc/glibc-functions/wcstoq.texi: Likewise.
3368         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3369         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3370         * doc/glibc-functions/wcstouq.texi: Likewise.
3371         * doc/glibc-functions/wmempcpy.texi: Likewise.
3372
3373 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3374             Eric Blake  <ebb9@byu.net>
3375             Paolo Bonzini  <bonzini@gnu.org>
3376             Bruno Haible  <bruno@clisp.org>
3377
3378         Make c-stack work on Haiku.
3379         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3380         (c_stack_action): Use SA_ONSTACK flag.
3381
3382 2008-12-22  Bruno Haible  <bruno@clisp.org>
3383
3384         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3385
3386 2008-12-22  Bruno Haible  <bruno@clisp.org>
3387
3388         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3389         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3390         being overridden.
3391         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3392         New macros.
3393         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3395         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3396         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3397
3398 2008-12-22  Bruno Haible  <bruno@clisp.org>
3399
3400         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3401         from test code.
3402
3403 2008-12-22  Eric Blake  <ebb9@byu.net>
3404
3405         Avoid gcc warnings on cygwin.
3406         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3407         Avoid unused variable.
3408         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3409         Likewise.
3410
3411 2008-12-22  Bruno Haible  <bruno@clisp.org>
3412
3413         Remove HAVE_MBRTOWC conditionals.
3414         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3415         (mbscasecmp): Assume mbrtowc function.
3416         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3417         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3418         * lib/mbschr.c: Include mbuiter.h unconditionally.
3419         (mbschr): Assume mbrtowc function.
3420         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3421         (mbscspn): Assume mbrtowc function.
3422         * lib/mbslen.c: Include mbuiter.h unconditionally.
3423         (mbslen): Assume mbrtowc function.
3424         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3425         (mbsncasecmp): Assume mbrtowc function.
3426         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3427         (mbsnlen): Assume mbrtowc function.
3428         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3429         (mbspbrk): Assume mbrtowc function.
3430         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3431         (mbspcasecmp): Assume mbrtowc function.
3432         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3433         (mbsrchr): Assume mbrtowc function.
3434         * lib/mbssep.c: Include mbuiter.h unconditionally.
3435         (mbssep): Assume mbrtowc function.
3436         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3437         (mbsspn): Assume mbrtowc function.
3438         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3439         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3440         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3441         (mbstok_r): Assume mbrtowc function.
3442         * lib/propername.c: Include mbuiter.h unconditionally.
3443         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3444         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3445         (trim2): Assume mbrtowc function.
3446         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3447         (mbsnwidth): Assume mbrtowc function.
3448         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3449         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3450         fallback definitions.
3451         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3452
3453 2008-12-22  Bruno Haible  <bruno@clisp.org>
3454
3455         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3456
3457 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3458
3459         * modules/regex: Request emulations for the mb*/wc* functions we need.
3460         * m4/regex.m4: Don't look for those functions here.
3461         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3462
3463 2008-12-22  Bruno Haible  <bruno@clisp.org>
3464
3465         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3466
3467 2008-12-21  Bruno Haible  <bruno@clisp.org>
3468
3469         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3470         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3471         (Include): Remove conditionalization.
3472         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3473         (Include): Remove conditionalization.
3474         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3475         (Include): Remove conditionalization.
3476         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3477         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3478         * NEWS: Mention the change.
3479         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3480         via Sergey Poznyakoff <gray@gnu.org.ua>.
3481
3482 2008-12-21  Bruno Haible  <bruno@clisp.org>
3483
3484         * MODULES.html.sh (Extended multibyte and wide character utilities
3485         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3486         wcrtomb, wcsrtombs.
3487         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3488         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3489         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3490         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3491
3492 2008-12-21  Bruno Haible  <bruno@clisp.org>
3493
3494         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3495
3496 2008-12-21  Bruno Haible  <bruno@clisp.org>
3497
3498         * modules/wcsnrtombs-tests: New file.
3499         * tests/test-wcsnrtombs1.sh: New file.
3500         * tests/test-wcsnrtombs2.sh: New file.
3501         * tests/test-wcsnrtombs3.sh: New file.
3502         * tests/test-wcsnrtombs4.sh: New file.
3503         * tests/test-wcsnrtombs.c: New file.
3504
3505         New module 'wcsnrtombs'.
3506         * lib/wchar.in.h (wcsnrtombs): New declaration.
3507         * lib/wcsnrtombs.c: New file.
3508         * lib/wcsrtombs-state.c: New file.
3509         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3510         (internal_state): Remove variable.
3511         * m4/wcsnrtombs.m4: New file.
3512         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3513         compilation units.
3514         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3515         HAVE_WCSNRTOMBS.
3516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3517         HAVE_WCSNRTOMBS.
3518         * modules/wcsnrtombs: New file.
3519         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3520         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3521
3522 2008-12-21  Bruno Haible  <bruno@clisp.org>
3523
3524         * modules/wcsrtombs-tests: New file.
3525         * tests/test-wcsrtombs1.sh: New file.
3526         * tests/test-wcsrtombs2.sh: New file.
3527         * tests/test-wcsrtombs3.sh: New file.
3528         * tests/test-wcsrtombs4.sh: New file.
3529         * tests/test-wcsrtombs.c: New file.
3530
3531         New module 'wcsrtombs'.
3532         * lib/wchar.in.h (wcsrtombs): New declaration.
3533         * lib/wcsrtombs.c: New file.
3534         * m4/wcsrtombs.m4: New file.
3535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3536         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3537         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3538         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3539         * modules/wcsrtombs: New file.
3540         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3541         bugs.
3542
3543 2008-12-21  Bruno Haible  <bruno@clisp.org>
3544
3545         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3546         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3548         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3549         if not correct.
3550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3551         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3552         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3553         m4/locale-zh.m4, m4/codeset.m4.
3554         * doc/posix-functions/wcrtomb.texi: Document the bug.
3555
3556 2008-12-21  Bruno Haible  <bruno@clisp.org>
3557
3558         Work around a btowc() bug on IRIX 6.5.
3559         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3560         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3561         REPLACE_WTOBC if not.
3562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3563         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3564         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3565
3566 2008-12-21  Bruno Haible  <bruno@clisp.org>
3567
3568         * modules/wcrtomb-tests: New file.
3569         * tests/test-wcrtomb.sh: New file.
3570         * tests/test-wcrtomb.c: New file.
3571
3572         New module 'wcrtomb'.
3573         * lib/wchar.in.h (wcrtomb): New declaration.
3574         * lib/wcrtomb.c: New file.
3575         * m4/wcrtomb.m4: New file.
3576         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3577         HAVE_WCRTOMB.
3578         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3579         HAVE_WCRTOMB.
3580         * modules/wcrtomb: New file.
3581         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3582
3583 2008-12-21  Bruno Haible  <bruno@clisp.org>
3584
3585         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3586         * modules/mbsrtowcs (Files): Likewise.
3587         * modules/wctob (Files): Likewise.
3588         * modules/c-strcase-tests (Files): Likewise.
3589         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3590         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3591         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3592         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3593         * modules/vasnprintf-posix-tests (Files): Likewise.
3594
3595 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3596
3597         gitlog-to-changelog: pass all command-line arguments to git-log
3598         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3599         it is sometimes convenient to filter the commits in various ways.
3600         gitlog-to-changelog only allows --since to specify a start date,
3601         but git-log itself supports many other filtering mechanisms.
3602         At the moment, I want to filter by branch name.  Rather than
3603         adding a --branch option to gitlog-to-changelog, it seems more
3604         flexible to simply pass all options directly to git-log and let
3605         git do the work.  Notice that this effectively makes --since a
3606         redundant option for gitlog-to-changelog, but removing it would
3607         require current usage to change since calls would then require
3608         an additional '--'.
3609
3610 2008-12-21  Bruno Haible  <bruno@clisp.org>
3611
3612         * modules/mbsnrtowcs-tests: New file.
3613         * tests/test-mbsnrtowcs1.sh: New file.
3614         * tests/test-mbsnrtowcs2.sh: New file.
3615         * tests/test-mbsnrtowcs3.sh: New file.
3616         * tests/test-mbsnrtowcs4.sh: New file.
3617         * tests/test-mbsnrtowcs.c: New file.
3618
3619         New module 'mbsnrtowcs'.
3620         * lib/wchar.in.h (mbsnrtowcs): New declaration.
3621         * lib/mbsnrtowcs.c: New file.
3622         * lib/mbsrtowcs-state.c: New file.
3623         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3624         (internal_state): Remove variable.
3625         * m4/mbsnrtowcs.m4: New file.
3626         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3627         compilation units.
3628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3629         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3630         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3631         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3632         * modules/mbsnrtowcs: New file.
3633         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3634         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3635         portability problem.
3636
3637 2008-12-21  Bruno Haible  <bruno@clisp.org>
3638
3639         Work around mbsrtowcs bug.
3640         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3641         (gl_FUNC_MBSRTOWCS): Invoke it.
3642         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3643         m4/locale-zh.m4.
3644         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3645
3646 2008-12-21  Bruno Haible  <bruno@clisp.org>
3647
3648         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3649
3650 2008-12-21  Bruno Haible  <bruno@clisp.org>
3651
3652         Update doc for AIX.
3653         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3654         16-bit wchar_t type.
3655         * doc/posix-functions/btowc.texi: Likewise.
3656         * doc/posix-functions/fgetwc.texi: Likewise.
3657         * doc/posix-functions/fgetws.texi: Likewise.
3658         * doc/posix-functions/fputwc.texi: Likewise.
3659         * doc/posix-functions/fputws.texi: Likewise.
3660         * doc/posix-functions/fwide.texi: Likewise.
3661         * doc/posix-functions/fwprintf.texi: Likewise.
3662         * doc/posix-functions/fwscanf.texi: Likewise.
3663         * doc/posix-functions/getwchar.texi: Likewise.
3664         * doc/posix-functions/getwc.texi: Likewise.
3665         * doc/posix-functions/iswalnum.texi: Likewise.
3666         * doc/posix-functions/iswalpha.texi: Likewise.
3667         * doc/posix-functions/iswblank.texi: Likewise.
3668         * doc/posix-functions/iswcntrl.texi: Likewise.
3669         * doc/posix-functions/iswctype.texi: Likewise.
3670         * doc/posix-functions/iswdigit.texi: Likewise.
3671         * doc/posix-functions/iswgraph.texi: Likewise.
3672         * doc/posix-functions/iswlower.texi: Likewise.
3673         * doc/posix-functions/iswprint.texi: Likewise.
3674         * doc/posix-functions/iswpunct.texi: Likewise.
3675         * doc/posix-functions/iswspace.texi: Likewise.
3676         * doc/posix-functions/iswupper.texi: Likewise.
3677         * doc/posix-functions/iswxdigit.texi: Likewise.
3678         * doc/posix-functions/mbrtowc.texi: Likewise.
3679         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3680         * doc/posix-functions/mbstowcs.texi: Likewise.
3681         * doc/posix-functions/mbtowc.texi: Likewise.
3682         * doc/posix-functions/putwchar.texi: Likewise.
3683         * doc/posix-functions/putwc.texi: Likewise.
3684         * doc/posix-functions/swprintf.texi: Likewise.
3685         * doc/posix-functions/tolower.texi: Likewise.
3686         * doc/posix-functions/toupper.texi: Likewise.
3687         * doc/posix-functions/towctrans.texi: Likewise.
3688         * doc/posix-functions/ungetwc.texi: Likewise.
3689         * doc/posix-functions/vswprintf.texi: Likewise.
3690         * doc/posix-functions/wcrtomb.texi: Likewise.
3691         * doc/posix-functions/wcscat.texi: Likewise.
3692         * doc/posix-functions/wcschr.texi: Likewise.
3693         * doc/posix-functions/wcscmp.texi: Likewise.
3694         * doc/posix-functions/wcscoll.texi: Likewise.
3695         * doc/posix-functions/wcscpy.texi: Likewise.
3696         * doc/posix-functions/wcscspn.texi: Likewise.
3697         * doc/posix-functions/wcsftime.texi: Likewise.
3698         * doc/posix-functions/wcslen.texi: Likewise.
3699         * doc/posix-functions/wcsncat.texi: Likewise.
3700         * doc/posix-functions/wcsncmp.texi: Likewise.
3701         * doc/posix-functions/wcsncpy.texi: Likewise.
3702         * doc/posix-functions/wcspbrk.texi: Likewise.
3703         * doc/posix-functions/wcsrchr.texi: Likewise.
3704         * doc/posix-functions/wcsrtombs.texi: Likewise.
3705         * doc/posix-functions/wcsspn.texi: Likewise.
3706         * doc/posix-functions/wcsstr.texi: Likewise.
3707         * doc/posix-functions/wcstod.texi: Likewise.
3708         * doc/posix-functions/wcstof.texi: Likewise.
3709         * doc/posix-functions/wcstoimax.texi: Likewise.
3710         * doc/posix-functions/wcstok.texi: Likewise.
3711         * doc/posix-functions/wcstold.texi: Likewise.
3712         * doc/posix-functions/wcstoll.texi: Likewise.
3713         * doc/posix-functions/wcstol.texi: Likewise.
3714         * doc/posix-functions/wcstombs.texi: Likewise.
3715         * doc/posix-functions/wcstoull.texi: Likewise.
3716         * doc/posix-functions/wcstoul.texi: Likewise.
3717         * doc/posix-functions/wcstoumax.texi: Likewise.
3718         * doc/posix-functions/wcswidth.texi: Likewise.
3719         * doc/posix-functions/wcsxfrm.texi: Likewise.
3720         * doc/posix-functions/wctob.texi: Likewise.
3721         * doc/posix-functions/wctomb.texi: Likewise.
3722         * doc/posix-functions/wctrans.texi: Likewise.
3723         * doc/posix-functions/wctype.texi: Likewise.
3724         * doc/posix-functions/wcwidth.texi: Likewise.
3725         * doc/posix-functions/wmemchr.texi: Likewise.
3726         * doc/posix-functions/wmemcmp.texi: Likewise.
3727         * doc/posix-functions/wmemcpy.texi: Likewise.
3728         * doc/posix-functions/wmemmove.texi: Likewise.
3729         * doc/posix-functions/wmemset.texi: Likewise.
3730         * doc/posix-functions/wprintf.texi: Likewise.
3731         * doc/posix-functions/wscanf.texi: Likewise.
3732
3733 2008-12-21  Bruno Haible  <bruno@clisp.org>
3734
3735         Update doc for HP-UX 11.11.
3736         * doc/posix-functions/btowc.texi: Clarify that the function is missing
3737         in HP-UX version 11.00, not in all versions of HP-UX 11.
3738         * doc/posix-functions/fwide.texi: Likewise.
3739         * doc/posix-functions/fwprintf.texi: Likewise.
3740         * doc/posix-functions/fwscanf.texi: Likewise.
3741         * doc/posix-functions/inet_ntop.texi: Likewise.
3742         * doc/posix-functions/inet_pton.texi: Likewise.
3743         * doc/posix-functions/mbrlen.texi: Likewise.
3744         * doc/posix-functions/mbrtowc.texi: Likewise.
3745         * doc/posix-functions/mbsinit.texi: Likewise.
3746         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3747         * doc/posix-functions/swprintf.texi: Likewise.
3748         * doc/posix-functions/swscanf.texi: Likewise.
3749         * doc/posix-functions/towctrans.texi: Likewise.
3750         * doc/posix-functions/vfwprintf.texi: Likewise.
3751         * doc/posix-functions/vswprintf.texi: Likewise.
3752         * doc/posix-functions/vwprintf.texi: Likewise.
3753         * doc/posix-functions/wcrtomb.texi: Likewise.
3754         * doc/posix-functions/wcsrtombs.texi: Likewise.
3755         * doc/posix-functions/wcsstr.texi: Likewise.
3756         * doc/posix-functions/wctob.texi: Likewise.
3757         * doc/posix-functions/wctrans.texi: Likewise.
3758         * doc/posix-functions/wmemchr.texi: Likewise.
3759         * doc/posix-functions/wmemcmp.texi: Likewise.
3760         * doc/posix-functions/wmemcpy.texi: Likewise.
3761         * doc/posix-functions/wmemmove.texi: Likewise.
3762         * doc/posix-functions/wmemset.texi: Likewise.
3763         * doc/posix-functions/wprintf.texi: Likewise.
3764         * doc/posix-functions/wscanf.texi: Likewise.
3765
3766 2008-12-21  Bruno Haible  <bruno@clisp.org>
3767
3768         Work around a portability problem.
3769         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
3770         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
3771
3772 2008-12-20  Bruno Haible  <bruno@clisp.org>
3773
3774         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
3775         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
3776         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
3777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
3778         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
3779
3780         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
3781         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
3782         set.
3783         (GNULIB_defined_mbstate_t): New macro.
3784         (mbsinit): Redefine if REPLACE_MBSINIT is set.
3785         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
3786         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
3787         reuses the system's mbrtowc function but works around the bugs.
3788         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
3789         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
3790         macros.
3791         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
3792         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
3793         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
3794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
3795         REPLACE_MBSINIT if mbsinit needs to be overridden.
3796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
3797         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3798         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
3799         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3800         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3801         m4/locale-zh.m4.
3802         (Depends): Add mbsinit.
3803         * modules/mbsinit (Depends): Add mbrtowc.
3804         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
3805
3806 2008-12-20  Bruno Haible  <bruno@clisp.org>
3807
3808         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
3809         so that there are no conversion errors on AIX.
3810         * tests/test-mbsrtowcs.c (main): LIkewise.
3811
3812 2008-12-20  Bruno Haible  <bruno@clisp.org>
3813
3814         Work around wctob bug on Solaris <= 9.
3815         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
3816         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
3817         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
3818         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
3819         * modules/wctob (Files): Add m4/locale-fr.m4.
3820         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
3821
3822 2008-12-20  Bruno Haible  <bruno@clisp.org>
3823
3824         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
3825         /dev/null.
3826         * tests/test-select-in.sh: Likewise.
3827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3828
3829 2008-12-20  Bruno Haible  <bruno@clisp.org>
3830
3831         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
3832         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
3833         Cygwin 1.5.x.
3834
3835 2008-12-20  Bruno Haible  <bruno@clisp.org>
3836
3837         Ensure mbstate_t is defined on HP-UX 11.11.
3838         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
3839         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
3840         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
3841         AC_USE_SYSTEM_EXTENSIONS.
3842         * modules/fnmatch (Depends-on): Add extensions.
3843         * modules/mbrlen (Depends-on): Likewise.
3844         * modules/mbrtowc (Depends-on): Likewise.
3845         * modules/mbsinit (Depends-on): Likewise.
3846         * modules/mbsrtowcs (Depends-on): Likewise.
3847         * modules/mbswidth (Depends-on): Likewise.
3848         * modules/quotearg (Depends-on): Likewise.
3849         * modules/strftime (Depends-on): Likewise.
3850
3851 2008-12-20  Bruno Haible  <bruno@clisp.org>
3852
3853         Ensure wctob is declared on IRIX 6.5.
3854         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
3855         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
3856         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
3857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
3858         of HAVE_WCTOB.
3859         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
3860         HAVE_WCTOB.
3861         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
3862
3863 2008-12-19  Bruno Haible  <bruno@clisp.org>
3864
3865         * modules/mbsrtowcs-tests: New file.
3866         * tests/test-mbsrtowcs1.sh: New file.
3867         * tests/test-mbsrtowcs2.sh: New file.
3868         * tests/test-mbsrtowcs3.sh: New file.
3869         * tests/test-mbsrtowcs4.sh: New file.
3870         * tests/test-mbsrtowcs.c: New file.
3871
3872         New module 'mbsrtowcs'.
3873         * lib/wchar.in.h (mbsrtowcs): New declaration.
3874         * lib/mbsrtowcs.c: New file.
3875         * m4/mbsrtowcs.m4: New file.
3876         * modules/mbsrtowcs: New file.
3877         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
3878         HAVE_MBSRTOWCS.
3879         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
3880         HAVE_MBSRTOWCS.
3881         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
3882
3883 2008-12-19  Bruno Haible  <bruno@clisp.org>
3884
3885         New module 'mbrlen'.
3886         * lib/wchar.in.h (mbrlen): New declaration.
3887         * lib/mbrlen.c: New file.
3888         * m4/mbrlen.m4: New file.
3889         * modules/mbrlen: New file.
3890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
3891         HAVE_MBRLEN.
3892         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
3893         HAVE_MBRLEN.
3894         * doc/posix-functions/mbrlen.texi: Document the new module.
3895
3896 2008-12-19  Bruno Haible  <bruno@clisp.org>
3897
3898         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
3899         * modules/mbrtowc (Depends-on): Add verify.
3900         Suggested by Paul Eggert.
3901
3902 2008-12-18  Bruno Haible  <bruno@clisp.org>
3903
3904         * modules/mbsinit-tests: New file.
3905         * tests/test-mbsinit.sh: New file.
3906         * tests/test-mbsinit.c: New file.
3907
3908 2008-12-18  Bruno Haible  <bruno@clisp.org>
3909
3910         * modules/mbrtowc-tests: New file.
3911         * tests/test-mbrtowc1.sh: New file.
3912         * tests/test-mbrtowc2.sh: New file.
3913         * tests/test-mbrtowc3.sh: New file.
3914         * tests/test-mbrtowc4.sh: New file.
3915         * tests/test-mbrtowc.c: New file.
3916
3917         New module 'mbrtowc'.
3918         * lib/wchar.in.h (mbstate_t): Override when the system does not have
3919         mbsinit and mbrtowc.
3920         (mbrtowc): New declaration.
3921         * lib/mbrtowc.c: New file.
3922         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
3923         * modules/mbrtowc: New file.
3924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
3925         HAVE_MBRTOWC.
3926         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
3927         HAVE_MBRTOWC.
3928         * doc/posix-functions/mbrtowc.texi: Document the new module.
3929
3930 2008-12-18  Bruno Haible  <bruno@clisp.org>
3931
3932         New module 'wctob'.
3933         * lib/wchar.in.h (wctob): New declaration.
3934         * lib/wctob.c: New file.
3935         * m4/wctob.m4: New file.
3936         * modules/wctob: New file.
3937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
3938         HAVE_WCTOB.
3939         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
3940         * doc/posix-functions/wctob.texi: Document the new module.
3941
3942 2008-12-18  Bruno Haible  <bruno@clisp.org>
3943
3944         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
3945         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
3946
3947 2008-12-18  Simon Josefsson  <simon@josefsson.org>
3948
3949         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
3950         G. Christensen" <tgc@jupiterrise.com>.
3951
3952         * lib/flock.c: Need to include errno.h.  Reported by "Tom
3953         G. Christensen" <tgc@jupiterrise.com>.
3954
3955         * lib/flock.c: Need to include string.h.  Reported by "Tom
3956         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
3957         <ebb9@byu.net>.
3958
3959 2008-12-18  Bruno Haible  <bruno@clisp.org>
3960
3961         * m4/locale-ja.m4: New file, from GNU gettext.
3962
3963 2008-12-17  Bruno Haible  <bruno@clisp.org>
3964
3965         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
3966         Suggested by Eric Blake.
3967
3968 2008-12-17  Bruno Haible  <bruno@clisp.org>
3969
3970         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
3971
3972 2008-12-17  Bruno Haible  <bruno@clisp.org>
3973
3974         * lib/mbsinit.c: Include verify.h. Verify an assumption.
3975         * modules/mbsinit (Depends-on): Add verify.
3976         Suggested by Paul Eggert.
3977
3978 2008-12-17  Bruno Haible  <bruno@clisp.org>
3979
3980         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
3981         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
3982         gl_FUNC_MBRTOWC.
3983         * m4/mbiter.m4 (gl_MBITER): LIkewise.
3984         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
3985         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
3986         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
3987         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
3988         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
3989         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
3990         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
3991         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
3992         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
3993         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
3994         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
3995         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
3996         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
3997         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
3998         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3999         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4000         * modules/trim (configure.ac): Likewise.
4001
4002 2008-12-17  Bruno Haible  <bruno@clisp.org>
4003
4004         * modules/btowc-tests: New file.
4005         * tests/test-btowc1.sh: New file.
4006         * tests/test-btowc2.sh: New file.
4007         * tests/test-btowc.c: New file.
4008
4009         New module 'btowc'.
4010         * lib/wchar.in.h (btowc): New declaration.
4011         * lib/btowc.c: New file.
4012         * m4/btowc.m4: New file.
4013         * modules/btowc: New file.
4014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4015         HAVE_BTOWC.
4016         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4017         * doc/posix-functions/btowc.texi: Document the new module.
4018
4019 2008-12-17  Bruno Haible  <bruno@clisp.org>
4020
4021         New module 'mbsinit'.
4022         * lib/wchar.in.h (mbsinit): New declaration.
4023         * lib/mbsinit.c: New file.
4024         * m4/mbsinit.m4: New file.
4025         * modules/mbsinit: New file.
4026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4027         HAVE_MBSINIT.
4028         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4029         HAVE_MBSINIT.
4030         * doc/posix-functions/mbsinit.texi: Document the new module.
4031
4032 2008-12-16  Bruno Haible  <bruno@clisp.org>
4033
4034         * lib/unistd.in.h: Add comment.
4035         * tests/test-environ.c: Don't include <stdlib.h>.
4036
4037 2008-12-16  Bruno Haible  <bruno@clisp.org>
4038
4039         * lib/parse-duration.h (parse_duration): Document return value
4040         convention.
4041         * lib/parse-duration.c: Include specification header first. Add
4042         comments.
4043         (_): Remove macro.
4044         (parse_year_month_day, parse_hour_minute_second): Move side effects
4045         outside of strchr call.
4046         (parse_non_iso8601): Move side effects outside of isspace call.
4047         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4048         call.
4049
4050 2008-12-16  Bruno Haible  <bruno@clisp.org>
4051
4052         * tests/test-parse-duration.sh: Produce no output when the test
4053         succeeds.
4054
4055 2008-12-16  Bruno Haible  <bruno@clisp.org>
4056
4057         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4058         expressions.
4059
4060 2008-12-15  Bruno Haible  <bruno@clisp.org>
4061
4062         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4063         * doc/glibc-functions/flistxattr.texi: Likewise.
4064         * doc/glibc-functions/fopencookie.texi: Likewise.
4065         * doc/glibc-functions/fremovexattr.texi: Likewise.
4066         * doc/glibc-functions/fsetxattr.texi: Likewise.
4067         * doc/glibc-functions/getxattr.texi: Likewise.
4068         * doc/glibc-functions/lgetxattr.texi: Likewise.
4069         * doc/glibc-functions/listxattr.texi: Likewise.
4070         * doc/glibc-functions/llistxattr.texi: Likewise.
4071         * doc/glibc-functions/lremovexattr.texi: Likewise.
4072         * doc/glibc-functions/lsetxattr.texi: Likewise.
4073         * doc/glibc-functions/removexattr.texi: Likewise.
4074         * doc/glibc-functions/setxattr.texi: Likewise.
4075         * doc/posix-functions/open_memstream.texi: Likewise.
4076
4077 2008-12-15  Eric Blake  <ebb9@byu.net>
4078
4079         Update doc for cygwin 1.7.
4080         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4081         functions.
4082         * doc/posix-functions/fchmodat.texi: Likewise.
4083         * doc/posix-functions/fchownat.texi: Likewise.
4084         * doc/posix-functions/fdopendir.texi: Likewise.
4085         * doc/posix-functions/fmemopen.texi: Likewise.
4086         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4087         * doc/posix-functions/fstatat.texi: Likewise.
4088         * doc/posix-functions/futimens.texi: Likewise.
4089         * doc/posix-functions/gai_strerror.texi: Likewise.
4090         * doc/posix-functions/getaddrinfo.texi: Likewise.
4091         * doc/posix-functions/getnameinfo.texi: Likewise.
4092         * doc/posix-functions/if_freenameindex.texi: Likewise.
4093         * doc/posix-functions/if_indextoname.texi: Likewise.
4094         * doc/posix-functions/if_nameindex.texi: Likewise.
4095         * doc/posix-functions/if_nametoindex.texi: Likewise.
4096         * doc/posix-functions/insque.texi: Likewise.
4097         * doc/posix-functions/linkat.texi: Likewise.
4098         * doc/posix-functions/llrint.texi: Likewise.
4099         * doc/posix-functions/llrintf.texi: Likewise.
4100         * doc/posix-functions/llrintl.texi: Likewise.
4101         * doc/posix-functions/lockf.texi: Likewise.
4102         * doc/posix-functions/lrintl.texi: Likewise.
4103         * doc/posix-functions/mkdirat.texi: Likewise.
4104         * doc/posix-functions/mkfifoat.texi: Likewise.
4105         * doc/posix-functions/mknodat.texi: Likewise.
4106         * doc/posix-functions/mq_close.texi: Likewise.
4107         * doc/posix-functions/mq_getattr.texi: Likewise.
4108         * doc/posix-functions/mq_notify.texi: Likewise.
4109         * doc/posix-functions/mq_open.texi: Likewise.
4110         * doc/posix-functions/mq_receive.texi: Likewise.
4111         * doc/posix-functions/mq_send.texi: Likewise.
4112         * doc/posix-functions/mq_setattr.texi: Likewise.
4113         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4114         * doc/posix-functions/mq_timedsend.texi: Likewise.
4115         * doc/posix-functions/mq_unlink.texi: Likewise.
4116         * doc/posix-functions/open_memstream.texi: Likewise.
4117         * doc/posix-functions/openat.texi: Likewise.
4118         * doc/posix-functions/posix_fadvise.texi: Likewise.
4119         * doc/posix-functions/posix_fallocate.texi: Likewise.
4120         * doc/posix-functions/posix_madvise.texi: Likewise.
4121         * doc/posix-functions/posix_memalign.texi: Likewise.
4122         * doc/posix-functions/posix_openpt.texi: Likewise.
4123         * doc/posix-functions/readlinkat.texi: Likewise.
4124         * doc/posix-functions/remque.texi: Likewise.
4125         * doc/posix-functions/renameat.texi: Likewise.
4126         * doc/posix-functions/rintl.texi: Likewise.
4127         * doc/posix-functions/sem_unlink.texi: Likewise.
4128         * doc/posix-functions/shm_open.texi: Likewise.
4129         * doc/posix-functions/shm_unlink.texi: Likewise.
4130         * doc/posix-functions/signgam.texi: Likewise.
4131         * doc/posix-functions/sigset.texi: Likewise.
4132         * doc/posix-functions/stpcpy.texi: Likewise.
4133         * doc/posix-functions/stpncpy.texi: Likewise.
4134         * doc/posix-functions/strerror.texi: Likewise.
4135         * doc/posix-functions/strtod.texi: Likewise.
4136         * doc/posix-functions/symlinkat.texi: Likewise.
4137         * doc/posix-functions/unlinkat.texi: Likewise.
4138         * doc/posix-functions/utimensat.texi: Likewise.
4139         * doc/glibc-functions/bindresvport.texi: Likewise.
4140         * doc/glibc-functions/dn_expand.texi: Likewise.
4141         * doc/glibc-functions/exp10.texi: Likewise.
4142         * doc/glibc-functions/exp10f.texi: Likewise.
4143         * doc/glibc-functions/fgetxattr.texi: Likewise.
4144         * doc/glibc-functions/flistxattr.texi: Likewise.
4145         * doc/glibc-functions/fopencookie.texi: Likewise.
4146         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4147         * doc/glibc-functions/fremovexattr.texi: Likewise.
4148         * doc/glibc-functions/fsetxattr.texi: Likewise.
4149         * doc/glibc-functions/getifaddrs.texi: Likewise.
4150         * doc/glibc-functions/getxattr.texi: Likewise.
4151         * doc/glibc-functions/lgetxattr.texi: Likewise.
4152         * doc/glibc-functions/listxattr.texi: Likewise.
4153         * doc/glibc-functions/llistxattr.texi: Likewise.
4154         * doc/glibc-functions/lremovexattr.texi: Likewise.
4155         * doc/glibc-functions/lsetxattr.texi: Likewise.
4156         * doc/glibc-functions/pow10.texi: Likewise.
4157         * doc/glibc-functions/pow10f.texi: Likewise.
4158         * doc/glibc-functions/rcmd_af.texi: Likewise.
4159         * doc/glibc-functions/removexattr.texi: Likewise.
4160         * doc/glibc-functions/res_init.texi: Likewise.
4161         * doc/glibc-functions/res_mkquery.texi: Likewise.
4162         * doc/glibc-functions/res_query.texi: Likewise.
4163         * doc/glibc-functions/res_querydomain.texi: Likewise.
4164         * doc/glibc-functions/res_send.texi: Likewise.
4165         * doc/glibc-functions/rresvport_af.texi: Likewise.
4166         * doc/glibc-functions/setxattr.texi: Likewise.
4167         * doc/glibc-functions/strcasestr.texi: Likewise.
4168
4169 2008-12-15  Bruno Haible  <bruno@clisp.org>
4170
4171         Fix compilation error on OSF/1 4.0.
4172         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4173         <sys/time.h>, simply delegate to the system header.
4174         Reported by Daniel Richard G. <oss@teragram.com>.
4175
4176 2008-12-15  Bruno Haible  <bruno@clisp.org>
4177
4178         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4179         * doc/posix-functions/fchmodat.texi: Likewise.
4180         * doc/posix-functions/fchownat.texi: Likewise.
4181         * doc/posix-functions/fdopendir.texi: Likewise.
4182         * doc/posix-functions/fstatat.texi: Likewise.
4183         * doc/posix-functions/mkdirat.texi: Likewise.
4184         * doc/posix-functions/unlinkat.texi: Likewise.
4185
4186 2008-12-14  Bruno Haible  <bruno@clisp.org>
4187
4188         Update doc for POSIX:2008.
4189         * doc/posix-functions/faccessat.texi: New file.
4190         * doc/posix-functions/fchmodat.texi: New file.
4191         * doc/posix-functions/fchownat.texi: New file.
4192         * doc/posix-functions/fdopendir.texi: New file.
4193         * doc/posix-functions/fstatat.texi: New file.
4194         * doc/posix-functions/futimens.texi: New file.
4195         * doc/posix-functions/linkat.texi: New file.
4196         * doc/posix-functions/mkdirat.texi: New file.
4197         * doc/posix-functions/mkfifoat.texi: New file.
4198         * doc/posix-functions/mknodat.texi: New file.
4199         * doc/posix-functions/open_wmemstream.texi: New file.
4200         * doc/posix-functions/openat.texi: New file.
4201         * doc/posix-functions/psiginfo.texi: New file.
4202         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4203         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4204         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4205         * doc/posix-functions/readlinkat.texi: New file.
4206         * doc/posix-functions/renameat.texi: New file.
4207         * doc/posix-functions/strerror_l.texi: New file.
4208         * doc/posix-functions/symlinkat.texi: New file.
4209         * doc/posix-functions/unlinkat.texi: New file.
4210         * doc/posix-functions/utimensat.texi: New file.
4211         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4212
4213 2008-12-14  Bruno Haible  <bruno@clisp.org>
4214
4215         Update doc for POSIX:2008.
4216         * doc/posix-functions/alphasort.texi: Renamed from
4217         doc/glibc-functions/alphasort.texi.
4218         * doc/posix-functions/dirfd.texi: Renamed from
4219         doc/glibc-functions/dirfd.texi.
4220         * doc/posix-functions/dprintf.texi: Renamed from
4221         doc/glibc-functions/dprintf.texi.
4222         * doc/posix-functions/duplocale.texi: Renamed from
4223         doc/glibc-functions/duplocale.texi.
4224         * doc/posix-functions/fexecve.texi: Renamed from
4225         doc/glibc-functions/fexecve.texi.
4226         * doc/posix-functions/fmemopen.texi: Renamed from
4227         doc/glibc-functions/fmemopen.texi.
4228         * doc/posix-functions/freelocale.texi: Renamed from
4229         doc/glibc-functions/freelocale.texi.
4230         * doc/posix-functions/getdate_err.texi: Renamed from
4231         doc/glibc-functions/getdate_err.texi.
4232         * doc/posix-functions/isalnum_l.texi: Renamed from
4233         doc/glibc-functions/isalnum_l.texi.
4234         * doc/posix-functions/isalpha_l.texi: Renamed from
4235         doc/glibc-functions/isalpha_l.texi.
4236         * doc/posix-functions/isblank_l.texi: Renamed from
4237         doc/glibc-functions/isblank_l.texi.
4238         * doc/posix-functions/iscntrl_l.texi: Renamed from
4239         doc/glibc-functions/iscntrl_l.texi.
4240         * doc/posix-functions/isdigit_l.texi: Renamed from
4241         doc/glibc-functions/isdigit_l.texi.
4242         * doc/posix-functions/isgraph_l.texi: Renamed from
4243         doc/glibc-functions/isgraph_l.texi.
4244         * doc/posix-functions/islower_l.texi: Renamed from
4245         doc/glibc-functions/islower_l.texi.
4246         * doc/posix-functions/isprint_l.texi: Renamed from
4247         doc/glibc-functions/isprint_l.texi.
4248         * doc/posix-functions/ispunct_l.texi: Renamed from
4249         doc/glibc-functions/ispunct_l.texi.
4250         * doc/posix-functions/isspace_l.texi: Renamed from
4251         doc/glibc-functions/isspace_l.texi.
4252         * doc/posix-functions/isupper_l.texi: Renamed from
4253         doc/glibc-functions/isupper_l.texi.
4254         * doc/posix-functions/iswalnum_l.texi: Renamed from
4255         doc/glibc-functions/iswalnum_l.texi.
4256         * doc/posix-functions/iswalpha_l.texi: Renamed from
4257         doc/glibc-functions/iswalpha_l.texi.
4258         * doc/posix-functions/iswblank_l.texi: Renamed from
4259         doc/glibc-functions/iswblank_l.texi.
4260         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4261         doc/glibc-functions/iswcntrl_l.texi.
4262         * doc/posix-functions/iswctype_l.texi: Renamed from
4263         doc/glibc-functions/iswctype_l.texi.
4264         * doc/posix-functions/iswdigit_l.texi: Renamed from
4265         doc/glibc-functions/iswdigit_l.texi.
4266         * doc/posix-functions/iswgraph_l.texi: Renamed from
4267         doc/glibc-functions/iswgraph_l.texi.
4268         * doc/posix-functions/iswlower_l.texi: Renamed from
4269         doc/glibc-functions/iswlower_l.texi.
4270         * doc/posix-functions/iswprint_l.texi: Renamed from
4271         doc/glibc-functions/iswprint_l.texi.
4272         * doc/posix-functions/iswpunct_l.texi: Renamed from
4273         doc/glibc-functions/iswpunct_l.texi.
4274         * doc/posix-functions/iswspace_l.texi: Renamed from
4275         doc/glibc-functions/iswspace_l.texi.
4276         * doc/posix-functions/iswupper_l.texi: Renamed from
4277         doc/glibc-functions/iswupper_l.texi.
4278         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4279         doc/glibc-functions/iswxdigit_l.texi.
4280         * doc/posix-functions/isxdigit_l.texi: Renamed from
4281         doc/glibc-functions/isxdigit_l.texi.
4282         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4283         doc/glibc-functions/mbsnrtowcs.texi.
4284         * doc/posix-functions/mkdtemp.texi: Renamed from
4285         doc/glibc-functions/mkdtemp.texi.
4286         * doc/posix-functions/newlocale.texi: Renamed from
4287         doc/glibc-functions/newlocale.texi.
4288         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4289         doc/glibc-functions/nl_langinfo_l.texi.
4290         * doc/posix-functions/open_memstream.texi: Renamed from
4291         doc/glibc-functions/open_memstream.texi.
4292         * doc/posix-functions/opterr.texi: Renamed from
4293         doc/glibc-functions/opterr.texi.
4294         * doc/posix-functions/optind.texi: Renamed from
4295         doc/glibc-functions/optind.texi.
4296         * doc/posix-functions/optopt.texi: Renamed from
4297         doc/glibc-functions/optopt.texi.
4298         * doc/posix-functions/psignal.texi: Renamed from
4299         doc/glibc-functions/psignal.texi.
4300         * doc/posix-functions/scandir.texi: Renamed from
4301         doc/glibc-functions/scandir.texi.
4302         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4303         doc/glibc-functions/sched_get_priority_min.texi.
4304         * doc/posix-functions/signgam.texi: Renamed from
4305         doc/glibc-functions/signgam.texi.
4306         * doc/posix-functions/stpcpy.texi: Renamed from
4307         doc/glibc-functions/stpcpy.texi.
4308         * doc/posix-functions/stpncpy.texi: Renamed from
4309         doc/glibc-functions/stpncpy.texi.
4310         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4311         doc/glibc-functions/strcasecmp_l.texi.
4312         * doc/posix-functions/strcoll_l.texi: Renamed from
4313         doc/glibc-functions/strcoll_l.texi.
4314         * doc/posix-functions/strfmon_l.texi: Renamed from
4315         doc/glibc-functions/strfmon_l.texi.
4316         * doc/posix-functions/strftime_l.texi: Renamed from
4317         doc/glibc-functions/strftime_l.texi.
4318         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4319         doc/glibc-functions/strncasecmp_l.texi.
4320         * doc/posix-functions/strndup.texi: Renamed from
4321         doc/glibc-functions/strndup.texi.
4322         * doc/posix-functions/strnlen.texi: Renamed from
4323         doc/glibc-functions/strnlen.texi.
4324         * doc/posix-functions/strsignal.texi: Renamed from
4325         doc/glibc-functions/strsignal.texi.
4326         * doc/posix-functions/strxfrm_l.texi: Renamed from
4327         doc/glibc-functions/strxfrm_l.texi.
4328         * doc/posix-functions/timer_gettime.texi: Renamed from
4329         doc/glibc-functions/timer_gettime.texi.
4330         * doc/posix-functions/tolower_l.texi: Renamed from
4331         doc/glibc-functions/tolower_l.texi.
4332         * doc/posix-functions/toupper_l.texi: Renamed from
4333         doc/glibc-functions/toupper_l.texi.
4334         * doc/posix-functions/towctrans_l.texi: Renamed from
4335         doc/glibc-functions/towctrans_l.texi.
4336         * doc/posix-functions/towlower_l.texi: Renamed from
4337         doc/glibc-functions/towlower_l.texi.
4338         * doc/posix-functions/towupper_l.texi: Renamed from
4339         doc/glibc-functions/towupper_l.texi.
4340         * doc/posix-functions/uselocale.texi: Renamed from
4341         doc/glibc-functions/uselocale.texi.
4342         * doc/posix-functions/vdprintf.texi: Renamed from
4343         doc/glibc-functions/vdprintf.texi.
4344         * doc/posix-functions/wcpcpy.texi:
4345         Renamed from doc/glibc-functions/wcpcpy.texi.
4346         * doc/posix-functions/wcpncpy.texi: Renamed from
4347         doc/glibc-functions/wcpncpy.texi.
4348         * doc/posix-functions/wcscasecmp.texi: Renamed from
4349         doc/glibc-functions/wcscasecmp.texi.
4350         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4351         doc/glibc-functions/wcscasecmp_l.texi.
4352         * doc/posix-functions/wcscoll_l.texi: Renamed from
4353         doc/glibc-functions/wcscoll_l.texi.
4354         * doc/posix-functions/wcsdup.texi: Renamed from
4355         doc/glibc-functions/wcsdup.texi.
4356         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4357         doc/glibc-functions/wcsncasecmp.texi.
4358         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4359         doc/glibc-functions/wcsncasecmp_l.texi.
4360         * doc/posix-functions/wcsnlen.texi: Renamed from
4361         doc/glibc-functions/wcsnlen.texi.
4362         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4363         doc/glibc-functions/wcsnrtombs.texi.
4364         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4365         doc/glibc-functions/wcsxfrm_l.texi.
4366         * doc/posix-functions/wctrans_l.texi: Renamed from
4367         doc/glibc-functions/wctrans_l.texi.
4368         * doc/posix-functions/wctype_l.texi: Renamed from
4369         doc/glibc-functions/wctype_l.texi.
4370         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4371         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4372         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4373         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4374         these subsections.
4375         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4376         Remove sections.
4377
4378 2008-12-14  Bruno Haible  <bruno@clisp.org>
4379
4380         Update doc for POSIX:2008.
4381         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4382
4383 2008-12-14  Bruno Haible  <bruno@clisp.org>
4384
4385         Update doc for POSIX:2008.
4386         * doc/pastposix-functions/bcmp.texi: Renamed from
4387         doc/posix-functions/bcmp.texi.
4388         * doc/pastposix-functions/bcopy.texi: Renamed from
4389         doc/posix-functions/bcopy.texi.
4390         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4391         doc/posix-functions/bsd_signal.texi.
4392         * doc/pastposix-functions/bzero.texi: Renamed from
4393         doc/posix-functions/bzero.texi.
4394         * doc/pastposix-functions/ecvt.texi: Renamed from
4395         doc/posix-functions/ecvt.texi.
4396         * doc/pastposix-functions/fcvt.texi: Renamed from
4397         doc/posix-functions/fcvt.texi.
4398         * doc/pastposix-functions/ftime.texi: Renamed from
4399         doc/posix-functions/ftime.texi.
4400         * doc/pastposix-functions/gcvt.texi: Renamed from
4401         doc/posix-functions/gcvt.texi.
4402         * doc/pastposix-functions/getcontext.texi: Renamed from
4403         doc/posix-functions/getcontext.texi.
4404         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4405         doc/posix-functions/gethostbyaddr.texi.
4406         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4407         doc/posix-functions/gethostbyname.texi.
4408         * doc/pastposix-functions/getwd.texi: Renamed from
4409         doc/posix-functions/getwd.texi.
4410         * doc/pastposix-functions/h_errno.texi: Renamed from
4411         doc/posix-functions/h_errno.texi.
4412         * doc/pastposix-functions/index.texi: Renamed from
4413         doc/posix-functions/index.texi.
4414         * doc/pastposix-functions/makecontext.texi: Renamed from
4415         doc/posix-functions/makecontext.texi.
4416         * doc/pastposix-functions/mktemp.texi: Renamed from
4417         doc/posix-functions/mktemp.texi.
4418         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4419         doc/posix-functions/pthread_attr_getstackaddr.texi.
4420         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4421         doc/posix-functions/pthread_attr_setstackaddr.texi.
4422         * doc/pastposix-functions/rindex.texi: Renamed from
4423         doc/posix-functions/rindex.texi.
4424         * doc/pastposix-functions/scalb.texi: Renamed from
4425         doc/posix-functions/scalb.texi.
4426         * doc/pastposix-functions/setcontext.texi: Renamed from
4427         doc/posix-functions/setcontext.texi.
4428         * doc/pastposix-functions/swapcontext.texi: Renamed from
4429         doc/posix-functions/swapcontext.texi.
4430         * doc/pastposix-functions/ualarm.texi: Renamed from
4431         doc/posix-functions/ualarm.texi.
4432         * doc/pastposix-functions/usleep.texi: Renamed from
4433         doc/posix-functions/usleep.texi.
4434         * doc/pastposix-functions/vfork.texi: Renamed from
4435         doc/posix-functions/vfork.texi.
4436         * doc/pastposix-functions/wcswcs.texi: Renamed from
4437         doc/posix-functions/wcswcs.texi.
4438         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4439         (Function Substitutes): Update.
4440
4441 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4442
4443         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4444         m4/strerror.m4.
4445
4446 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4447             Bruno Haible  <bruno@clisp.org>
4448
4449         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4450
4451 2008-12-13  Bruno Haible  <bruno@clisp.org>
4452
4453         * modules/strtoull (Depends-on): Remove unistd.
4454
4455 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4456
4457         * modules/strtoull (Depends-on): Add stdlib.
4458
4459 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4460
4461         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4462
4463 2008-12-10  Jim Meyering  <meyering@redhat.com>
4464
4465         gl_ASSERT: don't say assertions are disabled when they're not
4466         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4467         "checking whether to enable assertions... no", when they are in
4468         fact enabled.  This is solely a bug in the output of configure.
4469         In spite of saying "no", NDEBUG was not defined in that case.
4470         Also, as noted by Eric Blake, leave assertions enabled upon
4471         --enable-assert=INVALID.
4472
4473 2008-12-10  Bruno Haible  <bruno@clisp.org>
4474
4475         Change MODULES.html to refer to POSIX:2008 where possible.
4476         * MODULES.html.sh (POSIX2008_URL): New variable.
4477         (posix_headers): Remove sys/timeb, ucontext.
4478         (posix2001_headers): New variable.
4479         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4480         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4481         index, makecontext, mktemp, pthread_attr_getstackaddr,
4482         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4483         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4484         (posix2001_functions): New variable.
4485         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4486         otherwise.
4487
4488 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4489
4490         add missing include to parse-duration.c
4491         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4492         * modules/parse-duration (Depends-on): Add xalloc.
4493
4494         fix sed script reading maint.mk
4495         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4496         (syntax-check-rules): Use it.
4497
4498 2008-12-09  Bruno Haible  <bruno@clisp.org>
4499
4500         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4501         MacOS X 10.4/PowerPC.
4502         Reported by Simon Josefsson.
4503
4504 2008-12-08  Jim Meyering  <meyering@redhat.com>
4505
4506         work around mingw's lack of some S_IF definitions
4507         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4508         Reported by Simon Josefsson.
4509
4510 2008-12-08  Bruno Haible  <bruno@clisp.org>
4511
4512         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4513         applied to variables. Needed on MacOS X 10.4/PowerPC.
4514         Reported by Simon Josefsson.
4515
4516 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4517         and Eric Blake  <ebb9@byu.net>
4518
4519         assert: honor --enable-assert
4520         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4521         order to honor --enable-assert, rather than treating it as a
4522         synonym for --disable-assert.
4523
4524 2008-12-08  Jim Meyering  <meyering@redhat.com>
4525
4526         * lib/posixtm.c: Remove now-useless declaration of mktime.
4527
4528         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4529
4530 2008-12-07  Bruno Haible  <bruno@clisp.org>
4531
4532         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4533         test_once): Mark functions as static.
4534         * tests/test-tls.c (test_tls): Likewise.
4535
4536 2008-12-07  Bruno Haible  <bruno@clisp.org>
4537
4538         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4539         iconv_register_autodetect.
4540
4541 2008-12-07  Jim Meyering  <meyering@redhat.com>
4542
4543         posixtm.c: avoid a warning
4544         * lib/posixtm.c (posixtime): Don't initialize tm0.
4545         It's no longer needed to placate gcc4's -Wuninitialized,
4546         and the attempt to placate would elicit a new warning.
4547
4548         unicodeio.c: mark unused parameters
4549         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4550         (fallback_failure_callback): Likewise.
4551
4552 2008-12-07  Bruno Haible  <bruno@clisp.org>
4553
4554         * gnulib-tool (func_create_testdir): When building the tests
4555         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4556         Reported by Simon Josefsson.
4557
4558 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4559
4560         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4561
4562 2008-12-06  Bruno Haible  <bruno@clisp.org>
4563
4564         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4565         Suggested by Eric Blake.
4566
4567 2008-12-06  Bruno Haible  <bruno@clisp.org>
4568
4569         Fix a c-stack test failure on MacOS X.
4570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4571         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4572         handler for SIGBUS as well.
4573         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4574         install a signal handler for SIGBUS as well.
4575         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4576
4577 2008-12-06  Bruno Haible  <bruno@clisp.org>
4578
4579         Advocacy documentation.
4580         * doc/gnulib-intro.texi (Benefits): New section.
4581         * doc/gnulib.texi: Update.
4582
4583 2008-12-06  Bruno Haible  <bruno@clisp.org>
4584
4585         Document the 'manywarnings' module.
4586         * doc/manywarnings.texi: New file.
4587         * doc/gnulib.texi: Include it.
4588
4589 2008-12-05  Eric Blake  <ebb9@byu.net>
4590
4591         tests: silence some gcc warnings
4592         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4593         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4594         type mismatches.
4595
4596 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4597             Bruno Haible  <bruno@clisp.org>
4598
4599         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4600
4601 2008-11-29  Jim Meyering  <meyering@redhat.com>
4602
4603         unicodeio.c: mark unused parameters
4604         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4605         (fallback_failure_callback): Likewise.
4606
4607         fts: fix a thinko
4608         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
4609         (set_stat_type): Return S_IF*-valued "type" directly.
4610         Prompted by James Youngman's spotting a related bug.
4611         Confirmed by further testing through find.
4612
4613         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4614         * lib/fts.c (D_TYPE): Define.
4615         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4616         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4617         (s_ifmt_shift_bits): New function.
4618         (set_stat_type): New function.
4619         (fts_build): When not calling fts_stat, call set_stat_type
4620         to propagate dirent.d_type info to fts_read caller.
4621         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4622         fts_statp->st_mode type information may be valid.
4623
4624 2008-11-28  Simon Josefsson  <simon@josefsson.org>
4625
4626         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
4627         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
4628         <sds@gnu.org>.
4629
4630 2008-11-20  Bruno Haible  <bruno@clisp.org>
4631
4632         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4633         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4634         INCLUDE_NEXT.
4635         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4636         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4637         * modules/math (Makefile.am): Substitute
4638         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4639         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4640
4641 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
4642             Bruno Haible  <bruno@clisp.org>
4643
4644         * lib/stdint.in.h: Define all type macros so that their expansion is
4645         a single typedef'ed token. Fixes a compilation failure in Boost which
4646         does "using ::int8_t;".
4647
4648 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4649
4650         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4651         gl_MANYWARN_ALL_GCC.
4652         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4653         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
4654         * modules/manywarnings: New file.
4655         * MODULES.html.sh: Mention manywarnings module.
4656
4657 2008-11-18  Bruno Haible  <bruno@clisp.org>
4658
4659         * doc/gnulib-tool.texi (Unit tests): New section.
4660
4661 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4662
4663         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4664         paths like 'lib/po/foo.po'.
4665
4666 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4667
4668         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
4669         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4670
4671 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4672
4673         * m4/warnings.m4: Use CPPFLAGS to really check whether the
4674         parameter works.
4675
4676 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4677
4678         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4679
4680 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4681
4682         * modules/parse-duration-tests: New file.
4683         * tests/test-parse-duration.sh: New file.
4684         * tests/test-parse-duration.c: New file.
4685
4686         New module 'parse-duration'.
4687         * lib/parse-duration.h: New file.
4688         * lib/parse-duration.c: New file.
4689         * modules/parse-duration: New file.
4690
4691 2008-11-17  Bruno Haible  <bruno@clisp.org>
4692
4693         * tests/test-select-out.sh: Comment out the first pipe test.
4694         Reported by Simon Josefsson.
4695
4696 2008-11-17  Bruno Haible  <bruno@clisp.org>
4697
4698         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4699         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4700         gl_HOSTENT.
4701
4702 2008-11-17  Bruno Haible  <bruno@clisp.org>
4703
4704         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4705         -lnetwork and -lnet. Needed for Haiku and BeOS.
4706
4707 2008-11-16  Bruno Haible  <bruno@clisp.org>
4708
4709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4710
4711 2008-11-16  Bruno Haible  <bruno@clisp.org>
4712
4713         Avoid test failure on Haiku.
4714         * tests/test-fsync.c: Include <errno.h>.
4715         (main): Don't require that fsync (0) fails.
4716
4717 2008-11-15  Bruno Haible  <bruno@clisp.org>
4718
4719         New module 'hostent'.
4720         * modules/hostent: New file.
4721         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4722
4723 2008-11-15  Bruno Haible  <bruno@clisp.org>
4724
4725         New module 'servent'.
4726         * modules/servent: New file.
4727         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4728
4729 2008-11-15  Bruno Haible  <bruno@clisp.org>
4730
4731         Avoid generating same test program with two different rules.
4732         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4733         test-frexp to test-frexp-nolibm.
4734         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4735         test-frexpl to test-frexpl-nolibm.
4736
4737 2008-11-15  Bruno Haible  <bruno@clisp.org>
4738
4739         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4740         $(FREXPL_LIBM).
4741
4742 2008-11-15  Bruno Haible  <bruno@clisp.org>
4743
4744         * lib/netdb.in.h: Activate the definitions also when the system's
4745         <netdb.h> has 'struct addrinfo'.
4746         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
4747         EAI_OVERFLOW or AI_NUMERICSERV.
4748         * doc/posix-headers/netdb.texi: Document the problem.
4749
4750 2008-11-15  Bruno Haible  <bruno@clisp.org>
4751
4752         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
4753
4754         Make the 'sched' module work on platforms where <sched.h> exists but
4755         is incomplete (such as Haiku).
4756         * lib/sched.in.h; Include the system's <sched.h> if it exists.
4757         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
4758         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
4759         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
4760         HAVE_STRUCT_SCHED_PARAM.
4761         * modules/sched (Depends-on): Add include_next.
4762         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
4763         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
4764         * doc/posix-headers/sched.texi: Document the issue.
4765
4766 2008-11-13  Jim Meyering  <meyering@redhat.com>
4767
4768         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
4769         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
4770         test would fail due to the difference in the Report bugs to ...
4771         line.  The expected address is empty, "<>", while the actual
4772         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
4773
4774 2008-11-12  Bruno Haible  <bruno@clisp.org>
4775
4776         lstat: don't compile lstat.c on systems lacking lstat
4777         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
4778         which don't have lstat; this is handled by lib/sys_stat.in.h already.
4779         Reported by Daniel P. Berrange via Jim Meyering.
4780
4781 2008-11-12  Jim Meyering  <meyering@redhat.com>
4782
4783         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
4784
4785 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4786
4787         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
4788         instead.
4789
4790 2008-11-12  Bruno Haible  <bruno@clisp.org>
4791
4792         * lib/unicodeio.c: Include unistr.h.
4793         (utf8_wctomb): Remove function.
4794         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
4795
4796 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4797
4798         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
4799         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
4800         <bruno@clisp.org>.
4801         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
4802
4803 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4804
4805         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
4806         * doc/gnulib.texi: Add section for warnings.
4807
4808 2008-11-11  Bruno Haible  <bruno@clisp.org>
4809
4810         * lib/sockets.h: Add a comment.
4811
4812 2008-11-11  Karl Berry  <karl@gnu.org>
4813
4814         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
4815
4816 2008-11-11  Eric Blake  <ebb9@byu.net>
4817
4818         fdl.texi: avoid git symlinks
4819         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
4820
4821 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4822
4823         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
4824
4825 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4826
4827         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
4828         (gl_WARN_ADD): Substitute $2 if literal.
4829
4830 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4831
4832         * m4/warning.m4: Remove.
4833
4834 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4835
4836         * m4/warnings.m4: Almost complete rewrite. :-)
4837
4838 2008-11-10  Simon Josefsson  <simon@josefsson.org>
4839
4840         * modules/warnings: New module.
4841         * m4/warnings.m4: New file.
4842         * MODULES.html.sh: Mention warnings module.
4843         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
4844         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4845
4846 2008-11-10  Eric Blake  <ebb9@byu.net>
4847
4848         fdl.texi: make a symlink to the latest version
4849         * doc/standards.texi: Revert today's earlier change.
4850         * doc/fdl-1.2.texi: Rename from old fdl.texi...
4851         * doc/fdl.texi: ...and replace this with a symlink to the newer
4852         fdl-1.3.texi.
4853
4854 2008-11-10  Bruno Haible  <bruno@clisp.org>
4855
4856         * tests/test-select-fd.c (main): Accept the result file name as fourth
4857         argument.
4858         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
4859         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
4860
4861 2008-11-10  Bruno Haible  <bruno@clisp.org>
4862
4863         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
4864         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
4865         as autoconf-substituted macros.
4866         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
4867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
4868         gl_NETDB_H_DEFAULTS. Set these variables.
4869         * modules/netdb (Makefile.am): Substitute these variables.
4870
4871 2008-11-10  Eric Blake  <ebb9@byu.net>
4872
4873         standards.texi: include correct file for FDL 1.3
4874         * doc/standards.texi (GNU Free Documentation License): Change
4875         include file to pull in FDL 1.3, not 1.2.
4876
4877         fdl.texi: revert accidental change to license
4878         * doc/fdl.texi: This is FDL 1.2, not 1.3.
4879
4880 2008-11-10  Bruno Haible  <bruno@clisp.org>
4881
4882         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
4883         cross-compiling guesses also when the native compile gives no result.
4884
4885 2008-11-10  Bruno Haible  <bruno@clisp.org>
4886
4887         * lib/spawni.c (__spawni): Force variable into the stack.
4888
4889 2008-11-10  Bruno Haible  <bruno@clisp.org>
4890
4891         Add support for Haiku.
4892         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
4893         glibc and BeOS, but also on Haiku.
4894         * lib/fpurge.c (fpurge): Likewise.
4895         * lib/freadable.c (freadable): Likewise.
4896         * lib/freadahead.c (freadahead): Likewise.
4897         * lib/freading.c (freading): Likewise.
4898         * lib/freadptr.c (freadptr): Likewise.
4899         * lib/freadseek.c (freadptrinc): Likewise.
4900         * lib/fseeko.c (rpl_fseeko): Likewise.
4901         * lib/fseterr.c (fseterr): Likewise.
4902         * lib/fwritable.c (fwritable): Likewise.
4903         * lib/fwriting.c (fwriting): Likewise.
4904         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
4905
4906 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4907
4908         * lib/config.charset: Treat Haiku like BeOS.
4909
4910 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4911
4912         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
4913         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
4914
4915 2008-11-08  Bruno Haible  <bruno@clisp.org>
4916
4917         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
4918         AC_CACHE_CHECK.
4919
4920 2008-11-08  Bruno Haible  <bruno@clisp.org>
4921
4922         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
4923
4924 2008-11-08  Bruno Haible  <bruno@clisp.org>
4925
4926         * tests/test-select-fd.c: New file.
4927         * tests/test-select-in.sh: New file.
4928         * tests/test-select-out.sh: New file.
4929         * tests/test-select-stdin.c: New file.
4930         * modules/select-tests (Files): Add the new files.
4931         (Depends-on): Add gettimeofday.
4932         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
4933         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
4934         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
4935
4936 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
4937             Bruno Haible  <bruno@clisp.org>
4938
4939         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
4940
4941 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
4942
4943         * build-aux/pmccabe2html: Added support for C++ source files.
4944
4945 2008-11-05  Ben Pfaff  <blp@gnu.org>
4946
4947         Fix lib/close.c build on Windows.
4948         * modules/close (Files): Add lib/w32sock.h.
4949
4950 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
4951
4952         Accept Bison's NEWS format.
4953         * build-aux/announce-gen (print_news_deltas): Tweak
4954         $re_prefix.
4955
4956 2008-11-04  Bruno Haible  <bruno@clisp.org>
4957
4958         * modules/random_r (Maintainer): Add glibc.
4959
4960 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4961
4962         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
4963         by karl@freefriends.org (Karl Berry).
4964         * doc/alloca.texi: Likewise.
4965         * doc/c-ctype.texi: Likewise.
4966         * doc/c-strcase.texi: Likewise.
4967         * doc/c-strcaseeq.texi: Likewise.
4968         * doc/c-strcasestr.texi: Likewise.
4969         * doc/c-strstr.texi: Likewise.
4970         * doc/c-strtod.texi: Likewise.
4971         * doc/c-strtold.texi: Likewise.
4972         * doc/ctime.texi: Likewise.
4973         * doc/error.texi: Likewise.
4974         * doc/fdl.texi: Likewise.
4975         * doc/gcd.texi: Likewise.
4976         * doc/getdate.texi: Likewise.
4977         * doc/gnulib-intro.texi: Likewise.
4978         * doc/gnulib-tool.texi: Likewise.
4979         * doc/gnulib.texi: Likewise.
4980         * doc/inet_ntoa.texi: Likewise.
4981         * doc/maintain.texi: Likewise.
4982         * doc/make-stds.texi: Likewise.
4983         * doc/quote.texi: Likewise.
4984         * doc/regexprops-generic.texi: Likewise.
4985         * doc/standards.texi: Likewise.
4986         * doc/verify.texi: Likewise.
4987         * doc/visibility.texi: Likewise.
4988         * doc/gnulib.texi (GNU Free Documentation License): Include
4989         fdl-1.3.texi instead of fdl.texi.
4990
4991 2008-11-04  Simon Josefsson  <simon@josefsson.org>
4992
4993         * doc/fdl-1.3.texi: New file, from
4994         <http://www.gnu.org/licenses/fdl-1.3.texi>.
4995         * modules/fdl-1.3: Add.
4996         * MODULES.html.sh: Add fdl-1.3.
4997
4998 2008-11-03  Bruno Haible  <bruno@clisp.org>
4999
5000         Make determination of absolute name of header file work with AIX xlc.
5001         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5002         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5003         preprocessing.
5004         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5005         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5006
5007 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5008
5009         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5010         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5011         <ludo@gnu.org>.
5012
5013 2008-11-02  Bruno Haible  <bruno@clisp.org>
5014
5015         Mark 'strpbrk' obsolete.
5016         * modules/strpbrk (Status, Notice): New sections.
5017         * modules/strtok_r (Depends-on): Add strpbrk.
5018
5019 2008-11-02  Bruno Haible  <bruno@clisp.org>
5020
5021         Mark 'strdup' obsolete.
5022         * modules/strdup (Status, Notice): New sections.
5023         * modules/findprog (Depends-on): Add strdup.
5024         * modules/getaddrinfo (Depends-on): Likewise.
5025         * modules/localename (Depends-on): Likewise.
5026         * modules/relocatable-lib (Depends-on): Likewise.
5027         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5028         * modules/relocatable-prog (Depends-on): Likewise.
5029         * modules/trim (Depends-on): Likewise.
5030         * modules/unictype/gen-ctype (Depends-on): Likewise.
5031         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5032
5033 2008-11-02  Bruno Haible  <bruno@clisp.org>
5034
5035         Mark 'strcspn' obsolete.
5036         * modules/strcspn (Status, Notice): New sections.
5037
5038 2008-11-02  Bruno Haible  <bruno@clisp.org>
5039
5040         Mark 'rmdir' obsolete.
5041         * modules/rmdir (Status, Notice): New sections.
5042         * modules/clean-temp (Depends-on): Add rmdir.
5043         * modules/openat (Depends-on): Likewise.
5044
5045 2008-11-02  Bruno Haible  <bruno@clisp.org>
5046
5047         Mark 'raise' obsolete.
5048         * modules/raise (Status, Notice): New sections.
5049         (Include): Specify <signal.h>.
5050         * modules/stdio (Depends-on): Add raise.
5051         * modules/write (Depends-on): Likewise.
5052
5053 2008-11-02  Bruno Haible  <bruno@clisp.org>
5054
5055         Mark 'memset' obsolete.
5056         * modules/memset (Status, Notice): New sections.
5057
5058 2008-11-02  Bruno Haible  <bruno@clisp.org>
5059
5060         Mark 'memmove' obsolete.
5061         * modules/memmove (Status, Notice): New sections.
5062         * modules/argp (Depends-on): Add memmove.
5063         * modules/argz (Depends-on): Likewise.
5064         * modules/canonicalize (Depends-on): Likewise.
5065         * modules/canonicalize-lgpl (Depends-on): Likewise.
5066         * modules/fts (Depends-on): Likewise.
5067         * modules/getcwd (Depends-on): Likewise.
5068         * modules/human (Depends-on): Likewise.
5069         * modules/regex (Depends-on): Likewise.
5070         * modules/striconveh (Depends-on): Likewise.
5071         * modules/trim (Depends-on): Likewise.
5072         * modules/unistr/u8-move (Depends-on): Likewise.
5073         * modules/unistr/u16-move (Depends-on): Likewise.
5074         * modules/unistr/u32-move (Depends-on): Likewise.
5075
5076 2008-11-02  Bruno Haible  <bruno@clisp.org>
5077
5078         Mark 'memcpy' obsolete.
5079         * modules/memcpy (Status, Notice): New sections.
5080
5081 2008-11-02  Bruno Haible  <bruno@clisp.org>
5082
5083         Mark 'memcmp' obsolete.
5084         * modules/memcmp (Status, Notice): New sections.
5085         * modules/argmatch (Depends-on): Add memchr.
5086         * modules/backupfile (Depends-on): Likewise.
5087         * modules/c-strcasestr (Depends-on): Likewise.
5088         * modules/crypto/des (Depends-on): Likewise.
5089         * modules/csharpcomp (Depends-on): Likewise.
5090         * modules/fnmatch (Depends-on): Likewise.
5091         * modules/git-merge-changelog (Depends-on): Likewise.
5092         * modules/isnand (Depends-on): Likewise.
5093         * modules/isnand-nolibm (Depends-on): Likewise.
5094         * modules/isnanf (Depends-on): Likewise.
5095         * modules/isnanf-nolibm (Depends-on): Likewise.
5096         * modules/isnanl (Depends-on): Likewise.
5097         * modules/isnanl-nolibm (Depends-on): Likewise.
5098         * modules/mbchar (Depends-on): Likewise.
5099         * modules/memcoll (Depends-on): Likewise.
5100         * modules/quotearg (Depends-on): Likewise.
5101         * modules/regex (Depends-on): Likewise.
5102         * modules/relocatable-prog (Depends-on): Likewise.
5103         * modules/same (Depends-on): Likewise.
5104         * modules/signbit (Depends-on): Likewise.
5105         * modules/strcasestr-simple (Depends-on): Likewise.
5106         * modules/unictype/gen-ctype (Depends-on): Likewise.
5107         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5108         * modules/uniname/uniname (Depends-on): Likewise.
5109         * modules/unistr/u8-cmp (Depends-on): Likewise.
5110
5111 2008-11-02  Bruno Haible  <bruno@clisp.org>
5112
5113         Mark 'memchr' obsolete.
5114         * modules/memchr (Status, Notice): New sections.
5115         * modules/argp (Depends-on): Add memchr.
5116         * modules/base64 (Depends-on): Likewise.
5117         * modules/c-strcasestr (Depends-on): Likewise.
5118         * modules/chdir-long (Depends-on): Likewise.
5119         * modules/fnmatch (Depends-on): Likewise.
5120         * modules/getsubopt (Depends-on): Likewise.
5121         * modules/git-merge-changelog (Depends-on): Likewise.
5122         * modules/glob (Depends-on): Likewise.
5123         * modules/strcasestr-simple (Depends-on): Likewise.
5124         * modules/strnlen (Depends-on): Likewise.
5125
5126 2008-11-02  Bruno Haible  <bruno@clisp.org>
5127
5128         Mark 'atexit' obsolete.
5129         * modules/atexit (Status, Notice): New sections.
5130         * modules/chdir-long (Depends-on): Add atexit.
5131         * modules/wait-process (Depends-on): Likewise.
5132
5133 2008-11-02  Bruno Haible  <bruno@clisp.org>
5134
5135         * gnulib-tool: New option --with-obsolete.
5136         (func_usage): Document it.
5137         (func_modules_transitive_closure): Drop obsolete dependencies if
5138         incobsolete is not true.
5139         (func_import): Read and save the incobsolete variable to the cache.
5140
5141 2008-11-02  Bruno Haible  <bruno@clisp.org>
5142
5143         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5144         * gnulib-tool: New option --extract-status.
5145         (func_usage): Document it.
5146         (sed_extract_prog): Recognize it.
5147         (func_get_status): New function.
5148
5149 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5150
5151         * modules/sockets (License): Change from LGPL to LGPLv2+.
5152
5153 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5154
5155         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5156
5157 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5158
5159         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5160         Mention times and sys_times.
5161         * modules/sys_times, modules/sys_times-tests: New modules.
5162         * modules/times, modules/times-tests: Likewise
5163         * m4/sys_times_h.m4: New file.
5164         * lib/sys_times.in.h: Likewise
5165         * lib/times.c: Likewise.
5166         * tests/test-sys_times.c: Likewise.
5167         * tests/test-times.c: Likewise.
5168         * doc/posix-headers/sys_times.texi: Update.
5169         * doc/posix-functions/times.texi: Update.
5170
5171 2008-10-28  Jim Meyering  <meyering@redhat.com>
5172
5173         * modules/tempname (Depends-on): Add lstat.
5174
5175         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5176
5177 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5178
5179         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5180         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5181         using idiom used elsewhere in gnulib.
5182
5183 2008-10-27  Jim Meyering  <meyering@redhat.com>
5184
5185         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5186
5187 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5188
5189         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5190         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5191         programs.
5192         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5193
5194 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5195
5196         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5197
5198 2008-10-27  Bruno Haible  <bruno@clisp.org>
5199
5200         * tests/test-lstat.c: Include <stdio.h>.
5201
5202 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5203
5204         * modules/lstat-tests: New module.
5205         * tests/test-lstat.c: New file.
5206
5207 2008-10-26  Jim Meyering  <meyering@redhat.com>
5208
5209         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5210
5211 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5212             Bruno Haible  <bruno@clisp.org>
5213
5214         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5215         * modules/configmake (Include): Add a note that the include must come
5216         after all system headers.
5217         * lib/javaversion.c: Include configmake.h after all other includes.
5218
5219 2008-10-26  Bruno Haible  <bruno@clisp.org>
5220
5221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5222         HAVE_STRUCT_RANDOM_DATA to 1.
5223         (gl_STDLIB_H): Simplify.
5224
5225 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5226
5227         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5228         substitute HAVE_STRUCT_RANDOM_DATA.
5229         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5230         random_data.
5231         * modules/stdlib (Makefile.am): Substitute
5232         HAVE_STRUCT_RANDOM_DATA.
5233
5234 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5235
5236         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5237         * doc/gnulib-intro.texi (Copyright): Likewise.
5238
5239 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5240
5241         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5242         findings.
5243
5244 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5245             Bruno Haible  <bruno@clisp.org>
5246
5247         * lib/unistd.in.h: Include <winsock2.h>.
5248         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5249         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5250         Provide dummy declarations.
5251         (gethostname): Override.
5252         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5253         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5254         gl_PREREQ_SYS_H_WINSOCK2.
5255         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5256         * doc/posix-functions/gethostname.texi: More details.
5257
5258 2008-10-25  Bruno Haible  <bruno@clisp.org>
5259
5260         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5261         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5262         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5263
5264         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5265         here ...
5266         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5267         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5268         gl_UNISTD_H_DEFAULTS.
5269
5270 2008-10-25  Eric Blake  <ebb9@byu.net>
5271
5272         signbit: avoid spurious compiler failure
5273         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5274         declarations inside function.
5275
5276 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5277             Bruno Haible  <bruno@clisp.org>
5278
5279         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5280         * modules/random_r (Depends-on): Add stdint.
5281
5282 2008-10-24  Bruno Haible  <bruno@clisp.org>
5283
5284         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5285         Eggert.
5286         * modules/strerror (License): Likewise.
5287
5288 2008-10-24  Jim Meyering  <meyering@redhat.com>
5289
5290         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5291         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5292
5293 2008-10-24  Eric Blake  <ebb9@byu.net>
5294
5295         getgroups: fix compilation when getgroups is available
5296         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5297         but with <config.h> override of getgroups disabled.
5298
5299 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5300
5301         * doc/gnulib.texi (Header files): Add note about C++ problems.
5302         Explained by Bruno Haible <bruno@clisp.org>.
5303
5304 2008-10-23  Bruno Haible  <bruno@clisp.org>
5305
5306         Define a dummy SA_NODEFER macro on Interix.
5307         * lib/signal.in.h (SA_NODEFER): Define fallback.
5308         Reported by Aleksey Cheusov <cheusov@tut.by> via
5309         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5310
5311 2008-10-23  Bruno Haible  <bruno@clisp.org>
5312
5313         * modules/freadahead (License): Change to LGPLv2+.
5314         Suggested by Simon Josefsson.
5315
5316 2008-10-23  Jim Meyering  <meyering@redhat.com>
5317
5318         random_r: new module
5319         * modules/random_r: New file.
5320         * m4/random_r.m4: New file.
5321         * lib/random_r.c: New file, from glibc.
5322         * modules/random_r-tests: New file.
5323         * tests/test-random_r.c: New file.
5324         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5325          Declare.
5326         (RAND_MAX): Define.
5327         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5328         * modules/stdlib: Substitute them, too.
5329         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5330         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5331         * doc/glibc-functions/random_r.texi: Likewise.
5332         * doc/glibc-functions/setstate_r.texi: Likewise.
5333         * doc/glibc-functions/srandom_r.texi: Likewise.
5334         * config/srclist.txt: Mention it.
5335
5336 2008-10-23  David Lutterkort  <lutter@redhat.com>
5337
5338         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5339         link requirement
5340
5341 2008-10-23  Jim Meyering  <meyering@redhat.com>
5342
5343         selinux-h: mark parameters of stub functions as intentionally unused
5344         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5345         * lib/se-context.in.h: Likewise.
5346
5347 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5348
5349         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5350
5351 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5352
5353         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5354
5355 2008-10-22  Eric Blake  <ebb9@byu.net>
5356
5357         glthread/thread: avoid compiler warning
5358         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5359         Add unreachable abort to silence compiler.
5360
5361 2008-10-22  Eric Blake  <ebb9@byu.net>
5362
5363         netdb: also supply struct addrinfo for cygwin 1.5.x
5364         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5365         older cygwin.
5366         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5367         cygwin.
5368         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5369
5370 2008-10-22  Bruno Haible  <bruno@clisp.org>
5371
5372         * users.txt: Update entry about pspp.
5373
5374 2008-10-21  Bruno Haible  <bruno@clisp.org>
5375
5376         Simplification.
5377         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5378         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5379
5380         Simplification.
5381         * lib/ioctl.c (ioctl): Don't undefine.
5382         * lib/socket.c (socket): Don't undefine.
5383
5384         Remove unused module indicator macros.
5385         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5386         GNULIB_$1 as a C macro.
5387
5388         * doc/posix-functions/close.texi: Undo last change.
5389         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5390         Windows platforms.
5391
5392 2008-10-21  Bruno Haible  <bruno@clisp.org>
5393
5394         Add gethostname() declaration to <unistd.h>.
5395         * lib/unistd.in.h (gethostname): New declaration.
5396         * lib/gethostname.c: Include <unistd.h>.
5397         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5398         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5400         and HAVE_GETHOSTNAME.
5401         * modules/gethostname (Depends-on): Add unistd.
5402         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5403         (Include): Specify <unistd.h>.
5404         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5405         HAVE_GETHOSTNAME.
5406         * tests/test-gethostname.c: Include <unistd.h> first.
5407
5408 2008-10-21  Bruno Haible  <bruno@clisp.org>
5409
5410         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5411         * modules/select-tests (Depends-on): Likewise.
5412         Reported by Simon Josefsson.
5413
5414 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5415
5416         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5417         * lib/accept.c: New file, based on winsock.c.
5418         * lib/bind.c: New file, based on winsock.c.
5419         * lib/connect.c: New file, based on winsock.c.
5420         * lib/getpeername.c: New file, based on winsock.c.
5421         * lib/getsockname.c: New file, based on winsock.c.
5422         * lib/getsockopt.c: New file, based on winsock.c.
5423         * lib/ioctl.c: New file, based on winsock.c.
5424         * lib/listen.c: New file, based on winsock.c.
5425         * lib/recv.c: New file, based on winsock.c.
5426         * lib/recvfrom.c: New file, based on winsock.c.
5427         * lib/send.c: New file, based on winsock.c.
5428         * lib/sendto.c: New file, based on winsock.c.
5429         * lib/setsockopt.c: New file, based on winsock.c.
5430         * lib/shutdown.c: New file, based on winsock.c.
5431         * lib/socket.c: New file, based on winsock.c.
5432         * lib/w32sock.h: New file, based on winsock.c.
5433         * lib/winsock.c: Remove file.
5434         * modules/accept: Likewise.
5435         * modules/bind: Likewise.
5436         * modules/connect: Likewise.
5437         * modules/getpeername: Likewise.
5438         * modules/getsockname: Likewise.
5439         * modules/getsockopt: Likewise.
5440         * modules/ioctl: Likewise.
5441         * modules/listen: Likewise.
5442         * modules/recv: Likewise.
5443         * modules/recvfrom: Likewise.
5444         * modules/send: Likewise.
5445         * modules/sendto: Likewise.
5446         * modules/setsockopt: Likewise.
5447         * modules/shutdown: Likewise.
5448         * modules/socket: Use socket.c instead of winsock.c.
5449         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5450         * doc/posix-functions/accept.texi: Doc fix.
5451         * doc/posix-functions/bind.texi: Doc fix.
5452         * doc/posix-functions/close.texi: Doc fix.
5453         * doc/posix-functions/connect.texi: Doc fix.
5454         * doc/posix-functions/getpeername.texi: Doc fix.
5455         * doc/posix-functions/getsockname.texi: Doc fix.
5456         * doc/posix-functions/getsockopt.texi: Doc fix.
5457         * doc/posix-functions/ioctl.texi: Doc fix.
5458         * doc/posix-functions/listen.texi: Doc fix.
5459         * doc/posix-functions/recv.texi: Doc fix.
5460         * doc/posix-functions/recvfrom.texi: Doc fix.
5461         * doc/posix-functions/send.texi: Doc fix.
5462         * doc/posix-functions/sendto.texi: Doc fix.
5463         * doc/posix-functions/setsockopt.texi: Doc fix.
5464         * doc/posix-functions/shutdown.texi: Doc fix.
5465         * doc/posix-functions/socket.texi: Doc fix.
5466
5467 2008-10-20  Bruno Haible  <bruno@clisp.org>
5468
5469         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5470         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5471         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5472         as an alias for SIGABRT.
5473         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5474         (sigaction): Map it to SIGABRT.
5475         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5476
5477 2008-10-20  Bruno Haible  <bruno@clisp.org>
5478
5479         * lib/fts.c: Don't include lstat.h.
5480         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5481
5482         Move the lstat() declaration to <sys/stat.h>.
5483         * lib/lstat.h: Remove file.
5484         * lib/sys_stat.in.h: Add special invocation convention.
5485         (lstat): New declaration.
5486         * lib/lstat.c (orig_lstat): New function.
5487         (rpl_lstat): Use orig_lstat instead of lstat.
5488         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5489         AC_C_INLINE. Set REPLACE_LSTAT.
5490         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5491         and REPLACE_LSTAT.
5492         * modules/lstat (Files): Remove lib/lstat.h.
5493         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5494         (Include): Specify <sys/stat.h> instead of lstat.h.
5495         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5496         REPLACE_LSTAT.
5497         * NEWS: Mention the change.
5498
5499 2008-10-20  Bruno Haible  <bruno@clisp.org>
5500
5501         * modules/posix_spawn-tests: New file.
5502         * tests/test-posix_spawn3.c: New file.
5503
5504 2008-10-20  Bruno Haible  <bruno@clisp.org>
5505
5506         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5507         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5508         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5509         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5510         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5511
5512 2008-10-20  Bruno Haible  <bruno@clisp.org>
5513
5514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5515         of posix_spawn on AIX 5.3.
5516
5517 2008-10-20  Bruno Haible  <bruno@clisp.org>
5518
5519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5520
5521 2008-10-20  Bruno Haible  <bruno@clisp.org>
5522
5523         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5524         of AC_LANG_PROGRAM.
5525
5526 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5527
5528         * lib/netdb.in.h: Don't define GNU specific constants until they
5529         are supported or needed.  Reported by Bruno Haible
5530         <bruno@clisp.org>.
5531
5532 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5533
5534         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5535
5536 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5537
5538         * lib/getaddrinfo.h: Remove file.
5539         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5540         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5541         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5542         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5543         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5544         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5545         * tests/test-getaddrinfo.c: Likewise.
5546         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5547         * NEWS: Mention change.
5548
5549 2008-10-19  Bruno Haible  <bruno@clisp.org>
5550
5551         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5552
5553 2008-10-19  Bruno Haible  <bruno@clisp.org>
5554
5555         * lib/wait-process.c: Include simply <sys/wait.h>.
5556         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5557         WIFSTOPPED): Remove fallback definitions.
5558         * modules/wait-process (Depends-on): Add sys_wait.
5559
5560         New module 'sys_wait'.
5561         * modules/sys_wait: New file.
5562         * lib/sys_wait.in.h: New file, partially copied from
5563         lib/wait-process.c.
5564         * m4/sys_wait_h.m4: New file.
5565         * doc/posix-headers/sys_wait.texi: Mention the new module.
5566
5567 2008-10-19  Bruno Haible  <bruno@clisp.org>
5568
5569         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5570
5571 2008-10-19  Bruno Haible  <bruno@clisp.org>
5572
5573         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5574         * lib/wait-process.c (WAIT_T): Remove type.
5575         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5576         (wait_subprocess): Update.
5577
5578 2008-10-19  Bruno Haible  <bruno@clisp.org>
5579
5580         New module 'atoll'.
5581         * modules/atoll: New file.
5582         * lib/stdlib.in.h (atoll): New declaration.
5583         * lib/atoll.c: New file, from glibc with modifications.
5584         * m4/atoll.m4: New file.
5585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5586         HAVE_ATOLL.
5587         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5588         * doc/posix-functions/atoll.texi: Mention the new module.
5589
5590 2008-10-19  Bruno Haible  <bruno@clisp.org>
5591
5592         Add strtoull() declaration to <stdlib.h>.
5593         * lib/stdlib.in.h (strtoull): New declaration.
5594         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5595         Set HAVE_STRTOULL.
5596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5597         HAVE_STRTOULL.
5598         * modules/strtoull (Depends-on): Add stdlib.
5599         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5600         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5601         HAVE_STRTOULL.
5602
5603 2008-10-19  Bruno Haible  <bruno@clisp.org>
5604
5605         Add strtoll() declaration to <stdlib.h>.
5606         * lib/stdlib.in.h (strtoll): New declaration.
5607         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5608         Set HAVE_STRTOLL.
5609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5610         HAVE_STRTOLL.
5611         * modules/strtoll (Depends-on): Add stdlib.
5612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5613         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5614
5615 2008-10-19  Bruno Haible  <bruno@clisp.org>
5616
5617         * modules/bcopy (Depends-on): Add strings.
5618         (Include): Specify <strings.h>.
5619
5620 2008-10-19  Bruno Haible  <bruno@clisp.org>
5621
5622         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5623
5624 2008-10-19  Bruno Haible  <bruno@clisp.org>
5625
5626         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5627         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5628         mingw.
5629
5630 2008-10-19  Bruno Haible  <bruno@clisp.org>
5631
5632         * lib/atanl.c: Don't include isnanl.h.
5633         * lib/cosl.c: Likewise.
5634         * lib/ldexpl.c: Likewise.
5635         * lib/logl.c: Likewise.
5636         * lib/sinl.c: Likewise.
5637         * lib/sqrtl.c: Likewise.
5638         * lib/tanl.c: Likewise.
5639
5640         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5641         * lib/isnanf.h: Remove file.
5642         * lib/isnand.h: Remove file.
5643         * lib/isnanl.h: Remove file.
5644         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5645         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5646         macros.
5647         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5648         HAVE_ISNANF, don't define it as a C macro.
5649         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5650         HAVE_ISNAND, don't define it as a C macro.
5651         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5652         HAVE_ISNANL, don't define it as a C macro.
5653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5654         HAVE_ISNAN[FDL].
5655         * modules/isnanf (Files): Remove lib/isnanf.h.
5656         (Depends-on): Add math.
5657         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5658         (Include): Specify <math.h> instead of isnanf.h.
5659         * modules/isnand (Files): Remove lib/isnand.h.
5660         (Depends-on): Add math.
5661         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5662         (Include): Specify <math.h> instead of isnand.h.
5663         * modules/isnanl (Files): Remove lib/isnanl.h.
5664         (Depends-on): Add math.
5665         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5666         (Include): Specify <math.h> instead of isnanl.h.
5667         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5668         HAVE_ISNAN[FDL].
5669         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5670         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5671         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5672         * NEWS: Mention the change.
5673
5674 2008-10-18  Bruno Haible  <bruno@clisp.org>
5675
5676         Add getusershell(), setusershell(), endusershell() declarations to
5677         <unistd.h>.
5678         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5679         declarations.
5680         * lib/getusershell.c: Include unistd.h.
5681         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5682         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5683         HAVE_GETUSERSHELL.
5684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5685         and HAVE_GETUSERSHELL.
5686         * modules/getusershell (Depends-on): Add unistd, extensions.
5687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5688         (Include): Specify <unistd.h>.
5689         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5690         HAVE_GETUSERSHELL.
5691
5692 2008-10-18  Bruno Haible  <bruno@clisp.org>
5693
5694         Add a getloadavg() declaration to <stdlib.h>.
5695         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5696         getloadavg declaration.
5697         (getloadavg): New declaration.
5698         * lib/getloadavg.c: Include <stdlib.h> first.
5699         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5700         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5701         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5703         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5704         * modules/getloadavg (Depends-on): Add stdlib, extensions.
5705         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5706         (Include): Specify <stdlib.h>.
5707         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5708         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5709
5710 2008-10-18  Bruno Haible  <bruno@clisp.org>
5711
5712         * lib/dirchownmod.c: Don't include lchmod.h.
5713
5714         Move the lchmod() declaration to <sys/stat.h>.
5715         * lib/lchmod.h: Remove file.
5716         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5717         (lchmod): New declaration, moved here from lib/lchown.h.
5718         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5719         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5720         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5721         and HAVE_LCHMOD.
5722         * modules/lchmod (Files): Remove lib/lchmod.h.
5723         (Depends-on): Add sys_stat, extensions.
5724         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5725         (Include): Specify <sys/stat.h> instead of lchmod.h.
5726         * modules/sys_stat (Depends-on): Add link-warning.
5727         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5728         definition of GL_LINK_WARNING.
5729         * NEWS: Mention the change.
5730
5731 2008-10-18  Bruno Haible  <bruno@clisp.org>
5732
5733         * lib/fchdir.c: Don't include dirfd.h.
5734         * lib/fts.c: Likewise.
5735         * lib/getcwd.c: Likewise.
5736         * lib/glob.c: Likewise.
5737
5738         Move the dirfd() declaration to <dirent.h>.
5739         * lib/dirfd.h: Remove file.
5740         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5741         (dirfd): New declaration.
5742         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5744         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
5745         HAVE_DECL_DIRFD.
5746         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
5747         HAVE_DECL_DIRFD.
5748         * modules/dirfd (Files): Remove lib/dirfd.h.
5749         (Depends-on): Add dirent, extensions.
5750         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
5751         (Include): Specify <dirent.h> instead of dirfd.h.
5752         * modules/dirent (Depends-on): Add link-warning.
5753         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
5754         definition of GL_LINK_WARNING.
5755         * NEWS: Mention the change.
5756
5757 2008-10-18  Bruno Haible  <bruno@clisp.org>
5758
5759         Move the euidaccess() declaration to <unistd.h>.
5760         * lib/euidaccess.h: Remove file.
5761         * lib/unistd.in.h (euidaccess): New declaration.
5762         * lib/euidaccess.c: Don't include euidaccess.h.
5763         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
5764         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
5765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
5766         and HAVE_EUIDACCESS.
5767         * modules/euidaccess (Files): Remove lib/euidaccess.h.
5768         (Depends-on): Add unistd.
5769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5770         (Include): Specify <unistd.h> instead of euidaccess.h.
5771         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
5772         HAVE_EUIDACCESS.
5773         * NEWS: Mention the change.
5774
5775 2008-10-18  Bruno Haible  <bruno@clisp.org>
5776
5777         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
5778
5779         Move the getdomainname() declaration to <unistd.h>.
5780         * lib/getdomainname.h: Remove file.
5781         * lib/unistd.in.h (getdomainname): New declaration.
5782         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
5783         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5784         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5785         HAVE_GETDOMAINNAME.
5786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5787         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
5788         * modules/getdomainname (Files): Remove lib/getdomainname.h.
5789         (Depends-on): Add unistd, extensions.
5790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5791         (Includes): Specify <unistd.h> instead of getdomainname.h.
5792         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
5793         HAVE_GETDOMAINNAME.
5794         * NEWS: Mention the change.
5795
5796 2008-10-18  Bruno Haible  <bruno@clisp.org>
5797
5798         * modules/dirent: New file.
5799         * m4/dirent_h.m4: New file.
5800         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
5801         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
5802         * modules/fchdir (Files): Remove lib/dirent.in.h.
5803         (Depends-on): Add dirent.
5804         (Makefile.am): Move rules to modules/dirent.
5805         * doc/posix-headers/dirent.texi: Mention the new module.
5806
5807 2008-10-18  Bruno Haible  <bruno@clisp.org>
5808
5809         Avoid -Wunused-parameter warnings in public gnulib header files.
5810         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
5811         macro.
5812         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
5813
5814 2008-10-18  Bruno Haible  <bruno@clisp.org>
5815
5816         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
5817         * doc/glibc-functions/error.texi: Mention the module 'error'.
5818         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
5819         * doc/glibc-functions/getdomainname.texi: Mention the module
5820         'getdomainname'.
5821         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
5822         * doc/glibc-functions/getpagesize.texi: Mention the module
5823         'getpagesize'.
5824         * doc/glibc-functions/getusershell.texi: Mention the module
5825         'getusershell'.
5826         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
5827         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
5828         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
5829         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
5830         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
5831         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
5832         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
5833         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
5834         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
5835         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
5836         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
5837         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
5838         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
5839         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
5840
5841 2008-10-17  Bruno Haible  <bruno@clisp.org>
5842
5843         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
5844         HP-UX and IRIX, use -0.0L.
5845         * tests/test-ceill.c (minus_zero): Likewise.
5846         * tests/test-floorl.c (minus_zero): Likewise.
5847         * tests/test-frexpl.c (minus_zero): Likewise.
5848         * tests/test-isnan.c (minus_zerol): Likewise.
5849         * tests/test-isnanl.h (minus_zero): Likewise.
5850         * tests/test-ldexpl.c (minus_zero): Likewise.
5851         * tests/test-roundl.c (minus_zero): Likewise.
5852         * tests/test-signbit.c (minus_zerol): Likewise.
5853         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5854         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5855         * tests/test-truncl.c (minus_zero): Likewise.
5856         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5857         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5858         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
5859         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5860
5861 2008-10-17  Bruno Haible  <bruno@clisp.org>
5862
5863         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
5864         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
5865         that it gets activated only for gcc >= 3.0.
5866         * lib/dirent.in.h: Likewise.
5867         * lib/errno.in.h: Likewise.
5868         * lib/fcntl.in.h: Likewise.
5869         * lib/float.in.h: Likewise.
5870         * lib/iconv.in.h: Likewise.
5871         * lib/inttypes.in.h: Likewise.
5872         * lib/locale.in.h: Likewise.
5873         * lib/math.in.h: Likewise.
5874         * lib/netdb.in.h: Likewise.
5875         * lib/netinet_in.in.h: Likewise.
5876         * lib/search.in.h: Likewise.
5877         * lib/signal.in.h: Likewise.
5878         * lib/spawn.in.h: Likewise.
5879         * lib/stdarg.in.h: Likewise.
5880         * lib/stdint.in.h: Likewise.
5881         * lib/stdio.in.h: Likewise.
5882         * lib/stdlib.in.h: Likewise.
5883         * lib/string.in.h: Likewise.
5884         * lib/strings.in.h: Likewise.
5885         * lib/sys_file.in.h: Likewise.
5886         * lib/sys_ioctl.in.h: Likewise.
5887         * lib/sys_select.in.h: Likewise.
5888         * lib/sys_socket.in.h: Likewise.
5889         * lib/sys_stat.in.h: Likewise.
5890         * lib/sys_time.in.h: Likewise.
5891         * lib/sysexits.in.h: Likewise.
5892         * lib/time.in.h: Likewise.
5893         * lib/unistd.in.h: Likewise.
5894         * lib/wchar.in.h: Likewise.
5895         * lib/wctype.in.h: Likewise.
5896         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5897
5898 2008-10-17  Jim Meyering  <meyering@redhat.com>
5899
5900         ignore-value: don't depend on inline module
5901         * modules/ignore-value (Depends-on): Remove 'inline'.
5902         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
5903         Suggestion from Bruno Haible.
5904
5905 2008-10-17  Bruno Haible  <bruno@clisp.org>
5906
5907         New implementation of condition variables for Win32.
5908         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
5909         (gl_linked_waitqueue_t): New type.
5910         (gl_cond_t): Use it.
5911         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
5912         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5913         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
5914         (glthread_cond_init_func, glthread_cond_wait_func,
5915         glthread_cond_timedwait_func, glthread_cond_signal_func,
5916         glthread_cond_broadcast_func, glthread_cond_destroy_func):
5917         Reimplemented on the basis of gl_linked_waitqueue_t.
5918         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
5919         gl_waitqueue_t.
5920         (gl_rwlock_t): Update.
5921         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
5922
5923 2008-10-17  Simon Josefsson  <simon@josefsson.org>
5924
5925         * modules/recvfrom (Depends-on): Add dependency on getpeername.
5926         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5927
5928 2008-10-17  Jim Meyering  <meyering@redhat.com>
5929
5930         ignore-value: new module
5931         * modules/ignore-value: New file.
5932         * lib/ignore-value.h: New file.
5933         * MODULES.html.sh (Compiler warning management): New section,
5934         just for this module.  More to come.
5935
5936 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5937
5938         open-safer.c: avoid 'signed and unsigned in conditional...' warning
5939         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5940         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
5941
5942 2008-10-16  Jim Meyering  <meyering@redhat.com>
5943
5944         openat-die.c: avoid 'no previous prototype' warning
5945         * lib/openat-die.c: Include "openat.h".
5946         Reported by Reuben Thomas <rrt@sc3d.org>.
5947
5948 2008-10-16  Simon Josefsson  <simon@josefsson.org>
5949
5950         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
5951         * lib/netdb.in.h: Fix typo.
5952         Reported by Bruno Haible  <bruno@clisp.org>
5953
5954         * lib/netdb.in.h: Include sys/socket.h for platforms without
5955         netdb.h, to get structures like hostent on MinGW.
5956         * modules/netdb (Depends-on): Add sys_socket.
5957
5958 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5959
5960         * modules/netdb, modules/netdb-tests: New file.
5961         * m4/netdb_h.m4: New file.
5962         * lib/netdb.in.h: Add, currently just an empty file pending
5963         definitions.
5964         * tests/test-netdb.c: New file.
5965         * doc/posix-headers/netdb.texi: Mention that we replace it if
5966         needed.
5967         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
5968         netdb.
5969
5970 2008-10-15  Simon Josefsson  <simon@josefsson.org>
5971
5972         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
5973         with code.
5974
5975 2008-10-13  Bruno Haible  <bruno@clisp.org>
5976
5977         * lib/glthread/cond.c (glthread_cond_wait_func,
5978         glthread_cond_timedwait_func): Add a comment.
5979
5980 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
5981
5982         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
5983         * tests/test-select.c: Likewise,
5984
5985 2008-10-13  Bruno Haible  <bruno@clisp.org>
5986
5987         * lib/glthread/cond.c (glthread_cond_wait_func,
5988         glthread_cond_timedwait_func): Fix variable name.
5989         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5990
5991 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
5992
5993         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
5994         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
5995         struct sockaddr.sa_len.
5996         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
5997
5998 2008-10-13  Simon Josefsson  <simon@josefsson.org>
5999
6000         * build-aux/pmccabe2html: Add css and css_url parameters.
6001
6002 2008-10-12  Bruno Haible  <bruno@clisp.org>
6003
6004         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6005         calling aclx_get.
6006         Reported by Rainer Tammer <tammer@tammer.net>.
6007
6008 2008-10-12  Bruno Haible  <bruno@clisp.org>
6009
6010         Use msvcrt aware primitives for creation/termination of Win32 threads.
6011         * lib/glthread/thread.c: Include <process.h>.
6012         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6013         (wrapper_func): Update signature.
6014         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6015
6016 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6017             Bruno Haible  <bruno@clisp.org>
6018
6019         Provide a Win32 implementation of the 'cond' module.
6020         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6021         * lib/glthread/cond.c (glthread_cond_init_func,
6022         glthread_cond_wait_func, glthread_cond_timedwait_func,
6023         glthread_cond_signal_func, glthread_cond_broadcast_func,
6024         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6025         * modules/cond (Dependencies): Add gettimeofday.
6026
6027 2008-10-11  Bruno Haible  <bruno@clisp.org>
6028
6029         Make sleep work on older versions of mingw.
6030         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6031         only whether it exists.
6032         * doc/posix-functions/sleep.texi: Mention the problem with older
6033         versions of mingw.
6034
6035 2008-10-11  Bruno Haible  <bruno@clisp.org>
6036
6037         New module 'shutdown'.
6038         * modules/shutdown: New file.
6039         * lib/sys_socket.in.h (shutdown): New declaration.
6040         * lib/winsock.c (shutdown): New function.
6041         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6042         GNULIB_SHUTDOWN.
6043         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6044         * doc/posix-functions/shutdown.texi: Document the new module.
6045
6046 2008-10-11  Jim Meyering  <meyering@redhat.com>
6047
6048         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6049
6050 2008-10-11  Bruno Haible  <bruno@clisp.org>
6051
6052         New module 'fclose'.
6053         * modules/fclose: New file.
6054         * lib/stdio.in.h (fclose): New declaration.
6055         * lib/fclose.c: New file.
6056         * m4/fclose.m4: New file.
6057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6058         REPLACE_FCLOSE.
6059         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6060         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6061         REPLACE_FCLOSE.
6062         * modules/close (Depends-on): fclose.
6063         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6064
6065 2008-10-11  Bruno Haible  <bruno@clisp.org>
6066
6067         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6068         set errno and don't call _close.
6069
6070 2008-10-10  Bruno Haible  <bruno@clisp.org>
6071
6072         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6073         ACL, not afterwards. Fixes test failure on Cygwin.
6074
6075 2008-10-09  Ben Pfaff  <blp@gnu.org>
6076
6077         * build-aux/announce-gen: Fix gnulib version related part of usage
6078         message.  Die with a useful error message if no tarballs are
6079         found.
6080
6081 2008-10-10  Jim Meyering  <meyering@redhat.com>
6082
6083         bootstrap: use git's --depth=N option only if it's supported
6084         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6085         recognize the --depth option.  Reported by Pádraig Brady.
6086
6087 2008-10-09  Bruno Haible  <bruno@clisp.org>
6088
6089         New module 'ioctl'.
6090         * modules/ioctl: New file.
6091         * lib/sys_socket.in.h (ioctl): Remove declaration.
6092         * lib/winsock.c: Include <sys/ioctl.h>.
6093         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6094         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6095         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6096         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6097         * doc/posix-functions/ioctl.texi: Mention the new module.
6098
6099 2008-10-09  Bruno Haible  <bruno@clisp.org>
6100
6101         New module 'sys_ioctl'.
6102         * lib/sys_ioctl.in.h: New file.
6103         * m4/sys_ioctl_h.m4: New file.
6104         * modules/sys_ioctl: New file.
6105         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6106
6107 2008-10-09  Bruno Haible  <bruno@clisp.org>
6108
6109         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6110         * lib/winsock.c: Include <stdarg.h>.
6111         (rpl_ioctl): Change to second argument 'int' and then varargs.
6112
6113 2008-10-09  Bruno Haible  <bruno@clisp.org>
6114
6115         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6116         when the sys_socket module is present and the system has <winsock2.h>.
6117
6118 2008-10-09  Bruno Haible  <bruno@clisp.org>
6119
6120         * doc/posix-functions/close.texi: Mention module 'close' instead of
6121         module 'sys_socket'.
6122
6123 2008-10-09  Bruno Haible  <bruno@clisp.org>
6124
6125         * doc/glibc-headers/sys_ioctl.texi: New file.
6126         * doc/gnulib.texi: Include it.
6127
6128 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6129             Bruno Haible  <bruno@clisp.org>
6130
6131         Combine the two replacements of 'close'.
6132         * lib/sys_socket.in.h (close): Define to a reminder to include
6133         <unistd.h>.
6134         (_gl_close_fd_maybe_socket): New declaration.
6135         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6136         * lib/winsock.c (close): Remove undefinition.
6137         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6138         needed for the gnulib module 'close'.
6139         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6140         define to an error symbol or to a warning, if suitable.
6141         * lib/close.c: Include <sys/socket.h>.
6142         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6143         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6144         UNISTD_H_HAVE_WINSOCK2_H.
6145         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6147         UNISTD_H_HAVE_WINSOCK2_H.
6148         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6149         (configure.ac): Set a module indicator.
6150         (Makefile.am): Substitute GNULIB_CLOSE.
6151         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6152         * modules/poll-tests (Depends-on): Add close.
6153         * modules/select-tests (Depends-on): Likewise.
6154
6155 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6156             Bruno Haible  <bruno@clisp.org>
6157
6158         New module 'close'.
6159         * modules/close: New file.
6160         * lib/unistd.in.h (close): Move declaration out of the
6161         FCHDIR_REPLACEMENT scope.
6162         (_gl_unregister_fd): New declaration.
6163         * lib/close.c: New file.
6164         * lib/fchdir.c (rpl_close): Remove function.
6165         * m4/close.m4: New file.
6166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6167         close.
6168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6169         REPLACE_CLOSE.
6170         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6171         REPLACE_CLOSE.
6172         * modules/fchdir (Depends-on): Add close.
6173
6174 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6175             Bruno Haible  <bruno@clisp.org>
6176
6177         * lib/fcntl.in.h (open): Simplify conditionals.
6178         (_gl_register_fd): New declaration.
6179         * lib/fchdir.c (rpl_open): Remove function.
6180         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6181         also.
6182         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6184         open.
6185
6186 2008-10-09  Jim Meyering  <meyering@redhat.com>
6187
6188         GNUmakefile: use the more name-space-friendly "_version"
6189         * top/GNUmakefile (_dummy): Update.
6190         (_version): Rename from "version".
6191
6192 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6193             Bruno Haible  <bruno@clisp.org>
6194
6195         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6196         rpl_close.
6197         (_gl_register_fd): New function, extracted from rpl_open.
6198         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6199         (rpl_open, rpl_opendir): Use _gl_register_fd.
6200
6201 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6202
6203         Fix organization of 'open' replacement.
6204         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6205         (gl_FUNC_OPEN): Use it.
6206         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6207
6208 2008-10-08  Bruno Haible  <bruno@clisp.org>
6209
6210         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6211
6212 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6213
6214         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6215         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6216         listen).
6217
6218 2008-10-08  Eric Blake  <ebb9@byu.net>
6219
6220         GNUmakefile: add 'make version' target
6221         * top/GNUmakefile (_curr-ver): Split version update rules...
6222         (version): ...into a target.
6223
6224 2008-10-07  Bruno Haible  <bruno@clisp.org>
6225
6226         Use a more portable replacement expression for -0.0L.
6227         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6228         instead of -0.0L. Fix m4 quotation.
6229
6230         * tests/test-signbit.c: Include <float.h>.
6231         (minus_zero): New variable.
6232         (test_signbitl): Use minus_zero instead of -zero.
6233         * modules/signbit-tests (Depends-on): Add float.
6234
6235         * tests/test-ceill.c: Include <float.h>.
6236         (zero): Remove variable.
6237         (minus_zero): New variable.
6238         (main): Use minus_zero instead of -zero.
6239         * modules/ceill-tests (Depends-on): Add float.
6240
6241         * tests/test-floorl.c: Include <float.h>.
6242         (zero): Remove variable.
6243         (minus_zero): New variable.
6244         (main): Use minus_zero instead of -zero.
6245         * modules/floorl-tests (Depends-on): Add float.
6246
6247         * tests/test-roundl.c: Include <float.h>.
6248         (zero): Remove variable.
6249         (minus_zero): New variable.
6250         (main): Use minus_zero instead of -zero.
6251         * modules/roundl-tests (Depends-on): Add float.
6252
6253         * tests/test-truncl.c: Include <float.h>.
6254         (zero): Remove variable.
6255         (minus_zero): New variable.
6256         (main): Use minus_zero instead of -zero.
6257         * modules/truncl-tests (Depends-on): Add float.
6258
6259         * tests/test-frexpl.c (zero): Remove variable.
6260         (minus_zero): New variable.
6261         (main): Use minus_zero instead of -zero.
6262         * modules/frexpl-tests (Depends-on): Add float.
6263
6264         * tests/test-isnan.c (zerol): Remove variable.
6265         (minus_zerol): New variable.
6266         (test_long_double): Use minus_zerol instead of -zerol.
6267         * modules/isnan-tests (Depends-on): Add float.
6268
6269         * tests/test-isnanl.h (zero): Remove variable.
6270         (minus_zero): New variable.
6271         (main): Use minus_zero instead of -zero.
6272         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6273         * modules/isnanl-tests (Depends-on): Add float.
6274
6275         * tests/test-ldexpl.c (zero): Remove variable.
6276         (minus_zero): New variable.
6277         (main): Use minus_zero instead of -zero.
6278         * modules/ldexpl-tests (Depends-on): Add float.
6279
6280         * tests/test-snprintf-posix.h (zerol): Remove variable.
6281         (minus_zerol): New variable.
6282         (test_function): Use minus_zerol instead of -zerol.
6283         * modules/snprintf-posix-tests (Depends-on): Add float.
6284         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6285
6286         * tests/test-sprintf-posix.h (zerol): Remove variable.
6287         (minus_zerol): New variable.
6288         (test_function): Use minus_zerol instead of -zerol.
6289         * modules/sprintf-posix-tests (Depends-on): Add float.
6290         * modules/vsprintf-posix-tests (Depends-on): Add float.
6291
6292         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6293         (minus_zerol): New variable.
6294         (test_function): Use minus_zerol instead of -zerol.
6295         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6296
6297         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6298         (minus_zerol): New variable.
6299         (test_function): Use minus_zerol instead of -zerol.
6300         * modules/vasprintf-posix-tests (Depends-on): Add float.
6301
6302 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6303
6304         * MODULES.html.sh (Support for building documentation): Mention
6305         pmccabe2html.  Sort entries.
6306
6307         Add pmccabe2html module, from gnupdf.
6308         * build-aux/pmccabe.css: New file.
6309         * build-aux/pmccabe2html: New file.
6310         * m4/pmccabe2html.m4: New file.
6311         * modules/pmccabe2html: New file.
6312
6313 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6314
6315         flock: new module
6316         * MODULES.html.sh: Add to list of modules.
6317         * lib/flock.c: flock implementation for Windows and Unix systems
6318         which have fcntl.
6319         * doc/glibc-functions/flock.texi: Update documentation.
6320         * lib/sys_file.in.h: <sys/file.h> header file.
6321         * m4/flock.m4: M4 macros.
6322         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6323         * modules/flock: flock module.
6324         * modules/flock-tests: flock tests module.
6325         * modules/sys_file: sys/file.h module.
6326         * tests/test-flock.c: test suite for flock.
6327
6328 2008-10-06  Jim Meyering  <meyering@redhat.com>
6329
6330         bootstrap: check for LT_INIT more portably still ;-)
6331         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6332         Spotted by Bruno Haible.
6333
6334 2008-10-06  Eric Blake  <ebb9@byu.net>
6335
6336         test-signbit: avoid tripping Irix cc bug on -0.0L
6337         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6338         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6339         entire testsuite consistent and avoids an Irix 6.2 bug.
6340
6341 2008-10-05  Bruno Haible  <bruno@clisp.org>
6342             Jim Meyering  <jim@meyering.net>
6343
6344         Add an option for ignoring EPIPE during close_stdout.
6345         * lib/closeout.h: Include <stdbool.h>.
6346         (close_stdout_set_ignore_EPIPE): New declaration.
6347         * lib/closeout.c: Include <stdbool.h>.
6348         (ignore_EPIPE): New variable.
6349         (close_stdout_set_ignore_EPIPE): New function.
6350         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6351         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6352         failure.
6353         * modules/closeout (Depends-on): Add stdbool.
6354
6355 2008-10-05  Bruno Haible  <bruno@clisp.org>
6356
6357         * modules/accept: New file.
6358         * modules/bind: New file.
6359         * modules/connect: New file.
6360         * modules/getpeername: New file.
6361         * modules/getsockname: New file.
6362         * modules/getsockopt: New file.
6363         * modules/listen: New file.
6364         * modules/recv: New file.
6365         * modules/recvfrom: New file.
6366         * modules/send: New file.
6367         * modules/sendto: New file.
6368         * modules/setsockopt: New file.
6369         * modules/socket: New file.
6370         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6371         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6372         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6373         the particular module is requested. Add a link warning when the
6374         particular module is not requested.
6375         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6376         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6377         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6378         the particular module is requested.
6379         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6380         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6381         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6382         * modules/sys_socket (Depends-on): Add link-warning.
6383         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6384         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6385         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6386         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6387         GL_LINK_WARNING.
6388         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6389         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6390         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6391         * doc/posix-functions/getpeername.texi: Mention the new module
6392         'getpeername'.
6393         * doc/posix-functions/getsockname.texi: Mention the new module
6394         'getsockname'.
6395         * doc/posix-functions/getsockopt.texi: Mention the new module
6396         'getsockopt'.
6397         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6398         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6399         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6400         * doc/posix-functions/send.texi: Mention the new module 'send'.
6401         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6402         * doc/posix-functions/setsockopt.texi: Mention the new module
6403         'setsockopt'.
6404         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6405         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6406         listen, connect, accept.
6407         * modules/select-tests (Depends-on): Likewise.
6408
6409 2008-10-05  Bruno Haible  <bruno@clisp.org>
6410
6411         * lib/winsock.c (strerror): Remove unused #undef.
6412         (rpl_close): Remove unused local variable.
6413
6414         * modules/sys_socket (Depends-on); Add errno.
6415
6416 2008-10-05  Bruno Haible  <bruno@clisp.org>
6417
6418         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6419         (select): Add a link warning when the 'select' module is not used.
6420         * modules/sys_select (Depends-on): Add link-warning.
6421         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6422         Suggested by Paolo Bonzini.
6423
6424 2008-10-05  Jim Meyering  <meyering@redhat.com>
6425
6426         bootstrap: check for LT_INIT more portably
6427         * build-aux/bootstrap: Avoid using grep -E, since it's not
6428         portable enough.  Suggestion from Bruno Haible.
6429
6430 2008-10-05  Bruno Haible  <bruno@clisp.org>
6431
6432         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6433         as being fixed by gnulib.
6434
6435 2008-10-05  Bruno Haible  <bruno@clisp.org>
6436
6437         * modules/select-tests: New file, mostly copied from
6438         modules/sys_select-tests.
6439         * tests/test-select.c: New file, mostly copied from
6440         tests/test-sys_select.c.
6441         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6442         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6443         (Makefile.am): Remove test_sys_select_LDADD.
6444
6445         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6446         to an undefined symbol, for an error message.
6447         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6448         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6449         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6450         winsock-select.c here.
6451         * modules/sys_select (Files): Remove lib/winsock-select.c.
6452         (Depends-on): Remove alloca.
6453         (Makefile.am): Substitute GNULIB_SELECT.
6454         * modules/select: New file.
6455         * doc/posix-functions/select.texi: Update.
6456
6457 2008-10-05  Bruno Haible  <bruno@clisp.org>
6458
6459         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6460         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6461         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6462         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6463         getdtablesize.
6464         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6465         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6466
6467 2008-10-05  Bruno Haible  <bruno@clisp.org>
6468
6469         * modules/getdtablesize-tests: New file.
6470         * tests/test-getdtablesize.c: New file.
6471
6472         New module 'getdtablesize'.
6473         * lib/unistd.in.h (getdtablesize): New declaration.
6474         * lib/getdtablesize.c: New file.
6475         * m4/getdtablesize.m4: New file.
6476         * modules/getdtablesize: New file.
6477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6478         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6479         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6480         HAVE_GETDTABLESIZE.
6481         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6482
6483 2008-10-05  Bruno Haible  <bruno@clisp.org>
6484
6485         * modules/sched (Makefile.am): Fix typo.
6486         Reported by Simon Josefsson.
6487
6488 2008-10-05  Jim Meyering  <meyering@redhat.com>
6489
6490         bootstrap: check for LT_INIT, too
6491         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6492         are deprecated.  Suggestion from Ralf Wildenhues.
6493
6494 2008-10-05  Bruno Haible  <bruno@clisp.org>
6495
6496         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6497         overriding them by ours.
6498         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6499
6500 2008-10-05  Jim Meyering  <meyering@redhat.com>
6501
6502         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6503         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6504         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6505
6506 2008-10-04  Bruno Haible  <bruno@clisp.org>
6507
6508         * modules/dup2 (License): Change to LGPLv2+.
6509         * modules/sleep (License): Likewise.
6510         * modules/perror (License): Likewise.
6511         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6512         Blake.
6513         * modules/signal (License): Likewise.
6514         * modules/sigprocmask (License): Likewise.
6515         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6516         Meyering.
6517
6518 2008-10-04  Bruno Haible  <bruno@clisp.org>
6519
6520         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6521         Reported by Rainer Tammer <tammer@tammer.net>.
6522
6523 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6524             Bruno Haible  <bruno@clisp.org>
6525
6526         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6527         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6528         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6529
6530 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6531
6532         filevercmp: new module
6533         * lib/filevercmp.h: New function filevercmp comparing version strings.
6534         * lib/filevercmp.c: Implementation of filevercmp function.
6535         * modules/filevercmp: Module metadata.
6536         * tests/test-filevercmp.c: Unit test for new module.
6537         * modules/filevercmp-tests: Unit test metadata.
6538         * MODULES.html.sh: Add filevercmp module.
6539
6540 2008-10-03  Bruno Haible  <bruno@clisp.org>
6541
6542         * lib/c-ctype.h: Add comment.
6543         Reported by Jim Meyering.
6544
6545 2008-10-02  Bruno Haible  <bruno@clisp.org>
6546
6547         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6548
6549 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6550
6551         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6552         name of bootstrap.conf accordingly.
6553
6554 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6555
6556         * build-aux/bootstrap: Install git-merge-changelog configuration
6557         items into .gitconfig if needed.
6558
6559 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6560
6561         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6562         git repository, and initialize/update it accordingly.
6563
6564 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6565
6566         * modules/fsync-tests: New file.
6567         * tests/test-fsync.c: New file.
6568
6569         New module 'fsync'.
6570         * lib/fsync.c: New file.
6571         * m4/fsync.m4: New file.
6572         * modules/fsync: New file.
6573         * lib/unistd.in.h (fsync): New declaration.
6574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6575         GNULIB_FSYNC and HAVE_FSYNC.
6576         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6577         * MODULES.html.sh (posix_functions): Add fsync.
6578         * doc/posix-functions/fsync.texi: Mention the new module.
6579
6580 2008-10-02  Jim Meyering  <meyering@redhat.com>
6581
6582         fts.c: sync with similar code from coreutils' remove.c
6583         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6584         Guard also with "#if defined __linux__", since for now at least,
6585         this code is Linux-kernel-specific.
6586
6587 2008-10-02  Jim Meyering  <meyering@redhat.com>
6588
6589         fts: bug fixes
6590         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6591         Include <sys/vfs.h>, not <sys/statfs.h>.
6592
6593         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6594         Include <sys/vfs.h>, not <sys/statfs.h>.
6595
6596 2008-10-01  Bruno Haible  <bruno@clisp.org>
6597
6598         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6599         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6600         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6601         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6602         * doc/posix-functions/posix_spawnp.texi: Likewise.
6603         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6604         whether posix_spawn actually works.
6605         * m4/pipe.m4 (gl_PIPE): Likewise.
6606         * modules/execute (Files): Add m4/posix_spawn.m4.
6607         * modules/pipe (Files): Add m4/posix_spawn.m4.
6608         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6609
6610 2008-10-01  Jim Meyering  <meyering@redhat.com>
6611
6612         remove trailing spaces
6613         * NEWS: Likewise.
6614         * lib/poll.c (poll): Likewise.
6615         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6616         * lib/winsock.c (rpl_close): Likewise.
6617         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6618         * modules/yield: Likewise.
6619         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6620         * tests/test-sys_select.c (connect_to_socket): Likewise.
6621
6622         fts.c: adjust a new interface to be more generally useful
6623         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6624         (fts_build): Adjust caller.
6625
6626 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6627
6628         * modules/cond-tests: New file.
6629         * tests/test-cond.c: New file.
6630
6631 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6632             Bruno Haible  <bruno@clisp.org>
6633
6634         * modules/cond (Dependencies): Add errno, time.
6635         * lib/glthread/cond.h: Include <time.h>.
6636         (gl_cond_define, gl_cond_define_initialized): Use the same definition
6637         across platforms.
6638
6639 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6640             Bruno Haible  <bruno@clisp.org>
6641
6642         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6643
6644 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6645             Bruno Haible  <bruno@clisp.org>
6646
6647         * modules/tls-tests (Depends-on): Add thread, yield.
6648         (configure.ac): Remove all checks.
6649         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6650         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6651         gl_thread_self): Remove definitions. Include glthread/thread.h and
6652         glthread/yield.h instead.
6653         (test_tls): Pass an additional NULL argument to gl_thread_join.
6654
6655 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6656             Bruno Haible  <bruno@clisp.org>
6657
6658         * modules/lock-tests (Depends-on): Add thread, yield.
6659         (configure.ac): Remove all checks.
6660         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6661         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6662         gl_thread_self): Remove definitions. Include glthread/thread.h and
6663         glthread/yield.h instead.
6664         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6665         additional NULL argument to gl_thread_join.
6666
6667 2008-09-30  Bruno Haible  <bruno@clisp.org>
6668
6669         Fix the Win32 implementation of the 'thread' module.
6670         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6671         pointer type.
6672         (gl_thread_self): Invoke gl_thread_self_func.
6673         (gl_thread_self_func): New declaration.
6674         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6675         (do_init_self_key, init_self_key): New functions.
6676         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6677         Remove some fields.
6678         (running_threads, running_lock): Remove variables.
6679         (get_current_thread_handle): New function.
6680         (gl_thread_self_func, wrapper_func, glthread_create_func,
6681         glthread_join_func, gl_thread_exit_func): Largely rewritten and
6682         simplified.
6683
6684 2008-09-30  Bruno Haible  <bruno@clisp.org>
6685
6686         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6687         files.
6688
6689 2008-09-30  Jim Meyering  <meyering@redhat.com>
6690
6691         fts.m4: correct the test for statfs.f_type
6692         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6693         when checking for statfs.f_type.
6694
6695 2008-09-15  Simon Josefsson  <simon@josefsson.org>
6696
6697         tests: avoid some compiler warnings
6698         * tests/test-memchr.c (main): Pass NULL indirectly.
6699         * tests/test-getdate.c (main): Remove unused variable 'ret'.
6700
6701 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
6702
6703         getdate.y: disallow countable dayshifts like "4 yesterday ago"
6704         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6705         exactly specified dayshifts.
6706         (dayshift): New rule.
6707         (rel): Add dayshift.
6708         (relative_time_table) [tomorrow, yesterday, today, now]:
6709         Use tDAY_SHIFT in place of tDAY_UNIT.
6710         * tests/test-getdate.c: Add tests for now-disallowed countable
6711         dayshifts, e.g., "4 yesterday ago".
6712
6713 2008-09-29  Bruno Haible  <bruno@clisp.org>
6714
6715         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6716         * tests/test-posix_spawn1.in.sh: Renamed from
6717         tests/test-posix_spawn.in.sh.
6718         * tests/test-posix_spawn2.c: New file.
6719         * tests/test-posix_spawn2.in.sh: New file.
6720         * modules/posix_spawnp-tests (Files): Update.
6721         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6722
6723 2008-09-29  Bruno Haible  <bruno@clisp.org>
6724
6725         Propagate effects of putenv/setenv/unsetenv to child processes.
6726         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6727         * lib/pipe.c (create_pipe): Likewise.
6728
6729 2008-09-29  Bruno Haible  <bruno@clisp.org>
6730
6731         Enable use of shell scripts as executables in mingw.
6732         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6733         run the program as a shell script.
6734         * lib/pipe.c (create_pipe): Likewise.
6735         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6736         resulting array.
6737
6738 2008-09-29  Eric Blake  <ebb9@byu.net>
6739
6740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6741
6742 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
6743
6744         * doc/posix-functions/accept.texi: Update mingw problems.
6745         * doc/posix-functions/bind.texi: Update mingw problems.
6746         * doc/posix-functions/close.texi: Update mingw problems.
6747         * doc/posix-functions/connect.texi: Update mingw problems.
6748         * doc/posix-functions/getpeername.texi: Update mingw problems.
6749         * doc/posix-functions/getsockname.texi: Update mingw problems.
6750         * doc/posix-functions/getsockopt.texi: Update mingw problems.
6751         * doc/posix-functions/ioctl.texi: Update mingw problems.
6752         * doc/posix-functions/listen.texi: Update mingw problems.
6753         * doc/posix-functions/recv.texi: Update mingw problems.
6754         * doc/posix-functions/recvfrom.texi: Update mingw problems.
6755         * doc/posix-functions/select.texi: Update mingw problems.
6756         * doc/posix-functions/send.texi: Update mingw problems.
6757         * doc/posix-functions/sendto.texi: Update mingw problems.
6758         * doc/posix-functions/setsockopt.texi: Update mingw problems.
6759         * doc/posix-functions/socket.texi: Update mingw problems.
6760
6761 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
6762             Bruno Haible  <bruno@clisp.org>
6763
6764         * lib/sys_select.in.h: Include sys/time.h.
6765         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
6766         * modules/sys_select: Depend on sys_time.
6767         * tests/test-sys_select.c: Test that sys/select.h defines struct
6768         timeval fully.
6769
6770 2008-09-29  Bruno Haible  <bruno@clisp.org>
6771
6772         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
6773         * lib/sys_select.in.h: Likewise.
6774
6775 2008-09-29  Bruno Haible  <bruno@clisp.org>
6776
6777         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
6778
6779 2008-09-29  Bruno Haible  <bruno@clisp.org>
6780
6781         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
6782         Set LIBSOCKET instead of augmenting LIBS.
6783         * modules/sockets (Link): New section.
6784         * modules/sockets-tests (test_sockets_LDADD): New variable.
6785         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
6786         * modules/poll-tests (test_poll_LDADD): New variable.
6787         * NEWS: Document the change.
6788
6789 2008-09-29  Bruno Haible  <bruno@clisp.org>
6790
6791         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
6792         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
6793         ARPA_INET_H directly.
6794         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6795
6796 2008-09-28  Bruno Haible  <bruno@clisp.org>
6797
6798         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
6799         from gl_HEADER_SYS_SOCKET.
6800         (gl_HEADER_SYS_SOCKET): Invoke it.
6801         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6802
6803 2008-09-28  Bruno Haible  <bruno@clisp.org>
6804
6805         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
6806         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
6807         Needed on OSF/1 4.0.
6808
6809 2008-09-28  Bruno Haible  <bruno@clisp.org>
6810
6811         Override open more carefully.
6812         * lib/open.c (orig_open): New function.
6813         (rpl_open): Use orig_open instead of open.
6814         * lib/fcntl.in.h: Add special invocation convention.
6815         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
6816         (gl_FUNC_OPEN): Invoke it.
6817
6818         Override freopen more carefully.
6819         * lib/freopen.c (orig_freopen): New function.
6820         (rpl_freopen): Use orig_freopen instead of freopen.
6821         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
6822         (gl_FUNC_FREOPEN): Invoke it.
6823
6824         Override fopen more carefully.
6825         * lib/fopen.c (orig_fopen): New function.
6826         (rpl_fopen): Use orig_fopen instead of fopen.
6827         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
6828         (gl_FUNC_FOPEN): Invoke it.
6829         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
6830
6831 2008-09-28  Bruno Haible  <bruno@clisp.org>
6832
6833         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
6834         SIGPIPE.
6835
6836 2008-09-28  Bruno Haible  <bruno@clisp.org>
6837
6838         * tests/test-sigaction.c (handler, main): Disable the check whether
6839         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
6840         glibc systems with LinuxThreads.
6841
6842 2008-09-28  Bruno Haible  <bruno@clisp.org>
6843
6844         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
6845
6846         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
6847         with AIX xlc.
6848         * lib/fcntl.in.h (open): Likewise.
6849         Reported by Rainer Tammer <tammer@tammer.net>.
6850
6851 2008-09-28  Bruno Haible  <bruno@clisp.org>
6852
6853         * modules/posix_spawnp-tests: New file.
6854         * tests/test-posix_spawn.c: New file.
6855         * tests/test-posix_spawn.in.sh: New file.
6856
6857         New module 'posix_spawnp'.
6858         * modules/posix_spawnp: New file.
6859         * lib/spawnp.c: New file, from GNU libc with modifications.
6860         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
6861
6862         New module 'posix_spawn'.
6863         * modules/posix_spawn: New file.
6864         * lib/spawn.c: New file, from GNU libc with modifications.
6865         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6866
6867         New module 'posix_spawnattr_destroy'.
6868         * modules/posix_spawnattr_destroy: New file.
6869         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
6870         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
6871         module.
6872
6873         New module 'posix_spawnattr_setsigmask'.
6874         * modules/posix_spawnattr_setsigmask: New file.
6875         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
6876         modifications.
6877         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
6878         new module.
6879
6880         New module 'posix_spawnattr_getsigmask'.
6881         * modules/posix_spawnattr_getsigmask: New file.
6882         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
6883         modifications.
6884         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
6885         new module.
6886
6887         New module 'posix_spawnattr_setsigdefault'.
6888         * modules/posix_spawnattr_setsigdefault: New file.
6889         * lib/spawnattr_setdefault.c: New file, from GNU libc with
6890         modifications.
6891         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
6892         new module.
6893
6894         New module 'posix_spawnattr_getsigdefault'.
6895         * modules/posix_spawnattr_getsigdefault: New file.
6896         * lib/spawnattr_getdefault.c: New file, from GNU libc with
6897         modifications.
6898         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
6899         new module.
6900
6901         New module 'posix_spawnattr_setschedpolicy'.
6902         * modules/posix_spawnattr_setschedpolicy: New file.
6903         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
6904         modifications.
6905         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
6906         new module.
6907
6908         New module 'posix_spawnattr_getschedpolicy'.
6909         * modules/posix_spawnattr_getschedpolicy: New file.
6910         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
6911         modifications.
6912         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
6913         new module.
6914
6915         New module 'posix_spawnattr_setschedparam'.
6916         * modules/posix_spawnattr_setschedparam: New file.
6917         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
6918         modifications.
6919         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
6920         new module.
6921
6922         New module 'posix_spawnattr_getschedparam'.
6923         * modules/posix_spawnattr_getschedparam: New file.
6924         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
6925         modifications.
6926         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
6927         new module.
6928
6929         New module 'posix_spawnattr_setpgroup'.
6930         * modules/posix_spawnattr_setpgroup: New file.
6931         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
6932         modifications.
6933         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
6934         module.
6935
6936         New module 'posix_spawnattr_getpgroup'.
6937         * modules/posix_spawnattr_getpgroup: New file.
6938         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
6939         modifications.
6940         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
6941         module.
6942
6943         New module 'posix_spawnattr_setflags'.
6944         * modules/posix_spawnattr_setflags: New file.
6945         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
6946         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
6947         module.
6948
6949         New module 'posix_spawnattr_getflags'.
6950         * modules/posix_spawnattr_getflags: New file.
6951         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
6952         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
6953         module.
6954
6955         New module 'posix_spawnattr_init'.
6956         * modules/posix_spawnattr_init: New file.
6957         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
6958         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
6959         module.
6960
6961         New module 'posix_spawn_file_actions_destroy'.
6962         * modules/posix_spawn_file_actions_destroy: New file.
6963         * lib/spawn_faction_destroy.c: New file, from GNU libc with
6964         modifications.
6965         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
6966         the new module.
6967
6968         New module 'posix_spawn_file_actions_addopen'.
6969         * modules/posix_spawn_file_actions_addopen: New file.
6970         * lib/spawn_faction_addopen.c: New file, from GNU libc with
6971         modifications.
6972         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6973         the new module.
6974
6975         New module 'posix_spawn_file_actions_adddup2'.
6976         * modules/posix_spawn_file_actions_adddup2: New file.
6977         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
6978         modifications.
6979         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6980         the new module.
6981
6982         New module 'posix_spawn_file_actions_addclose'.
6983         * modules/posix_spawn_file_actions_addclose: New file.
6984         * lib/spawn_faction_addclose.c: New file, from GNU libc with
6985         modifications.
6986         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6987         the new module.
6988
6989         New module 'posix_spawn_file_actions_init'.
6990         * modules/posix_spawn_file_actions_init: New file.
6991         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
6992         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
6993         new module.
6994
6995         New module 'posix_spawn-internal'.
6996         * modules/posix_spawn-internal: New file.
6997         * lib/spawn_int.h: New file, from GNU libc with modifications.
6998         * lib/spawni.c: New file, from GNU libc with modifications.
6999         * m4/posix_spawn.m4: New file.
7000
7001         New module 'spawn'.
7002         * modules/spawn: New file.
7003         * lib/spawn.in.h: New file, from GNU libc with modifications.
7004         * m4/spawn_h.m4: New file.
7005         * doc/posix-headers/spawn.texi: Mention the new module.
7006
7007 2008-09-28  Bruno Haible  <bruno@clisp.org>
7008
7009         * modules/sched-tests: New file.
7010         * tests/test-sched.c: New file.
7011
7012         New module 'sched'.
7013         * modules/sched: New file.
7014         * lib/sched.in.h: New file.
7015         * m4/sched_h.m4: New file.
7016         * doc/posix-headers/sched.texi: Mention the new module.
7017
7018 2008-09-27  Eric Blake  <ebb9@byu.net>
7019
7020         Fix previous patch, and tweak references to $0.
7021         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7022         (func_version, func_gnulib_dir): Don't call this program
7023         gnulib-tool.
7024         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7025         with using $0 in function.
7026         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7027         (func_fatal_error): Reuse the name the user invoked us with.
7028
7029 2008-09-27  Bruno Haible  <bruno@clisp.org>
7030
7031         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7032         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7033         (gl_ICONV_H): Not here.
7034         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7035         instead of assigning ICONV_H directly.
7036
7037         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7039         WCHAR_H directly.
7040
7041 2008-09-27  Bruno Haible  <bruno@clisp.org>
7042
7043         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7044         * modules/arpa_inet (Depends-on): Add link-warning.
7045         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7046         * modules/unistd (Makefile.am): Likewise.
7047
7048 2008-09-26  Bruno Haible  <bruno@clisp.org>
7049
7050         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7051         variables.
7052         (func_version): Essentially copied from gnulib-tool.
7053         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7054         func_readlink): Copied from gnulib-tool.
7055
7056 2008-09-26  Bruno Haible  <bruno@clisp.org>
7057
7058         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7059         invoking git-version-gen.
7060
7061 2008-09-26  Bruno Haible  <bruno@clisp.org>
7062
7063         * posix-modules: Update to directory names changed on 2008-01-19.
7064         Remove commas in output before splitting into words. No more need to
7065         avoid 'ftruncate' since 2007-02-19.
7066
7067 2008-09-26  Bruno Haible  <bruno@clisp.org>
7068
7069         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7070
7071 2008-09-26  Bruno Haible  <bruno@clisp.org>
7072
7073         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7074         * modules/fwriteerror (Depends-on): Add errno.
7075
7076 2008-09-26  Bruno Haible  <bruno@clisp.org>
7077
7078         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7079         * tests/test-vc-list-files-cvs.sh: Likewise.
7080
7081 2008-09-26  Bruno Haible  <bruno@clisp.org>
7082
7083         * doc/posix-headers/sys_resource.texi: Reorder items.
7084
7085 2008-09-26  Jim Meyering  <meyering@redhat.com>
7086
7087         fts: tweak inode comparison function
7088         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7089         inode numbers, as documented.
7090
7091         fts: sort dirent entries on inode number before traversing
7092         This avoids a quadratic, seek-related performance penalty when
7093         operating on a directory containing many entries (measurable at 10k;
7094         3.5 hours at 2 million entries with a cold cache) on certain types
7095         of file systems, including ext3 and ext4, but not tmpfs.
7096         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7097         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7098         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7099         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7100         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7101         (fts_build): Set the stat.st_ino member from D_INO.
7102         If it is likely to be useful, sort dirent entries on inode number.
7103
7104         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7105         and the struct statfs.f_type member.
7106         * modules/fts (Depends-on): Add d-ino.
7107
7108 2008-09-26  Bruno Haible  <bruno@clisp.org>
7109
7110         * modules/sigpipe-die (Depends-on): Add sigpipe.
7111
7112         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7113         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7114         and GNULIB_STDIO_H_SIGPIPE are set.
7115         * lib/stdio-write.c: New file.
7116         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7117         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7118         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7119         REPLACE_STDIO_WRITE_FUNCS.
7120         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7121         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7122         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7123         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7124         * modules/stdio (Files): Add lib/stdio-write.c.
7125         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7126         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7127         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7128         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7129         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7130         REPLACE_FPRINTF_POSIX.
7131         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7132         REPLACE_PRINTF_POSIX.
7133         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7134         REPLACE_VFPRINTF_POSIX.
7135         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7136         REPLACE_VPRINTF_POSIX.
7137         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7138         SIGPIPE issue.
7139         * doc/posix-functions/fputc.texi: Likewise.
7140         * doc/posix-functions/fputs.texi: Likewise.
7141         * doc/posix-functions/fwrite.texi: Likewise.
7142         * doc/posix-functions/printf.texi: Likewise.
7143         * doc/posix-functions/putc.texi: Likewise.
7144         * doc/posix-functions/putchar.texi: Likewise.
7145         * doc/posix-functions/puts.texi: Likewise.
7146         * doc/posix-functions/vfprintf.texi: Likewise.
7147         * doc/posix-functions/vprintf.texi: Likewise.
7148
7149         * modules/safe-write (Depends-on): Add write.
7150
7151         * modules/sigpipe-tests: New file.
7152         * tests/test-sigpipe.c: New file.
7153         * tests/test-sigpipe.sh: New file.
7154
7155         * modules/write: New file.
7156         * lib/unistd.in.h: Include <sys/types.h>.
7157         (write): New declaration.
7158         * lib/write.c: New file.
7159         * m4/write.m4: New file.
7160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7161         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7162         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7163         GNULIB_WRITE, REPLACE_WRITE.
7164         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7165         and the SIGPIPE issue.
7166
7167         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7168         (raise): New declaration.
7169         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7170         (ext_signal): New function.
7171         (rpl_raise): New function.
7172         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7173         GNULIB_SIGNAL_H_SIGPIPE.
7174         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7175         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7176
7177         * modules/sigpipe: New file.
7178         * m4/sigpipe.m4: New file.
7179
7180 2008-09-25  Derek Price  <derek@ximbiot.com>
7181             Bruno Haible  <bruno@clisp.org>
7182
7183         * gnulib-tool (func_import): Report all license incompatibilities, not
7184         just the first one.
7185
7186 2008-09-25  Bruno Haible  <bruno@clisp.org>
7187
7188         * gnulib-tool (func_import): When computing the edits, consider not
7189         only the Makefile.ams that exist but also those that will be generated.
7190
7191 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7192
7193         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7194         fixes gnulib-tool --test warning about duplicate dependency.
7195
7196 2008-09-25  Bruno Haible  <bruno@clisp.org>
7197
7198         * gnulib-tool: Don't ask the user to perform edits in the generated
7199         Makefile.ams.
7200         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7201         apply to the Makefile.am being generated.
7202         (func_emit_tests_Makefile_am): Execute edits that apply to the
7203         Makefile.am being generated.
7204         (func_import): Setup list of Makefile.am edits before emitting the
7205         Makefile.ams, not at the end.
7206         (func_create_testdir): Update.
7207         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7208
7209 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7210
7211         * gnulib-tool (func_import): Store the --tests-base option in the
7212         comment in gnulib-cache.m4.
7213
7214 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7215
7216         * NEWS: Document increased portability that sys_select now provides.
7217
7218         * lib/sys_select.in.h: Install select wrapper.
7219         * lib/sys_socket.in.h: Use more descriptive name when there is no
7220         select wrapper.
7221         * lib/winsock-select.c: New.
7222         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7223         Require gl_HEADER_SYS_SOCKET.
7224         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7225         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7226         * tests/test-sys_select.c: Add functional tests.
7227
7228 2008-09-24  Eric Blake  <ebb9@byu.net>
7229
7230         open, fopen: close fd leak in last patch
7231         * lib/open.c (rpl_open): Close fd before returning error.
7232         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7233         * doc/posix-functions/open.texi (open): Document that Irix also
7234         has the bug.
7235         * doc/posix-functions/fopen.texi (fopen): Likewise.
7236         Reported by Paolo Bonzini.
7237
7238 2008-09-24  Bruno Haible  <bruno@clisp.org>
7239
7240         Ensure that a filename ending in a slash cannot be used to access a
7241         non-directory.
7242         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7243         to check whether it's really a directory.
7244         * lib/fopen.c: Include fcntl.h, unistd.h.
7245         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7246         and fdopen().
7247         * modules/fopen (Depends-on): Add unistd.
7248         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7249         * tests/test-fopen.c (main): Likewise.
7250         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7251         * doc/posix-functions/fopen.texi: Likewise.
7252         Reported by Eric Blake.
7253
7254 2008-09-23  Eric Blake  <ebb9@byu.net>
7255
7256         c-stack: avoid compiler optimizations when provoking overflow
7257         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7258         recursion harder to optimize, to ensure a stack overflow occurs.
7259         * tests/test-c-stack.c (recurse): Likewise.
7260         Borrowed from libsigsegv.
7261
7262         c-stack: work around Irix sigaltstack bug
7263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7264         whether sigaltstack uses wrong end of stack_t (copied in part from
7265         libsigsegv).
7266         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7267         Irix bug, without requiring an over-allocation.
7268         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7269         bug.
7270
7271         fopen: document mingw bug on directories
7272         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7273         not allowing a stream visiting a directory, even though reading
7274         from such a stream is not portable.
7275
7276 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7277
7278         * lib/poll.c: Rewrite.
7279         * modules/poll: Depend on alloca.
7280
7281 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7282
7283         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7284         instead define prototypes for a full set of wrappers.  Ensure
7285         that Cygwin does not use the compatibility code, which is only
7286         for MinGW.
7287         * lib/winsock.c: New.
7288         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7289         * modules/sys_socket: Add lib/winsock.c.
7290
7291         * modules/poll-tests: Add errno and perror.
7292         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7293
7294 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7295
7296         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7297
7298 2008-09-23  Bruno Haible  <bruno@clisp.org>
7299
7300         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7301         * doc/glibc-functions/*: Likewise.
7302
7303 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7304
7305         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7306         success.
7307
7308 2008-09-22  Eric Blake  <ebb9@byu.net>
7309             Bruno Haible  <bruno@clisp.org>
7310
7311         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7312         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7313         supply %A but mishandle pseudo-NaN.
7314         Reported by Simon Josefsson.
7315
7316 2008-09-21  Bruno Haible  <bruno@clisp.org>
7317
7318         * tests/test-lock.c (main): Tweak skip message.
7319         * tests/test-tls.c (main): Likewise.
7320
7321 2008-09-21  Bruno Haible  <bruno@clisp.org>
7322
7323         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7324         whether 'struct sigaction' has sa_sigaction here...
7325         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7326         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7327
7328 2008-09-21  Bruno Haible  <bruno@clisp.org>
7329
7330         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7331         section.
7332         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7333         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7334         the new section.
7335         (Support for obsolete systems lacking POSIX:2001): New section.
7336         (String handling <string.h>): Move strdup to the new section.
7337         Suggested by Simon Josefsson and Paolo Bonzini.
7338
7339 2008-09-21  Bruno Haible  <bruno@clisp.org>
7340
7341         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7342         exponents in %e and %g results on 'long double'. Needed for mingw's
7343         improved *printf functions.
7344         * tests/test-vasprintf-posix.c (test_function): Likewise.
7345         * tests/test-snprintf-posix.h (test_function): Likewise.
7346         * tests/test-sprintf-posix.h (test_function): Likewise.
7347         Reported by Eric Blake.
7348
7349 2008-09-21  Bruno Haible  <bruno@clisp.org>
7350
7351         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7352         * tests/test-sprintf-posix.h (test_function): Likewise.
7353
7354 2008-09-21  Bruno Haible  <bruno@clisp.org>
7355
7356         * modules/getpass (Depends-on): Add strdup-posix.
7357
7358         New module 'strdup-posix'.
7359         * modules/strdup-posix: New file.
7360         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7361         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7363         REPLACE_STRDUP.
7364         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7365         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7366         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7367         strdup-posix.
7368
7369         * modules/strdup (Depends-on): Remove malloc-posix.
7370
7371 2008-09-20  Bruno Haible  <bruno@clisp.org>
7372
7373         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7374         Wildenhues.
7375
7376 2008-09-20  Bruno Haible  <bruno@clisp.org>
7377
7378         Ensure that wint_t gets defined on IRIX 5.3.
7379         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7380         * lib/wctype.in.h (wint_t): Likewise.
7381         (__wctype_wint_t): Remove type.
7382         (isw*): Use wint_t instead of __wctype_wint_t.
7383         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7384         * modules/wchar (Files): Add m4/wint_t.m4.
7385         (Makefile.am): Substitute HAVE_WINT_T.
7386         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7387         * tests/test-wctype.c: Check that wint_t is defined.
7388         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7389         * doc/posix-headers/wctype.texi: Likewise.
7390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7391
7392 2008-09-18  Bruno Haible  <bruno@clisp.org>
7393
7394         * gnulib-tool (func_exit): Update comment.
7395
7396 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7397
7398         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7399         assumes strdup exists and does not depend on strdup to return
7400         ENOMEM on out of memory conditions.
7401
7402 2008-09-18  Bruno Haible  <bruno@clisp.org>
7403
7404         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7405         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7406         digits for the exponent.
7407
7408 2008-09-18  Jim Meyering  <meyering@redhat.com>
7409             Bruno Haible  <bruno@clisp.org>
7410
7411         * lib/vasnprintf.c (decimal_point_char): Define also if
7412         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7413
7414 2008-09-16  Bruno Haible  <bruno@clisp.org>
7415         and Eric Blake  <ebb9@byu.net>
7416
7417         vasnprintf: support Irix 5.3
7418         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7419         that mishandle long double infinity.
7420         Reported by Tom G. Christensen.
7421
7422 2008-09-16  Bruno Haible  <bruno@clisp.org>
7423
7424         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7425         Solaris 9.
7426         * doc/glibc-functions/alphasort.texi: Likewise.
7427         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7428
7429 2008-09-16  Jim Meyering  <meyering@redhat.com>
7430
7431         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7432         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7433         a umask modification leak out of a subshell.  Otherwise, the
7434         opensolaris /bin/sh would be accepted and thus cause unwarranted
7435         failures in the coreutils test suite.
7436
7437 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7438
7439         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7440         to succeed.
7441
7442 2008-09-16  Jim Meyering  <meyering@redhat.com>
7443
7444         avoid spurious test failure when library is built without ACL support
7445         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7446         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7447         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7448         * tests/test-copy-acl.sh: Likewise.
7449
7450 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7451
7452         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7453         based on character occurrence counts.
7454
7455 2008-09-15  Eric Blake  <ebb9@byu.net>
7456
7457         tests: avoid some compiler warnings
7458         * tests/test-memchr.c (main): Pass NULL indirectly.
7459         * tests/test-closein.c (main): Avoid unused variable.
7460
7461 2008-09-15  Bruno Haible  <bruno@clisp.org>
7462
7463         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7464         are missing on OpenBSD 4.0 individually.
7465         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7466
7467 2008-09-15  Bruno Haible  <bruno@clisp.org>
7468
7469         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7470         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7471         * doc/posix-functions/perror.texi: Likewise.
7472         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7473         is missing.
7474         Reported by Eric Blake.
7475
7476         * lib/errno.in.h: Use replacement values >= 2000.
7477         Reported by Eric Blake.
7478
7479 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7480
7481         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7482         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7483         limit.
7484         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7485         compareseq was aborted.
7486
7487 2008-09-14  Bruno Haible  <bruno@clisp.org>
7488
7489         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7490         yvec_edit_count.
7491         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7492         (fstrcmp_bounded): Simplify result computation accordingly.
7493
7494 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7495
7496         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7497         (fstrcmp): Define in terms of fstrcmp_bounded.
7498         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7499         lower_bound argument.
7500         Return quickly if the result is certainly < lower_bound.
7501         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7502
7503 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7504
7505         * lib/diffseq.h (EARLY_ABORT): New macro.
7506         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7507         evaluates to true.
7508
7509 2008-09-14  Bruno Haible  <bruno@clisp.org>
7510
7511         * modules/perror-tests: New file.
7512         * tests/test-perror.sh: New file.
7513         * tests/test-perror.c: New file.
7514
7515         New module 'perror'.
7516         * lib/stdio.in.h (perror): New declaration.
7517         * lib/perror.c: New file.
7518         * m4/perror.m4: New file.
7519         * modules/perror: New file.
7520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7521         * doc/posix-functions/perror.texi: Mention the perror module.
7522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7523         REPLACE_PERROR.
7524         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7525         REPLACE_PERROR.
7526
7527 2008-09-14  Bruno Haible  <bruno@clisp.org>
7528
7529         * modules/stdio (Makefile.am): Reorder to match the order in
7530         lib/stdio.in.h.
7531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7532
7533 2008-09-13  Bruno Haible  <bruno@clisp.org>
7534
7535         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7536
7537 2008-09-13  Bruno Haible  <bruno@clisp.org>
7538
7539         Extend strerror to cover the added errno values.
7540         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7541         (rpl_strerror): Provide error messages for the added errno values and
7542         for the WSA* values.
7543         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7544         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7545         strerror.
7546         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7547         * modules/strerror (Depends-on): Add errno.
7548         * doc/posix-functions/strerror.texi: Document the change.
7549         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7550         and EOVERFLOW.
7551
7552 2008-09-13  Bruno Haible  <bruno@clisp.org>
7553
7554         * modules/EOVERFLOW: Remove file.
7555         * m4/eoverflow.m4: Remove file.
7556         * modules/EOVERFLOW-tests: Remove file.
7557         * tests/test-EOVERFLOW.c: Remove file.
7558         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7559         * modules/ftell (Depends-on): Likewise.
7560         * modules/getdelim (Depends-on): Likewise.
7561         * modules/getugroups (Depends-on): Likewise.
7562         * modules/poll (Depends-on): Likewise.
7563         * modules/snprintf (Depends-on): Likewise.
7564         * modules/sprintf-posix (Depends-on): Likewise.
7565         * modules/vasnprintf (Depends-on): Likewise.
7566         * modules/vasprintf (Depends-on): Likewise.
7567         * modules/vfprintf-posix (Depends-on): Likewise.
7568         * modules/vsnprintf (Depends-on): Likewise.
7569         * modules/vsprintf-posix (Depends-on): Likewise.
7570         * modules/xvasprintf (Depends-on): Likewise.
7571         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7572         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7573         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7574         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7575         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7576         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7577         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7578         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7579         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7580         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7581         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7582         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7583         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7584         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7585         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7586         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7587         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7588         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7589         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7590         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7591         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7592         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7593         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7594         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7595         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7596         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7597         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7598         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7599         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7600         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7601         * MODULES.html.sh: Remove EOVERFLOW.
7602         * NEWS: Mention the change.
7603
7604 2008-09-13  Bruno Haible  <bruno@clisp.org>
7605
7606         * modules/errno-tests: New file.
7607         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7608
7609         * lib/errno.in.h: New file.
7610         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7611         * modules/errno: New file.
7612         * doc/posix-headers/errno.texi: Update documentation.
7613         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7614
7615 2008-09-13  Bruno Haible  <bruno@clisp.org>
7616
7617         * tests/test-poll.c: Use #if for native Windows, rather than testing
7618         __MSVCRT__.
7619
7620 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7621             Bruno Haible  <bruno@clisp.org>
7622
7623         * lib/glob.c: Don't include <pwd.h> on native Windows.
7624         (WINDOWS32): New macro.
7625         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7626
7627 2008-09-13  Bruno Haible  <bruno@clisp.org>
7628
7629         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7630         (ETIMEDOUT): Remove macro.
7631         (glthread_cond_timedwait_multithreaded): New declaration.
7632         (glthread_cond_timedwait): Use it.
7633         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7634         (glthread_cond_timedwait_multithreaded): New function.
7635
7636 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7637
7638         * modules/poll-tests: Do not check for io.h.
7639         * tests/test-poll.c: Check for __MSVCRT__ instead.
7640
7641 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7642
7643         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7644         * modules/poll-tests: Add inet_pton, stdbool, sockets.
7645         * tests/test-poll.c: Use them.  Use _pipe on Windows.
7646
7647 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7648
7649         * modules/poll-tests: New.
7650         * tests/test-poll.c: New.
7651
7652 2008-09-12  Eric Blake  <ebb9@byu.net>
7653
7654         frexp: test for NetBSD failure on -0.0
7655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7656         not all, bugs from NetBSD 3.0 have been fixed.
7657         * doc/posix-functions/frexp.texi (frexp): Document bug.
7658         Reported by Thomas Klausner.
7659
7660         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7661         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7662         literal -0.0.
7663         Reported by Jonathan C. Patschke <jp@centtech.com>.
7664
7665 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7666
7667         * lib/glthread/cond.h: Use dummy implementation also if
7668         USE_WIN32_THREADS.
7669
7670 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7671
7672         * modules/fnmatch-posix (License): Change to LGPLv2+.
7673         * modules/fnmatch-gnu (License): Likewise.
7674
7675 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7676
7677         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7678
7679 2008-09-11  Jim Meyering  <meyering@redhat.com>
7680
7681         * users.txt: Add gtk-vnc.
7682
7683 2008-09-08  Simon Josefsson  <simon@josefsson.org>
7684
7685         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7686         rotate amounts.
7687
7688         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7689         required for 16-bit and 8-bit rotates.
7690         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7691         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7692         UINT8_MAX instead of hard-coded constants.
7693         Suggested by Paul Eggert.
7694
7695 2008-09-07  Bruno Haible  <bruno@clisp.org>
7696
7697         * tests/test-striconveh.c (main): Check behaviour when converting from
7698         UTF-7.
7699
7700         Make striconveh work better with stateful encodings.
7701         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7702         that iconv does not increment the inptr when returning -1/EINVAL.
7703
7704 2008-09-07  Bruno Haible  <bruno@clisp.org>
7705
7706         * build-aux/config.rpath: Update according to libtool-2.2.6.
7707         * build-aux/config.libpath: Likewise.
7708
7709 2008-09-06  Bruno Haible  <bruno@clisp.org>
7710
7711         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7712         * lib/freadptr.c (freadptr): Likewise.
7713         * lib/freadseek.c (freadptrinc): Likewise.
7714         Reported by Simon Josefsson.
7715
7716 2008-09-06  Bruno Haible  <bruno@clisp.org>
7717
7718         * modules/freadptr (License): Change to LGPLv2+.
7719         * modules/freadseek (License): Likewise.
7720         Suggested by Eric Blake.
7721
7722         * modules/memchr2 (License): Change to LGPLv2+.
7723         Approved by Eric Blake.
7724
7725 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7726             Bruno Haible  <bruno@clisp.org>
7727
7728         Make gnulib-tool work with native 'sed' on AIX.
7729         * gnulib-tool (sed_noop): New variable.
7730         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7731         func_add_or_update, func_create_testdir): Use it to initialize sed
7732         script variables.
7733         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7734
7735 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
7736             Bruno Haible  <bruno@clisp.org>
7737
7738         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7739         also works after #include directives.
7740
7741 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
7742
7743         getdate.y: reject an out-of-range timezone value
7744         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
7745         the range [-24...+24].  When specified with only one or two digits,
7746         * tests/test-getdate.c: Tests for the fix.
7747         * doc/getdate.texi: Document this change.
7748
7749 2008-09-03  Bruno Haible  <bruno@clisp.org>
7750
7751         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
7752
7753 2008-09-02  Simon Josefsson  <simon@josefsson.org>
7754
7755         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
7756         <bruce.korb@gmail.com> with ideas from Ben Pfaff
7757         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
7758         Blake <ebb9@byu.net>.
7759
7760         * tests/test-bitrotate.c: Add more test vectors.
7761
7762 2008-09-02  Eric Blake  <ebb9@byu.net>
7763
7764         vasnprintf-posix: handle large precision via %.*d
7765         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
7766         when handling it ourselves.
7767         * tests/test-vasnprintf-posix.c (test_function): Add test.
7768         * tests/test-snprintf-posix.h (test_function): Likewise.
7769         * tests/test-sprintf-posix.h (test_function): Likewise.
7770         * tests/test-vasprintf-posix.c (test_function): Likewise.
7771         Reported by Alain Guibert.
7772
7773 2008-09-01  Eric Blake  <ebb9@byu.net>
7774
7775         c-stack: make configure-time check more robust
7776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
7777         successful sigaction call.
7778         Reported by Tom G. Christensen.
7779
7780 2008-09-01  Bruno Haible  <bruno@clisp.org>
7781
7782         New module 'findprog-lgpl'.
7783         * modules/findprog-lgpl: New file.
7784         * lib/findprog-lgpl.c: New file.
7785         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
7786         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
7787         to decide whether to use strdup or xstrdup, concatenated_filename or
7788         xconcatenated_filename.
7789
7790 2008-09-01  Bruno Haible  <bruno@clisp.org>
7791
7792         Split module 'concat-filename' into 'concat-filename' (LGPL) and
7793         'xconcat-filename' (GPL).
7794         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
7795         (License): Change to LGPLv2+.
7796         * modules/xconcat-filename: New file.
7797         * lib/concat-filename.h (concatenated_filename): Change specification.
7798         (xconcatenated_filename): New declaration.
7799         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
7800         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
7801         memory situations.
7802         * lib/xconcat-filename.c: New file.
7803         * NEWS: Mention the change.
7804         * lib/findprog.c: Include concat-filename.h, not filename.h.
7805         (find_in_path): Use xconcatenated_filename instead of
7806         concatenated_filename.
7807         * lib/javacomp.c: Include concat-filename.h, not filename.h.
7808         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7809         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7810         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7811         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
7812         instead of concatenated_filename.
7813         * lib/javaexec.c: Include concat-filename.h, not filename.h.
7814         (execute_java_class): Use xconcatenated_filename instead of
7815         concatenated_filename.
7816         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
7817         * modules/javacomp (Depends-on): Likewise.
7818         * modules/javaexec (Depends-on): Likewise.
7819
7820 2008-09-01  Bruno Haible  <bruno@clisp.org>
7821
7822         Split module 'filename' into 'filename' and 'concat-filename'.
7823         * modules/filename: Keep only lib/filename.h.
7824         (License): Change to LGPLv2+.
7825         * modules/concat-filename: New file, extracted from modules/filename.
7826         * lib/filename.h (concatenated_filename): Remove declaration.
7827         * lib/concat-filename.h: New file, extracted from lib/filename.h.
7828         * lib/concat-filename.c: Include concat-filename.h.
7829         * NEWS: Mention the change.
7830
7831 2008-09-01  Simon Josefsson  <simon@josefsson.org>
7832
7833         * lib/bitrotate.h (rotl8, rotr8): Add.
7834
7835         * modules/bitrotate (configure.ac): Need
7836         AC_REQUIRE([AC_C_INLINE]).
7837         (Description): Mention stdint.h.  Reported by Bruno Haible
7838         <bruno@clisp.org>.
7839
7840         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
7841         Paolo Bonzini <bonzini@gnu.org>.
7842
7843 2008-08-31  Bruno Haible  <bruno@clisp.org>
7844
7845         Assume Solaris specific bi-arch conventions on Solaris systems.
7846         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
7847         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
7848         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
7849         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
7850         like acl_libdirstem.
7851         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
7852         acl_libdirstem.
7853         * NEWS: Mention the change.
7854         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
7855
7856 2008-08-31  Jim Meyering  <meyering@redhat.com>
7857
7858         * lib/strftime.h: Add comments describing the two added arguments.
7859
7860         remove duplicate #include directives
7861         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
7862         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
7863
7864 2008-08-31  Bruno Haible  <bruno@clisp.org>
7865
7866         New module 'sigpipe-die'.
7867         * modules/sigpipe-die: New file.
7868         * lib/sigpipe-die.h: New file.
7869         * lib/sigpipe-die.c: New file.
7870         * MODULES.html.sh (Signal handling): Add sigpipe-die.
7871
7872 2008-08-31  Bruno Haible  <bruno@clisp.org>
7873
7874         Don't override previously installed signal handlers.
7875         * lib/fatal-signal.c (saved_sigactions): New variable.
7876         (uninstall_handlers): Reset the signal to the saved handler, not
7877         to SIG_DFL (except when ignored).
7878         (install_handlers): Save the previous handlers.
7879
7880 2008-08-30  Bruno Haible  <bruno@clisp.org>
7881
7882         * gnulib-tool (func_reset_sigpipe): New function.
7883         (func_get_automake_snippet, func_modules_transitive_closure,
7884         func_import): Invoke it before a join command that reads from stdin,
7885         to avoid "echo: write error: Broken pipe" error messages on stderr.
7886         Reported by Sam Steingold <sds@gnu.org>.
7887
7888 2008-08-30  Bruno Haible  <bruno@clisp.org>
7889
7890         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
7891         Code copied from m4/open.m4.
7892         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
7893         access and the filename ends in a slash. Code copied from lib/open.c.
7894         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
7895         * tests/test-fopen.c (main): Check against bug with trailing slash.
7896
7897 2008-08-29  Bruno Haible  <bruno@clisp.org>
7898
7899         Avoid some "gcc -pedantic" warnings.
7900         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
7901         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
7902         * lib/dirent.in.h: Likewise.
7903         * lib/fcntl.in.h: Likewise.
7904         * lib/float.in.h: Likewise.
7905         * lib/iconv.in.h: Likewise.
7906         * lib/inttypes.in.h: Likewise.
7907         * lib/locale.in.h: Likewise.
7908         * lib/math.in.h: Likewise.
7909         * lib/netinet_in.in.h: Likewise.
7910         * lib/search.in.h: Likewise.
7911         * lib/signal.in.h: Likewise.
7912         * lib/stdarg.in.h: Likewise.
7913         * lib/stdint.in.h: Likewise.
7914         * lib/stdio.in.h: Likewise.
7915         * lib/stdlib.in.h: Likewise.
7916         * lib/string.in.h: Likewise.
7917         * lib/strings.in.h: Likewise.
7918         * lib/sys_select.in.h: Likewise.
7919         * lib/sys_socket.in.h: Likewise.
7920         * lib/sys_stat.in.h: Likewise.
7921         * lib/sys_time.in.h: Likewise.
7922         * lib/sysexits.in.h: Likewise.
7923         * lib/time.in.h: Likewise.
7924         * lib/unistd.in.h: Likewise.
7925         * lib/wchar.in.h: Likewise.
7926         * lib/wctype.in.h: Likewise.
7927         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
7928         * modules/fchdir (Makefile.am): Likewise.
7929         * modules/fcntl (Makefile.am): Likewise.
7930         * modules/float (Makefile.am): Likewise.
7931         * modules/iconv_open (Makefile.am): Likewise.
7932         * modules/inttypes (Makefile.am): Likewise.
7933         * modules/locale (Makefile.am): Likewise.
7934         * modules/math (Makefile.am): Likewise.
7935         * modules/netinet_in (Makefile.am): Likewise.
7936         * modules/search (Makefile.am): Likewise.
7937         * modules/signal (Makefile.am): Likewise.
7938         * modules/stdarg (Makefile.am): Likewise.
7939         * modules/stdint (Makefile.am): Likewise.
7940         * modules/stdio (Makefile.am): Likewise.
7941         * modules/stdlib (Makefile.am): Likewise.
7942         * modules/string (Makefile.am): Likewise.
7943         * modules/strings (Makefile.am): Likewise.
7944         * modules/sys_select (Makefile.am): Likewise.
7945         * modules/sys_socket (Makefile.am): Likewise.
7946         * modules/sys_stat (Makefile.am): Likewise.
7947         * modules/sys_time (Makefile.am): Likewise.
7948         * modules/sysexits (Makefile.am): Likewise.
7949         * modules/time (Makefile.am): Likewise.
7950         * modules/unistd (Makefile.am): Likewise.
7951         * modules/wchar (Makefile.am): Likewise.
7952         * modules/wctype (Makefile.am): Likewise.
7953         Reported by Reuben Thomas <rrt@sc3d.org>.
7954
7955 2008-08-29  Bruno Haible  <bruno@clisp.org>
7956
7957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
7958         any more.
7959
7960 2008-08-29  Simon Josefsson  <simon@josefsson.org>
7961
7962         * MODULES.html.sh (Misc): Add bitrotate.
7963
7964         * modules/bitrotate: New file.
7965
7966         * lib/bitrotate.h: New file.
7967
7968         * modules/bitrotate-tests: New file.
7969
7970         * tests/test-bitrotate.c: New file.
7971
7972         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
7973         on the bitrotate module.
7974
7975         * lib/arctwo.c: Use new bitrotate module.
7976
7977 2008-08-29  Jim Meyering  <meyering@redhat.com>
7978
7979         bootstrap: merge changes from coreutils
7980         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
7981         of copied files.  Remove a kludge, now that this is fixed.
7982         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
7983         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
7984         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
7985
7986 2008-08-29  Bruno Haible  <bruno@clisp.org>
7987
7988         * MODULES.html.sh: Remove --cvs-urls option.
7989
7990 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
7991
7992         maint.mk: adjust to file name change
7993         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
7994
7995 2008-08-28  Jim Meyering  <meyering@redhat.com>
7996
7997         * modules/getndelim2 (License): Relicense to LGPLv2+.
7998         Approved by Richard Stallman for the version of 1995, and by
7999         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8000
8001 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8002
8003         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8004         dummy if one is not available.  Do not touch them if
8005         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8006         (getc_maybe_unlocked): New.
8007         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8008
8009 2008-08-26  Eric Blake  <ebb9@byu.net>
8010
8011         doc/INSTALL: resync from autoconf
8012         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8013         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8014         moving...
8015         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8016         * INSTALL: Regenerate.
8017         * INSTALL.ISO: New file.
8018         * INSTALL.UTF-8: Likewise.
8019
8020 2008-08-26  Jim Meyering  <meyering@redhat.com>
8021
8022         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8023         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8024         these definitions conditional, so that they may be overridden, too.
8025
8026 2008-08-26  Bruno Haible  <bruno@clisp.org>
8027
8028         Generate INSTALL file variants with prettier quotes.
8029         * doc/Makefile (INSTALL_PRELUDE): New macro.
8030         (INSTALL): Use it.
8031         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8032
8033 2008-08-26  Bruno Haible  <bruno@clisp.org>
8034
8035         Run makeinfo in an English locale.
8036         * doc/Makefile (MAKEINFO): New variable.
8037
8038 2008-08-26  Bruno Haible  <bruno@clisp.org>
8039
8040         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8041         Suggested by Eric Blake.
8042
8043 2008-08-25  Bruno Haible  <bruno@clisp.org>
8044
8045         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8046
8047 2008-08-25  Eric Blake  <ebb9@byu.net>
8048
8049         c-stack: test that stack overflow can be caught
8050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8051         that platform allows handling stack overflow; at least OS/2 EMX
8052         has sigaltstack, but crashes before transferring control to
8053         handler on stack overflow.
8054         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8055         check for HAVE_STACK_OVERFLOW_HANDLING.
8056         Reported by Elbert Pol.
8057
8058 2008-08-25  Bruno Haible  <bruno@clisp.org>
8059
8060         * doc/posix-functions/strftime.texi: Fix description of strftime
8061         module.
8062
8063 2008-08-24  Bruno Haible  <bruno@clisp.org>
8064
8065         * tests/uniwidth/test-uc_width2.c: New file.
8066         * tests/uniwidth/test-uc_width2.sh: New file.
8067         * modules/uniwidth/width-tests (Files): Add the new files.
8068         (TESTS): Add uniwidth/test-uc_width2.sh.
8069         (TESTS_ENVIRONMENT): New variable.
8070         (check_PROGRAMS): Add test-uc_width2.
8071         (test_uc_width2_SOURCES): New variable.
8072
8073         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8074         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8075         not 0x00AB.
8076         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8077
8078 2008-08-22  Eric Blake  <ebb9@byu.net>
8079
8080         test-lock, test-tls: mention why a test is skipped
8081         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8082         skipped.
8083         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8084
8085         count-one-bits: relax license
8086         * modules/count-one-bits (License): Relicense to LGPLv2+.
8087         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8088
8089 2008-08-22  Andreas Schwab  <schwab@suse.de>
8090
8091         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8092         Remove spurious space in assignment.
8093
8094 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8095
8096         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8097         Paul Eggert <eggert@CS.UCLA.EDU>.
8098
8099 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8100
8101         * modules/gettext: Add m4/threadlib.m4.
8102
8103 2008-08-19  Eric Blake  <ebb9@byu.net>
8104
8105         test-c-stack: fix compilation failure on FreeBSD 5.0
8106         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8107         headers before <sys/resource.h>.
8108         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8109         the bug.
8110         Reported by Nelson H. F. Beebe.
8111
8112         strverscmp: migrate from "strverscmp.h" to <string.h>
8113         * modules/string (Makefile.am): Add new hooks.
8114         * modules/strverscmp (Files): Remove strverscmp.h.
8115         (Depends-on): Add string.
8116         (configure.ac): Add indicator.
8117         (Include): Mention new header.
8118         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8119         defaults.
8120         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8121         results.
8122         * lib/strverscmp.h: Delete.
8123         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8124         * tests/test-strverscmp.c (includes): Adjust client.
8125         * lib/check-version.c (includes): Likewise.
8126         * NEWS: Document the change.
8127
8128         strverscmp: add unit test
8129         * modules/strverscmp-tests: New file.
8130         * tests/test-strverscmp.c: Likewise.
8131
8132 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8133
8134         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8135         regarding Windows crypto stuff, from Mono.
8136
8137 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8138
8139         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8140         if present, for intel RND.  Return error on failures.
8141
8142 2008-08-18  Ben Pfaff  <blp@gnu.org>
8143
8144         gitlog-to-changelog: give better diagnostic for failed pipe-open
8145         * build-aux/gitlog-to-changelog: Improve error message: suggest
8146         that the version of Git may be too old.
8147
8148 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8149
8150         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8151         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8152
8153 2008-08-18  Bruno Haible  <bruno@clisp.org>
8154
8155         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8156         pthread_in_use().
8157
8158 2008-08-18  Bruno Haible  <bruno@clisp.org>
8159
8160         * lib/glthread/threadlib.c: Include <pthread.h>.
8161
8162 2008-08-18  Bruno Haible  <bruno@clisp.org>
8163
8164         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8165         glthread_recursive_lock_* macros.
8166         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8167         Fix syntax error.
8168
8169 2008-08-18  Bruno Haible  <bruno@clisp.org>
8170
8171         * lib/glthread/thread.c: Avoid forcing a context switch right after
8172         thread creation.
8173
8174 2008-08-17  Bruno Haible  <bruno@clisp.org>
8175
8176         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8177         * lib/glthread/thread.h: Provide Win32 specific implementation.
8178         * modules/thread (Files): Add lib/glthread/thread.c.
8179         (Depends-on): Add lock.
8180         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8181
8182 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8183
8184         New module 'yield'.
8185         * modules/yield: New file.
8186         * lib/glthread/yield.h: New file.
8187         * m4/yield.m4: New file.
8188         * MODULES.html.sh (Multithreading): Add yield.
8189
8190 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8191
8192         New module 'thread'.
8193         * modules/thread: New file.
8194         * lib/glthread/thread.h: New file.
8195         * m4/thread.m4: New file.
8196         * MODULES.html.sh (Multithreading): Add thread.
8197
8198 2008-08-17  Bruno Haible  <bruno@clisp.org>
8199
8200         * lib/glthread/lock.h: Include <stdlib.h> always.
8201         * lib/glthread/tls.h: Likewise.
8202         * lib/glthread/cond.h: Likewise.
8203
8204 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8205
8206         New module 'cond'.
8207         * modules/cond: New file.
8208         * lib/glthread/cond.h: New file.
8209         * lib/glthread/cond.c: New file.
8210         * m4/cond.m4: New file.
8211         * MODULES.html.sh (Multithreading): Add cond.
8212
8213 2008-08-16  Eric Blake  <ebb9@byu.net>
8214
8215         c-stack: fix regression on Irix 5.3 from 2008-06-21
8216         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8217         sa_sigaction...
8218         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8219         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8220         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8221         * modules/signal (Makefile.am): Use the value.
8222         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8223         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8224         * doc/posix-headers/signal.texi (signal.h): Document this
8225         portability issue.
8226         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8227         Reported by Tom G. Christensen.
8228
8229 2008-08-17  Bruno Haible  <bruno@clisp.org>
8230
8231         New module 'threadlib'.
8232         * modules/threadlib: New file.
8233         * lib/glthread/threadlib.c: New file, extracted from
8234         lib/glthread/lock.c.
8235         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8236         functions.
8237         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8238         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8239         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8240         macros.
8241         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8242         (gl_DISABLE_THREADS): Remove macro.
8243         * modules/lock (Files): Remove build-aux/config.rpath.
8244         (Depends-on): Remove havelib. Add threadlib.
8245         (configure.ac-early): Remove section.
8246         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8247         * modules/tls (Depends-on): Remove lock. Add threadlib.
8248         (Link): New section, copied from threadlib.
8249         * MODULES.html.sh (Multithreading): Add threadlib.
8250
8251 2008-08-14  Bruno Haible  <bruno@clisp.org>
8252
8253         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8254         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8255         glthread_rwlock_unlock, glthread_rwlock_destroy,
8256         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8257         glthread_recursive_lock_destroy): Define as macros always.
8258         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8259         glthread_lock_lock.
8260         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8261         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8262         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8263         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8264         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8265         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8266         (glthread_recursive_lock_lock_func): Renamed from
8267         glthread_recursive_lock_lock.
8268         (glthread_recursive_lock_unlock_func): Renamed from
8269         glthread_recursive_lock_unlock.
8270         (glthread_recursive_lock_destroy_func): Renamed from
8271         glthread_recursive_lock_destroy.
8272
8273 2008-08-14  Bruno Haible  <bruno@clisp.org>
8274
8275         * lib/glthread/lock.h: Renamed from lib/lock.h.
8276         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8277         * lib/glthread/tls.h: Renamed from lib/tls.h.
8278         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8279         * lib/fstrcmp.c: Update includes.
8280         * lib/strsignal.c: Update includes.
8281         * modules/lock (Files, Makefile.am): Update.
8282         (Include): Change to "glthread/lock.h".
8283         * modules/tls (Files, Makefile.am): Update.
8284         (Include): Change to "glthread/tls.h".
8285         * tests/test-lock.c: Update includes.
8286         * tests/test-tls.c: Update includes.
8287         * NEWS: Mention the renamed header files.
8288
8289 2008-08-11  Jim Meyering  <meyering@redhat.com>
8290
8291         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8292
8293 2008-08-11  Eric Blake  <ebb9@byu.net>
8294
8295         test-c-stack: avoid C99-ism
8296         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8297         before statement.
8298         Reported by Alain Guibert.
8299
8300 2008-08-10  Jim Meyering  <meyering@redhat.com>
8301
8302         ensure that return value of uinttostr et al are not ignored
8303         * lib/inttostr.h (__GNUC_PREREQ): Define.
8304         (__attribute_warn_unused_result__): Define.
8305         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8306
8307 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8308
8309         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8310         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8311
8312 2008-08-07  Jim Meyering  <meyering@redhat.com>
8313
8314         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8315
8316         * modules/mkstemp (License): Relicense under LGPLv2+.
8317         * modules/tempname (License): Likewise.
8318
8319 2008-08-06  Bruno Haible  <bruno@clisp.org>
8320
8321         * lib/poll.c (poll): Further micro-optimization.
8322
8323 2008-08-06  Jim Meyering  <meyering@redhat.com>
8324
8325         inet_pton.c: use locale-independent tolower
8326         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8327         (inet_pton6): Use c_tolower rather than tolower.
8328         * modules/inet_pton (Depends-on): Add c-ctype.
8329
8330 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8331
8332         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8333         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8334
8335 2008-08-06  Jim Meyering  <meyering@redhat.com>
8336
8337         * modules/inet_pton (License): Relicense under LGPLv2+.
8338
8339 2008-08-03  Bruno Haible  <bruno@clisp.org>
8340
8341         Additional non-aborting API for lock and tls.
8342         * lib/lock.h: Include <errno.h>.
8343         (glthread_lock_init): New macro/function.
8344         (gl_lock_init): Define as wrapper around glthread_lock_init.
8345         (glthread_lock_lock): New macro/function.
8346         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8347         (glthread_lock_unlock): New macro/function.
8348         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8349         (glthread_lock_destroy): New macro/function.
8350         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8351         (glthread_rwlock_init): New macro/function.
8352         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8353         (glthread_rwlock_rdlock): New macro/function.
8354         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8355         (glthread_rwlock_wrlock): New macro/function.
8356         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8357         (glthread_rwlock_unlock): New macro/function.
8358         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8359         (glthread_rwlock_destroy): New macro/function.
8360         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8361         (glthread_recursive_lock_init): New macro/function.
8362         (gl_recursive_lock_init): Define as wrapper around
8363         glthread_recursive_lock_init.
8364         (glthread_recursive_lock_lock): New macro/function.
8365         (gl_recursive_lock_lock): Define as wrapper around
8366         glthread_recursive_lock_lock.
8367         (glthread_recursive_lock_unlock): New macro/function.
8368         (gl_recursive_lock_unlock): Define as wrapper around
8369         glthread_recursive_lock_unlock.
8370         (glthread_recursive_lock_destroy): New macro/function.
8371         (gl_recursive_lock_destroy): Define as wrapper around
8372         glthread_recursive_lock_destroy.
8373         (glthread_once): New macro/function.
8374         (gl_once): Define as wrapper around glthread_once.
8375         Update function declarations.
8376         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8377         glthread_rwlock_init. Return error code.
8378         (glthread_rwlock_rdlock_multithreaded): Renamed from
8379         glthread_rwlock_rdlock. Return error code.
8380         (glthread_rwlock_wrlock_multithreaded): Renamed from
8381         glthread_rwlock_wrlock. Return error code.
8382         (glthread_rwlock_unlock_multithreaded): Renamed from
8383         glthread_rwlock_unlock. Return error code.
8384         (glthread_rwlock_destroy_multithreaded): Renamed from
8385         glthread_rwlock_destroy. Return error code.
8386         (glthread_recursive_lock_init_multithreaded): Renamed from
8387         glthread_recursive_lock_init. Return error code.
8388         (glthread_recursive_lock_lock_multithreaded): Renamed from
8389         glthread_recursive_lock_lock. Return error code.
8390         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8391         glthread_recursive_lock_unlock. Return error code.
8392         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8393         glthread_recursive_lock_destroy. Return error code.
8394         (glthread_once_call): Make static.
8395         (glthread_once_multithreaded): Renamed from glthread_once.
8396         * lib/tls.h: Include <errno.h>.
8397         (glthread_tls_key_init): New macro/function.
8398         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8399         (glthread_tls_set): New macro/function.
8400         (gl_tls_set): Define as wrapper around glthread_tls_set.
8401         (glthread_tls_key_destroy): New macro/function.
8402         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8403         Update function declarations.
8404         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8405         glthread_tls_get.
8406         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8407
8408 2008-08-04  Eric Blake  <ebb9@byu.net>
8409
8410         gnumakefile: use space, not TAB, outside of targets
8411         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8412
8413 2008-08-02  Jim Meyering  <meyering@redhat.com>
8414
8415         getdate.y: avoid locale-dependent date parsing failure
8416         In Turkish locales, getdate would fail to recognize keywords
8417         containing a lowercase "i".  The solution is not to rely on
8418         locale-sensitive case-conversion.
8419         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8420         (lookup_word): Use c_toupper in place of toupper.
8421         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8422         Reported by Vefa Bicakci <bicave@superonline.com> in
8423         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8424         * modules/getdate (Depends-on): Add c-ctype.
8425
8426 2008-08-02  Bruno Haible  <bruno@clisp.org>
8427
8428         * gnulib-tool (func_import): When updating or creating a .gitignore
8429         file, prepend each added line with a slash, and ignore leading slashes
8430         from the existing lines.
8431         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8432
8433 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8434
8435         Portability fix for GNU make 3.79.1.
8436         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8437         versions do not understand.
8438
8439 2008-08-01  Bruno Haible  <bruno@clisp.org>
8440
8441         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8442         * tests/test-isnanf.h (zero): New variable.
8443         (main): Avoid literal -0.0f.
8444         * tests/test-isnand.h (zero): New variable.
8445         (main): Avoid literal -0.0.
8446         * tests/test-isnanl.h (zero): New variable.
8447         (main): Avoid literal -0.0L.
8448         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8449         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8450         -0.0, -0.0L.
8451         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8452         (test_signbitd): Avoid literal -0.0.
8453         (test_signbitl): Avoid literal -0.0L.
8454         * tests/test-ceilf1.c (zero): New variable.
8455         (main): Avoid literal -0.0f.
8456         * tests/test-ceill.c (zero): New variable.
8457         (main): Avoid literal -0.0L.
8458         * tests/test-floorf1.c (zero): New variable.
8459         (main): Avoid literal -0.0f.
8460         * tests/test-floorl.c (zero): New variable.
8461         (main): Avoid literal -0.0L.
8462         * tests/test-roundf1.c (zero): New variable.
8463         (main): Avoid literal -0.0f.
8464         * tests/test-round1.c (zero): New variable.
8465         (main): Avoid literal -0.0.
8466         * tests/test-roundl.c (zero): New variable.
8467         (main): Avoid literal -0.0L.
8468         * tests/test-truncf1.c (zero): New variable.
8469         (main): Avoid literal -0.0f.
8470         * tests/test-trunc1.c (zero): New variable.
8471         (main): Avoid literal -0.0.
8472         * tests/test-truncl.c (zero): New variable.
8473         (main): Avoid literal -0.0L.
8474         * tests/test-frexp.c (zero): New variable.
8475         (main): Avoid literal -0.0.
8476         * tests/test-frexpl.c (zero): New variable.
8477         (main): Avoid literal -0.0L.
8478         * tests/test-ldexpl.c (zero): New variable.
8479         (main): Avoid literal -0.0L.
8480         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8481         (zerod, zerol): New variables.
8482         (test_function): Avoid literals -0.0, -0.0L.
8483         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8484         (zerod, zerol): New variables.
8485         (test_function): Avoid literals -0.0, -0.0L.
8486         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8487         (zerod, zerol): New variables.
8488         (test_function): Avoid literals -0.0, -0.0L.
8489         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8490         (zerod, zerol): New variables.
8491         (test_function): Avoid literals -0.0, -0.0L.
8492         * tests/test-strtod.c (zero): New variable.
8493         (main): Avoid literal -0.0.
8494         Reported by Jonathan C. Patschke <jp@centtech.com>.
8495
8496 2008-07-31  Jim Meyering  <meyering@redhat.com>
8497
8498         sha256.h: correct definition of SHA224_DIGEST_SIZE
8499         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8500         Reported by Paulie Pena IV <paulie4@gmail.com>.
8501         Define as 224 / 8, rather than as a literal.
8502         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8503         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8504         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8505
8506 2008-07-31  Bruno Haible  <bruno@clisp.org>
8507
8508         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8509         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8510         Reported by Jonathan Patschke <jp@centtech.com>.
8511
8512 2008-07-31  Bruno Haible  <bruno@clisp.org>
8513
8514         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8515         Reported by Paolo Bonzini <bonzini@gnu.org>.
8516
8517 2008-07-30  Eric Blake  <ebb9@byu.net>
8518
8519         test-strtod: allow compilation without -lm
8520         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8521         Reported by Dennis Clarke <blastwave@gmail.com>.
8522
8523 2008-07-28  Jim Meyering  <meyering@redhat.com>
8524
8525         bootstrap: work also when there are no .po files in po/
8526         * build-aux/bootstrap (update_po_files): Complete the change
8527         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8528
8529 2008-07-27  Jim Meyering  <meyering@redhat.com>
8530
8531         * users.txt: Add zile.
8532
8533 2008-07-26  Ben Pfaff  <blp@gnu.org>
8534
8535         Add missing dependencies on new m4/exponent[fdl].m4 files.
8536         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8537         * modules/isnand-nolibm: Add m4/exponentd.m4.
8538         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8539         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8540         m4/isnan[fdl].m4, because the macros actually used moved.
8541         Reported by Jim Meyering.
8542
8543 2008-07-14  Ben Pfaff  <blp@gnu.org>
8544
8545         Add isinf module.
8546         * lib/isinf.c: New file.
8547         * lib/math.in.h: Define isinf macro if we have decided to replace
8548         it.
8549         * m4/isinf.m4: New file.
8550         * m4/math_h.m4: Initialize and substitute variables for isinf
8551         module.
8552         * modules/isinf: New file.
8553         * modules/isinf-tests: New file.
8554         * modules/math: Add substitutions for new module.
8555         * tests/test-isinf.c: New file.
8556         * doc/posix-functions/isinf.texi: Mention new module.
8557         * MODULES.html.sh: Mention new module.
8558
8559 2008-07-14  Ben Pfaff  <blp@gnu.org>
8560
8561         Factor out some macros for use by additional modules.
8562         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8563         exponentf.m4.
8564         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8565         exponentd.m4.
8566         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8567         file exponentl.m4.
8568         * m4/exponentf.m4: New file.
8569         * m4/exponentd.m4: New file.
8570         * m4/exponentl.m4: New file.
8571         * modules/isnanf: Use new file m4/exponentf.m4.
8572         * modules/isnand: Use new file m4/exponentd.m4.
8573         * modules/isnanl: Use new file m4/exponentl.m4.
8574
8575 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8576
8577         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8578         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8579         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8580         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8581
8582         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8583         readlink on platforms without PATH_MAX.
8584
8585 2008-07-21  Eric Blake  <ebb9@byu.net>
8586
8587         Warn, not fail, on stale version.
8588         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8589
8590         Don't allow installation with stale devel version number.
8591         * top/GNUmakefile (_is-install-target): New macro.
8592         (_curr-ver): Forbid installation with stale version number.
8593
8594 2008-07-20  Bruno Haible  <bruno@clisp.org>
8595
8596         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8597         TESTS_ENVIRONMENT.
8598         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8599
8600 2008-07-20  Bruno Haible  <bruno@clisp.org>
8601
8602         * lib/c-stack.h (c_stack_action): Add documentation.
8603         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8604
8605 2008-07-20  Bruno Haible  <bruno@clisp.org>
8606
8607         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8608         * modules/readlink (License): Likewise.
8609
8610 2008-07-17  Eric Blake  <ebb9@byu.net>
8611
8612         * modules/c-stack (Link): Fix typo.
8613
8614         Make c-stack use libsigsegv, when available.
8615         * modules/c-stack (Depends-on): Add libsigsegv.
8616         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8617         needed.
8618         * lib/c-stack.c (SIGSTKSZ): Define fallback.
8619         (segv_handler, overflow_handler, c_stack_action)
8620         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8621         implementation when libsigsegv is available, but only when using
8622         the library is necessary.
8623         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8624         comment, explaining why XSI check fails on Linux.
8625         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8626         * tests/test-c-stack2.sh: Tweak skip message.
8627         * NEWS: Document new link-time requirements.
8628
8629 2008-07-16  Eric Blake  <ebb9@byu.net>
8630
8631         c-stack: Expose false positives when not using libsigsegv.
8632         * modules/c-stack-tests (Files): Expand test.
8633         * tests/test-c-stack.c (main): Add means to conditionally trigger
8634         non-overflow SIGSEGV.
8635         * tests/test-c-stack2.sh: New file.
8636
8637 2008-07-14  Bruno Haible  <bruno@clisp.org>
8638
8639         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8640         Reported by Eric Blake.
8641
8642 2008-07-14  Sam Steingold  <sds@gnu.org>
8643             Bruno Haible  <bruno@clisp.org>
8644
8645         New module libsigsegv.
8646         * modules/libsigsegv: New file.
8647         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8648         modifications.
8649         * MODULES.html.sh (Signal handling): New section.
8650
8651 2008-07-14  Bruno Haible  <bruno@clisp.org>
8652
8653         * modules/unictype/ctype-* (Description): Add the word "function".
8654         Improves the resulting doc in MODULES.html.
8655
8656 2008-07-12  Ben Pfaff  <blp@gnu.org>
8657
8658         Add longlong module.
8659         * modules/longlong: New file.
8660
8661 2008-07-12  Bruno Haible  <bruno@clisp.org>
8662
8663         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8664         to empty.
8665
8666 2008-07-10  Ben Pfaff  <blp@gnu.org>
8667
8668         Add isnan module.
8669         * doc/posix-functions/isnan.texi: Mention new module.
8670         * lib/math.in.h: Define isnan macro if we have decided to replace
8671         it.
8672         * m4/isnan.m4: New file.
8673         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8674         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8675         also.
8676         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8677         redundancy.
8678         * m4/math_h.m4: Initialize and substitute variables for isnan
8679         module.
8680         * modules/isnan: New file.
8681         * modules/isnan-tests: New file.
8682         * modules/math: Add substitutions for new module.
8683         * tests/test-isnan.c: New file.
8684         * MODULES.html.sh: Mention new module.
8685
8686 2008-07-10  Ben Pfaff  <blp@gnu.org>
8687
8688         Add isnanf module.
8689         * lib/isnanf.m4: New file.
8690         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8691         (gl_HAVE_ISNANF_IN_LIBM): New macro.
8692         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8693         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8694         * modules/isnanf: New file.
8695         * modules/isnanf-tests: New file.
8696         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8697         files.
8698         * tests/test-isnanf-nolibm.c: factored most of its contents into
8699         new file tests/test-isnanf.h.
8700         * tests/test-isnanf.h: New file.
8701         * tests/test-isnanf.c: New file.
8702         * MODULES.html.sh: Mention new module.
8703         * doc/glibc-functions/isnanf.texi: Mention new module.
8704
8705 2008-07-10  Ben Pfaff  <blp@gnu.org>
8706
8707         Add isnand module.
8708         * lib/isnand.h: New file.
8709         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8710         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8711         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8712         functionality also.
8713         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8714         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8715         (gl_HAVE_ISNAND_IN_LIBM): New macro.
8716         * modules/isnand: New file.
8717         * modules/isnand-tests: New file.
8718         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8719         files.
8720         * tests/test-isnand-nolibm.c: factored most of its contents into
8721         new file tests/test-isnand.h.
8722         * tests/test-isnand.h: New file.
8723         * tests/test-isnand.c: New file.
8724         * MODULES.html.sh: Mention new module.
8725
8726 2008-07-10  Ben Pfaff  <blp@gnu.org>
8727
8728         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8729         * lib/isnand.h: Rename lib/isnand-nolibm.h.
8730         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8731         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8732         * modules/isnanf-nolibm: Update references to renamed files.
8733         * modules/isnand-nolibm: Likewise.
8734         * modules/isnanf-nolibm-tests: Likewise.
8735         * modules/isnand-nolibm-tests: Likewise.
8736         * lib/frexp.c: Likewise.
8737         * lib/isfinite.c: Likewise.
8738         * lib/signbitd.c: Likewise.
8739         * lib/signbitf.c: Likewise.
8740         * lib/vasnprintf.c: Likewise.
8741         * tests/test-ceilf1.c: Likewise.
8742         * tests/test-ceilf2.c: Likewise.
8743         * tests/test-floorf1.c: Likewise.
8744         * tests/test-floorf2.c: Likewise.
8745         * tests/test-frexp.c: Likewise.
8746         * tests/test-round1.c: Likewise.
8747         * tests/test-round2.c: Likewise.
8748         * tests/test-roundf1.c: Likewise.
8749         * tests/test-strtod.c: Likewise.
8750         * tests/test-trunc1.c: Likewise.
8751         * tests/test-trunc2.c: Likewise.
8752         * tests/test-truncf1.c: Likewise.
8753         * tests/test-truncf2.c: Likewise.
8754         * NEWS: Mention the renamed header files.
8755
8756 2008-07-11  Jim Meyering  <meyering@redhat.com>
8757
8758         vc-list-files: make the last-resort awk code more portable
8759         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
8760         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
8761         does not support it.
8762
8763 2008-07-10  Eric Blake  <ebb9@byu.net>
8764
8765         Work with tar's bootstrap.
8766         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
8767         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
8768         an m4 comment.
8769
8770 2008-07-09  Jim Meyering  <meyering@redhat.com>
8771
8772         posix-shell.m4: fix typo that made this test malfunction
8773         * m4/posix-shell.m4: Remove capitalization in variable name.
8774
8775 2008-07-08  Bruno Haible  <bruno@clisp.org>
8776
8777         * m4/onceonly.m4: Update comments.
8778         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8779
8780 2008-07-04  Jim Meyering  <meyering@redhat.com>
8781
8782         * users.txt: Add vc-dwim.
8783         (bison, coreutils): Use the gitweb URL.
8784
8785 2008-07-03  Jim Meyering  <meyering@redhat.com>
8786
8787         * users.txt: Add libffcall.  From Sam Steingold.
8788
8789 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
8790
8791         getdate.y: do not ignore TZ with relative day, month or year offset
8792         * lib/getdate.y (get_date): Move the tz-handling block to follow the
8793         relative-date-handling, since otherwise, the latter would clobber the
8794         sole output (an updated Start value) of the tz-handling block.
8795         * tests/test-getdate.c: Tests for the fix
8796
8797 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8798
8799         Recognize 'foo_LIBRARIES += libgnu.a'.
8800         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
8801         makefile snippet has already specified an installation location,
8802         also using '+='.
8803
8804 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
8805
8806         getdate.y: factor out common actions
8807         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
8808         Use them in place of open-coded actions.
8809
8810 2008-07-01  Simon Josefsson  <simon@josefsson.org>
8811
8812         Add self-test for getdate module.
8813         * modules/getdate-tests: New file.
8814         * tests/test-getdate.c: New file.
8815
8816 2008-06-29  Bruno Haible  <bruno@clisp.org>
8817
8818         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
8819         .gitignore.
8820         Reported by Sylvain Beucler <beuc@beuc.net>.
8821
8822 2008-06-29  Bruno Haible  <bruno@clisp.org>
8823
8824         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
8825         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
8826
8827 2008-06-29  Bruno Haible  <bruno@clisp.org>
8828
8829         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
8830         EXTRA_DIST.
8831         Reported by Sylvain Beucler <beuc@beuc.net>.
8832
8833 2008-06-26  Jim Meyering  <meyering@redhat.com>
8834
8835         make several modules depend on the "open" module
8836         This provides slightly increased consistency when opening-for-write
8837         the name of a non-directory spelled with a trailing slash.
8838         * modules/chdir-safer: Likewise.
8839         * modules/chown: Likewise.
8840         * modules/clean-temp: Likewise.
8841         * modules/copy-file: Likewise.
8842         * modules/fchdir: Likewise.
8843         * modules/fcntl-safer: Likewise.
8844         * modules/pipe: Likewise.
8845         * modules/utime: Likewise.
8846         Prompted by Eric Blake and Bruno Haible.
8847
8848 2008-06-24  Andreas Schwab  <schwab@suse.de>
8849
8850         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
8851         literals can be used as initializers for global variables.
8852
8853 2008-06-23  Eric Blake  <ebb9@byu.net>
8854
8855         Make gnulib-cache.m4 easier to diff.
8856         * gnulib-tool (func_import): Allow newlines when reading cached
8857         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
8858
8859 2008-06-23  Bruno Haible  <bruno@clisp.org>
8860
8861         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
8862         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
8863         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
8864         m4/signalblocking.m4.
8865         (gl_PREREQ_SIGACTION): Don't invoke it.
8866         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
8867         gl_PREREQ_SIG_HANDLER_H.
8868         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8869         Don't check for sigaction here.
8870
8871 2008-06-23  Bruno Haible  <bruno@clisp.org>
8872
8873         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
8874         (install_handlers): Don't set the SA_RESETHAND flag.
8875
8876 2008-06-23  Bruno Haible  <bruno@clisp.org>
8877
8878         * m4/sigaction.m4: Comment fixes.
8879         * lib/signal.in.h: Likewise.
8880
8881 2008-06-23  Eric Blake  <ebb9@byu.net>
8882
8883         Fix typo.
8884         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
8885
8886         Avoid SA_ namespace.
8887         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
8888         Reported by Ralf Wildenhues.
8889
8890         Avoid test failure due to SA_RESTORER.
8891         * tests/test-sigaction.c (SA_MASK): New macro.
8892         (main): Avoid failing due to extension flags being set.
8893         Reported by Jim Meyering.
8894
8895         Revert use of sig-handler.h in sigprocmask.c.
8896         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
8897         it requires the existence of struct sigaction.
8898         * lib/sigprocmask.c (handler_t): Restore typedef.
8899         (rpl_signal, old_handlers): Use local type.
8900
8901 2008-06-22  Bruno Haible  <bruno@clisp.org>
8902
8903         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
8904         conditionally.
8905         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8906
8907 2008-06-22  Bruno Haible  <bruno@clisp.org>
8908
8909         * doc/posix-functions/siginterrupt.texi: Move note.
8910
8911         * lib/signal.in.h (SA_RESTART): New macro.
8912         * lib/sigaction.c: Update comment.
8913
8914         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
8915
8916         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
8917         (gl_PREREQ_SIGPROCMASK): Invoke it.
8918         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
8919
8920         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
8921
8922         * lib/sigprocmask.c: Update a comment.
8923
8924 2008-06-21  Eric Blake  <ebb9@byu.net>
8925
8926         Use sigaction module rather than signal().
8927         * modules/c-stack (Depends-on): Add sigaction.
8928         * modules/fatal-signal (Depends-on): Likewise.
8929         * modules/nanosleep (Depends-on): Likewise.
8930         * modules/sigprocmask (Files): Add sig-handler.h.
8931         * modules/sigaction (Files): Likewise.
8932         * lib/sig-handler.h (get_handler): New file, suggested by Paul
8933         Eggert.
8934         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
8935         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
8936         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8937         (init_fatal_signals): Likewise.
8938         * lib/nanosleep.c (rpl_nanosleep): Likewise.
8939         (siginterrupt): Delete fallback.
8940         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
8941         instead.
8942         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
8943         siginterrupt.
8944
8945         New module sigaction, for mingw.
8946         * modules/sigaction: New module...
8947         * modules/sigaction-tests: ...and its test.
8948         * m4/sigaction.m4: New file.
8949         * lib/sigaction.c: Likewise.
8950         * tests/test-sigaction.c: Likewise.
8951         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
8952         * modules/signal (Makefile.am): Likewise.
8953         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
8954         needed.
8955         * doc/posix-headers/signal.texi (signal.h): Mention provided
8956         types.
8957         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
8958         that sigaction is preferable.
8959         * doc/posix-functions/sigaction.texi (sigaction): Mention new
8960         module.
8961         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8962         sigaction.
8963
8964         Improve robustness of sigprocmask by overriding signal.
8965         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
8966         is in use.
8967         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
8968         (SIGKILL, SIGSTOP): Provide fallbacks.
8969         (rpl_signal): Implement.
8970         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
8971         signal can be called inside handlers.
8972
8973         Fix nanosleep module on mingw.
8974         * modules/nanosleep (Depends-on): Add sys_select.
8975         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
8976
8977         Fix licensing of sigprocmask.
8978         * modules/raise (License): Relicense as LGPL.
8979
8980 2008-06-21  Bruno Haible  <bruno@clisp.org>
8981
8982         * lib/propername.c (proper_name_utf8): Don't use the transliterated
8983         result if it contains question marks.
8984         Reported by Michael Geng <linux@michaelgeng.de>.
8985
8986 2008-06-19  Bruno Haible  <bruno@clisp.org>
8987
8988         Fix CVS-ism.
8989         * doc/gnulib.texi: Include updated-stamp.texi.
8990         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
8991         (updated-stamp.texi): New rule.
8992         (gnulib.info): Depend on it.
8993         * doc/.gitignore: Add updated-stamp.texi.
8994         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
8995
8996 2008-06-19  Bruno Haible  <bruno@clisp.org>
8997
8998         * doc/Makefile (gnulib.info): Update and simplify dependencies.
8999         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9000
9001 2008-06-19  Eric Blake  <ebb9@byu.net>
9002
9003         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9004         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9005         Reported by Stepan Kasal.
9006
9007 2008-06-18  Bruno Haible  <bruno@clisp.org>
9008
9009         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9010         Reported by Eric Blake.
9011
9012 2008-06-18  Eric Blake  <ebb9@byu.net>
9013
9014         Work around cygwin 1.5.25 strsignal bug.
9015         * tests/test-strsignal.c: Allow for const char *.
9016         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9017
9018 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9019
9020         * users.txt: Update URL to article and add author/date
9021         information.
9022
9023 2008-06-17  Bruno Haible  <bruno@clisp.org>
9024
9025         New macro gl_DISABLE_THREADS.
9026         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9027         if the user did not pass --enable-threads or --disable-threads option.
9028         (gl_DISABLE_THREADS): New macro.
9029         Reported by Eric Blake <ebb9@byu.net>.
9030
9031 2008-06-17  Bruno Haible  <bruno@clisp.org>
9032
9033         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9034         when the macro ignores it.
9035         Based on a patch by Eric Blake <ebb9@byu.net>.
9036
9037 2008-06-17  Bruno Haible  <bruno@clisp.org>
9038
9039         * modules/tls (License): Change to LGPLv2+.
9040         Reported by Eric Blake.
9041
9042 2008-06-17  Eric Blake  <ebb9@byu.net>
9043
9044         Simplify c-stack prerequisites.
9045         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9047         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9048         check.
9049         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9050         <sys/resource.h>.
9051
9052         Move c-stack test into testsuite.
9053         * modules/c-stack-tests: New file.
9054         * lib/c-stack.c [DEBUG]: Move test program...
9055         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9056         fail test if sigaltstack is lacking.
9057         * tests/test-c-stack.sh: New driver file.
9058
9059 2008-06-16  Eric Blake  <ebb9@byu.net>
9060
9061         Use raise module consistently.
9062         * modules/fatal-signal (Depends-on): Add raise.
9063         * modules/sigprocmask (Depends-on): Likewise.
9064         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9065         * lib/sigprocmask.c (sigprocmask): Likewise.
9066         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9067         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9068
9069         Fix compliance bug in sigpending.
9070         * lib/sigprocmask.c (sigpending): Return pending array via
9071         parameter, not return value.
9072
9073 2008-06-14  Eric Blake  <ebb9@byu.net>
9074
9075         Improve obstack-printf test code.
9076         * tests/test-obstack-printf.c (test_function): Fix comment, and
9077         simplify usage of obstack_* in macros.  Add a test for coverage.
9078         Reported by Bruno Haible.
9079
9080 2008-06-14  Bruno Haible  <bruno@clisp.org>
9081
9082         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9083         array size as a constant, not as a const variable.
9084         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9085         AC_USE_SYSTEM_EXTENSIONS.
9086         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9087         Test whether the obstack_printf function actually exists.
9088         * modules/obstack-printf (Depends-on): Add extensions.
9089         (Include): Remove obstack.h.
9090         * modules/obstack-printf-posix (Depends-on): Add extensions.
9091         (Include): Remove obstack.h.
9092
9093 2008-06-13  Eric Blake  <ebb9@byu.net>
9094
9095         Add obstack-printf and obstack-printf-posix modules.
9096         * modules/obstack-printf: New file.
9097         * modules/obstack-printf-posix: Likewise.
9098         * MODULES.html.sh (Misc): Mention them.
9099         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9100         Likewise.
9101         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9102         Likewise.
9103         * modules/stdio (Makefile.am): Accomodate new modules.
9104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9105         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9106         Declare.
9107         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9108         functions.
9109         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9110         (gl_REPLACE_OBSTACK_PRINTF): New macros
9111         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9112         * tests/test-obstack-printf.c: New file.
9113         * modules/obstack-printf-tests: Likewise.
9114         * modules/obstack-printf-posix-tests: Likewise.
9115
9116 2008-06-11  Bruno Haible  <bruno@clisp.org>
9117
9118         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9119         * lib/open.c: Include errno.h.
9120         (open): Fail when attempting to write to a file that has a trailing
9121         slash.
9122         * tests/test-open.c (main): Test against trailing slash bug.
9123         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9124
9125 2008-06-10  Bruno Haible  <bruno@clisp.org>
9126
9127         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9128         for $? to work inside the trap command, with various /bin/sh-s.
9129         * tests/test-vc-list-files-cvs.sh: Likewise.
9130
9131 2008-06-10  Bruno Haible  <bruno@clisp.org>
9132
9133         * lib/acl-internal.h: Don't include gettext.h here.
9134         * lib/set-mode-acl.c: Include gettext.h here.
9135         * lib/copy-acl.c: Likewise.
9136
9137 2008-06-10  Bruno Haible  <bruno@clisp.org>
9138
9139         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9140         * lib/wait-process.c (wait_subprocess): Likewise.
9141         * lib/execute.h (execute): Add termsigp argument.
9142         * lib/execute.c (execute): Likewise.
9143         * lib/csharpcomp.c (compile_csharp_using_pnet,
9144         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9145         * lib/csharpexec.c (execute_csharp_using_pnet,
9146         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9147         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9148         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9149         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9150         is_jikes_present): Update.
9151         * lib/javaexec.c (execute_java_class): Update.
9152         * lib/javaversion.c (execute_and_read_line): Update.
9153         * NEWS: Document the changes.
9154         Reported by Eric Blake.
9155
9156 2008-06-10  Eric Blake  <ebb9@byu.net>
9157
9158         Add missing include.
9159         * tests/test-strstr.c (includes): Add <signal.h>.
9160         * tests/test-strcasestr.c (includes): Likewise.
9161         * tests/test-memmem.c (includes): Likewise.
9162
9163 2008-06-10  Bruno Haible  <bruno@clisp.org>
9164
9165         * lib/wait-process.c (wait_subprocess): Add an assertion.
9166
9167 2008-06-10  Bruno Haible  <bruno@clisp.org>
9168
9169         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9170
9171 2008-06-10  Bruno Haible  <bruno@clisp.org>
9172
9173         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9174         using alarm().
9175         * tests/test-strcasestr.c (main): Likewise.
9176         * tests/test-strstr.c (main): Likewise.
9177
9178 2008-06-09  Bruno Haible  <bruno@clisp.org>
9179
9180         Work around the Solaris 10 ACE ACLs ABI change.
9181         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9182         declare if ACL_NO_TRIVIAL is present.
9183         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9184         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9185         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9186         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9187         define if ACL_NO_TRIVIAL is present.
9188         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9189         and use the current ABI.
9190         (file_has_acl): Use same #if condition as elsewhere.
9191         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9192         in use, and use the current ABI.
9193         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9194         Reported by Jim Meyering.
9195
9196 2008-06-09  Eric Blake  <ebb9@byu.net>
9197
9198         Work around environments that (stupidly) ignore SIGALRM.
9199         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9200         before using alarm().
9201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9203         Reported by Ian Beckwith <ianb@erislabs.net>.
9204
9205         Produce autobuild blurb earlier in log.
9206         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9207
9208 2008-06-09  Jim Meyering  <meyering@redhat.com>
9209         and OndÅ™ej Vašík  <ovasik@redhat.com>
9210
9211         utimens.c: correct kernel bug work-around
9212         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9213         failure, not success, and the kernel bug we're trying to work
9214         around affects not just the utimensat call, but also the fallback
9215         futimens call.
9216         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9217         not success.
9218         [HAVE_FUTIMENS]: Use the same work-around, here.
9219
9220 2008-06-09  Jim Meyering  <meyering@redhat.com>
9221
9222         add more guards around definition of ACE_-related code
9223         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9224         ALLOW and ACE_OWNER are also defined.
9225
9226 2008-06-08  Bruno Haible  <bruno@clisp.org>
9227
9228         * lib/acl-internal.h: Add me as co-author.
9229         * lib/file-has-acl.c: Likewise.
9230         * lib/set-mode-acl.c: Likewise.
9231         * lib/copy-acl.c: Likewise.
9232
9233 2008-06-08  Bruno Haible  <bruno@clisp.org>
9234
9235         Add support for AIX ACLs.
9236         * lib/acl-internal.h (acl_nontrivial): New declaration.
9237         * lib/file-has-acl.c (acl_nontrivial): New function.
9238         (file_has_acl): Add implementation using AIX 4 ACL API.
9239         * lib/set-mode-acl.c (qset_acl): Likewise.
9240         * lib/copy-acl.c (qcopy_acl): Likewise.
9241
9242 2008-06-08  Bruno Haible  <bruno@clisp.org>
9243
9244         Add support for HP-UX ACLs.
9245         * lib/acl-internal.h (acl_nontrivial): New declaration.
9246         * lib/file-has-acl.c (acl_nontrivial): New function.
9247         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9248         * lib/set-mode-acl.c (qset_acl): Likewise.
9249         * lib/copy-acl.c (qcopy_acl): Likewise.
9250
9251 2008-06-08  Bruno Haible  <bruno@clisp.org>
9252
9253         Add support for Cygwin ACLs.
9254         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9255         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9256         the chmod_or_fchmod call.
9257         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9258
9259 2008-06-08  Bruno Haible  <bruno@clisp.org>
9260
9261         Fix bug with setuid modes in Solaris 10+ code.
9262         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9263         succeeded, when the mode contains some special bits.
9264
9265 2008-06-08  Bruno Haible  <bruno@clisp.org>
9266
9267         Add support for Solaris 7..10 ACLs.
9268         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9269         declarations.
9270         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9271         functions.
9272         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9273         * lib/set-mode-acl.c (qset_acl): Likewise.
9274         * lib/copy-acl.c (qcopy_acl): Likewise.
9275
9276 2008-06-08  Bruno Haible  <bruno@clisp.org>
9277
9278         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9279         declaration.
9280         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9281         (acl_access_nontrivial): Remove MacOS X case.
9282         (file_has_acl): Use acl_extended_nontrivial.
9283         * lib/copy-acl.c (qcopy_acl): Likewise.
9284
9285 2008-06-08  Bruno Haible  <bruno@clisp.org>
9286
9287         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9288
9289 2008-06-08  Jim Meyering  <meyering@redhat.com>
9290
9291         * modules/acl (Maintainer): Add Bruno Haible.
9292
9293 2008-06-07  Bruno Haible  <bruno@clisp.org>
9294
9295         Improve support for Tru64 ACLs.
9296         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9297         ACL on OSF/1.
9298
9299 2008-06-07  Bruno Haible  <bruno@clisp.org>
9300
9301         Add support for MacOS X ACLs.
9302         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9303         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9304         * lib/set-mode-acl.c (qset_acl): Likewise.
9305         * lib/copy-acl.c (qcopy_acl): Likewise.
9306
9307 2008-06-07  Bruno Haible  <bruno@clisp.org>
9308
9309         Fix memory leak introduced on 2008-05-22.
9310         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9311         use.
9312
9313 2008-06-07  Bruno Haible  <bruno@clisp.org>
9314
9315         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9316         to construct an empty ACL.
9317
9318 2008-06-07  Bruno Haible  <bruno@clisp.org>
9319
9320         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9321         precisely.
9322         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9323
9324 2008-06-07  Bruno Haible  <bruno@clisp.org>
9325
9326         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9327         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9328
9329 2008-06-07  Bruno Haible  <bruno@clisp.org>
9330
9331         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9332         regardless of POSIX.
9333         * doc/posix-functions/_longjmp.texi: Likewise.
9334         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9335         SystemV platform in this case.
9336
9337 2008-06-06  Eric Blake  <ebb9@byu.net>
9338
9339         Document abort() bugs.
9340         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9341
9342         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9343         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9344         sigsetjmp.
9345         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9346         siglongjmp, but only as a macro.
9347         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9348         is obsolete.
9349         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9350
9351         Tweak documentation to cover cygwin argz bugs.
9352         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9353         argz bug fix; no code change needed since no cygwin releases
9354         occurred between the last fix and the bug being tested.
9355         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9356         module and recently fixed cygwin bugs.
9357         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9358         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9359         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9360         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9361         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9362         Likewise.
9363         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9364         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9365         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9366         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9367         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9368         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9369         Likewise.
9370
9371         Avoid gcc warning on cygwin.
9372         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9373         !ACL_NO_TRIVIAL]: Avoid unused variable.
9374
9375 2008-06-05  Eric Blake  <ebb9@byu.net>
9376
9377         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9378         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9379         git-version-gen fails to come up with a version.
9380         Reported by Simon Josefsson.
9381
9382 2008-06-05  Jim Meyering  <meyering@redhat.com>
9383             Paul Eggert  <eggert@cs.ucla.edu>
9384
9385         utimens.c: work around a probable Linux kernel bug
9386         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9387         appears to be a kernel bug that causes utimensat to return 280
9388         instead of 0, indicating success.
9389
9390 2008-06-04  Bruno Haible  <bruno@clisp.org>
9391
9392         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9393         2008-06-01 commit.
9394
9395 2008-06-04  Bruno Haible  <bruno@clisp.org>
9396
9397         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9398         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9399         (file_has_acl): Use it. Save errno afterwards.
9400         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9401
9402 2008-06-03  Bruno Haible  <bruno@clisp.org>
9403
9404         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9405         draft code. Simplify #ifs.
9406         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9407         Put Solaris code after POSIX-draft code. Fix comments regarding
9408         Solaris 10, HP-UX. Mention Cygwin.
9409         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9410
9411 2008-06-03  Eric Blake  <ebb9@byu.net>
9412
9413         Provide fallback for older kernels.
9414         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9415         Provide runtime fallback if kernel lacks support.
9416         Reported by Mike Frysinger.
9417
9418 2008-06-02  Bruno Haible  <bruno@clisp.org>
9419
9420         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9421         it exists.
9422
9423 2008-06-02  Bruno Haible  <bruno@clisp.org>
9424
9425         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9426         * lib/copy-acl.c (qcopy_acl): Update comment.
9427
9428 2008-06-02  Bruno Haible  <bruno@clisp.org>
9429
9430         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9431         like ACL APIs.
9432
9433 2008-06-02  Bruno Haible  <bruno@clisp.org>
9434
9435         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9436         * tests/test-set-mode-acl.sh: Likewise.
9437         * tests/test-copy-acl.sh: Likewise.
9438         * tests/test-copy-file.sh: Likewise.
9439
9440 2008-06-02  Bruno Haible  <bruno@clisp.org>
9441
9442         * tests/test-file-has-acl.sh: Remove unused code.
9443
9444 2008-06-01  Bruno Haible  <bruno@clisp.org>
9445
9446         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9447         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9448         messages.
9449         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9450
9451 2008-06-01  Bruno Haible  <bruno@clisp.org>
9452
9453         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9454         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9455         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9456         APIs.
9457         * modules/acl-tests (configure.ac): Remove tests now contained in
9458         m4/acl.m4.
9459
9460 2008-06-02  Jim Meyering  <meyering@redhat.com>
9461
9462         announce-gen: use a better key-server host name
9463         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9464         it may be more consistently reliable.  Suggested by Werner Koch
9465         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9466
9467 2008-06-01  Bruno Haible  <bruno@clisp.org>
9468
9469         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9470         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9471
9472 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9473
9474         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9475
9476 2008-06-01  Bruno Haible  <bruno@clisp.org>
9477
9478         New ACL tests.
9479         * tests/test-file-has-acl.sh: New file.
9480         * tests/test-file-has-acl.c: New file.
9481         * tests/test-set-mode-acl.sh: New file.
9482         * tests/test-set-mode-acl.c: New file.
9483         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9484         * tests/test-copy-acl.c: New file.
9485         * modules/acl-tests: New file, based on modules/copy-file-tests.
9486         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9487         (Depends-on): Add acl-tests.
9488         (configure.ac): Remove checks.
9489         (Makefile.am): Don't create test-sameacls program here any more.
9490
9491 2008-06-01  Bruno Haible  <bruno@clisp.org>
9492
9493         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9494         * tests/test-sameacls.c: Include progname.h.
9495         (main): Invoke set_program_name. Portability fixes for MacOS X,
9496         Solaris, HP-UX.
9497
9498 2008-06-01  Bruno Haible  <bruno@clisp.org>
9499
9500         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9501         function.
9502         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9503
9504 2008-06-01  Bruno Haible  <bruno@clisp.org>
9505
9506         * modules/rpmatch (Depends-on): Add strdup.
9507
9508 2008-06-01  Bruno Haible  <bruno@clisp.org>
9509
9510         * lib/pipe.c: Include unistd-safer.h.
9511         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9512         * modules/pipe (Depends-on): Add unistd-safer.
9513
9514 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9515
9516         * modules/autobuild (configure.ac): Call AB_INIT.
9517
9518 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9519
9520         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9521         Suggested by Bruno Haible <bruno@clisp.org>.
9522
9523 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9524
9525         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9526         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9527         <bruno@clisp.org>.
9528
9529 2008-05-29  Eric Blake  <ebb9@byu.net>
9530
9531         Prefer new POSIX 200x interfaces over futimesat.
9532         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9533         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9534         when available.
9535         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9536
9537 2008-05-28  Bruno Haible  <bruno@clisp.org>
9538
9539         * modules/stpcpy (License): Change to LGPLv2+.
9540         Requested by David Lutterkort <dlutter@redhat.com>.
9541
9542 2008-05-27  Bruno Haible  <bruno@clisp.org>
9543
9544         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9545         current mingw.
9546         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9547
9548 2008-05-27  Bruno Haible  <bruno@clisp.org>
9549
9550         * modules/iconv_open (Link): New section, from module 'iconv'.
9551         * modules/striconv (Link): Likewise.
9552         * modules/striconveh (Link): Likewise.
9553         * modules/xstriconv (Link): Likewise.
9554         * modules/unicodeio (Link): Likewise.
9555         * modules/propername (Link): Likewise.
9556         Reported by Jim Meyering.
9557
9558 2008-05-26  Jim Meyering  <meyering@redhat.com>
9559
9560         sha256: do not artificially restrict buffer length to be < 2^32
9561         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9562         uint32_t to size_t.
9563         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9564         to match.
9565
9566         avoid unaligned access errors, e.g., on sparc
9567         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9568         direct access through a possibly-unaligned uint64* pointer.
9569         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9570         direct access through a possibly-unaligned uint32* pointer.
9571         Prompted by this patch from Tom "spot" Callaway:
9572         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9573
9574         sha512.c: fix typo in comment
9575         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9576
9577 2008-05-25  Bruno Haible  <bruno@clisp.org>
9578
9579         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9580         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9581         (Makefile.am): Update lib_SOURCES.
9582
9583 2008-05-25  Bruno Haible  <bruno@clisp.org>
9584
9585         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9586
9587 2008-05-25  Jim Meyering  <meyering@redhat.com>
9588
9589         useless-if-before-free: freed expr may have white-space differences
9590         * build-aux/useless-if-before-free: Recognize cases in which the
9591         freed expression differs from the tested one in embedded white
9592         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9593         $1 was used, so we can't make any regexp shy.  Improved tests now
9594         detect this.
9595
9596         useless-if-before-free: accept white space in the expression.
9597         * build-aux/useless-if-before-free: For now, any white space
9598         in the expression must be identical in the free argument.
9599
9600         useless-if-before-free: efficiency tweak
9601         * build-aux/useless-if-before-free: Make the expression-matching
9602         regexp "shy".
9603         Make the *outer* regexp shy, not the expr-matching one.
9604
9605         update code-in-comment to accept cast of free arg
9606         * build-aux/useless-if-before-free: Update regexp.
9607
9608 2008-05-25  Bruno Haible  <bruno@clisp.org>
9609
9610         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9611         * modules/copy-file-tests (Files, Makefile.am): Update.
9612         * tests/test-copy-file.c (func_test_copy): Update.
9613
9614 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
9615
9616         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9617
9618 2008-05-23  Bruno Haible  <bruno@clisp.org>
9619
9620         Improve support for ACLs on OSF/1.
9621         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9622         Remove fallback for unknown flavors of ACLs.
9623
9624 2008-05-22  Bruno Haible  <bruno@clisp.org>
9625
9626         Add support for ACLs on OSF/1.
9627         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9628         replacements.
9629         (acl_free_text): New macro fallback.
9630         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9631         acl_free.
9632         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9633         acl_free_text function. Require AC_C_INLINE.
9634
9635 2008-05-22  Bruno Haible  <bruno@clisp.org>
9636
9637         Make copy_acl work on MacOS X 10.5.
9638         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9639         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9640         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9641         If MODE_INSIDE_ACL, don't assume that every system has the same text
9642         representation for ACLs as FreeBSD.
9643         * lib/copy-acl.c (copy_acl): Add support for platforms with
9644         !MODE_INSIDE_ACL.
9645         * lib/file-has-acl.c (file_has_acl): Likewise.
9646         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9647         FreeBSD, MacOS X, or IRIX, respectively.
9648
9649 2008-05-22  Bruno Haible  <bruno@clisp.org>
9650
9651         * lib/acl.h: Don't include <sys/acl.h>.
9652         (GETACLCNT): Move fallback to lib/acl-internal.h.
9653         * lib/acl-internal.h: Include <sys/acl.h> here.
9654         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9655
9656 2008-05-22  Bruno Haible  <bruno@clisp.org>
9657
9658         Split off copy_acl function to separate file.
9659         * lib/copy-acl.c: New file, extracted from lib/acl.c.
9660         * lib/acl.c (copy_acl): Moved function to separate file.
9661         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9662         * modules/acl (Files): Add lib/copy-acl.c.
9663         (Makefiles.am): Augment lib_SOURCES.
9664
9665 2008-05-22  Bruno Haible  <bruno@clisp.org>
9666
9667         * modules/copy-file-tests: New file.
9668         * tests/test-copy-file.sh: New file.
9669         * tests/test-copy-file.c: New file.
9670         * tests/test-copy-file-sameacls.c: New file.
9671
9672 2008-05-22  Eric Blake  <ebb9@byu.net>
9673
9674         Avoid gcc warning.
9675         * tests/test-memcmp.c (main): Pass NULL indirectly.
9676
9677 2008-05-21  Bruno Haible  <bruno@clisp.org>
9678
9679         Add reference doc about ACLs.
9680         * doc/acl-resources.txt: New file.
9681         * doc/acl-cygwin.txt: New file.
9682
9683 2008-05-21  Bruno Haible  <bruno@clisp.org>
9684
9685         Avoid one more warning from gcc.
9686         * lib/vasnprintf.c (IF_LINT): Update comments.
9687         (VASNPRINTF): Use it also for the 'prefix' array initializer.
9688
9689 2008-05-21  Jim Meyering  <meyering@redhat.com>
9690
9691         avoid a warning from gcc
9692         * lib/vasnprintf.c (IF_LINT): Define.
9693         (scale10_round_decimal_long_double):
9694         Use it to avoid a "may be used uninitialized" warning.
9695         (scale10_round_decimal_double): Likewise.
9696
9697 2008-05-21  Simon Josefsson  <simon@josefsson.org>
9698
9699         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9700         declared.
9701
9702 2008-05-20  Bruno Haible  <bruno@clisp.org>
9703
9704         * tests/test-memcmp.c (main): Test also the sign of the result. Test
9705         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9706
9707 2008-05-20  Simon Josefsson  <simon@josefsson.org>
9708
9709         * modules/memcmp-tests: New file.
9710         * tests/test-memcmp.c: New file.
9711
9712 2008-05-19  Bruno Haible  <bruno@clisp.org>
9713
9714         * modules/propername (Notice, configure.ac): Put quoted "..." into
9715         --keyword option.
9716         * lib/propername.h: Update comments accordingly.
9717         Reported by Eric Blake.
9718
9719 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
9720
9721         * modules/getpass-gnu (Depends-on): Add fseeko.
9722
9723 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9724
9725         * modules/base64-tests: New file.
9726
9727 2008-05-19  Bo Borgerson <gigabo@gmail.com>
9728
9729         * lib/base64.c (base64_decode_ctx): If a decode context structure
9730         was passed in use it to ignore newlines.  If a context structure
9731         was _not_ passed in, continue to treat newlines as garbage (this
9732         is the historical behavior).  Formerly base64_decode.
9733         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9734         takes a decode context structure.
9735         * lib/base64.h (base64_decode): Macro for four-argument calls.
9736         (base64_decode_alloc): Likewise.
9737         * lib/base64.c (base64_decode_ctx): If a decode context structure
9738         was passed in use it to ignore newlines.  If a context structure
9739         was _not_ passed in, continue to treat newlines as garbage (this
9740         is the historical behavior).  Formerly base64_decode.
9741         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9742         takes a decode context structure.
9743         * lib/base64.h (base64_decode): Macro for four-argument calls.
9744         (base64_decode_alloc): Likewise.
9745
9746 2008-05-19  Jim Meyering  <meyering@redhat.com>
9747
9748         avoid a warning from gcc
9749         * lib/trim.c (IF_LINT): Define.
9750         (trim2): Use it to avoid a "may be used uninitialized" warning.
9751
9752         Fix doc typo.
9753         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
9754
9755 2008-05-19  Bruno Haible  <bruno@clisp.org>
9756
9757         * doc/glibc-functions/getpass.texi: Document limits of other
9758         implementations.
9759
9760 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9761             Bruno Haible <bruno@clisp.org>
9762
9763         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
9764
9765 2008-05-18  Bruno Haible  <bruno@clisp.org>
9766
9767         * modules/propername: New file, from GNU gettext.
9768         * lib/propername.h: New file, from GNU gettext.
9769         * lib/propername.c: New file, from GNU gettext.
9770         * MODULES.html.sh (Internationalization functions): Add propername.
9771
9772 2008-05-16  Jim Meyering  <meyering@redhat.com>
9773             Bruno Haible  <bruno@clisp.org>
9774
9775         Avoid some warnings from "gcc -Wshadow".
9776         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
9777
9778 2008-05-15  Eric Blake  <ebb9@byu.net>
9779
9780         Extend previous patch to cygwin 1.7.0.
9781         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
9782         fast implementation in cygwin >= 1.7.0.
9783         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9785
9786 2008-05-15  Bruno Haible  <bruno@clisp.org>
9787
9788         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
9789         implementation in glibc >= 2.9.
9790         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9792
9793 2008-05-15  Bruno Haible  <bruno@clisp.org>
9794
9795         * MODULES.html.sh (Internationalization functions): Remove linebreak.
9796         (Unicode string functions): Add unilbrk/*.
9797         Reported by Karl Berry.
9798
9799 2008-05-15  Eric Blake  <ebb9@byu.net>
9800
9801         Fix violation of <stdbool.h> replacement in regex.
9802         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
9803         * lib/regexec.c (re_search_internal): Likewise.
9804         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
9805
9806 2008-05-15  Jim Meyering  <meyering@redhat.com>
9807
9808         avoid distracting test output when git or cvs is not found
9809         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
9810         * tests/test-vc-list-files-git.sh: Likewise.
9811
9812 2008-05-15  Eric Blake  <ebb9@byu.net>
9813
9814         Glibc finally accepted the memmem speedup code, bugzilla #5514.
9815         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
9816         glibc version.
9817         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9818         * doc/posix-functions/strstr.texi (strstr): Likewise.
9819         * lib/str-two-way.h (MAX): Sychronize with glibc.
9820
9821 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
9822
9823         * lib/regcomp.c (optimize_utf8): Add a note on why we test
9824         opr.ctx_type.
9825         (calc_first): Initialize constraint field.
9826         (duplicate_node_closure): Use it instead of special casing ANCHORS.
9827         Fix grammar.
9828         (duplicate_node): Merge constraint field for all node types.
9829         (calc_eclosure_iter): Look at constraint field for all node types.
9830         * lib/regex_internal.c (create_cd_newstate): Don't look at
9831         opr.ctx_type.
9832
9833 2008-05-14  Bruno Haible  <bruno@clisp.org>
9834
9835         Help GCC to do better code generation.
9836         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
9837         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9838         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
9839         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
9840         Declare with attribute 'malloc' if supported.
9841
9842 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
9843
9844         use "echo STR|wc -c" rather than unportable "expr length STR"
9845         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
9846         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
9847
9848 2008-05-14  Jim Meyering  <meyering@redhat.com>
9849
9850         use dd ibs=$n count=1 ... rather than less-portable head -c$n
9851         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
9852         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
9853         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
9854         via Collin Lasse.
9855
9856 2008-05-14  Eric Blake  <ebb9@byu.net>
9857
9858         Avoid quadratic growth in gl_LIBSOURCES.
9859         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
9860         Suggested by Bruno Haible.
9861
9862         Test xmemdup0.
9863         * modules/xmemdup0-tests: New file.
9864         * tests/test-xmemdup0.c: Likewise.
9865
9866 2008-05-13  Eric Blake  <ebb9@byu.net>
9867
9868         Split xmemdup0 into its own module.
9869         * modules/xmemdup0: New file.
9870         * lib/xmemdup0.h: Likewise.
9871         * lib/xmemdup0.c: Likewise.
9872         * MODULES.html.sh (Memory management functions): Add xmemdup0.
9873         * lib/xalloc.h (xmemdup0): Remove.
9874         * lib/xmalloc.c (xmemdup0): Likewise.
9875
9876 2008-05-13  Eric Blake  <ebb9@byu.net>
9877             Bruno Haible  <bruno@clisp.org>
9878
9879         Reduce number of forks required during autoconf.
9880         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
9881         and gl_LIBSOURCES_DIR.
9882         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
9883         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
9884         m4_syscmd per file.
9885         <m4_foreach_w>: Move...
9886         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
9887
9888 2008-05-13  Eric Blake  <ebb9@byu.net>
9889
9890         * gnulib-tool: Fix various comment typos.
9891
9892 2008-05-12  Bruno Haible  <bruno@clisp.org>
9893
9894         Tailor the linebreaking algorithm.
9895         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
9896
9897 2008-05-12  Bruno Haible  <bruno@clisp.org>
9898
9899         Update to Unicode 5.0.0.
9900         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9901         LBP_JV, LBP_JT. Redistribute values.
9902         (unilbrk_table): Change size.
9903         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
9904         Unicode TR#14 rev. 22.
9905         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9906         LBP_JV, LBP_JT. Redistribute values.
9907         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
9908         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
9909         Update.
9910         * lib/unilbrk/lbrkprop1.h: Regenerated.
9911         * lib/unilbrk/lbrkprop2.h: Regenerated.
9912         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
9913         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
9914         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9915         Likewise.
9916         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9917         Likewise.
9918         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
9919         result.
9920         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9921         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9922         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9923         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
9924         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
9925         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
9926
9927 2008-05-11  Bruno Haible  <bruno@clisp.org>
9928
9929         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
9930
9931 2008-05-11  Bruno Haible  <bruno@clisp.org>
9932
9933         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
9934         * modules/unilbrk/gen-lbrk: New file.
9935
9936 2008-05-11  Bruno Haible  <bruno@clisp.org>
9937
9938         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
9939         * m4/sha512.m4 (gl_SHA512): Likewise.
9940
9941 2008-05-11  Jim Meyering  <meyering@redhat.com>
9942
9943         New modules: crypto/sha256, crypto/sha512 (from coreutils)
9944         * modules/crypto/sha256: New file.
9945         * modules/crypto/sha512: Likewise.
9946         * lib/sha256.c: Likewise.
9947         * lib/sha256.h: Likewise.
9948         * lib/sha512.c: Likewise.
9949         * lib/sha512.h: Likewise.
9950         * lib/u64.h: Likewise.
9951         * m4/sha256.m4: Likewise.
9952         * m4/sha512.m4: Likewise.
9953         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
9954
9955 2008-05-10  Bruno Haible  <bruno@clisp.org>
9956
9957         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
9958         (Input/Output <stdio.h>): Add xprintf.
9959         (Signal handling <signal.h>): Add strsignal.
9960         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
9961         (Core language properties): Add func.
9962         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
9963         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
9964         strings.
9965         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
9966         (Input/output): New section.
9967         (File system functions): Add openat-die, stat-macros.
9968         (Networking functions): Add sockets.
9969         (Unicode string functions): Add unictype/*.
9970         (Support for building libraries and executables): Add gperf.
9971         (Support for building documentation): Add agpl-3.0.
9972         (Misc): Add nocrash.
9973
9974 2008-05-10  Bruno Haible  <bruno@clisp.org>
9975
9976         * modules/unictype/gen-ctype: New file.
9977
9978 2008-05-10  Jim Meyering  <meyering@redhat.com>
9979
9980         Make chdir-safer.c more efficient on a system with no symlinks.
9981         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
9982         also if ELOOP is zero.  Suggested by Bruno Haible.
9983
9984         Make chdir-safer.c slightly safer.
9985         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
9986         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
9987
9988         Avoid compile failure on systems without ELOOP (like mingw).
9989         * lib/chdir-safer.c (ELOOP): Define if not already defined.
9990         Reported by Bruno Haible.
9991
9992 2008-05-10  Bruno Haible  <bruno@clisp.org>
9993
9994         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
9995         (is_utf8_encoding): Use a case-insensitive comparison.
9996         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
9997         streq.
9998
9999 2008-05-10  Bruno Haible  <bruno@clisp.org>
10000
10001         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10002         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10003         * lib/unilbrk/ulc-common.h (iconv_string_length,
10004         iconv_string_keeping_offsets): Remove declarations.
10005         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10006         Don't include <iconv.h>, streq.h, xsize.h.
10007         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10008         conversion.
10009         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10010         <iconv.h>, streq.h, xsize.h.
10011         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10012         conversion.
10013         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10014         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10015         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10016         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10017
10018 2008-05-10  Bruno Haible  <bruno@clisp.org>
10019
10020         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10021         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10022
10023         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10024         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10025
10026         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10027         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10028
10029         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10030         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10031
10032         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10033         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10034
10035         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10036         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10037
10038         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10039         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10040
10041         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10042         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10043
10044 2008-05-10  Bruno Haible  <bruno@clisp.org>
10045
10046         Split up 'linebreak' module.
10047         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10048         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10049         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10050         modifications.
10051         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10052         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10053         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10054         lib/linebreak.c.
10055         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10056         lib/linebreak.c.
10057         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10058         lib/linebreak.c.
10059         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10060         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10061         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10062         lib/linebreak.c.
10063         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10064         lib/linebreak.c.
10065         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10066         lib/linebreak.c.
10067         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10068         lib/linebreak.c.
10069         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10070         lib/linebreak.c.
10071         * modules/unilbrk/base: New file.
10072         * modules/unilbrk/tables: New file.
10073         * modules/unilbrk/u8-possible-linebreaks: New file.
10074         * modules/unilbrk/u16-possible-linebreaks: New file.
10075         * modules/unilbrk/u32-possible-linebreaks: New file.
10076         * modules/unilbrk/ulc-common: New file.
10077         * modules/unilbrk/ulc-possible-linebreaks: New file.
10078         * modules/unilbrk/u8-width-linebreaks: New file.
10079         * modules/unilbrk/u16-width-linebreaks: New file.
10080         * modules/unilbrk/u32-width-linebreaks: New file.
10081         * modules/unilbrk/ulc-width-linebreaks: New file.
10082         * lib/linebreak.h: Remove file.
10083         * lib/linebreak.c: Remove file.
10084         * m4/linebreak.m4: Remove file.
10085         * modules/linebreak: Remove file.
10086         * NEWS: Mention the changes.
10087
10088 2008-05-09  Eric Blake  <ebb9@byu.net>
10089
10090         Add xmemdup0.
10091         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10092         implementation.
10093         * lib/xmalloc.c (xmemdup0): New C implementation.
10094
10095 2008-05-08  Bruno Haible  <bruno@clisp.org>
10096
10097         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10098
10099 2008-05-07  Eric Blake  <ebb9@byu.net>
10100
10101         Support cross-compilation of <wctype.h>.
10102         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10103         AC_CACHE_CHECK.
10104
10105 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10106
10107         * build-aux/vc-list-files: Add support for bzr.
10108
10109 2008-05-03  Jim Meyering  <meyering@redhat.com>
10110
10111         avoid failed assertion with tight malloc
10112         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10113
10114 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10115
10116         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10117         are needed from arpa/inet.h.
10118         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10119         Reported by Bruno Haible.
10120
10121 2008-05-02  Jim Meyering  <meyering@redhat.com>
10122
10123         avoid compilation error on FreeBSD 6
10124         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10125
10126 2008-05-01  Jim Meyering  <meyering@redhat.com>
10127
10128         useless-if-before-free: correct --help's exit status description
10129         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10130         for one or more matches, etc.  Reported by Bruno Haible.
10131
10132         vc-list-files: make the stand-alone gnulib test work
10133         * modules/vc-list-files-tests (configure.ac):
10134         Define and AC_SUBST abs_aux_dir.
10135         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10136         $(abs_top_srcdir) to each script and having each of them
10137         duplicate the work of setting PATH, set PATH here, using
10138         the new variable, abs_aux_dir instead.
10139         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10140         * tests/test-vc-list-files-git.sh: Likewise.
10141         Reported by Bruno Haible.
10142
10143 2008-05-01  Bruno Haible  <bruno@clisp.org>
10144
10145         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10146         reallocation. Rename 'done' to 'found_delimiter'.
10147
10148 2008-05-01  Jim Meyering  <meyering@redhat.com>
10149
10150         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10151         * build-aux/vc-list-files: Use `...`, not $(...).
10152
10153 2008-04-30  Jim Meyering  <meyering@redhat.com>
10154
10155         add tests for vc-list-files
10156         * modules/vc-list-files-tests: New module.
10157         * tests/test-vc-list-files-cvs.sh: New file.
10158         * tests/test-vc-list-files-git.sh: New file.
10159
10160         avoid a warning from gcc
10161         * lib/getndelim2.c (IF_LINT): Define.
10162         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10163
10164         vc-list-files: work properly with build-aux/cvsu, too
10165         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10166         to all cvs-based clauses.
10167
10168         vc-list-files: work properly in the CVS+awk case, too
10169         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10170
10171         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10172         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10173         take more than one file argument, so .  Add quotes, just in case $dir
10174         ever contains a shell meta-character.  Prompted by Soren Hansen in
10175         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10176
10177 2008-04-29  Eric Blake  <ebb9@byu.net>
10178
10179         Optimize getndelim2 to use block operations when possible.
10180         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10181         freadseek, and memchr2.
10182         * lib/getndelim2.c (getndelim2): Use them for block reads.
10183
10184 2008-04-29  Bruno Haible  <bruno@clisp.org>
10185
10186         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10187         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10188         * modules/inet_ntop (Depends-on): Add extensions.
10189         * modules/inet_pton (Depends-on): Likewise.
10190         Reported by Simon Josefsson.
10191
10192 2008-04-29  Jim Meyering  <meyering@redhat.com>
10193
10194         When the is more than one match in a block, match all of them.
10195         * build-aux/useless-if-before-free: Iterate through each block
10196         until there are no more matches.
10197
10198         Fix broken useless-if-before-free script.
10199         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10200         the expression to match cast of argument to free-like function.
10201
10202 2008-04-29  Eric Blake  <ebb9@byu.net>
10203
10204         Use new header.
10205         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10206
10207 2008-04-29  Jim Meyering  <meyering@redhat.com>
10208
10209         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10210         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10211         by gnulib to exist and to declare e.g., inet_ntop.
10212         Don't include "inet_ntop.h", now removed.
10213
10214         * m4/arpa_inet_h.m4: Remove trailing blanks.
10215
10216 2008-04-29  Eric Blake  <ebb9@byu.net>
10217
10218         Silence valgrind on safe reads beyond potential array bounds.
10219         * lib/rawmemchr.valgrind: New file.
10220         * lib/strchrnul.valgrind: Likewise.
10221         * modules/rawmemchr (Files): Distribute new file.
10222         * modules/strchrnul (Files): Likewise.
10223         Suggested by Bruno Haible.
10224
10225 2008-04-29  Bruno Haible  <bruno@clisp.org>
10226
10227         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10228         (inet_ntop, inet_pton): Change portability warning's wording.
10229         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10230         Invoke gl_CHECK_NEXT_HEADERS.
10231         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10232         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10233         set ARPA_INET_H.
10234         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10235         * modules/arpa_inet (Description): No longer only for systems that
10236         lack it.
10237         (Depends-on): Add include_next.
10238         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10239         HAVE_ARPA_INET_H.
10240
10241 2008-04-29  Jim Meyering  <meyering@redhat.com>
10242
10243         * modules/mkdir (License): Re-license as LGPLv2+.
10244
10245 2008-04-29  Bruno Haible  <bruno@clisp.org>
10246
10247         * modules/rawmemchr (Maintainer): Set to Eric.
10248         * modules/strchrnul (Maintainer): Likewise.
10249
10250 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10251
10252         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10253         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10254
10255         * modules/arpa_inet (arpa/inet.h): Use them.
10256
10257 2008-04-28  Eric Blake  <ebb9@byu.net>
10258
10259         Test getndelim2.
10260         * modules/getndelim2-tests: New file.
10261         * tests/test-getndelim2.c: Likewise.
10262         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10263         stream.
10264         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10265
10266         * MODULES.html.sh: Document new module.
10267
10268 2008-04-20  Bruno Haible  <bruno@clisp.org>
10269
10270         * lib/c-stack.c (die): Use raise.
10271         * modules/c-stack (Depends-on): Add raise.
10272
10273 2008-04-28  Bruno Haible  <bruno@clisp.org>
10274
10275         Expect rpmatch to be declared.
10276         * lib/yesno.c (rpmatch): Remove declaration.
10277
10278         Declare rpmatch.
10279         * lib/stdlib.in.h (rpmatch): New declaration.
10280         * lib/rpmatch.c: Include <stdlib.h> first.
10281         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10282         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10284         HAVE_RPMATCH.
10285         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10286         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10287         (Include): Set to <stdlib.h>.
10288         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10289         HAVE_RPMATCH.
10290         * NEWS: Document the change.
10291
10292 2008-04-28  Bruno Haible  <bruno@clisp.org>
10293
10294         Change rpmatch to use nl_langinfo when appropriate.
10295         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10296         (N_): New macro.
10297         (localized_pattern): New function/macro.
10298         (try): Remove match, nomatch arguments. Copy the pattern into safe
10299         memory before caching it.
10300         (rpmatch): Use localized_pattern. Add translator comments.
10301         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10302         Suggested by Eric Blake.
10303         * modules/rpmatch (Depends-on): Add stdbool.
10304
10305 2008-04-28  Eric Blake  <ebb9@byu.net>
10306
10307         Add rawmemchr module, matching glibc.
10308         * modules/string (Makefile.am): New indicator.
10309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10310         * lib/string.in.h (rawmemchr): Declare when appropriate.
10311         * modules/rawmemchr: New file.
10312         * m4/rawmemchr.m4: Likewise.
10313         * lib/rawmemchr.c: Likewise.
10314         * modules/rawmemchr-tests: Likewise.
10315         * tests/test-rawmemchr.c: Likewise.
10316         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10317         module.
10318         * modules/strchrnul (Depends-on): Add rawmemchr.
10319         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10320
10321         Whitespace cleanup.
10322         * tests/test-strchrnul.c: Reindent.
10323         * lib/strchrnul.c: Likewise.
10324
10325         Optimize and test strchrnul.
10326         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10327         * modules/strchrnul-tests: New file.
10328         * tests/test-strchrnul.c: Likewise.
10329
10330         Remove intprops dependency.
10331         * modules/memchr (Depends-on): Remove intprops.
10332         * modules/memrchr (Depends-on): Likewise.
10333         * modules/memchr2 (Depends-on): Likewise.
10334         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10335         * lib/memrchr.c (__memrchr): Likewise.
10336         * lib/memrchr2.c (memchr2): Likewise.
10337         Reported by Simon Josefsson.
10338
10339 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10340
10341         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10342         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10343
10344 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10345
10346         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10347
10348         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10349
10350         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10351
10352         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10353         declarations.
10354         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10355
10356         * m4/inet_pton.m4: Don't check for header files.
10357
10358         * m4/inet_ntop.m4: Don't check for header files.
10359
10360 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10361
10362         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10363         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10364         trigger for cygwin).
10365         Reported by Bruno Haible  <bruno@clisp.org>.
10366
10367 2008-04-28  Bruno Haible  <bruno@clisp.org>
10368
10369         * doc/posix-functions/strdup.texi: Mention mingw problem.
10370
10371 2008-04-27  Bruno Haible  <bruno@clisp.org>
10372
10373         * modules/stat-time-tests (Depends-on): Add sleep.
10374         * tests/test-stat-time.c (force_unlink): New function.
10375         (cleanup): Use it.
10376         (test_mtime): Remove the ctime related tests.
10377         (test_ctime): New function, containing the ctime related tests.
10378         (main): Call test_ctime, except on native Windows platforms.
10379
10380 2008-04-27  Bruno Haible  <bruno@clisp.org>
10381
10382         * lib/rpmatch.c (rpmatch): Add some comments.
10383         Reported by James Youngman <jay@gnu.org>.
10384
10385 2008-04-27  Bruno Haible  <bruno@clisp.org>
10386
10387         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10388         quiet NaNs.
10389
10390 2008-04-27  Bruno Haible  <bruno@clisp.org>
10391
10392         Make test-yesno.sh work on mingw.
10393         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10394         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10395         (main): Set stdin to binary mode.
10396         * modules/yesno-tests (Depends-on): Add binary-io.
10397
10398 2008-04-27  Bruno Haible  <bruno@clisp.org>
10399
10400         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10401         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10402         argument that lie outside the IEEE 854 domain.
10403         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10404         (gl_ISFINITE): Use it.
10405         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10406
10407 2008-04-27  Bruno Haible  <bruno@clisp.org>
10408
10409         Allow local renaming in config.h.
10410         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10411
10412 2008-04-27  Bruno Haible  <bruno@clisp.org>
10413
10414         * lib/memchr.c (__memchr): Change type of 'i'.
10415         * lib/memchr2.c (memchr2): Likewise.
10416
10417 2008-04-26  Eric Blake  <ebb9@byu.net>
10418         and Bruno Haible  <bruno@clisp.org>
10419
10420         Optimize and test memrchr.
10421         * modules/memrchr (Depends-on): Add intprops.
10422         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10423         * modules/memrchr-tests: New file.
10424         * tests/test-memrchr.c: New file.
10425
10426 2008-04-26  Bruno Haible  <bruno@clisp.org>
10427
10428         Add tentative support for DragonFly BSD.
10429         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10430         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10431         fp.
10432         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10433         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10434         * lib/fpurge.c (fpurge): Likewise.
10435         * lib/freadable.c (freaadable): Likewise.
10436         * lib/freadahead.c (freadahead): Likewise.
10437         * lib/freading.c (freading): Likewise.
10438         * lib/freadptr.c (freadptr): Likewise.
10439         * lib/freadseek.c (freadptrinc): Likewise.
10440         * lib/fseeko.c (fseeko): Likewise.
10441         * lib/fseterr.c (fseterr): Likewise.
10442         * lib/fwritable.c (fwritable): Likewise.
10443         * lib/fwriting.c (fwriting): Likewise.
10444
10445 2008-04-26  Bruno Haible  <bruno@clisp.org>
10446
10447         * lib/stdio-impl.h: New file.
10448         * lib/fbufmode.c: Include stdio-impl.h.
10449         (fbufmode): Use fp_, remove redundant #defines.
10450         * lib/fflush.c: Include stdio-impl.h.
10451         (clear_ungetc_buffer): Remove redundant #defines.
10452         * lib/fpurge.c: Include stdio-impl.h.
10453         (fpurge): Remove redundant #defines.
10454         * lib/freadable.c: Include stdio-impl.h.
10455         (freadable): Remove redundant #defines.
10456         * lib/freadahead.c: Include stdio-impl.h.
10457         (freadahead): Remove redundant #defines.
10458         * lib/freading.c: Include stdio-impl.h.
10459         (freading): Remove redundant #defines.
10460         * lib/freadptr.c: Include stdio-impl.h.
10461         (freadptr): Remove redundant #defines.
10462         * lib/freadseek.c: Include stdio-impl.h.
10463         (freadptrinc): Remove redundant #defines.
10464         * lib/fseeko.c: Include stdio-impl.h.
10465         (rpl_fseeko): Remove redundant #defines.
10466         * lib/fseterr.c: Include stdio-impl.h.
10467         (fseterr): Remove redundant #defines.
10468         * lib/fwritable.c: Include stdio-impl.h.
10469         (fwritable: Remove redundant #defines.
10470         * lib/fwriting.c: Include stdio-impl.h.
10471         (fwriting): Remove redundant #defines.
10472         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10473         * modules/fflush (Files): Likewise.
10474         * modules/fpurge (Files): Likewise.
10475         * modules/freadable (Files): Likewise.
10476         * modules/freadahead (Files): Likewise.
10477         * modules/freading (Files): Likewise.
10478         * modules/freadptr (Files): Likewise.
10479         * modules/freadseek (Files): Likewise.
10480         * modules/fseeko (Files): Likewise.
10481         * modules/fseterr (Files): Likewise.
10482         * modules/fwritable (Files): Likewise.
10483         * modules/fwriting (Files): Likewise.
10484
10485 2008-04-26  Bruno Haible  <bruno@clisp.org>
10486
10487         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10488         restore_seek_optimization, update_fpos_cache): New functions, extracted
10489         from rpl_fflush.
10490         (rpl_fflush): Use them.
10491         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10492         (gl_REPLACE_FFLUSH): Use it.
10493
10494 2008-04-26  Bruno Haible  <bruno@clisp.org>
10495
10496         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10497         on Solaris.
10498         * tests/test-xstrtoimax.sh: Likewise.
10499         * tests/test-xstrtoumax.sh: Likewise.
10500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10501
10502 2008-04-26  Bruno Haible  <bruno@clisp.org>
10503
10504         * modules/memchr-tests: New file.
10505         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10506
10507 2008-04-26  Eric Blake  <ebb9@byu.net>
10508             Bruno Haible  <bruno@clisp.org>
10509
10510         * lib/memchr.c: Include intprops.h.
10511         (__memchr): Optimize parallel detection of matching bytes. Rename local
10512         variables. Add explanatory comments.
10513
10514 2008-04-26  Bruno Haible  <bruno@clisp.org>
10515
10516         Fix module 'memchr', broken since 2000-10-28.
10517         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10518
10519 2008-04-26  Bruno Haible  <bruno@clisp.org>
10520
10521         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10522         comments.
10523
10524 2008-04-25  Eric Blake  <ebb9@byu.net>
10525
10526         Use native fstatat on cygwin 1.7.0.
10527         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10528         first.
10529
10530 2008-04-23  Eric Blake  <ebb9@byu.net>
10531
10532         Improve memchr2 performance.
10533         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10534         NUL bytes.
10535         * modules/memchr2 (Depends-on): Use intprops.h.
10536
10537 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10538
10539         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10540         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10541         <blp@cs.stanford.edu>.
10542
10543 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10544
10545         * lib/arpa_inet.in.h: New file.
10546
10547         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10548         (Makefile.am): Sed in substitute header file.
10549
10550         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10551         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10552
10553         * modules/inet_ntop (configure.ac): Use
10554         gl_ARPA_INET_MODULE_INDICATOR.
10555
10556         * modules/inet_pton (configure.ac): Use
10557         gl_ARPA_INET_MODULE_INDICATOR.
10558
10559 2008-04-22  Jim Meyering  <meyering@redhat.com>
10560
10561         * modules/verify (License): Re-license as LGPLv2+.
10562
10563 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10564
10565         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10566         parameter to void* as per POSIX standard (MinGW uses char*).
10567
10568 2008-04-21  Bruno Haible  <bruno@clisp.org>
10569
10570         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10571         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10572         Define to replacements if REPLACE_ISWCNTRL is 1.
10573         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10574         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10575         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10576         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10577         what it fixes.
10578         * doc/posix-functions/iswalpha.texi: Likewise.
10579         * doc/posix-functions/iswblank.texi: Likewise.
10580         * doc/posix-functions/iswcntrl.texi: Likewise.
10581         * doc/posix-functions/iswdigit.texi: Likewise.
10582         * doc/posix-functions/iswgraph.texi: Likewise.
10583         * doc/posix-functions/iswlower.texi: Likewise.
10584         * doc/posix-functions/iswprint.texi: Likewise.
10585         * doc/posix-functions/iswpunct.texi: Likewise.
10586         * doc/posix-functions/iswspace.texi: Likewise.
10587         * doc/posix-functions/iswupper.texi: Likewise.
10588         * doc/posix-functions/iswxdigit.texi: Likewise.
10589         Reported by Alain Guibert.
10590
10591 2008-04-21  Bruno Haible  <bruno@clisp.org>
10592
10593         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10594         Patch by Alain Guibert.
10595
10596 2008-04-21  Bruno Haible  <bruno@clisp.org>
10597
10598         Fix test failures on mingw.
10599         * tests/test-xstrtol.c (print_no_progname): New function.
10600         (main): Install it in error_print_progname hook.
10601         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10602         * tests/test-xstrtoimax.sh: Likewise.
10603         * tests/test-xstrtoumax.sh: Likewise.
10604
10605 2008-04-21  Bruno Haible  <bruno@clisp.org>
10606
10607         Fix test failure on mingw.
10608         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10609
10610 2008-04-21  Bruno Haible  <bruno@clisp.org>
10611
10612         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10613         Actually assign a value.
10614
10615 2008-04-20  Bruno Haible  <bruno@clisp.org>
10616
10617         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10618         take 2.
10619         * lib/canonicalize.c (canonicalize_file_name): Elide if the
10620         'canonicalize-lgpl' module is also used.
10621         * lib/canonicalize-lgpl.c: Undo last change.
10622         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10623
10624 2008-04-20  Bruno Haible  <bruno@clisp.org>
10625
10626         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10627         config.h. Provide _mkdir based fallback for mingw.
10628         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10629         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10630         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10631         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10632         rather than defining mkdir in config.h.
10633         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10634         (gl_SYS_STAT_H_DEFAULTS): New macro.
10635         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10636         HAVE_IO_H any more.
10637         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10638         HAVE_DECL_MKDIR and HAVE_IO_H.
10639
10640 2008-04-20  Bruno Haible  <bruno@clisp.org>
10641
10642         * lib/isapipe.c: Port to native Windows platforms.
10643
10644 2008-04-20  Bruno Haible  <bruno@clisp.org>
10645
10646         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10647
10648 2008-04-21  Eric Blake  <ebb9@byu.net>
10649
10650         Work around preprocessors that don't handle UINTMAX_MAX.
10651         * lib/memchr2.c (memchr2): Avoid embedded #if.
10652         Reported by Alain Guibert, fix suggested by Bruno Haible.
10653
10654 2008-04-21  Simon Josefsson  <simon@josefsson.org>
10655
10656         * doc/posix-functions/strftime.texi (strftime): Explain better
10657         Windows incompatibility.  Suggested by Micah Cowan
10658         <micah@cowan.name>.
10659
10660 2008-04-20  Bruno Haible  <bruno@clisp.org>
10661
10662         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10663         unistr/u8-mblen.
10664
10665 2008-04-20  Bruno Haible  <bruno@clisp.org>
10666
10667         Fix test failure on platforms with non-GNU iconv.
10668         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10669         (U_TO_U8): Use it, rather than u16_to_u8.
10670         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10671         units at the end of the input string.
10672         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10673
10674 2008-04-20  Bruno Haible  <bruno@clisp.org>
10675
10676         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10677         when the resulting length is 0.
10678         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10679
10680 2008-04-20  Bruno Haible  <bruno@clisp.org>
10681
10682         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10683         works.
10684         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10685
10686 2008-04-20  Bruno Haible  <bruno@clisp.org>
10687
10688         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10689         * modules/tsearch-tests (configure.ac): Test for initstate function.
10690
10691 2008-04-20  Bruno Haible  <bruno@clisp.org>
10692
10693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10694         for nlink_t if missing.
10695         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10696
10697 2008-04-19  Bruno Haible  <bruno@clisp.org>
10698
10699         Work around snprintf bug on Linux libc5.
10700         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10701         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10702         gl_SNPRINTF_SIZE1.
10703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10704         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10705         that test failed.
10706         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10707         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10708         * modules/snprintf (Files): Add m4/printf.m4.
10709         * modules/vsnprintf (Files): Likewise.
10710         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10711         * doc/posix-functions/vsnprintf.texi: Likewise.
10712
10713 2008-04-19  Bruno Haible  <bruno@clisp.org>
10714
10715         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10716         from 0.0058 to less than 10^-7.
10717
10718 2008-04-19  Bruno Haible  <bruno@clisp.org>
10719
10720         Fix rounding when a precision is given.
10721         * lib/vasnprintf.c (is_borderline): New function.
10722         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10723         9...9x.
10724         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10725         %e, %g.
10726         * tests/test-vasprintf-posix.c (test_function): Likewise.
10727         * tests/test-snprintf-posix.h (test_function): Likewise.
10728         * tests/test-sprintf-posix.h (test_function): Likewise.
10729         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10730         * tests/test-printf-posix.h (test_function): Likewise.
10731         * tests/test-printf-posix.output: Update.
10732         Reported by John Darrington <john@darrington.wattle.id.au> via
10733         Ben Pfaff <blp@cs.stanford.edu>.
10734
10735 2008-04-18  Simon Josefsson  <simon@josefsson.org>
10736
10737         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10738         Suggested by Bruno Haible <bruno@clisp.org>.
10739
10740 2008-04-17  Bruno Haible  <bruno@clisp.org>
10741
10742         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10743         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10744         implementation.
10745         Patch by Bruce Merry <bmerry@gmail.com>.
10746
10747 2008-04-17  Simon Josefsson  <simon@josefsson.org>
10748
10749         * doc/posix-functions/strftime.texi (strftime): Mention that %e
10750         doesn't work under Windows.
10751
10752 2008-04-16  Bruno Haible  <bruno@clisp.org>
10753
10754         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
10755         New macros.
10756         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
10757         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
10758         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
10759         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
10760         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
10761         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
10762         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
10763         macros.
10764         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
10765         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
10766         Northern Sotho, Uighur.
10767
10768 2008-04-16  Bruno Haible  <bruno@clisp.org>
10769
10770         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
10771         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
10772         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
10773         Reported by Daniel Bergström <daniel@octocode.com>.
10774
10775 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
10776             Bruno Haible  <bruno@clisp.org>
10777
10778         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
10779         function.
10780         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
10781         New functions, mostly extracted from gl_locale_name_default.
10782         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
10783
10784 2008-04-16  Eric Blake  <ebb9@byu.net>
10785
10786         Adjust strtod detection to catch glibc 2.7 bug.
10787         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
10788         Reported by John Gatewood Ham.
10789
10790 2008-04-16  Bruno Haible  <bruno@clisp.org>
10791
10792         Add tentative support for Linux libc5.
10793         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
10794         * lib/fpurge.c (fpurge): Likewise.
10795         * lib/freadable.c (freadable): Likewise.
10796         * lib/freadahead.c (freadahead): Likewise.
10797         * lib/freading.c (freading): Likewise.
10798         * lib/freadptr.c (freadptr): Likewise.
10799         * lib/freadseek.c (freadptrinc): Likewise.
10800         * lib/fseeko.c (rpl_fseeko): Likewise.
10801         * lib/fseterr.c (fseterr): Likewise.
10802         * lib/fwritable.c (fwritable): Likewise.
10803         * lib/fwriting.c (fwriting): Likewise.
10804         Reported by Alain Guibert <alguibert+bts@free.fr>.
10805
10806 2008-04-15  Bruno Haible  <bruno@clisp.org>
10807
10808         * modules/mathl (configure.ac): Define module indicator.
10809
10810 2008-04-15  Bruno Haible  <bruno@clisp.org>
10811
10812         * lib/logl.c (logl): Remove unused variables.
10813
10814 2008-04-15  Bruno Haible  <bruno@clisp.org>
10815
10816         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
10817         fails.
10818
10819 2008-04-15  Bruno Haible  <bruno@clisp.org>
10820
10821         * lib/trim.c (trim2): Fix argument of isspace() macro.
10822
10823 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
10824
10825         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
10826         to 0.
10827         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
10828
10829 2008-04-14  Bruno Haible  <bruno@clisp.org>
10830
10831         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
10832         AC_LANG_PROGRAM argument.
10833         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10834         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
10835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10836         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10837         * m4/math_h.m4 (gl_MATH_H): Likewise.
10838         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10839         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10840         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10841         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
10842         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10843         * m4/regex.m4 (gl_REGEX): Likewise.
10844         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
10845         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
10846         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10847         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
10848         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10849         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10851         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10852
10853 2008-04-14  Jim Meyering  <meyering@redhat.com>
10854
10855         test-strtod: fix typos: s/abs/fabs/
10856         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
10857
10858 2008-04-13  Bruno Haible  <bruno@clisp.org>
10859
10860         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
10861         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
10862         module is also used and while not building the reloc-wrapper.
10863
10864 2008-04-13  Bruno Haible  <bruno@clisp.org>
10865
10866         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
10867
10868 2008-04-13  Bruno Haible  <bruno@clisp.org>
10869
10870         Fix AIX compilation failure introduced on 2008-04-02.
10871         * tests/test-frexp.c (exp): Undefine before redefining.
10872         * tests/test-frexpl.c (exp): Likewise.
10873
10874 2008-04-13  Bruno Haible  <bruno@clisp.org>
10875
10876         Work around a HP-UX stdio bug.
10877         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
10878         * tests/test-ftello.c (main): Likewise.
10879         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
10880         * doc/posix-functions/ftello.texi: Likewise.
10881
10882 2008-04-13  Bruno Haible  <bruno@clisp.org>
10883
10884         Make test-signbit pass on HP-UX/hppa.
10885         * tests/test-signbit.c (minus_zerol): New variable.
10886         (test_signbitl): Use it.
10887
10888 2008-04-13  Bruno Haible  <bruno@clisp.org>
10889
10890         Make truncl work on OSF/1 4.0.
10891         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
10892         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10893         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
10895         HAVE_DECL_TRUNCL.
10896         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
10897         HAVE_DECL_TRUNCL.
10898         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
10899
10900 2008-04-13  Bruno Haible  <bruno@clisp.org>
10901
10902         * lib/unictype.h: Remove trailing comma from enumeration definitions.
10903
10904 2008-04-13  Bruno Haible  <bruno@clisp.org>
10905
10906         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
10907         expression, so as to avoid HP-UX 11 cc compiler bug.
10908
10909 2008-04-13  Bruno Haible  <bruno@clisp.org>
10910
10911         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
10912
10913 2008-04-13  Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/git-merge-changelog.c: Remove empty declaration outside of
10916         functions.
10917
10918 2008-04-13  Bruno Haible  <bruno@clisp.org>
10919
10920         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
10921
10922 2008-04-13  Bruno Haible  <bruno@clisp.org>
10923
10924         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
10925         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
10926         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
10927         also if it exists but lacks definitions of the SHUT_* macros.
10928         * modules/sys_socket (Description): Update.
10929         Reported by Elbert Pol <e.pol@chello.nl>.
10930
10931 2008-04-13  Bruno Haible  <bruno@clisp.org>
10932
10933         * lib/localcharset.c (OS2): Don't redefine if already defined.
10934         Reported by Elbert Pol <e.pol@chello.nl>.
10935
10936 2008-04-13  Bruno Haible  <bruno@clisp.org>
10937
10938         * lib/binary-io.h [__EMX__]: Include <io.h>.
10939         Reported by Elbert Pol <e.pol@chello.nl>.
10940
10941 2008-04-12  Bruno Haible  <bruno@clisp.org>
10942
10943         * lib/fpucw.h: Enable the definitions also for x86_64.
10944         Needed for NetBSD/x86_64.
10945         Reported by Thomas Klausner <tk@giga.or.at>.
10946
10947 2008-04-12  Bruno Haible  <bruno@clisp.org>
10948
10949         * tests/test-strtod.c: Include isnand.h.
10950         (main): Use isnand instead of isnan.
10951         Reported by Jim Meyering.
10952
10953 2008-04-12  Bruno Haible  <bruno@clisp.org>
10954
10955         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
10956         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10957
10958 2008-04-12  Jim Meyering  <meyering@redhat.com>
10959
10960         * m4/math_h.m4 (gl_MATH_H): Fix typos.
10961
10962 2008-04-12  Bruno Haible  <bruno@clisp.org>
10963
10964         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
10965         Reported by Elbert Pol <e.pol@chello.nl>.
10966
10967 2008-04-12  Eric Blake  <ebb9@byu.net>
10968
10969         Work around Solaris 10 math.h bug.
10970         * m4/math_h.m4 (gl_MATH_H): Check for bug.
10971         (gl_MATH_H_DEFAULTS): Set up default.
10972         * modules/math (Makefile.am): Replace new indicators.
10973         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
10974         * tests/test-math.c (main): Test this.
10975         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
10976         * doc/posix-headers/math.texi (math.h): Mention bug.
10977         Reported by Nelson H. F. Beebe and Jim Meyering.
10978
10979 2008-04-11  Bruno Haible  <bruno@clisp.org>
10980
10981         Adapt to future versions of Apple GCC.
10982         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
10983         Reported by Peter O'Gorman <peter@pogma.com>.
10984
10985 2008-04-11  Bruno Haible  <bruno@clisp.org>
10986
10987         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
10988
10989 2008-04-11  Bruno Haible  <bruno@clisp.org>
10990
10991         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
10992
10993         * modules/getaddrinfo-tests (Makefile.am): Define
10994         test_getaddrinfo_LDADD.
10995
10996 2008-04-11  Bruno Haible  <bruno@clisp.org>
10997
10998         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
10999         (init): Fix syntax error.
11000         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11001         is declared.
11002
11003 2008-04-11  Bruno Haible  <bruno@clisp.org>
11004
11005         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11006         * modules/glob (Depends-on): Add stdbool.
11007
11008 2008-04-11  Bruno Haible  <bruno@clisp.org>
11009
11010         * lib/trim.c: Include <string.h>.
11011
11012 2008-04-11  Eric Blake  <ebb9@byu.net>
11013
11014         Avoid compile failure on OS/2.
11015         * lib/regex_internal.h (internal_function): Disable optimization
11016         on OS/2 (__EMX__), where it caused compiler error.
11017         Reported by Elbert Pol.
11018
11019 2008-04-11  Bruno Haible  <bruno@clisp.org>
11020
11021         Flush the standard error stream before aborting. Needed on mingw.
11022         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11023         * tests/test-array_list.c (ASSERT): Likewise.
11024         * tests/test-array_oset.c (ASSERT): Likewise.
11025         * tests/test-avltree_list.c (ASSERT): Likewise.
11026         * tests/test-avltree_oset.c (ASSERT): Likewise.
11027         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11028         * tests/test-binary-io.c (ASSERT): Likewise.
11029         * tests/test-byteswap.c (ASSERT): Likewise.
11030         * tests/test-c-ctype.c (ASSERT): Likewise.
11031         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11032         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11033         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11034         * tests/test-c-strstr.c (ASSERT): Likewise.
11035         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11036         * tests/test-canonicalize.c (ASSERT): Likewise.
11037         * tests/test-carray_list.c (ASSERT): Likewise.
11038         * tests/test-ceilf1.c (ASSERT): Likewise.
11039         * tests/test-ceilf2.c (ASSERT): Likewise.
11040         * tests/test-ceill.c (ASSERT): Likewise.
11041         * tests/test-count-one-bits.c (ASSERT): Likewise.
11042         * tests/test-fbufmode.c (ASSERT): Likewise.
11043         * tests/test-fflush2.c (ASSERT): Likewise.
11044         * tests/test-floorf1.c (ASSERT): Likewise.
11045         * tests/test-floorf2.c (ASSERT): Likewise.
11046         * tests/test-floorl.c (ASSERT): Likewise.
11047         * tests/test-fopen.c (ASSERT): Likewise.
11048         * tests/test-fpending.c (ASSERT): Likewise.
11049         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11050         * tests/test-fpurge.c (ASSERT): Likewise.
11051         * tests/test-freadable.c (ASSERT): Likewise.
11052         * tests/test-freadahead.c (ASSERT): Likewise.
11053         * tests/test-freading.c (ASSERT): Likewise.
11054         * tests/test-freadptr.c (ASSERT): Likewise.
11055         * tests/test-freadptr2.c (ASSERT): Likewise.
11056         * tests/test-freadseek.c (ASSERT): Likewise.
11057         * tests/test-freopen.c (ASSERT): Likewise.
11058         * tests/test-frexp.c (ASSERT): Likewise.
11059         * tests/test-frexpl.c (ASSERT): Likewise.
11060         * tests/test-fseek.c (ASSERT): Likewise.
11061         * tests/test-fseeko.c (ASSERT): Likewise.
11062         * tests/test-fstrcmp.c (ASSERT): Likewise.
11063         * tests/test-ftell.c (ASSERT): Likewise.
11064         * tests/test-ftello.c (ASSERT): Likewise.
11065         * tests/test-func.c (ASSERT): Likewise.
11066         * tests/test-fwritable.c (ASSERT): Likewise.
11067         * tests/test-fwriting.c (ASSERT): Likewise.
11068         * tests/test-getdelim.c (ASSERT): Likewise.
11069         * tests/test-getline.c (ASSERT): Likewise.
11070         * tests/test-i-ring.c (ASSERT): Likewise.
11071         * tests/test-iconv-utf.c (ASSERT): Likewise.
11072         * tests/test-iconv.c (ASSERT): Likewise.
11073         * tests/test-isfinite.c (ASSERT): Likewise.
11074         * tests/test-isnand.c (ASSERT): Likewise.
11075         * tests/test-isnanf.c (ASSERT): Likewise.
11076         * tests/test-isnanl.h (ASSERT): Likewise.
11077         * tests/test-ldexpl.c (ASSERT): Likewise.
11078         * tests/test-linked_list.c (ASSERT): Likewise.
11079         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11080         * tests/test-localename.c (ASSERT): Likewise.
11081         * tests/test-lseek.c (ASSERT): Likewise.
11082         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11083         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11084         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11085         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11086         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11087         * tests/test-mbschr.c (ASSERT): Likewise.
11088         * tests/test-mbscspn.c (ASSERT): Likewise.
11089         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11090         * tests/test-mbspbrk.c (ASSERT): Likewise.
11091         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11092         * tests/test-mbsrchr.c (ASSERT): Likewise.
11093         * tests/test-mbsspn.c (ASSERT): Likewise.
11094         * tests/test-mbsstr1.c (ASSERT): Likewise.
11095         * tests/test-mbsstr2.c (ASSERT): Likewise.
11096         * tests/test-mbsstr3.c (ASSERT): Likewise.
11097         * tests/test-memchr2.c (ASSERT): Likewise.
11098         * tests/test-memmem.c (ASSERT): Likewise.
11099         * tests/test-open.c (ASSERT): Likewise.
11100         * tests/test-printf-frexp.c (ASSERT): Likewise.
11101         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11102         * tests/test-printf-posix.c (ASSERT): Likewise.
11103         * tests/test-quotearg.c (ASSERT): Likewise.
11104         * tests/test-rbtree_list.c (ASSERT): Likewise.
11105         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11106         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11107         * tests/test-round1.c (ASSERT): Likewise.
11108         * tests/test-roundf1.c (ASSERT): Likewise.
11109         * tests/test-roundl.c (ASSERT): Likewise.
11110         * tests/test-signbit.c (ASSERT): Likewise.
11111         * tests/test-sleep.c (ASSERT): Likewise.
11112         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11113         * tests/test-snprintf.c (ASSERT): Likewise.
11114         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11115         * tests/test-stat-time.c (ASSERT): Likewise.
11116         * tests/test-strcasestr.c (ASSERT): Likewise.
11117         * tests/test-strerror.c (ASSERT): Likewise.
11118         * tests/test-striconv.c (ASSERT): Likewise.
11119         * tests/test-striconveh.c (ASSERT): Likewise.
11120         * tests/test-striconveha.c (ASSERT): Likewise.
11121         * tests/test-strsignal.c (ASSERT): Likewise.
11122         * tests/test-strstr.c (ASSERT): Likewise.
11123         * tests/test-strtod.c (ASSERT): Likewise.
11124         * tests/test-trunc1.c (ASSERT): Likewise.
11125         * tests/test-trunc2.c (ASSERT): Likewise.
11126         * tests/test-truncf1.c (ASSERT): Likewise.
11127         * tests/test-truncf2.c (ASSERT): Likewise.
11128         * tests/test-truncl.c (ASSERT): Likewise.
11129         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11130         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11131         * tests/test-vasnprintf.c (ASSERT): Likewise.
11132         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11133         * tests/test-vasprintf.c (ASSERT): Likewise.
11134         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11135         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11136         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11137         * tests/test-vsnprintf.c (ASSERT): Likewise.
11138         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11139         * tests/test-wcwidth.c (ASSERT): Likewise.
11140         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11141         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11142         * tests/test-xvasprintf.c (ASSERT): Likewise.
11143         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11144         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11145         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11146         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11147         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11148         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11149         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11150         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11151         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11152         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11153         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11154         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11155         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11156         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11157         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11158         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11159         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11160         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11161         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11162         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11163         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11164         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11165         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11166         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11167         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11168         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11169         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11170         * tests/unictype/test-combining.c (ASSERT): Likewise.
11171         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11172         * tests/unictype/test-digit.c (ASSERT): Likewise.
11173         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11174         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11175         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11176         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11177         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11178         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11179         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11180         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11181         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11182         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11183         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11184         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11185         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11186         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11187         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11188         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11189         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11190         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11191         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11192         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11193         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11194         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11195         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11196         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11197         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11198         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11199         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11200         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11201         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11202         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11203         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11204         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11205         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11206         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11207         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11208         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11209         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11210         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11211         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11212         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11213         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11214         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11215         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11216         Reported by Eric Blake.
11217
11218 2008-04-11  Bruno Haible  <bruno@clisp.org>
11219
11220         * lib/wchar.in.h: Tweak comment.
11221
11222 2008-04-11  Bruno Haible  <bruno@clisp.org>
11223
11224         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11225         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11226         gl_COMMON.
11227         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11228
11229 2008-04-11  Bruno Haible  <bruno@clisp.org>
11230
11231         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11232
11233 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11234
11235         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11236         of attempting to use non-existing /dev/*random.  Based on patch
11237         from Adam Strzelecki <ono@java.pl> in
11238         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11239
11240 2008-04-08  Bruno Haible  <bruno@clisp.org>
11241
11242         Add tentative support for emx+gcc.
11243         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11244         * lib/fpurge.c (fpurge): Likewise.
11245         * lib/freadable.c (freadable): Likewise.
11246         * lib/freadahead.c (freadahead): Likewise.
11247         * lib/freading.c (freading): Likewise.
11248         * lib/freadptr.c (freadptr): Likewise.
11249         * lib/freadseek.c (freadptrinc): Likewise.
11250         * lib/fseeko.c (rpl_fseeko): Likewise.
11251         * lib/fseterr.c (fseterr): Likewise.
11252         * lib/fwritable.c (fwritable): Likewise.
11253         * lib/fwriting.c (fwriting): Likewise.
11254         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11255
11256 2008-04-09  Eric Blake  <ebb9@byu.net>
11257
11258         Avoid some autoconf warnings.
11259         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11260         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11261         * m4/afs.m4 (gl_AFS): Likewise.
11262         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11263         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11264         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11265         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11266         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11267         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11268         (AC_CHECK_DECLS_ONCE): Likewise.
11269         Rename file...
11270         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11271         gnulib-tool requires autoconf 2.59 or better.
11272         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11273
11274 2008-04-08  Eric Blake  <ebb9@byu.net>
11275
11276         Use 'git describe --match' if present (added in git 1.5.5).
11277         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11278         if possible.
11279
11280 2008-04-08  Bruno Haible  <bruno@clisp.org>
11281
11282         Add tentative support for OpenServer.
11283         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11284         _ptr, _cnt.
11285         * lib/fpurge.c (fpurge): Likewise.
11286         * lib/freadable.c (freadable): Likewise.
11287         * lib/freadahead.c (freadahead): Likewise.
11288         * lib/freading.c (freading): Likewise.
11289         * lib/freadptr.c (freadptr): Likewise.
11290         * lib/freadseek.c (freadptrinc): Likewise.
11291         * lib/fseeko.c (rpl_fseeko): Likewise.
11292         * lib/fseterr.c (fseterr): Likewise.
11293         * lib/fwritable.c (fwritable): Likewise.
11294         * lib/fwriting.c (fwriting): Likewise.
11295         Reported by Roger Cornelius <rac@tenzing.org> and
11296         Brian K. White <brian@aljex.com>.
11297
11298 2008-04-06  Jim Meyering  <meyering@redhat.com>
11299
11300         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11301
11302 2008-04-06  Bruno Haible  <bruno@clisp.org>
11303
11304         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11305         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11306         * tests/test-printf-posix.sh: Likewise.
11307         * tests/test-vfprintf-posix.sh: Likewise.
11308         * tests/test-vprintf-posix.sh: Likewise.
11309         * tests/test-xprintf-posix.sh: Likewise.
11310
11311 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11312
11313         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11314         hide error from 'ls', needed on OS/2.
11315         Report by Elbert Pol <elbert.pol@gmail.com>.
11316
11317 2008-04-04  Eric Blake  <ebb9@byu.net>
11318
11319         Make test-fseeko.c failures meaningful.
11320         * tests/test-fseeko.c: Print line number on failure.
11321         * tests/test-fseek.c: Likewise.
11322         Reported by Nelson H. F. Beebe.
11323
11324         Improve strtod bug detection check.
11325         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11326         required for Solaris 10.
11327         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11328
11329 2008-04-04  Bruno Haible  <bruno@clisp.org>
11330
11331         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11332         by m4/setenv.m4.
11333
11334 2008-04-03  Eric Blake  <ebb9@byu.net>
11335
11336         Ensure sane .version contents.
11337         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11338         version string.
11339         * build-aux/git-version-gen: Improve documentation.
11340
11341         Make GNU make output nicer.
11342         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11343         MAKECMDGOALS to enforce message for all command line targets.  Set
11344         srcdir for use in maint.mk.
11345
11346         Another maintainer tweak.
11347         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11348         a target that regenerates version.
11349
11350 2008-04-03  Jim Meyering  <meyering@redhat.com>
11351
11352         vc-list-files: don't cause coreutils "make po-check" failure
11353         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11354
11355 2008-04-03  Eric Blake  <ebb9@byu.net>
11356
11357         Allow VPATH usage of vc-list-files.
11358         * build-aux/vc-list-files (scriptversion): Add timestamp.
11359         (options): Add --help, --version, -C.
11360         (CVS): Support installed cvsu.
11361
11362 2008-04-02  Bruno Haible  <bruno@clisp.org>
11363
11364         Avoid some "statement with no effect" warnings from gcc.
11365         * tests/test-wctype.c (main): Explicitly ignore unused values.
11366         Reported by Jim Meyering.
11367
11368 2008-04-02  Jim Meyering  <meyering@redhat.com>
11369
11370         Avoid some warnings from "gcc -Wshadow".
11371         * tests/test-frexp.c (exp): Define to a different identifier.
11372         * tests/test-frexpl.c (exp): Likewise.
11373
11374 2008-04-03  Jim Meyering  <meyering@redhat.com>
11375
11376         bootstrap: remove dangling *.[ch] symlinks from lib
11377         * build-aux/bootstrap [dangling symlink removal]: Move find's
11378         -depth option to precede all others, to avoid a warning.
11379         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11380
11381 2008-04-02  Bruno Haible  <bruno@clisp.org>
11382
11383         Avoid some warnings from "gcc -Wshadow".
11384         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11385         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11386         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11387         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11388         Reported by Jim Meyering.
11389
11390 2008-04-01  Bruno Haible  <bruno@clisp.org>
11391
11392         Fix test to work on IRIX 6.5 with cc.
11393         * tests/test-math.c (numeric_equal): New function.
11394         (main): Use it.
11395
11396 2008-04-01  Bruno Haible  <bruno@clisp.org>
11397
11398         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11399
11400 2008-04-01  Bruno Haible  <bruno@clisp.org>
11401
11402         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11403         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11404         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11405         (Depends-on): Remove math.
11406
11407         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11408         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11409         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11410         (Depends-on): Remove math.
11411
11412         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11413         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11414         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11415         (Depends-on): Remove math.
11416         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11417         (Depends-on): Remove math.
11418
11419         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11420         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11421         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11422         (Depends-on): Remove math.
11423         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11424         (Depends-on): Remove math.
11425
11426         * tests/test-round1.c: Include nan.h.
11427         (main): Use NaNd instead of NAN.
11428         * modules/round-tests (Files): Add tests/nan.h.
11429
11430         * tests/test-trunc1.c: Include nan.h.
11431         (main): Use NaNd instead of NAN.
11432         * modules/trunc-tests (Files): Add tests/nan.h.
11433
11434         * tests/test-roundf1.c: Include nan.h.
11435         (main): Use NaNf instead of NAN.
11436         * modules/roundf-tests (Files): Add tests/nan.h.
11437
11438         * tests/test-truncf1.c: Include nan.h.
11439         (main): Use NaNf instead of NAN.
11440         * modules/truncf-tests (Files): Add tests/nan.h.
11441
11442         * tests/test-ceilf1.c: Include nan.h.
11443         (main): Use NaNf instead of NAN.
11444         * modules/ceilf-tests (Files): Add tests/nan.h.
11445
11446         * tests/test-floorf1.c: Include nan.h.
11447         (main): Use NaNf instead of NAN.
11448         * modules/floorf-tests (Files): Add tests/nan.h.
11449
11450         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11451         (main): Use NaNf instead of NAN.
11452         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11453
11454         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11455         (main): Use NaNd instead of NAN.
11456         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11457
11458         * tests/test-frexp.c: Include nan.h.
11459         (main): Use NaNd instead of NAN.
11460         * modules/frexp-tests (Files): Add tests/nan.h.
11461
11462         * lib/isnan.c: Don't include <math.h>.
11463         (FUNC): Don't use NAN macro.
11464         * modules/isnand-nolibm (Depends-on): Remove math.
11465         * modules/isnanf-nolibm (Depends-on): Remove math.
11466         * modules/isnanl (Depends-on): Remove math.
11467         * modules/isnanl-nolibm (Depends-on): Remove math.
11468
11469         * tests/nan.h: New file.
11470
11471 2008-04-01  Eric Blake  <ebb9@byu.net>
11472
11473         Fix typos.
11474         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11475         values to be the right type.
11476
11477         For now, cater to gnulib strtod inaccuracies.
11478         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11479         fractional results.  While not as nice from a QoI perspective, it
11480         is a quicker patch than correctly implementing decimal to binary
11481         rounding.
11482
11483 2008-03-31  Eric Blake  <ebb9@byu.net>
11484
11485         Guarantee a definition of NAN.
11486         * lib/math.in.h (NAN): Define if missing.
11487         * tests/test-math.c (main): Test it.
11488         * doc/posix-headers/math.texi (math.h): Document this.
11489         * lib/isnan.c (rpl_isnand): Use it.
11490         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11491         * tests/test-floorf1.c (NaN): Likewise.
11492         * tests/test-frexp.c (NaN): Likewise.
11493         * tests/test-isnand.c (NaN): Likewise.
11494         * tests/test-isnanf.c (NaN): Likewise.
11495         * tests/test-round1.c (NaN): Likewise.
11496         * tests/test-roundf1.c (NaN): Likewise.
11497         * tests/test-snprintf-posix.h (NaN): Likewise.
11498         * tests/test-sprintf-posix.h (NaN): Likewise.
11499         * tests/test-trunc1.c (NaN): Likewise.
11500         * tests/test-truncf1.c (NaN): Likewise.
11501         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11502         * tests/test-vasprintf-posix.c (NaN): Likewise.
11503         * modules/isnand-nolibm (Depends-on): Add math.
11504         * modules/isnanf-nolibm (Depends-on): Likewise.
11505         * modules/isnanl (Depends-on): Likewise.
11506         * modules/isnanl-nolibm (Depends-on): Likewise.
11507         * modules/snprintf-posix-tests (Depends-on): Likewise.
11508         * modules/sprintf-posix-tests (Depends-on): Likewise.
11509         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11510         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11511         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11512         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11513
11514 2008-03-31  Bruno Haible  <bruno@clisp.org>
11515
11516         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11517         * doc/posix-functions/strtod.texi: Likewise.
11518
11519 2008-03-31  Bruno Haible  <bruno@clisp.org>
11520
11521         * tests/test-strtod.c (main): Don't use C99 syntax.
11522
11523 2008-03-31  Bruno Haible  <bruno@clisp.org>
11524
11525         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11526         Reported by Eric Blake.
11527
11528 2008-03-31  Jim Meyering  <meyering@redhat.com>
11529
11530         Don't compare actual signbit return values.
11531         * tests/test-strtod.c (main): Rather, compare only their
11532         zero/non-zero nature.
11533
11534 2008-03-31  Eric Blake  <ebb9@byu.net>
11535
11536         More strtod documentation.
11537         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11538         failures as distinct bugs.
11539
11540 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11541
11542         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11543         Problem reported by Erik Benada in
11544         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11545
11546 2008-03-30  Bruno Haible  <bruno@clisp.org>
11547
11548         * tests/test-strtod.c: Add comments about which assertion fails on which
11549         platform.
11550         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11551
11552 2008-03-30  Eric Blake  <ebb9@byu.net>
11553
11554         Test signbit behavior on zeros.
11555         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11556         (test_signbitd, test_signbitl): Likewise.
11557
11558         More strtod touchups.
11559         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11560         sign of negative underflow, for now.  Use .5, not .1.
11561         * doc/posix-functions/strtod.texi (strtod): Mention these
11562         limitations.
11563         Reported by Jim Meyering.
11564
11565 2008-03-30  Bruno Haible  <bruno@clisp.org>
11566
11567         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11568         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11569
11570 2008-03-30  Bruno Haible  <bruno@clisp.org>
11571
11572         Avoid failure when attempting to return empty iconv results on some
11573         platforms.
11574         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11575         allocation, don't report ENOMEM when the resulting string is empty.
11576
11577 2008-03-30  Bruno Haible  <bruno@clisp.org>
11578
11579         Fix buffer overrun.
11580         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11581         Don't consider the width for tmp_length. Check count against tmp_length
11582         before doing the padding. Ensure enough allocation during padding.
11583
11584 2008-03-30  Eric Blake  <ebb9@byu.net>
11585
11586         strtod touchups.
11587         * lib/strtod.c (strtod): Avoid compiler warnings.
11588         Reported by Jim Meyering.
11589
11590 2008-03-30  Bruno Haible  <bruno@clisp.org>
11591
11592         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11593         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11594         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11595         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11596         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11597         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11598         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11599         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11600
11601         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11602         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11603         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11604         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11605         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11606         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11607         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11608         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11609
11610         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11611         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11612         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11613         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11614         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11615         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11616         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11617         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11618
11619         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11620         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11621
11622         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11623         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11624
11625         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11626         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11627
11628         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11630         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11631
11632         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11633         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11634         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11635
11636         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11637         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11638         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11639
11640         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11642         * modules/vasprintf (Depends-on): Add EOVERFLOW.
11643
11644         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11645         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11647         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11648         (Depends-on): Add EOVERFLOW.
11649         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11650         (Depends-on): Add EOVERFLOW.
11651         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11652         (Depends-on): Add EOVERFLOW.
11653         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11654         (Depends-on): Add EOVERFLOW.
11655         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11656         (Depends-on): Add EOVERFLOW.
11657         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11658         (Depends-on): Add EOVERFLOW.
11659         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11660         (Depends-on): Add EOVERFLOW.
11661         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11662         (Depends-on): Add EOVERFLOW.
11663
11664         * lib/sprintf.c (EOVERFLOW): Remove fallback.
11665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11666         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11667
11668         * lib/snprintf.c (EOVERFLOW): Remove fallback.
11669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11670         * modules/snprintf (Depends-on): Add EOVERFLOW.
11671
11672         * lib/poll.c (EOVERFLOW): Remove fallback.
11673         * modules/poll (Depends-on): Add EOVERFLOW.
11674
11675         * lib/getugroups.c (EOVERFLOW): Remove fallback.
11676         * modules/getugroups (Depends-on): Add EOVERFLOW.
11677
11678         * lib/getdelim.c (EOVERFLOW): Remove fallback.
11679         * modules/getdelim (Depends-on): Add EOVERFLOW.
11680
11681         * lib/ftell.c (EOVERFLOW): Remove fallback.
11682         * modules/ftell (Depends-on): Add EOVERFLOW.
11683
11684         * lib/fprintf.c (EOVERFLOW): Remove fallback.
11685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11686         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11687
11688         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11689
11690         * modules/EOVERFLOW-tests: New file.
11691         * tests/test-EOVERFLOW.c: New file.
11692
11693         * modules/EOVERFLOW: New file.
11694         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11695
11696 2008-03-30  Bruno Haible  <bruno@clisp.org>
11697
11698         Fix bug introduced on 2007-06-10.
11699         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11700         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11701
11702 2008-03-30  Bruno Haible  <bruno@clisp.org>
11703
11704         Improve freadseek's efficiency after ungetc.
11705         * lib/freadseek.c: Include freadahead.h.
11706         (freadptrinc): New function, extracted from freadseek.
11707         (freadseek): Use it in a loop. Use freadahead to determine the number
11708         of loop iterations.
11709         * modules/freadseek (Depends-on): Add freadahead.
11710         (configure.ac): Require AC_C_INLINE.
11711
11712 2008-03-30  Bruno Haible  <bruno@clisp.org>
11713
11714         * lib/freadseek.c (freadseek): Don't ignore the return value of
11715         freadptr.
11716
11717 2008-03-29  Eric Blake  <ebb9@byu.net>
11718
11719         Add hex float support.
11720         * modules/strtod (Depends-on): Add c-ctype.
11721         (Link): Mention POW_LIB.
11722         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
11723         whitespace between 'e' and exponent.
11724         * tests/test-strtod.c (main): Enable hex float tests.
11725         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11726         now provides.
11727
11728         Document various strtod bugs, with some fixes.
11729         * doc/posix-functions/strtod.texi (strtod): Document bugs with
11730         "-0x", "inf", "nan", and hex constants.
11731         * doc/posix-functions/atof.texi (atof): Likewise.
11732         * modules/stdlib (Makefile.am): Support strtod.
11733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11734         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11735         detect additional strtod bugs.
11736         * lib/stdlib.in.h (rpl_strtod): Add declarations.
11737         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
11738         bool where appropriate.  Parse 'inf' and 'nan'.
11739         * tests/test-strtod.c: New file.
11740         * modules/strtod (Depends-on): Add stdbool, stdlib.
11741         (configure.ac): Turn on module indicator.
11742         * modules/strtod-tests: New module.
11743
11744 2008-03-29  Eric Blake  <ebb9@byu.net>
11745
11746         Fix ftell on mingw.
11747         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
11748         * modules/ftell-tests (Depends-on): Add binary-io.
11749         * modules/ftello-tests (Depends-on): Likewise.
11750         * tests/test-ftell.c (main): Enhance test to cover behavior after
11751         ungetc.  Enforce binary mode.
11752         * tests/test-ftello.c (main): Likewise.
11753
11754         Pass test-freadseek on cygwin.
11755         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
11756         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
11757         ungetc buffer.
11758
11759         * tests/test-fflush2.c (main): Fix typo.
11760
11761 2008-03-29  Bruno Haible  <bruno@clisp.org>
11762
11763         * tests/test-fflush2.c (main): Temporarily disable the contents of
11764         this test.
11765         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
11766         Reported by Eric Blake.
11767
11768 2008-03-28  Simon Josefsson  <simon@josefsson.org>
11769
11770         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
11771         (GC_SHA224_DIGEST_SIZE): Add.
11772
11773         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
11774         (gc_hash_digest_length): Likewise.
11775         (gc_hash_buffer): Likewise.
11776
11777 2008-03-25  Bruno Haible  <bruno@clisp.org>
11778
11779         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
11780         detail which gettext release to use.
11781         Reported by Simon Josefsson.
11782
11783 2008-03-26  Jim Meyering  <meyering@redhat.com>
11784
11785         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
11786         * modules/gnumakefile (clean-GNUmakefile): Also, use
11787         test ... && ... || : syntax rather than if-then ... fi.
11788
11789         gnumakefile: Don't double-quote-expand $(VPATH) value.
11790         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
11791
11792 2008-03-24  Eric Blake  <ebb9@byu.net>
11793
11794         Alter GNUmakefile to install into top directory.
11795         * modules/maintainer-makefile: Split, and add dependency...
11796         * modules/gnumakefile: to this new module.
11797         * build-aux/GNUmakefile: Move...
11798         * top/GNUmakefile: ...here.
11799         * build-aux/maint.mk: Move...
11800         * top/maint.mk: ...here.
11801         * MODULES.html.sh (Support for maintaining...): Document new
11802         module.
11803
11804 2008-03-23  Bruno Haible  <bruno@clisp.org>
11805
11806         * gnulib-tool: New options --vc-files, --no-vc-files.
11807         (func_usage): Document them.
11808         (vc_files): New variable.
11809         (func_import): Consider vc_files.
11810         (func_create_testdir): Set vc_files to empty.
11811         Suggested by Jim Meyering and Karl Berry.
11812
11813 2008-03-23  Bruno Haible  <bruno@clisp.org>
11814
11815         Fix regex compilation error on HP-UX 11.
11816         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
11817         * modules/regex (Files): Add m4/mbstate_t.m4.
11818         Reported by Ton Voon <ton.voon@altinity.com>.
11819
11820 2008-03-23  Bruno Haible  <bruno@clisp.org>
11821
11822         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
11823
11824 2008-03-23  Eric Blake  <ebb9@byu.net>
11825             Bruno Haible  <bruno@clisp.org>
11826
11827         Install files from top/ in the destination directory.
11828         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11829         augmentation also for the files from top/.
11830         (func_import, func_create_testdir): Rewrite file names:
11831         top/filename -> filename.
11832
11833 2008-03-23  Bruno Haible  <bruno@clisp.org>
11834
11835         Tweak "gnulib --version" output.
11836         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
11837
11838 2008-03-23  Bruno Haible  <bruno@clisp.org>
11839
11840         Tweak "gnulib --version" output.
11841         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
11842         rather than contents of ChangeLog, when possible.
11843
11844 2008-03-21  Eric Blake  <ebb9@byu.net>
11845
11846         More --version tweaks.
11847         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
11848         date of last ChangeLog entry.
11849
11850 2008-03-21  Jim Meyering  <meyering@redhat.com>
11851
11852         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
11853
11854 2008-03-20  Eric Blake  <ebb9@byu.net>
11855
11856         VPATH fix.
11857         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
11858
11859 2008-03-20  Simon Josefsson  <simon@josefsson.org>
11860
11861         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
11862         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
11863
11864 2008-03-20  Eric Blake  <ebb9@byu.net>
11865
11866         Sync GNUmakefile with coreutils.
11867         * build-aux/GNUmakefile (have-Makefile): Rename...
11868         (_have-Makefile): ...to this, for namespace consideration.
11869         (GNUmakefile.cfg): Include, if present.
11870         (_autoreconf): Define a default.
11871         (_is-dist-target): New rule for rebuilds to pick up intra-release
11872         version.
11873         (maint-cfg.mk): Rename...
11874         (cfg.mk): ...to this.
11875
11876 2008-03-18  Jim Meyering  <meyering@redhat.com>
11877
11878         New script and module: mktempd
11879         * MODULES.html.sh (maint+release support): Add mktempd.
11880         * build-aux/mktempd: New file.
11881         * modules/mktempd: New file.
11882
11883 2008-03-15  Jim Meyering  <meyering@redhat.com>
11884
11885         Undo last change.
11886         * lib/sha1.c, lib/md5.c: 63 != ~63.
11887         Reported by Andreas Schwab.
11888
11889         sha1.c, md5.c: Hoist a redundant expression.
11890         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
11891         "ctx->buflen" only once, before calling *_process_block.
11892         * lib/md5.c (md5_process_bytes): Likewise.
11893
11894 2008-03-14  Eric Blake  <ebb9@byu.net>
11895
11896         Bump copyright year in files generated by gnulib-tool.
11897         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
11898         gnulib-tool, rather than hard-coding it.
11899
11900         Fix 'gnulib-tool --version' output to work with git.
11901         * gnulib-tool (func_gnulib_dir): New function, extracted from...
11902         (startup): ...here.
11903         (func_version): Use it to invoke git-version-gen, rather than
11904         relying on CVS keyword expansion.  Modernize wording.
11905         (cvsdatestamp, last_checkin_date, version): Kill unused
11906         variables.
11907
11908 2008-03-12  Jim Meyering  <meyering@redhat.com>
11909
11910         Recognize optional cast of the argument to free.
11911         * build-aux/useless-if-before-free: Update regexps.
11912
11913         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
11914
11915 2008-03-11  Bruno Haible  <bruno@clisp.org>
11916
11917         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
11918         by a single package.
11919         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
11920         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
11921         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
11922         Reported by Sam Steingold <sds@gnu.org>.
11923
11924 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11925
11926         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
11927         repositories.
11928
11929 2008-03-11  Bruno Haible  <bruno@clisp.org>
11930
11931         Avoid conflicts between local macro definitions.
11932         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11933         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
11934
11935 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
11936             Bruno Haible  <bruno@clisp.org>
11937
11938         Make va_copy work with some version of xlc on AIX 5.1.
11939         * lib/stdarg.in.h: New file.
11940         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
11941         On AIX, use a <stdarg.h> file substitute.
11942         * modules/stdarg (Files): Add lib/stdarg.in.h.
11943         (Depends-on): Add include_next.
11944         (Makefile.am): Build a stdarg.h substitute if requested.
11945         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
11946
11947 2008-03-10  Bruno Haible  <bruno@clisp.org>
11948
11949         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
11950         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11951         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
11952
11953 2008-03-10  Bruno Haible  <bruno@clisp.org>
11954
11955         * modules/stdlib (Depends-on): Add include_next, remove
11956         absolute-header.
11957
11958 2008-03-09  Bruno Haible  <bruno@clisp.org>
11959
11960         * lib/freadahead.h (freadahead): Document more precisely.
11961         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
11962         the sum of both buffer sizes.
11963         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
11964         * NEWS: Document the change.
11965
11966 2008-03-09  Bruno Haible  <bruno@clisp.org>
11967
11968         Extend freadptr to return also the buffer size.
11969         * lib/freadptr.h (freadptr): Add sizep argument.
11970         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
11971         (freadptr): Add sizep argument. Determine buffer size like freadahead
11972         does.
11973         * tests/test-freadptr.c: Don't include freadahead.h.
11974         (main): Adapt for new calling convention of freadptr.
11975         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
11976         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
11977         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
11978         tests/test-freadptr2.sh.
11979         (Depends): Remove freadahead.
11980         (TESTS): Add test-freadptr2.sh.
11981         (check_PROGRAMS): Add test-freadptr2.
11982
11983 2008-03-09  Bruno Haible  <bruno@clisp.org>
11984
11985         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
11986         Report and solution by Simon Josefsson.
11987
11988 2008-03-06  Bruno Haible  <bruno@clisp.org>
11989
11990         Make fflush after ungetc work on BSD platforms.
11991         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
11992         * tests/test-fflush2.c: New file.
11993         * tests/test-fflush2.sh: New file.
11994         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
11995         tests/test-fflush2.c.
11996         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
11997         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
11998
11999 2008-03-06  Eric Blake  <ebb9@byu.net>
12000
12001         Likewise for ftello.
12002         * modules/ftello (Dependencies): Add extensions.
12003         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12004
12005 2008-03-06  Bruno Haible  <bruno@clisp.org>
12006
12007         * modules/fseeko (Dependencies): Add extensions.
12008         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12009         Needed on glibc systems.
12010
12011 2008-03-06  Bruno Haible  <bruno@clisp.org>
12012
12013         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12014         email address.
12015         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12016
12017 2008-03-06  Bruno Haible  <bruno@clisp.org>
12018
12019         * users.txt: Add libgnupdf.
12020
12021 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12022
12023         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12024         (Header File Substitutes, Function Substitutes,
12025         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12026         (Build robot for gnulib): Fix typo.
12027
12028 2008-03-06  Bruno Haible  <bruno@clisp.org>
12029
12030         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12031         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12032
12033 2008-03-06  Bruno Haible  <bruno@clisp.org>
12034
12035         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12036         * doc/gnulib.texi: Include it.
12037
12038 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12039
12040         * modules/func (License): Change license to unlimited; there was
12041         no LGPL parts in the module anyway.
12042
12043 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12044
12045         * modules/__func__: Renamed to modules/func.
12046         * modules/__func__-tests: Renamed to modules/func-tests.
12047         * tests/test-__func__.c: Renamed to tests/test-func.c.
12048         * m4/__func__.m4: Renamed to m4/func.m4.
12049         * doc/gnulib.texi (__func__): Section renamed to func.
12050         Suggested by Eric Blake <ebb9@byu.net>.
12051
12052 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12053
12054         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12055         about __func__.  Make example self-contained.  Suggested by Eric
12056         Blake <ebb9@byu.net>.
12057
12058         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12059         Suggested by Eric Blake <ebb9@byu.net>.
12060
12061 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12062
12063         * modules/__func__: New file.
12064         * modules/__func__-tests: New file.
12065         * tests/test-__func__.c: New file.
12066         * m4/__func__.m4: New file.
12067         * doc/gnulib.texi (__func__): Document __func__ module.
12068
12069 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12070
12071         * modules/byteswap (License): Re-license as LGPLv2+.
12072
12073 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12074
12075         * doc/Makefile: Add pdf target.
12076
12077 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12078
12079         * modules/inline (License): Use 'unlimited', since there are only
12080         *.m4 files in this module.
12081
12082 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12083             Bruno Haible  <bruno@clisp.org>
12084
12085         Add support for HP C 7.1 on OpenVMS 8.3.
12086         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12087
12088 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12089
12090         Update VMS specifics.
12091         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12092
12093 2008-03-02  Jim Meyering  <meyering@redhat.com>
12094
12095         Remove the last dependency on the "free" module.
12096         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12097         Reported by Bob Proulx.
12098
12099         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12100
12101         Remove useless "if" tests before free.  Deprecate "free" module.
12102         * doc/posix-functions/free.texi: Mention that this
12103         module is no longer useful.
12104         * modules/free (Notice): Say this module is obsolete.
12105         * modules/readutmp (Depends-on): Remove free.
12106         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12107         * lib/putenv.c (putenv): Likewise.
12108         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12109         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12110         * tests/test-c-strcasestr.c (main): Likewise.
12111         * tests/test-c-strstr.c (main): Likewise.
12112         * tests/test-mbscasestr1.c (main): Likewise.
12113         * tests/test-mbscasestr2.c (main): Likewise.
12114         * tests/test-mbsstr1.c (main): Likewise.
12115         * tests/test-mbsstr2.c (main): Likewise.
12116         * tests/test-memmem.c (main): Likewise.
12117         * tests/test-strcasestr.c (main): Likewise.
12118         * tests/test-striconv.c (main): Likewise.
12119         * tests/test-striconveh.c (main): Likewise.
12120         * tests/test-striconveha.c (main): Likewise.
12121         * tests/test-strstr.c (main): Likewise.
12122
12123         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12124
12125         bootstrap: sync from coreutils again
12126         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12127
12128 2008-03-01  Jim Meyering  <meyering@redhat.com>
12129
12130         bootstrap: sync from coreutils
12131         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12132         also when the target doesn't exist.
12133
12134 2008-03-01  Eric Blake  <ebb9@byu.net>
12135
12136         Fix bugs in last patch.
12137         * lib/memchr2.c (memchr2): Fix typo.
12138         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12139         extension.
12140         Reported by Bruce Korb.
12141
12142         New module 'memchr2'.
12143         * modules/memchr2: New file.
12144         * modules/memchr2-tests: Likewise.
12145         * lib/memchr2.h: Likewise.
12146         * lib/memchr2.c: Likewise, based on memchr.c.
12147         * tests/test-memchr2.c: New test.
12148         * MODULES.html.sh (String handling): Add memchr2.
12149
12150 2008-02-29  Bruno Haible  <bruno@clisp.org>
12151
12152         * modules/freadseek-tests: New file.
12153         * tests/test-freadseek.sh: New file.
12154         * tests/test-freadseek.c: New file.
12155
12156         New module 'freadseek'.
12157         * modules/freadseek: New file.
12158         * lib/freadseek.h: New file.
12159         * lib/freadseek.c: New file.
12160         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12161
12162 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12163
12164         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12165         wydawca.
12166
12167         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12168         program_invocation_name and program_invocation_short_name are
12169         present.
12170
12171 2008-02-28  Bruno Haible  <bruno@clisp.org>
12172
12173         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12174         * tests/test-freadptr.sh: Also test non-seekable stdin.
12175
12176 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12177
12178         * build-aux/bootstrap (source_base, m4_base)
12179         (doc_base, tests_base): New variables.
12180         (gnulib_tool_options): Do not hardcode base directories, use
12181         the above variables instead.
12182
12183 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12184
12185         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12186
12187 2008-02-28  Bruno Haible  <bruno@clisp.org>
12188
12189         * modules/freadptr-tests: New file.
12190         * tests/test-freadptr.sh: New file.
12191         * tests/test-freadptr.c: New file.
12192
12193         New module 'freadptr'.
12194         * modules/freadptr: New file.
12195         * lib/freadptr.h: New file.
12196         * lib/freadptr.c: New file.
12197         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12198
12199 2008-02-26  Karl Berry  <karl@freefriends.org>
12200
12201         Sync from Libtool:
12202         * libltdl/argz.c (argz_add, argz_count): New functions.
12203         * libltdl/argz.in.h: Declare them.
12204         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12205
12206 2008-02-22  Bruno Haible  <bruno@clisp.org>
12207
12208         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12209         is a pointer type.  Needed for HP-UX 10.
12210         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12211         * doc/posix-functions/gmtime_r.texi: Likewise.
12212         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12213
12214 2008-02-24  Bruno Haible  <bruno@clisp.org>
12215
12216         * modules/environ-tests: New file.
12217         * tests/test-environ.c: New file.
12218
12219         New module 'environ'.
12220         * modules/environ: New file.
12221         * lib/unistd.in.h (environ): New declaration.
12222         * m4/environ.m4: New file.
12223         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12224         after use.
12225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12226         HAVE_DECL_ENVIRON.
12227         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12228         HAVE_DECL_ENVIRON.
12229         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12230         wrong claim that 'environ' is missing on some systems.
12231         * modules/execute (Depends-on): Add environ.
12232         * lib/execute.c (environ): Remove fallback declaration.
12233         * modules/pipe (Depends-on): Add environ.
12234         * lib/pipe.c (environ): Remove fallback declaration.
12235         * modules/setenv (Depends-on): Add environ.
12236         * lib/setenv.c (environ): Remove fallback declaration.
12237         * modules/unsetenv (Depends-on): Add environ.
12238         * lib/unsetenv.c (environ): Remove fallback declaration.
12239         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12240         m4/environ.m4.
12241         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12242         (gl_PREREQ_UNSETENV): Likewise.
12243
12244 2008-02-24  Bruno Haible  <bruno@clisp.org>
12245
12246         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12247
12248 2008-02-20  Bob Proulx  <bob@proulx.com>
12249
12250         Enable use of older two part flavor 'git describe'.
12251         * build-aux/git-version-gen: If using the older two part flavor of
12252         git version then recreate the third part now present in the
12253         newer three part flavor of git describe.
12254
12255 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12256
12257         * lib/fts.c (fts_build): Typo correction to comment.
12258
12259 2008-02-17  Bruno Haible  <bruno@clisp.org>
12260
12261         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12262         generating no-op conflicts.
12263
12264 2008-02-17  Bruno Haible  <bruno@clisp.org>
12265
12266         Speed up by 10%.
12267         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12268         result_entries, rather than an index-based loop.
12269
12270 2008-02-17  Bruno Haible  <bruno@clisp.org>
12271
12272         Speed up by 25%.
12273         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12274         'hashcode_cached'.
12275         (entry_create): New function.
12276         (entry_hashcode): Use the cached hashcode if possible.
12277         (read_changelog_file, try_split_merged_entry): Use entry_create.
12278
12279 2008-02-17  Bruno Haible  <bruno@clisp.org>
12280
12281         Speed up from O(n^2) to O(n) for long ChangeLog files.
12282         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12283         (read_changelog_file): Change implementation of entries_reversed list
12284         to rbtreehash.
12285         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12286
12287 2008-02-17  Bruno Haible  <bruno@clisp.org>
12288
12289         New option --split-merged-entry.
12290         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12291         (find_paragraph_end, try_split_merged_entry): New functions.
12292         (long_options): Add option --split-merged-entry.
12293         (usage): Document option --split-merged-entry.
12294         (main): Implement option --split-merged-entry.
12295         Reported by Eric Blake.
12296
12297 2008-02-17  Bruno Haible  <bruno@clisp.org>
12298
12299         * lib/git-merge-changelog.c: Include c-strstr.h.
12300         (main): Support the "git pull --rebase" situation.
12301         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12302         Reported by Eric Blake.
12303
12304 2008-02-16  Eric Blake  <ebb9@byu.net>
12305
12306         Avoid doubling \ in common case of "c-maybe" quoting style.
12307         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12308         eliding outer quotes.
12309         * lib/quotearg.h: Document this.
12310         * tests/test-quotearg.c (result_strings, inputs, results_g)
12311         (flag_results, locale_results): Test it by adding a new string to
12312         each test group.
12313         (compare_strings): Test new string.
12314
12315 2008-02-13  Eric Blake  <ebb9@byu.net>
12316
12317         Avoid trigraph quoting in default output.
12318         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12319         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12320         unless explicitly requested.
12321         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12322
12323 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12324
12325         Don't rely on signed integer overflowing to negative value.
12326         * lib/getugroups.c (getugroups): Include <limits.h>.
12327         Instead, compare against INT_MAX, and increment only if the test passes.
12328
12329 2008-02-13  Jim Meyering  <meyering@redhat.com>
12330         and Eric Blake  <ebb9@byu.net>
12331
12332         Avoid shadowing warning and compile errors on Linux.
12333         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12334         forwarding macros on Linux.
12335         (dcgettext): Define a stub, for Linux.
12336         (results_g, main): Avoid warnings.
12337
12338 2008-02-12  Eric Blake  <ebb9@byu.net>
12339
12340         Silence warning in last patch.
12341         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12342
12343         Quotearg part 4: add tests, fix c-maybe colon quoting.
12344         * lib/quotearg.h: Improve documentation.
12345         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12346         escapes when adding outer quotes.  When quoting trigraphs, use
12347         valid C notation.  When quoting NUL, omit extra characters if next
12348         character is not digit.  Alter prototype.
12349         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12350         callers.
12351         * modules/quotearg-tests: New module.
12352         * tests/test-quotearg.c: New test.
12353
12354 2008-02-07  Eric Blake  <ebb9@byu.net>
12355
12356         Quotearg part 3: add flag to control outer quote elision.
12357         * lib/quotearg.h (c_maybe_quoting_style): New style.
12358         (enum quoting_flags): Better documentation of flags.
12359         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12360         c-maybe style.
12361         (quotearg_buffer_restyled): Handle new flag to elide outer
12362         quotes.
12363
12364         Quotearg part 2: add flag that can control NUL elision.
12365         * lib/quotearg.h (set_quoting_flags): New prototype.
12366         * lib/quotearg.c (struct quoting_options): Add flag field.
12367         (set_quoting_flags): New function.
12368         (quotearg_buffer_restyled): Add flags parameter.
12369         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12370         (quotearg_n_options): Set the flag, since length cannot be
12371         returned.
12372         (quoting_options_from_style): Default flags correctly.
12373
12374         Quotearg part 1: more wrappers, restore quotearg_char state.
12375         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12376         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12377         (quotearg_colon_mem): New wrappers.
12378         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12379         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12380         functions.
12381         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12382         (quotearg_colon_mem): New functions.
12383
12384 2008-02-11  Bruno Haible  <bruno@clisp.org>
12385
12386         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12387         library in the current directory: it does not work with parallel make.
12388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12389
12390 2008-02-11  Bruno Haible  <bruno@clisp.org>
12391
12392         * .gitattributes: New file.
12393
12394 2008-02-11  Jim Meyering  <meyering@redhat.com>
12395
12396         useless-if-before-free: Fix reversed exit values.
12397         * build-aux/useless-if-before-free: Use correct values
12398         for EXIT_MATCH and EXIT_NO_MATCH.
12399
12400         * build-aux/useless-if-before-free: Close stdout carefully.
12401
12402 2008-02-10  Bruno Haible  <bruno@clisp.org>
12403
12404         New module 'git-merge-changelog'.
12405         * modules/git-merge-changelog: New file.
12406         * lib/git-merge-changelog.c: New file.
12407
12408 2008-02-10  Jim Meyering  <meyering@redhat.com>
12409
12410         useless-if-before-free: New option: --list (-l).
12411
12412         useless-if-before-free: Don't exit immediately upon open failure.
12413         * build-aux/useless-if-before-free: Exit 2 for errors.
12414         Upon failure to open a file, don't exit immediately.
12415         Rather, just warn and continue with any remaining files.
12416
12417 2008-02-10  Bruno Haible  <bruno@clisp.org>
12418
12419         New abstract list operation 'node_set_value'.
12420         * lib/gl_list.h (gl_list_node_set_value): New function.
12421         (struct gl_list_implementation): New field node_set_value.
12422         * lib/gl_list.c (gl_list_node_set_value): New function.
12423         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12424         (gl_array_list_implementation): Update.
12425         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12426         (gl_carray_list_implementation): Update.
12427         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12428         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12429         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12430         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12431         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12432         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12433         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12434         Update.
12435         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12436         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12437         (gl_sublist_list_implementation): Update.
12438
12439 2008-02-10  Bruno Haible  <bruno@clisp.org>
12440
12441         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12442         Needed when ELEMENT is #defined to 'some_type *'.
12443
12444 2008-02-10  Jim Meyering  <meyering@redhat.com>
12445
12446         New script and module: useless-if-before-free
12447         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12448         * build-aux/useless-if-before-free: New file.
12449         * modules/useless-if-before-free: New file.
12450
12451         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12452
12453         xstrtol_error: Fix typo.
12454         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12455         s/exit_failure/exit_status/.
12456
12457 2008-02-09  Jim Meyering  <meyering@redhat.com>
12458
12459         New script and module: gitlog-to-changelog
12460         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12461         * modules/gitlog-to-changelog: New file.
12462         * build-aux/gitlog-to-changelog: New file.
12463
12464 2008-02-08  Jim Meyering  <meyering@redhat.com>
12465
12466         Avoid two "parameter unused" warnings.
12467         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12468         Mark "st" as used.
12469
12470         Use "git COMMAND", not "git-COMMAND".
12471         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12472         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12473         * build-aux/git-version-gen: Use "git status", not "git-status".
12474
12475 2008-02-07  Bruno Haible  <bruno@clisp.org>
12476
12477         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12478         Avoids a crash on Windows Vista.
12479         Reported by Adam Strzelecki <ono@java.pl> via
12480         Simon Josefsson <simon@josefsson.org>.
12481
12482 2008-02-06  Bruno Haible  <bruno@clisp.org>
12483
12484         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12485         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12486         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12488         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12490         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12491         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12493         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12495         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12498         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12499         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12500         left-adjust flag.
12501         * tests/test-snprintf-posix.h (test_function): Likewise.
12502         * tests/test-sprintf-posix.h (test_function): Likewise.
12503         * tests/test-vasprintf-posix.c (test_function): Likewise.
12504         * doc/posix-functions/fprintf.texi: Update.
12505         * doc/posix-functions/printf.texi: Update.
12506         * doc/posix-functions/snprintf.texi: Update.
12507         * doc/posix-functions/sprintf.texi: Update.
12508         * doc/posix-functions/vfprintf.texi: Update.
12509         * doc/posix-functions/vprintf.texi: Update.
12510         * doc/posix-functions/vsnprintf.texi: Update.
12511         * doc/posix-functions/vsprintf.texi: Update.
12512         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12513
12514 2008-02-06  Bruno Haible  <bruno@clisp.org>
12515
12516         Fix bug introduced on 2008-01-26.
12517         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12518
12519 2008-02-06  Bruno Haible  <bruno@clisp.org>
12520
12521         Fix bug introduced on 2007-06-10.
12522         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12523         !NEED_PRINTF_FLAG_ZERO.
12524
12525 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12526
12527         getloadavg: use libperfstat on AIX5
12528         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12529
12530 2008-02-03  Bruno Haible  <bruno@clisp.org>
12531
12532         * lib/diffseq.h: Add comments about required #includes.
12533         Reported by Michael Biggs <gnulib@doubleplum.net>.
12534
12535 2008-02-01  Bruno Haible  <bruno@clisp.org>
12536
12537         * users.txt: Add gnuit.
12538
12539 2008-01-31  Bruno Haible  <bruno@clisp.org>
12540
12541         * lib/md4.c (set_uint32): Mark as inline.
12542         * lib/md5.c (set_uint32): Likewise.
12543         * lib/sha1.c (set_uint32): Likewise.
12544         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12545         * m4/md5.m4 (gl_MD5): Likewise.
12546         * m4/sha1.m4 (gl_SHA1): Likewise.
12547
12548 2008-01-31  Jim Meyering  <meyering@redhat.com>
12549
12550         Use "sizeof VAR", rather than a literal "4".
12551         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12552         * lib/md4.c (md4_read_ctx): Likewise.
12553         * lib/sha1.c (sha1_read_ctx): Likewise.
12554
12555 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12556
12557         * tests/test-sha1.c: New file, based on test-md5.c.
12558
12559         * modules/crypto/sha1-tests: New file.
12560
12561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12562
12563         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12564
12565 2008-01-31  Jim Meyering  <meyering@redhat.com>
12566
12567         Prefer "sizeof v" over the equivalent "4".
12568         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12569         * lib/md5.c (set_uint32): Likewise.
12570         * lib/sha1.c (set_uint32): Likewise.
12571
12572 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12573
12574         * lib/sha1.c (set_uint32): Mark function as static.
12575
12576 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12577
12578         md2: clarify comments to say that alignment is not required.
12579         * lib/md2.h: Remove warning about alignment in comment.
12580         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12581         never been required.
12582
12583 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12584
12585         md4: adapt alignment constraint fix from sha1.
12586         * lib/md4.c (set_uint32): New function, from sha1.c
12587         (md4_read_ctx): Use it.
12588         (md4_finish_ctx): Doc fix.
12589         * lib/md4.h: Doc fix.
12590
12591 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12592
12593         md5: adapt alignment constraint fix from sha1.
12594         * lib/md5.c (set_uint32): New function, from sha1.c
12595         (md5_read_ctx): Use it.
12596         (md5_finish_ctx): Doc fix.
12597         * lib/md5.h: Doc fix.
12598
12599 2008-01-30  Peter Palfrader  <weasel@debian.org>
12600
12601         sha1: remove the result buffer alignment constraint
12602         * lib/sha1.c (set_uint32): New function.
12603         (sha1_read_ctx): Rewrite to remove the result buffer alignment
12604         constraint.
12605         (sha1_finish_ctx): Remove comment warning about alignment constraint.
12606         * lib/sha1.h: Likewise.
12607
12608 2008-01-30  Andreas Schwab  <schwab@suse.de>
12609             Bruno Haible  <bruno@clisp.org>
12610
12611         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12612         correct definition of LDBL_MIN_EXP.
12613
12614 2008-01-30  Karl Berry  <karl@gnu.org>
12615
12616         * config/srclist-update: try to preserve x bit on updates.
12617         * config/srclistvars.sh: update for karl.
12618
12619 2008-01-29  Jim Meyering  <meyering@redhat.com>
12620
12621         vasnprintf.c: Avoid warning about unused label
12622         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12623         "overflow" label definition and associated code with the
12624         same cpp condition that guards the sole use of that label.
12625
12626 2008-01-26  Bruno Haible  <bruno@clisp.org>
12627
12628         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12629         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12630         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12631         * lib/isnanl-nolibm.h (isnanl): Likewise.
12632         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12633
12634 2008-01-26  Bruno Haible  <bruno@clisp.org>
12635
12636         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12637         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12638
12639 2008-01-26  Bruno Haible  <bruno@clisp.org>
12640
12641         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12642         GCC >= 4.0 built-in.
12643         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12644
12645 2008-01-26  Bruno Haible  <bruno@clisp.org>
12646
12647         Rename isnan, applicable to 'double' only, to isnand.
12648         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12649         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12650         (configure.ac): Update.
12651         (Include): Replace "isnan.h" with "isnand.h".
12652         * m4/isnand.m4: Renamed from m4/isnan.m4.
12653         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12654         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12655         instead of isnan.c.
12656         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12657         instead of HAVE_ISNAN_IN_LIBC.
12658         (isnand): Renamed from isnan.
12659         * lib/isnand.c: New file.
12660         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12661         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12662         (Makefile.am): Update.
12663         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12664         Include isnand.h instead of isnan.h.
12665         (main): Test isnand instead of isnan.
12666         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12667         isnan-nolibm.
12668         * modules/frexp (Depends-on): Likewise.
12669         * modules/frexp-tests (Depends-on): Likewise.
12670         * modules/frexp-nolibm (Depends-on): Likewise.
12671         * modules/frexp-nolibm-tests (Depends-on): Likewise.
12672         * modules/isfinite (Depends-on): Likewise.
12673         * modules/round-tests (Depends-on): Likewise.
12674         * modules/signbit (Depends-on): Likewise.
12675         * modules/signbit-tests (Depends-on): Likewise.
12676         * modules/snprintf-posix (Depends-on): Likewise.
12677         * modules/sprintf-posix (Depends-on): Likewise.
12678         * modules/trunc-tests (Depends-on): Likewise.
12679         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12681         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12682         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12684         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12685         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12686         * modules/vasnprintf-posix (Depends-on): Likewise.
12687         * modules/vasprintf-posix (Depends-on): Likewise.
12688         * modules/vfprintf-posix (Depends-on): Likewise.
12689         * modules/vsnprintf-posix (Depends-on): Likewise.
12690         * modules/vsprintf-posix (Depends-on): Likewise.
12691         * lib/frexp.c: Include isnand.h instead of isnan.h.
12692         (ISNAN): Set to isnand instead of isnan.
12693         * lib/isfinite.c: Include isnand.h instead of isnan.h.
12694         (gl_isfinited): Use isnand instead of isnan.
12695         * lib/signbitd.c: Include isnand.h instead of isnan.h.
12696         (gl_signbitd): Use isnand instead of isnan.
12697         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12698         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12699         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12700         (main): Use isnand instead of isnan.
12701         * tests/test-round1.c: Include isnand.h.
12702         (main): Use isnand instead of isnan.
12703         * tests/test-round2.c: Include isnand.h instead of isnan.h.
12704         (ISNAN): Set to isnand instead of isnan.
12705         * tests/test-trunc1.c: Include isnand.h.
12706         (main): Use isnand instead of isnan.
12707         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12708         (equal): Use isnand instead of isnan.
12709         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12710         isnand-nolibm.
12711         * NEWS: Mention the change.
12712
12713 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12714             Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12717         the GCC builtins for signbits are present and set
12718         REPLACE_SIGNBIT_USING_GCC if so.
12719         * lib/math.in.h (signbit): Define using GCC builtins if
12720         REPLACE_SIGNBIT_USING_GCC is set.
12721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12722         REPLACE_SIGNBIT_USING_GCC.
12723         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12724
12725 2008-01-25  Jim Meyering  <meyering@redhat.com>
12726
12727         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
12728         * lib/poll.c: Include <config.h>, not "config.h".
12729         * tests/test-getaddrinfo.c: Likewise.
12730
12731 2008-01-25  Simon Josefsson  <simon@josefsson.org>
12732
12733         * modules/sockets-tests: New file.
12734
12735 2008-01-24  Simon Josefsson  <simon@josefsson.org>
12736
12737         * modules/sockets: New module, can be used to call WSA_Startup and
12738         WSA_Cleanup when needed.
12739
12740         * lib/sockets.h, lib/sockets.c: New files.
12741
12742         * m4/sockets.m4: New file.
12743
12744         * tests/test-sockets.c: New file.
12745
12746 2008-01-19  Bruno Haible  <bruno@clisp.org>
12747
12748         * doc/posix-headers: Renamed from doc/headers.
12749         * doc/posix-functions: Renamed from doc/functions.
12750         * doc/gnulib.texi: Update.
12751
12752 2008-01-19  Bruno Haible  <bruno@clisp.org>
12753
12754         * doc/glibc-functions/strcasestr.texi: Include contents of
12755         doc/functions/strcasestr.texi, fixing the list of platforms.
12756         * doc/functions/strcasestr.texi: Remove file.
12757
12758 2008-01-19  Bruno Haible  <bruno@clisp.org>
12759
12760         * doc/glibc-functions/memmem.texi: Include contents of
12761         doc/functions/memmem.texi.
12762         * doc/functions/memmem.texi: Remove file.
12763
12764 2008-01-18  Bruno Haible  <bruno@clisp.org>
12765
12766         * doc/glibc-functions/*.texi: New files.
12767         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
12768         to use the new files.
12769
12770 2008-01-17  Bruno Haible  <bruno@clisp.org>
12771
12772         * tests/test-gethostname.c (main): Fix printf statement.
12773
12774 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12775
12776         * modules/gethostname-tests: New file.
12777
12778         * tests/test-gethostname.c: New file.
12779
12780 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12781
12782         * lib/gethostname.c: Include string.h unconditionally, strncpy is
12783         used by the UNAME case.  Reported by Bruno Haible
12784         <bruno@clisp.org>.
12785
12786 2008-01-17  Eric Blake  <ebb9@byu.net>
12787
12788         Convert c-strcasestr to be more efficient.
12789         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
12790         (Depends-on): Add c-strcase, remove malloca, strnlen.
12791         * tests/test-c-strcasestr.c (main): Enhance test.
12792         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
12793
12794 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12795
12796         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
12797         Use it in creating po/Makevars.
12798
12799 2008-01-15  Simon Josefsson  <simon@josefsson.org>
12800
12801         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
12802         Applications that requires it should initialize libgcrypt
12803         manually.
12804
12805 2008-01-16  Simon Josefsson  <simon@josefsson.org>
12806
12807         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
12808
12809 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12810
12811         Fix problem with getdate on mingw32 reported by Simon Josefsson
12812         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
12813         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
12814         tzname", when deciding whether to declare tzname.
12815         * lib/strftime.c (tzname): Likewise.
12816
12817 2008-01-15  Bruno Haible  <bruno@clisp.org>
12818
12819         Work around a MacOS X 10.5 bug in frexpl().
12820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
12821         * doc/functions/frexpl.texi: Document the bug.
12822         Reported by Elias Pipping <pipping@gentoo.org>.
12823
12824 2008-01-14  Eric Blake  <ebb9@byu.net>
12825
12826         Touch up previous patch.
12827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
12828         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
12829
12830         Convert strcasestr module to use Two-Way algorithm.
12831         * modules/strcasestr-simple: New module, based on the old
12832         strcasestr, but with Two-Way rather than KMP.
12833         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
12834         * lib/string.in.h (rpl_strcasestr): Declare.
12835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
12836         performance.
12837         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
12838         * modules/string (Makefile.am): Support strcasestr.
12839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12840         * modules/strcasestr-tests (Depends-on): Check for alarm.
12841         * tests/test-strcasestr.c: Augment test.
12842         * lib/str-two-way.h: Clean up stray macro.
12843         * NEWS: Document new module.
12844         * MODULES.html.sh (string handling): Likewise.
12845         * doc/functions/strcasestr.texi: New file.
12846         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
12847         here, since it is not a POSIX function.
12848
12849 2008-01-14  Colin Watson  <cjwatson@debian.org>
12850             Bruno Haible  <bruno@clisp.org>
12851
12852         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
12853         works fine; if not, set REPLACE_STRSIGNAL.
12854         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
12855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12856         REPLACE_STRSIGNAL.
12857         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
12858         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
12859         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
12860
12861 2008-01-14  Bruno Haible  <bruno@clisp.org>
12862
12863         * modules/strsignal (Include): Change to <string.h>.
12864
12865 2008-01-14  Colin Watson  <cjwatson@debian.org>
12866
12867         * modules/argp (Notice): Add a notice recommending to change
12868         XGETTEXT_OPTIONS.
12869         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
12870
12871 2008-01-13  Colin Watson  <cjwatson@debian.org>
12872
12873         * modules/strsignal-tests: New file.
12874         * tests/test-strsignal.c: New file.
12875
12876         * lib/strsignal.c: New file, from glibc with modifications.
12877         * lib/siglist.h: New file, from glibc with modifications.
12878         * lib/string.in.h (strsignal): New declaration.
12879         * m4/strsignal.m4: New file.
12880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12881         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
12882         * modules/strsignal: New file.
12883         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
12884         HAVE_DECL_STRSIGNAL.
12885
12886 2008-01-13  Bruno Haible  <bruno@clisp.org>
12887
12888         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
12889         locale encoding is not ASCII. Needed for OpenBSD 4.0.
12890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12891         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12892
12893 2008-01-13  Bruno Haible  <bruno@clisp.org>
12894
12895         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
12896         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
12897         * lib/argp.h (__attribute__): Likewise.
12898         * lib/c-stack.c (__attribute__): Likewise.
12899         * lib/error.h (__attribute__): Likewise.
12900         * lib/fts.c (__attribute__): Likewise.
12901         * lib/openat.h (__attribute__): Likewise.
12902         * lib/stdio.in.h (__attribute__): Likewise.
12903         * lib/string.in.h (__attribute__): Likewise.
12904         * lib/utimens.c (__attribute__): Likewise.
12905         * lib/vasnprintf.h (__attribute__): Likewise.
12906         * lib/xalloc.h (__attribute__): Likewise.
12907         * lib/xprintf.h (__attribute__): Likewise.
12908         * lib/xstrtol.h (__attribute__): Likewise.
12909         * lib/xvasprintf.h (__attribute__): Likewise.
12910
12911 2008-01-12  Bruno Haible  <bruno@clisp.org>
12912
12913         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
12914         * doc/glibc-headers/a.out.texi: New file.
12915         * doc/glibc-headers/aliases.texi: New file.
12916         * doc/glibc-headers/alloca.texi: New file.
12917         * doc/glibc-headers/ar.texi: New file.
12918         * doc/glibc-headers/argp.texi: New file.
12919         * doc/glibc-headers/argz.texi: New file.
12920         * doc/glibc-headers/byteswap.texi: New file.
12921         * doc/glibc-headers/crypt.texi: New file.
12922         * doc/glibc-headers/endian.texi: New file.
12923         * doc/glibc-headers/envz.texi: New file.
12924         * doc/glibc-headers/err.texi: New file.
12925         * doc/glibc-headers/error.texi: New file.
12926         * doc/glibc-headers/execinfo.texi: New file.
12927         * doc/glibc-headers/fpu_control.texi: New file.
12928         * doc/glibc-headers/fstab.texi: New file.
12929         * doc/glibc-headers/fts.texi: New file.
12930         * doc/glibc-headers/getopt.texi: New file.
12931         * doc/glibc-headers/ieee754.texi: New file.
12932         * doc/glibc-headers/ifaddrs.texi: New file.
12933         * doc/glibc-headers/libintl.texi: New file.
12934         * doc/glibc-headers/mcheck.texi: New file.
12935         * doc/glibc-headers/mntent.texi: New file.
12936         * doc/glibc-headers/obstack.texi: New file.
12937         * doc/glibc-headers/paths.texi: New file.
12938         * doc/glibc-headers/printf.texi: New file.
12939         * doc/glibc-headers/pty.texi: New file.
12940         * doc/glibc-headers/resolv.texi: New file.
12941         * doc/glibc-headers/shadow.texi: New file.
12942         * doc/glibc-headers/sysexits.texi: New file.
12943         * doc/glibc-headers/ttyent.texi: New file.
12944
12945 2008-01-12  Jim Meyering  <meyering@redhat.com>
12946
12947         announce-gen: emit Gnulib's git-based version string.
12948         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
12949         New option --gnulib-version=V, where V is expected to be
12950         the output of running git describe in the gnulib directory.
12951         (get_tool_versions): Request feedback on xdelta.  I suspect it's
12952         not useful, and plan to stop publishing an xdelta file with each
12953         coreutils release.
12954
12955         * build-aux/announce-gen: Also check for lzma-compressed files.
12956
12957 2008-01-11  Bruno Haible  <bruno@clisp.org>
12958
12959         * tests/test-memmem.c (main): Increase maximum allowed time.
12960         * tests/test-strstr.c (main): Likewise.
12961
12962 2008-01-11  Bruno Haible  <bruno@clisp.org>
12963
12964         * doc/functions/memmem.texi: Add more precisions about platforms.
12965         * doc/functions/strstr.texi: Likewise.
12966
12967 2008-01-10  Eric Blake  <ebb9@byu.net>
12968
12969         * m4/strstr.m4: Delete cruft from copy-n-paste.
12970         Reported by Bruno Haible.
12971
12972 2008-01-10  Bruno Haible  <bruno@clisp.org>
12973
12974         Make c-strstr rely on strstr.
12975         * lib/c-strstr.c: Don't include str-kmp.h.
12976         (c_strstr): Define in terms of strstr.
12977         * modules/c-strstr (Files): Remove lib/str-kmp.h.
12978         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
12979
12980 2008-01-10  Bruno Haible  <bruno@clisp.org>
12981
12982         * doc/gnulib.texi (String Functions in C Locale): New section.
12983         * doc/c-ctype.texi: New file.
12984         * doc/c-strcase.texi: New file.
12985         * doc/c-strcaseeq.texi: New file.
12986         * doc/c-strcasestr.texi: New file.
12987         * doc/c-strstr.texi: New file.
12988         * doc/c-strtod.texi: New file.
12989         * doc/c-strtold.texi: New file.
12990
12991 2008-01-10  Eric Blake  <ebb9@byu.net>
12992
12993         * lib/relocatable.h: Fix a comment.
12994
12995 2008-01-10  Eric Blake  <ebb9@byu.net>
12996
12997         Share two-way algorithm.
12998         * lib/str-two-way.h: New file, merged from...
12999         * lib/memmem.c: ...here...
13000         * lib/strstr.c: ...and here.
13001         * modules/memmem (Files): Use it.
13002         * modules/strstr (Files): Likewise.
13003
13004         Avoid quadratic strstr implementations.
13005         * lib/strstr.c: New file.
13006         * m4/strstr.m4: Likewise.
13007         * modules/strstr: Likewise.
13008         * modules/strstr-tests: Likewise.
13009         * tests/test-strstr.c: Likewise.
13010         * lib/string.in.h (rpl_strstr): Declare.
13011         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13013         * modules/string (Makefile.am): Likewise.
13014         * MODULES.html.sh (string handling): Mention new module.
13015         * doc/functions/strstr.texi (strstr): Document the bug.
13016
13017 2008-01-10  Bruno Haible  <bruno@clisp.org>
13018
13019         * lib/relocatable.h (relocate): State whether result is freshly
13020         allocated or not.
13021         * lib/relocatable.c (relocate): Return a freshly allocated string
13022         instead of a pointer to a privately held string.
13023         Reported by Sylvain Beucler <beuc@gnu.org>.
13024
13025 2008-01-10  Colin Watson  <cjwatson@debian.org>
13026
13027         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13028         s/S_ISNLK/S_ISLNK/.
13029
13030 2008-01-09  Bruno Haible  <bruno@clisp.org>
13031
13032         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13033         and other files.
13034         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13035         if it's only a guess.
13036         * modules/memmem: Simplify by depending on memmem-simple.
13037
13038 2008-01-09  Bruno Haible  <bruno@clisp.org>
13039
13040         Work around OpenBSD 4.0 tdelete() bug.
13041         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13042         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13043         macros and don't redefine the enum values.
13044         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13045         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13046         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13047
13048 2008-01-09  Bruno Haible  <bruno@clisp.org>
13049
13050         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13051         (main): Don't perform the tests if setlocale did not install a UTF-8
13052         locale. Needed on OpenBSD 4.0.
13053         * modules/wcwidth-tests (Depends-on): Add localcharset.
13054
13055 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13056
13057         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13058         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13059         * NEWS: announce this.
13060         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13061
13062 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13063         and Eric Blake  <ebb9@byu.net>
13064
13065         Add memmem-simple module.
13066         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13067         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13068         * modules/memmem-simple: New file.
13069         * modules/memmem (Description): Tweak.
13070         * MODULES.html.sh (string handling): Mention new module.
13071         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13072         addressed by memmem-simple.
13073         * NEWS: Document the difference.
13074
13075 2008-01-09  Eric Blake  <ebb9@byu.net>
13076
13077         Give gcc some memmem optimization hints.
13078         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13079         (strcasestr): Declare as pure.
13080         * modules/memmem (Maintainer): Claim my implementation.
13081
13082 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13083
13084         Support AIX 6.1 and higher.
13085         * build-aux/config.libpath: Likewise.
13086         * build-aux/config.rpath: Likewise.
13087
13088 2008-01-08  Jim Meyering  <meyering@redhat.com>
13089             Bruno Haible  <bruno@clisp.org>
13090
13091         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13092         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13093         Reported by Peter Fales in
13094         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13095
13096 2008-01-08  Bruno Haible  <bruno@clisp.org>
13097
13098         * modules/unictype/category-of (Depends-on): Add
13099         unictype/category-none.
13100         * modules/unictype/category-and-tests (Depends-on): Add
13101         unictype/category-{L,N,Lu,Nd}.
13102         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13103         * modules/unictype/category-or-tests (Depends-on): Add
13104         unictype/category-{L,N}.
13105         * modules/unictype/category-name-tests (Depends-on): Add
13106         unictype/category-{Z,Nl}.
13107         Reported by Simon Josefsson.
13108
13109 2008-01-08  Bruno Haible  <bruno@clisp.org>
13110
13111         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13112         convention better.
13113         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13114         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13115         Reported by Peter Miller <millerp@canb.auug.org.au>.
13116
13117 2008-01-08  Eric Blake  <ebb9@byu.net>
13118
13119         Rewrite memmem to guarantee linear complexity without malloc.
13120         * lib/memmem.c (memmem): Use Two-Way rather than
13121         Knuth-Morris-Pratt, to allow O(1) space usage.
13122         (critical_factorization, two_way_short_needle)
13123         (two_way_long_needle): New functions.
13124         (knuth_morris_pratt): Delete.
13125         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13126         Add stdint.
13127         * tests/test-memmem.c (main): Add tests for periodic needle and
13128         sublinear performance.
13129         * doc/functions/memmem.texi (memmem): Document other deficiencies
13130         in cygwin and older glibc.
13131
13132 2008-01-08  Bruno Haible  <bruno@clisp.org>
13133
13134         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13135         augmentation.
13136
13137 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13138
13139         Add a configure time option: --disable-acl.
13140         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13141         AC_ARG_ENABLE(acl).
13142
13143 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13144
13145         * tests/test-localename.c: Don't include obsolete "setenv.h".
13146
13147         * modules/localename-tests (Depends-on): Need unsetenv.
13148
13149 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13150
13151         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13152
13153 2008-01-06  Colin Watson  <cjwatson@debian.org>
13154
13155         * users.txt: Add man-db.
13156
13157 2008-01-07  Bruno Haible  <bruno@clisp.org>
13158
13159         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13160         previous section name.
13161
13162 2008-01-07  Bruno Haible  <bruno@clisp.org>
13163
13164         * lib/progname.c (set_program_name): Don't strip off a leading
13165         "lt-" prefix outside a .libs directory.
13166         Suggested by Paul Eggert.
13167
13168 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13169             Bruno Haible  <bruno@clisp.org>
13170
13171         Improve memory cleanup in 'relocatable' module.
13172         * lib/relocatable.h (compute_curr_prefix): Change return type to
13173         'char *'.
13174         * lib/relocatable.c (compute_curr_prefix): Change return type to
13175         'char *'. Free curr_installdir after use.
13176         (relocate): Free curr_prefix_better after use.
13177         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13178
13179 2008-01-01  Bruno Haible  <bruno@clisp.org>
13180
13181         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13182         failure on older glibc systems.
13183         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13184
13185 2008-01-05  Eric Blake  <ebb9@byu.net>
13186
13187         Avoid quadratic system memmem.
13188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13189         Reported by Ralf Wildenhues.
13190
13191         Fix memmem test for mingw.
13192         * modules/memmem-tests (configure.ac): Check for alarm.
13193         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13194         it.
13195         * doc/functions/memmem.texi: New file.
13196         * doc/gnulib.texi (Function Substitutes): Add memmem.
13197         Reported by Bruno Haible.
13198
13199 2008-01-04  Bruno Haible  <bruno@clisp.org>
13200
13201         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13202         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13203         gl_HEADER_STRING_H_DEFAULTS.
13204
13205 2008-01-04  Eric Blake  <ebb9@byu.net>
13206
13207         Shorten duration of memmem test.
13208         * tests/test-memmem.c (main): Use alarm to declare failure if test
13209         is taking too long.
13210         Reported by Ralf Wildenhues.
13211
13212 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13213
13214         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13215         string, needed by strerror.
13216
13217 2008-01-03  Colin Watson  <cjwatson@debian.org>
13218             Bruno Haible  <bruno@clisp.org>
13219
13220         * doc/gnulib-tool.texi (Localization): New section.
13221
13222 2008-01-02  Bruno Haible  <bruno@clisp.org>
13223
13224         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13225         variables to 'unsigned char *' type.
13226         Reported by Paul Eggert.
13227
13228 2008-01-02  Jim Meyering  <jim@meyering.net>
13229
13230         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13231
13232 2007-12-31  Jim Meyering  <jim@meyering.net>
13233
13234         Avoid use of private FTS type name.
13235         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13236
13237 2007-12-30  Karl Berry  <karl@gnu.org>
13238
13239         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13240         work around defect in Texinfo and/or the standalone Info browser.
13241
13242 2007-12-30  Bruno Haible  <bruno@clisp.org>
13243
13244         Unify 5 copies of the KMP code.
13245         * lib/str-kmp.h: New file.
13246         * lib/c-strcasestr.c: Include str-kmp.h.
13247         (knuth_morris_pratt): Remove function.
13248         (c_strcasestr): Update.
13249         * lib/c-strstr.c: Include str-kmp.h.
13250         (knuth_morris_pratt): Remove function.
13251         (c_strcasestr): Update.
13252         * lib/mbscasestr.c: Include str-kmp.h.
13253         (knuth_morris_pratt_unibyte): Remove function.
13254         * lib/mbsstr.c: Include str-kmp.h.
13255         (knuth_morris_pratt_unibyte): Remove function.
13256         * lib/strcasestr.c: Include str-kmp.h.
13257         (knuth_morris_pratt): Remove function.
13258         (strcasestr): Update.
13259         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13260         * modules/c-strstr (Files): Likewise.
13261         * modules/mbscasestr (Files): Likewise.
13262         * modules/mbsstr (Files): Likewise.
13263         * modules/strcasestr (Files): Likewise.
13264         Suggested by Paul Eggert.
13265
13266 2007-12-30  Bruno Haible  <bruno@clisp.org>
13267
13268         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13269         defined.
13270
13271 2007-12-30  Bruno Haible  <bruno@clisp.org>
13272
13273         * lib/xmalloca.h: Include xalloc.h.
13274         (xnmalloca): New macro.
13275
13276 2007-12-30  Bruno Haible  <bruno@clisp.org>
13277
13278         * lib/malloca.h (nmalloca): New macro.
13279         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13280         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13281         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13282         knuth_morris_pratt_multibyte): Likewise.
13283         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13284         knuth_morris_pratt_multibyte): Likewise.
13285         * lib/memmem.c (knuth_morris_pratt): Likewise.
13286         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13287
13288 2007-12-25  Bruno Haible  <bruno@clisp.org>
13289
13290         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13291         * lib/glob.c: Don't include openat.h.
13292         (link_exists2_p): Add back the code that deals with the
13293         !GLOB_ALTDIRFUNC case.
13294         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13295         let it do the filename concatenation.
13296         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13297         * modules/glob (Depends-on): Remove openat.
13298
13299 2007-12-31  Bruno Haible  <bruno@clisp.org>
13300
13301         * modules/dirfd (License): Change to LGPLv2+.
13302         Approved by Jim Meyering.
13303
13304 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13305
13306         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13307         when multiplying M by sizeof (size_t).
13308
13309 2007-12-10  Martin Lambers  <marlam@marlam.de>
13310
13311         Override getpagesize on mingw.
13312         * lib/getpagesize.c: New file.
13313         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13314         * modules/getpagesize (Files): Add lib/getpagesize.c.
13315         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13317         REPLACE_GETPAGESIZE.
13318         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13319
13320 2007-12-25  Bruno Haible  <bruno@clisp.org>
13321
13322         * modules/localcharset (Notice): New field.
13323         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13324         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13325
13326 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13327             Bruno Haible  <bruno@clisp.org>
13328
13329         Avoid using the syntax symbol() in formatted documentation.
13330         * MODULES.html.sh (func_module): When replacing symbol() with a
13331         hyperlink, remove the parentheses. Show an error if some remain.
13332         Recognize and render the '...' syntax.
13333         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13334         Rework. Add paragraph about GCC's inlining.
13335         * doc/alloca.texi: Likewise.
13336         * doc/error.texi: Remove parentheses from symbol reference.
13337         * doc/gnulib-intro.texi: Likewise.
13338         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13339         * modules/fnmatch (Description): Reword to say "the ... function".
13340         * modules/full-read (Description): Likewise.
13341         * modules/full-write (Description): Likewise.
13342         * modules/safe-read (Description): Likewise.
13343         * modules/safe-write (Description): Likewise.
13344         * modules/strchrnul (Description): Likewise.
13345         * modules/trim (Description): Likewise.
13346         * modules/error (Description): Remove parentheses from symbol
13347         references.
13348         * modules/verror (Description): Likewise.
13349         Reported by Karl Berry.
13350
13351 2007-12-25  Bruno Haible  <bruno@clisp.org>
13352
13353         Fixup after 2007-10-16 commit.
13354         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13355
13356 2007-12-24  Bruno Haible  <bruno@clisp.org>
13357
13358         Make --enable-relocatable work with DESTDIR.
13359         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13360         to compute installdir from destprog.
13361         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13362         also set the RELOC_DESTDIR variable.
13363         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13364
13365 2007-12-24  Bruno Haible  <bruno@clisp.org>
13366
13367         Fix link error due to xalloc_die().
13368         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13369         of xreadlink.
13370         * lib/relocwrapper.c: Update comments.
13371         * build-aux/install-reloc: Remove xreadlink.c from file list.
13372         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13373         xreadlink.c.
13374         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13375
13376 2007-12-24  Bruno Haible  <bruno@clisp.org>
13377
13378         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13379         * lib/setenv.h: Remove file.
13380         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13381         lib/setenv.h.
13382         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13383         (Depends-on): Add stdlib.
13384         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13385         gl_FUNC_UNSETENV.
13386         (Include): Replace setenv.h with <stdlib.h>.
13387         * modules/unsetenv: New file.
13388         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13389         * lib/unsetenv.c: Include <stdlib.h> first.
13390         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13391         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13392         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13393         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13394         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13395         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13397         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13398         * doc/functions/unsetenv.texi: Update.
13399         * modules/xsetenv (Depends-on): Add unsetenv.
13400         * modules/getdate (Depends-on): Likewise.
13401         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13402         * lib/xsetenv.c: Don't include setenv.h.
13403         * lib/getdate.y: Likewise.
13404         * lib/relocwrapper.c: Likewise.
13405         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13406         (Depends-on): Add stdlib.
13407         * NEWS: Mention the changes.
13408         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13409
13410 2007-12-23  Bruno Haible  <bruno@clisp.org>
13411
13412         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13413         indentation.
13414
13415 2007-12-23  Bruno Haible  <bruno@clisp.org>
13416
13417         * lib/c-strcasestr.c: Add more comments.
13418         * lib/c-strstr.c: Likewise.
13419         * lib/mbscasestr.c: Likewise.
13420         * lib/mbsstr.c: Likewise.
13421         * lib/strcasestr.c: Likewise.
13422         * lib/memmem.c: Likewise.
13423
13424 2007-12-23  Bruno Haible  <bruno@clisp.org>
13425
13426         * tests/test-memmem.c: Include <string.h> first.
13427
13428 2007-12-22  Bruno Haible  <bruno@clisp.org>
13429
13430         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13431         the contents of $testsbase.
13432         Reported by Ralf Wildenhues.
13433
13434 2007-12-22  Bruno Haible  <bruno@clisp.org>
13435
13436         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13437         two variables local_ldadd_before, local_ldadd_last.
13438
13439 2007-12-20  Eric Blake  <ebb9@byu.net>
13440
13441         Work around circular library issue when cross-compiling.
13442         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13443         that progname.o does not need to pull in rpl_memcmp.
13444
13445 2007-12-19  Eric Blake  <ebb9@byu.net>
13446
13447         Fix memmem to avoid O(n^2) worst-case complexity.
13448         * lib/memmem.c (knuth_morris_pratt): New function.
13449         (memmem): Use it if first few naive iterations fail.
13450         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13451         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13452         * modules/memchr (License): Likewise.
13453         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13454         malloca.
13455         * tests/test-memmem.c: Rewrite, borrowing ideas from
13456         test-mbsstr1.c; the old version wouldn't even compile!
13457         * modules/memmem-tests: New file.
13458         * lib/string.in.h (rpl_memmem): Add declaration.
13459         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13461         REPLACE_MEMMEM.
13462
13463 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13466         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13467         before any system include files, and undef after them all.  This
13468         should fix a problem on VMS reported by John E. Malmberg in
13469         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13470
13471 2007-12-17  Eric Blake  <ebb9@byu.net>
13472
13473         Revert addition of verify, for BSD/OS.
13474         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13475         can't handle large files, for the sake of obsolete platforms.
13476         * modules/fseeko (Depends-on): Remove verify.
13477         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13478         * doc/functions/ftello.texi (ftello): Likewise.
13479         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13480         Reported by Larry Jones.
13481
13482 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13483
13484         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13485         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13486
13487 2007-12-17  Jim Meyering  <meyering@redhat.com>
13488
13489         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13490         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13491         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13492         * modules/getcwd (Depends-on): Add openat.
13493         Reported by Petr Salinger.
13494
13495 2007-12-17  Bruno Haible  <bruno@clisp.org>
13496
13497         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13498         avoid a segmentation fault of the configure test on x86_64 systems.
13499
13500 2007-12-15  Jim Meyering  <meyering@redhat.com>
13501
13502         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13503
13504 2007-12-13  Eric Blake  <ebb9@byu.net>
13505
13506         Another fseek test.
13507         * tests/test-fseek.c (main): Also test ungetc handling.
13508         * tests/test-fseeko.c (main): Likewise.
13509         * modules/fseeko (Depends-on): Add verify.
13510         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13511         large.
13512         Reported by Larry Jones.
13513
13514         Fix fseeko on mingw.
13515         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13516         seek.
13517
13518         Beef up fseek tests.
13519         * tests/test-fseek.c (main): Also test eof handling.
13520         * tests/test-fseeko.c (main): Likewise.
13521         Reported by Larry Jones.
13522
13523 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13524
13525         Fix fseeko on BSD-based platforms.
13526         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13527         successful seek.
13528
13529 2007-12-12  Eric Blake  <ebb9@byu.net>
13530
13531         Allow circular dependency of separate libtests.a
13532         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13533         when use_libtests.
13534
13535 2007-12-11  Eric Blake  <ebb9@byu.net>
13536
13537         Fix bug with -0.0L in previous patch.
13538         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13539         * tests/test-isnan.c (main): Also test on zeroes.
13540         * tests/test-isnanf.c (main): Likewise.
13541         * tests/test-isnanl.h (main): Likewise.
13542
13543         Detect pseudo-denormals on x86 even when cross-compiling.
13544         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13545         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13546         invalid bit patterns that happen to satisfy ==.
13547
13548         Avoid link failures with separate libtests.a.
13549         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13550         last, to satisfy circular dependencies.
13551
13552 2007-12-11  Eric Blake  <ebb9@byu.net>
13553         and Bruno Haible  <bruno@clisp.org>
13554
13555         Fix OpenBSD 4.0 <float.h> handling of long double.
13556         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13557         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13558         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13559
13560 2007-12-11  Jim Meyering  <meyering@redhat.com>
13561
13562         * users.txt: Add libvirt.
13563
13564         Support versions of autoconf prior to 2.59c.
13565         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13566         if it is not already defined.
13567
13568 2007-12-09  Bruno Haible  <bruno@clisp.org>
13569
13570         Let 'gnulib-tool --import' collect sources needed for the tests in
13571         tests/ rather than in lib/.
13572         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13573         argument. If true, add rules to generate libtests.a, and put libtests.a
13574         into $(LDADD). Consider source files in subdirectories and set
13575         uses_subdirs.
13576         (func_emit_initmacro_start, func_emit_initmacro_end,
13577         func_emit_initmacro_done): Pass all arguments explicitly.
13578         (func_import): Determine two module lists main_modules,
13579         testsrelated_modules. Determine use_libtests. Determine two variables
13580         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13581         instead of just sed_transform_lib_file. Determine two variables
13582         main_files and testsrelated_files. Compute 'files' as the union of
13583         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13584         func_add_or_update. In the generated gnulib-comp.m4, collect the
13585         object files for tests/ in different variables than those for lib/.
13586         Substitute LIBTESTS_LIBDEPS.
13587         (func_create_testdir): Combine the uses_subdirs results from
13588         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13589
13590 2007-12-09  Bruno Haible  <bruno@clisp.org>
13591
13592         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13593         the build-aux directory.
13594
13595 2007-12-09  Bruno Haible  <bruno@clisp.org>
13596
13597         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13598         introduced on 2006-09-09.
13599
13600 2007-12-07  Jim Meyering  <meyering@redhat.com>
13601
13602         Let these macros work also with autoconf-2.59.
13603         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
13604         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13606
13607 2007-12-06  Jim Meyering  <meyering@redhat.com>
13608
13609         Avoid a configure-time syntax error in gl_FUNC_ACL.
13610         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13611         function in each branch, before testing the cache variable.
13612
13613 2007-12-04  Eric Blake  <ebb9@byu.net>
13614
13615         Make scripts executable.
13616         * build-aux/config.guess: Add execute permissions.
13617         * build-aux/config.sub: Likewise.
13618         * build-aux/gendocs.sh: Likewise.
13619
13620         Fix frexp on mingw.
13621         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13622         cross-compiling.
13623         * doc/functions/frexp.texi (frexp): Document the bug.
13624
13625         Make cygwin fseeko check more reliable.
13626         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13627         version numbers, rather than unrelated feature check.
13628         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13629         * doc/functions/ftello.texi (ftello): Likewise.
13630         Reported by Bruno Haible.
13631
13632         * m4/strerror.m4: Bump version number.
13633
13634 2007-12-03  Bruno Haible  <bruno@clisp.org>
13635
13636         * doc/functions/mprotect.texi: Mention the mingw problem.
13637
13638 2007-12-03  Eric Blake  <ebb9@byu.net>
13639
13640         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13641         REPLACE_STRERROR is initialized before this macro.
13642
13643 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13644
13645         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
13646         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13647         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
13648         put -lsec in even for programs other than 'ls'.  This fixes a problem
13649         for gettext reported by Bruno Haible in
13650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13651         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13652         Add support for Solaris 10.  This isn't efficient, but should get the
13653         job done for now.
13654
13655 2007-12-03  James Youngman  <jay@gnu.org>
13656
13657         * doc/regexprops-generic.texi: change "an close-group" to "a
13658         close-group" and "illegal" to "not allowed".
13659
13660 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13661
13662         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13663         pr_byname.h. Needed for the rare case when the maintainer has done
13664         "make maintainer-clean" in the source directory and then attempts a
13665         build outside the source directory.
13666         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13667         scripts_byname.h.
13668
13669 2007-12-02  Martin Lambers <marlam@marlam.de>
13670             Bruno Haible  <bruno@clisp.org>
13671
13672         * lib/getpagesize.h: Remove file.
13673         * lib/unistd.in.h: Include declaration of getpagesize here.
13674         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13675         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13676         HAVE_SYS_PARAM_H.
13677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13678         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13679         * modules/getpagesize (Files): Remove lib/getpagesize.h.
13680         (Depends-on): Add unistd.
13681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13682         (Include): Use <unistd.h> instead of getpagesize.h.
13683         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13684         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13685         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13686         gl_GETPAGESIZE invocation, already handled by module dependency.
13687         * lib/pagealign_alloc.c: Don't include getpagesize.h.
13688
13689 2007-12-02  Bruno Haible  <bruno@clisp.org>
13690
13691         * modules/strings-tests: New file.
13692         * tests/test-strings.c: New file.
13693
13694         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13695         * lib/strings.in.h: New file.
13696         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13697         * m4/strings_h.m4: New file.
13698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13699         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13700         * modules/strings: New file.
13701         * modules/string (Makefile.am): Update.
13702         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13703         Reported by Karl Berry.
13704
13705 2007-12-01  Eric Blake  <ebb9@byu.net>
13706
13707         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13708         accomodate fix in cygwin 1.5.25.
13709
13710 2007-12-01  Jim Meyering  <meyering@redhat.com>
13711
13712         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13713         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13714         that would inhibit utf8-optimization of a regexp containing line-
13715         or buffer-anchors, e.g., `^', `$'.
13716
13717 2007-11-30  Bruno Haible  <bruno@clisp.org>
13718
13719         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13720         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13721         glthread_recursive_lock_init.
13722         * lib/lock.c (glthread_recursive_lock_init)
13723         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13724         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13725
13726 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13727
13728         New function qset_acl, like set_acl but with syscall semantics.
13729         * lib/acl.h (qset_acl): New decl.
13730         * lib/acl.c (qset_acl): New function.
13731         (set_acl): Use new function.  Use more-consistent diagnostics.
13732
13733 2007-11-28  Jim Meyering  <meyering@redhat.com>
13734
13735         * modules/physmem (License): Change from GPL to LGPLv2+.
13736
13737 2007-11-26  Bruno Haible  <bruno@clisp.org>
13738
13739         * lib/vasnprintf.c (decode_long_double): Don't abort if the
13740         'long double' type has excess precision.
13741         Reported by Jim Meyering in
13742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13743
13744 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13745
13746         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
13747         Sync from <http://gnu.org/licenses>.
13748         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
13749         with license text from same location.
13750         * doc/maintain.texi, doc/standards.texi:  Sync from
13751         <http://savannah.gnu.org/projects/gnustandards>.
13752
13753 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
13754         and Jim Meyering  <meyering@redhat.com>
13755
13756         Adjust getdate' grammar to accept a slightly more regular language.
13757         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
13758         Before, the former was rejected.
13759         * lib/getdate.y (digits_to_date_time): New function, factored
13760         out of ...
13761         (number): ...here.  Just call digits_to_date_time.
13762         (hybrid): New non-terminal to handle an <unsigned number,
13763         signed relative offset> sequence consistently.
13764
13765 2007-11-18  Jim Meyering  <meyering@redhat.com>
13766
13767         Pull my changes from coreutils:
13768         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
13769         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
13770         use of $gnulib_tool_option_extras, so that it's separated from the
13771         preceding argument.
13772
13773         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
13774         * build-aux/bootstrap (cp_mark_as_generated): Create any required
13775         parent destination directories before copying a file into place.
13776
13777 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13778
13779         bootstrap: work also with 4-argument variant of AC_INIT
13780         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
13781
13782 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13783
13784         Port test-getaddrinfo to Solaris.
13785         Problem reported by Bruno Haible in
13786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
13787         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
13788         explanation of setting 'hints'.
13789         Don't reject an implementation merely because it returns EAI_SERVICE.
13790         (EAI_SERVICE): Define to 0 if not defined.
13791
13792 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13793
13794         The license of gnu-make and posix-shell is now "GPLed build tool".
13795         * modules/gnu-make (License): Likewise.
13796         * modules/posix-shell (License): Likewise.
13797
13798         New module posix-shell, for determining a POSIX shell
13799         or perhaps something that is close enough to a POSIX shell.
13800         * m4/posix-shell.m4: New file.
13801         * modules/posix-shell: New file.
13802
13803         * MODULES.html.sh: Mention new module.
13804
13805         New module gnu-make, for determining whether we're using GNU Make.
13806         * m4/gnu-make.m4: New file.
13807         * modules/gnu-make: New file.
13808         * MODULES.html.sh: Mention new module.
13809
13810 2007-11-14  Jim Meyering  <meyering@redhat.com>
13811
13812         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
13813         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
13814         use this macro to create a function _definition_.
13815         Remove useless "#undef ARGMATCH_DIE".
13816
13817 2007-11-14  Bruno Haible  <bruno@clisp.org>
13818
13819         * lib/config.charset: Update for OpenBSD 4.1.
13820         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
13821
13822 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         Document 64-bit #if problems in stdint.texi.
13825         * doc/headers/stdint.texi (stdint.h): Mention problems with
13826         64-bit-#if, and how to work around them.
13827
13828         Don't insist on 'long long int' support in the preprocessor.  It
13829         breaks too many things.  For example, PRIdMAX still uses a 'long
13830         long int' format with the latest Sun compiler, even though
13831         HAVE_LONG_LONG_INT isn't defined due to that compiler's
13832         preprocessor problem.  This causes the latest coreutils to dump
13833         core on Solaris 10 sparc with the Sun C compiler.
13834         Instead, fix the 2007-10-16 problem in a different way, by evaluating
13835         the troublesome expressions at configure-time, not at #if-time.
13836         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
13837         preprocessor.
13838         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
13839         compile-time C checks, done at 'configure'-time.
13840         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
13841         * modules/inttypes (Makefile): Substitute the new symbols that
13842         gl_INTTYPES_H now generates.
13843         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
13844
13845 2007-11-12  Bruno Haible  <bruno@clisp.org>
13846
13847         Tests for Unicode character classification functions.
13848
13849         * modules/unictype/bidicategory-byname-tests: New file.
13850         * modules/unictype/bidicategory-name-tests: New file.
13851         * modules/unictype/bidicategory-of-tests: New file.
13852         * modules/unictype/bidicategory-test-tests: New file.
13853         * modules/unictype/block-list-tests: New file.
13854         * modules/unictype/block-of-tests: New file.
13855         * modules/unictype/block-test-tests: New file.
13856         * modules/unictype/category-C-tests: New file.
13857         * modules/unictype/category-Cc-tests: New file.
13858         * modules/unictype/category-Cf-tests: New file.
13859         * modules/unictype/category-Cn-tests: New file.
13860         * modules/unictype/category-Co-tests: New file.
13861         * modules/unictype/category-Cs-tests: New file.
13862         * modules/unictype/category-L-tests: New file.
13863         * modules/unictype/category-Ll-tests: New file.
13864         * modules/unictype/category-Lm-tests: New file.
13865         * modules/unictype/category-Lo-tests: New file.
13866         * modules/unictype/category-Lt-tests: New file.
13867         * modules/unictype/category-Lu-tests: New file.
13868         * modules/unictype/category-M-tests: New file.
13869         * modules/unictype/category-Mc-tests: New file.
13870         * modules/unictype/category-Me-tests: New file.
13871         * modules/unictype/category-Mn-tests: New file.
13872         * modules/unictype/category-N-tests: New file.
13873         * modules/unictype/category-Nd-tests: New file.
13874         * modules/unictype/category-Nl-tests: New file.
13875         * modules/unictype/category-No-tests: New file.
13876         * modules/unictype/category-P-tests: New file.
13877         * modules/unictype/category-Pc-tests: New file.
13878         * modules/unictype/category-Pd-tests: New file.
13879         * modules/unictype/category-Pe-tests: New file.
13880         * modules/unictype/category-Pf-tests: New file.
13881         * modules/unictype/category-Pi-tests: New file.
13882         * modules/unictype/category-Po-tests: New file.
13883         * modules/unictype/category-Ps-tests: New file.
13884         * modules/unictype/category-S-tests: New file.
13885         * modules/unictype/category-Sc-tests: New file.
13886         * modules/unictype/category-Sk-tests: New file.
13887         * modules/unictype/category-Sm-tests: New file.
13888         * modules/unictype/category-So-tests: New file.
13889         * modules/unictype/category-Z-tests: New file.
13890         * modules/unictype/category-Zl-tests: New file.
13891         * modules/unictype/category-Zp-tests: New file.
13892         * modules/unictype/category-Zs-tests: New file.
13893         * modules/unictype/category-and-not-tests: New file.
13894         * modules/unictype/category-and-tests: New file.
13895         * modules/unictype/category-byname-tests: New file.
13896         * modules/unictype/category-name-tests: New file.
13897         * modules/unictype/category-none-tests: New file.
13898         * modules/unictype/category-of-tests: New file.
13899         * modules/unictype/category-or-tests: New file.
13900         * modules/unictype/category-test-withtable-tests: New file.
13901         * modules/unictype/combining-class-tests: New file.
13902         * modules/unictype/ctype-alnum-tests: New file.
13903         * modules/unictype/ctype-alpha-tests: New file.
13904         * modules/unictype/ctype-blank-tests: New file.
13905         * modules/unictype/ctype-cntrl-tests: New file.
13906         * modules/unictype/ctype-digit-tests: New file.
13907         * modules/unictype/ctype-graph-tests: New file.
13908         * modules/unictype/ctype-lower-tests: New file.
13909         * modules/unictype/ctype-print-tests: New file.
13910         * modules/unictype/ctype-punct-tests: New file.
13911         * modules/unictype/ctype-space-tests: New file.
13912         * modules/unictype/ctype-upper-tests: New file.
13913         * modules/unictype/ctype-xdigit-tests: New file.
13914         * modules/unictype/decimal-digit-tests: New file.
13915         * modules/unictype/digit-tests: New file.
13916         * modules/unictype/mirror-tests: New file.
13917         * modules/unictype/numeric-tests: New file.
13918         * modules/unictype/property-alphabetic-tests: New file.
13919         * modules/unictype/property-ascii-hex-digit-tests: New file.
13920         * modules/unictype/property-bidi-arabic-digit-tests: New file.
13921         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
13922         * modules/unictype/property-bidi-block-separator-tests: New file.
13923         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
13924         * modules/unictype/property-bidi-common-separator-tests: New file.
13925         * modules/unictype/property-bidi-control-tests: New file.
13926         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
13927         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
13928         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
13929         * modules/unictype/property-bidi-european-digit-tests: New file.
13930         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
13931         * modules/unictype/property-bidi-left-to-right-tests: New file.
13932         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
13933         * modules/unictype/property-bidi-other-neutral-tests: New file.
13934         * modules/unictype/property-bidi-pdf-tests: New file.
13935         * modules/unictype/property-bidi-segment-separator-tests: New file.
13936         * modules/unictype/property-bidi-whitespace-tests: New file.
13937         * modules/unictype/property-byname-tests: New file.
13938         * modules/unictype/property-combining-tests: New file.
13939         * modules/unictype/property-composite-tests: New file.
13940         * modules/unictype/property-currency-symbol-tests: New file.
13941         * modules/unictype/property-dash-tests: New file.
13942         * modules/unictype/property-decimal-digit-tests: New file.
13943         * modules/unictype/property-default-ignorable-code-point-tests: New file.
13944         * modules/unictype/property-deprecated-tests: New file.
13945         * modules/unictype/property-diacritic-tests: New file.
13946         * modules/unictype/property-extender-tests: New file.
13947         * modules/unictype/property-format-control-tests: New file.
13948         * modules/unictype/property-grapheme-base-tests: New file.
13949         * modules/unictype/property-grapheme-extend-tests: New file.
13950         * modules/unictype/property-grapheme-link-tests: New file.
13951         * modules/unictype/property-hex-digit-tests: New file.
13952         * modules/unictype/property-hyphen-tests: New file.
13953         * modules/unictype/property-id-continue-tests: New file.
13954         * modules/unictype/property-id-start-tests: New file.
13955         * modules/unictype/property-ideographic-tests: New file.
13956         * modules/unictype/property-ids-binary-operator-tests: New file.
13957         * modules/unictype/property-ids-trinary-operator-tests: New file.
13958         * modules/unictype/property-ignorable-control-tests: New file.
13959         * modules/unictype/property-iso-control-tests: New file.
13960         * modules/unictype/property-join-control-tests: New file.
13961         * modules/unictype/property-left-of-pair-tests: New file.
13962         * modules/unictype/property-line-separator-tests: New file.
13963         * modules/unictype/property-logical-order-exception-tests: New file.
13964         * modules/unictype/property-lowercase-tests: New file.
13965         * modules/unictype/property-math-tests: New file.
13966         * modules/unictype/property-non-break-tests: New file.
13967         * modules/unictype/property-not-a-character-tests: New file.
13968         * modules/unictype/property-numeric-tests: New file.
13969         * modules/unictype/property-other-alphabetic-tests: New file.
13970         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
13971         * modules/unictype/property-other-grapheme-extend-tests: New file.
13972         * modules/unictype/property-other-id-continue-tests: New file.
13973         * modules/unictype/property-other-id-start-tests: New file.
13974         * modules/unictype/property-other-lowercase-tests: New file.
13975         * modules/unictype/property-other-math-tests: New file.
13976         * modules/unictype/property-other-uppercase-tests: New file.
13977         * modules/unictype/property-paired-punctuation-tests: New file.
13978         * modules/unictype/property-paragraph-separator-tests: New file.
13979         * modules/unictype/property-pattern-syntax-tests: New file.
13980         * modules/unictype/property-pattern-white-space-tests: New file.
13981         * modules/unictype/property-private-use-tests: New file.
13982         * modules/unictype/property-punctuation-tests: New file.
13983         * modules/unictype/property-quotation-mark-tests: New file.
13984         * modules/unictype/property-radical-tests: New file.
13985         * modules/unictype/property-sentence-terminal-tests: New file.
13986         * modules/unictype/property-soft-dotted-tests: New file.
13987         * modules/unictype/property-space-tests: New file.
13988         * modules/unictype/property-terminal-punctuation-tests: New file.
13989         * modules/unictype/property-test-tests: New file.
13990         * modules/unictype/property-titlecase-tests: New file.
13991         * modules/unictype/property-unassigned-code-value-tests: New file.
13992         * modules/unictype/property-unified-ideograph-tests: New file.
13993         * modules/unictype/property-uppercase-tests: New file.
13994         * modules/unictype/property-variation-selector-tests: New file.
13995         * modules/unictype/property-white-space-tests: New file.
13996         * modules/unictype/property-xid-continue-tests: New file.
13997         * modules/unictype/property-xid-start-tests: New file.
13998         * modules/unictype/property-zero-width-tests: New file.
13999         * modules/unictype/scripts-tests: New file.
14000         * modules/unictype/syntax-c-ident-tests: New file.
14001         * modules/unictype/syntax-c-whitespace-tests: New file.
14002         * modules/unictype/syntax-java-ident-tests: New file.
14003         * modules/unictype/syntax-java-whitespace-tests: New file.
14004         * tests/unictype/test-bidi_byname.c: New file.
14005         * tests/unictype/test-bidi_name.c: New file.
14006         * tests/unictype/test-bidi_of.c: New file.
14007         * tests/unictype/test-bidi_test.c: New file.
14008         * tests/unictype/test-block_list.c: New file.
14009         * tests/unictype/test-block_of.c: New file.
14010         * tests/unictype/test-block_test.c: New file.
14011         * tests/unictype/test-categ_and.c: New file.
14012         * tests/unictype/test-categ_and_not.c: New file.
14013         * tests/unictype/test-categ_byname.c: New file.
14014         * tests/unictype/test-categ_name.c: New file.
14015         * tests/unictype/test-categ_none.c: New file.
14016         * tests/unictype/test-categ_of.c: New file.
14017         * tests/unictype/test-categ_or.c: New file.
14018         * tests/unictype/test-categ_test_withtable.c: New file.
14019         * tests/unictype/test-combining.c: New file.
14020         * tests/unictype/test-decdigit.c: New file.
14021         * tests/unictype/test-digit.c: New file.
14022         * tests/unictype/test-mirror.c: New file.
14023         * tests/unictype/test-numeric.c: New file.
14024         * tests/unictype/test-pr_byname.c: New file.
14025         * tests/unictype/test-pr_test.c: New file.
14026         * tests/unictype/test-predicate-part1.h: New file.
14027         * tests/unictype/test-predicate-part2.h: New file.
14028         * tests/unictype/test-scripts.c: New file.
14029         * tests/unictype/test-sy_c_ident.c: New file.
14030         * tests/unictype/test-sy_java_ident.c: New file.
14031
14032         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14033         for Unicode 5.0.0.
14034         * tests/unictype/test-categ_Cc.c: Likewise.
14035         * tests/unictype/test-categ_Cf.c: Likewise.
14036         * tests/unictype/test-categ_Cn.c: Likewise.
14037         * tests/unictype/test-categ_Co.c: Likewise.
14038         * tests/unictype/test-categ_Cs.c: Likewise.
14039         * tests/unictype/test-categ_L.c: Likewise.
14040         * tests/unictype/test-categ_Ll.c: Likewise.
14041         * tests/unictype/test-categ_Lm.c: Likewise.
14042         * tests/unictype/test-categ_Lo.c: Likewise.
14043         * tests/unictype/test-categ_Lt.c: Likewise.
14044         * tests/unictype/test-categ_Lu.c: Likewise.
14045         * tests/unictype/test-categ_M.c: Likewise.
14046         * tests/unictype/test-categ_Mc.c: Likewise.
14047         * tests/unictype/test-categ_Me.c: Likewise.
14048         * tests/unictype/test-categ_Mn.c: Likewise.
14049         * tests/unictype/test-categ_N.c: Likewise.
14050         * tests/unictype/test-categ_Nd.c: Likewise.
14051         * tests/unictype/test-categ_Nl.c: Likewise.
14052         * tests/unictype/test-categ_No.c: Likewise.
14053         * tests/unictype/test-categ_P.c: Likewise.
14054         * tests/unictype/test-categ_Pc.c: Likewise.
14055         * tests/unictype/test-categ_Pd.c: Likewise.
14056         * tests/unictype/test-categ_Pe.c: Likewise.
14057         * tests/unictype/test-categ_Pf.c: Likewise.
14058         * tests/unictype/test-categ_Pi.c: Likewise.
14059         * tests/unictype/test-categ_Po.c: Likewise.
14060         * tests/unictype/test-categ_Ps.c: Likewise.
14061         * tests/unictype/test-categ_S.c: Likewise.
14062         * tests/unictype/test-categ_Sc.c: Likewise.
14063         * tests/unictype/test-categ_Sk.c: Likewise.
14064         * tests/unictype/test-categ_Sm.c: Likewise.
14065         * tests/unictype/test-categ_So.c: Likewise.
14066         * tests/unictype/test-categ_Z.c: Likewise.
14067         * tests/unictype/test-categ_Zl.c: Likewise.
14068         * tests/unictype/test-categ_Zp.c: Likewise.
14069         * tests/unictype/test-categ_Zs.c: Likewise.
14070         * tests/unictype/test-ctype_alnum.c: Likewise.
14071         * tests/unictype/test-ctype_alpha.c: Likewise.
14072         * tests/unictype/test-ctype_blank.c: Likewise.
14073         * tests/unictype/test-ctype_cntrl.c: Likewise.
14074         * tests/unictype/test-ctype_digit.c: Likewise.
14075         * tests/unictype/test-ctype_graph.c: Likewise.
14076         * tests/unictype/test-ctype_lower.c: Likewise.
14077         * tests/unictype/test-ctype_print.c: Likewise.
14078         * tests/unictype/test-ctype_punct.c: Likewise.
14079         * tests/unictype/test-ctype_space.c: Likewise.
14080         * tests/unictype/test-ctype_upper.c: Likewise.
14081         * tests/unictype/test-ctype_xdigit.c: Likewise.
14082         * tests/unictype/test-decdigit.h: Likewise.
14083         * tests/unictype/test-digit.h: Likewise.
14084         * tests/unictype/test-numeric.h: Likewise.
14085         * tests/unictype/test-pr_alphabetic.c: Likewise.
14086         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14087         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14088         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14089         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14090         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14091         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14092         * tests/unictype/test-pr_bidi_control.c: Likewise.
14093         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14094         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14095         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14096         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14097         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14098         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14099         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14100         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14101         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14102         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14103         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14104         * tests/unictype/test-pr_combining.c: Likewise.
14105         * tests/unictype/test-pr_composite.c: Likewise.
14106         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14107         * tests/unictype/test-pr_dash.c: Likewise.
14108         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14109         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14110         * tests/unictype/test-pr_deprecated.c: Likewise.
14111         * tests/unictype/test-pr_diacritic.c: Likewise.
14112         * tests/unictype/test-pr_extender.c: Likewise.
14113         * tests/unictype/test-pr_format_control.c: Likewise.
14114         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14115         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14116         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14117         * tests/unictype/test-pr_hex_digit.c: Likewise.
14118         * tests/unictype/test-pr_hyphen.c: Likewise.
14119         * tests/unictype/test-pr_id_continue.c: Likewise.
14120         * tests/unictype/test-pr_id_start.c: Likewise.
14121         * tests/unictype/test-pr_ideographic.c: Likewise.
14122         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14123         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14124         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14125         * tests/unictype/test-pr_iso_control.c: Likewise.
14126         * tests/unictype/test-pr_join_control.c: Likewise.
14127         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14128         * tests/unictype/test-pr_line_separator.c: Likewise.
14129         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14130         * tests/unictype/test-pr_lowercase.c: Likewise.
14131         * tests/unictype/test-pr_math.c: Likewise.
14132         * tests/unictype/test-pr_non_break.c: Likewise.
14133         * tests/unictype/test-pr_not_a_character.c: Likewise.
14134         * tests/unictype/test-pr_numeric.c: Likewise.
14135         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14136         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14137         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14138         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14139         * tests/unictype/test-pr_other_id_start.c: Likewise.
14140         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14141         * tests/unictype/test-pr_other_math.c: Likewise.
14142         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14143         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14144         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14145         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14146         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14147         * tests/unictype/test-pr_private_use.c: Likewise.
14148         * tests/unictype/test-pr_punctuation.c: Likewise.
14149         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14150         * tests/unictype/test-pr_radical.c: Likewise.
14151         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14152         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14153         * tests/unictype/test-pr_space.c: Likewise.
14154         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14155         * tests/unictype/test-pr_titlecase.c: Likewise.
14156         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14157         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14158         * tests/unictype/test-pr_uppercase.c: Likewise.
14159         * tests/unictype/test-pr_variation_selector.c: Likewise.
14160         * tests/unictype/test-pr_white_space.c: Likewise.
14161         * tests/unictype/test-pr_xid_continue.c: Likewise.
14162         * tests/unictype/test-pr_xid_start.c: Likewise.
14163         * tests/unictype/test-pr_zero_width.c: Likewise.
14164         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14165         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14166
14167 2007-11-12  Bruno Haible  <bruno@clisp.org>
14168
14169         Unicode character classification functions.
14170         * lib/unictype.h: New file.
14171         * modules/unictype/base: New file.
14172         * modules/unictype/category-L: New file.
14173         * modules/unictype/category-Lu: New file.
14174         * modules/unictype/category-Ll: New file.
14175         * modules/unictype/category-Lt: New file.
14176         * modules/unictype/category-Lm: New file.
14177         * modules/unictype/category-Lo: New file.
14178         * modules/unictype/category-M: New file.
14179         * modules/unictype/category-Mn: New file.
14180         * modules/unictype/category-Mc: New file.
14181         * modules/unictype/category-Me: New file.
14182         * modules/unictype/category-N: New file.
14183         * modules/unictype/category-Nd: New file.
14184         * modules/unictype/category-Nl: New file.
14185         * modules/unictype/category-No: New file.
14186         * modules/unictype/category-P: New file.
14187         * modules/unictype/category-Pc: New file.
14188         * modules/unictype/category-Pd: New file.
14189         * modules/unictype/category-Ps: New file.
14190         * modules/unictype/category-Pe: New file.
14191         * modules/unictype/category-Pi: New file.
14192         * modules/unictype/category-Pf: New file.
14193         * modules/unictype/category-Po: New file.
14194         * modules/unictype/category-S: New file.
14195         * modules/unictype/category-Sm: New file.
14196         * modules/unictype/category-Sc: New file.
14197         * modules/unictype/category-Sk: New file.
14198         * modules/unictype/category-So: New file.
14199         * modules/unictype/category-Z: New file.
14200         * modules/unictype/category-Zs: New file.
14201         * modules/unictype/category-Zl: New file.
14202         * modules/unictype/category-Zp: New file.
14203         * modules/unictype/category-C: New file.
14204         * modules/unictype/category-Cc: New file.
14205         * modules/unictype/category-Cf: New file.
14206         * modules/unictype/category-Cs: New file.
14207         * modules/unictype/category-Co: New file.
14208         * modules/unictype/category-Cn: New file.
14209         * modules/unictype/category-or: New file.
14210         * modules/unictype/category-of: New file.
14211         * modules/unictype/category-test: New file.
14212         * modules/unictype/category-test-withtable: New file.
14213         * modules/unictype/category-byname: New file.
14214         * modules/unictype/category-none: New file.
14215         * modules/unictype/category-and: New file.
14216         * modules/unictype/category-and-not: New file.
14217         * modules/unictype/category-name: New file.
14218         * modules/unictype/combining-class: New file.
14219         * modules/unictype/category-all: New file.
14220         * modules/unictype/bidicategory-all: New file.
14221         * modules/unictype/bidicategory-byname: New file.
14222         * modules/unictype/bidicategory-name: New file.
14223         * modules/unictype/bidicategory-of: New file.
14224         * modules/unictype/bidicategory-test: New file.
14225         * modules/unictype/decimal-digit: New file.
14226         * modules/unictype/digit: New file.
14227         * modules/unictype/numeric: New file.
14228         * modules/unictype/mirror: New file.
14229         * modules/unictype/property-white-space: New file.
14230         * modules/unictype/property-alphabetic: New file.
14231         * modules/unictype/property-other-alphabetic: New file.
14232         * modules/unictype/property-not-a-character: New file.
14233         * modules/unictype/property-default-ignorable-code-point: New file.
14234         * modules/unictype/property-other-default-ignorable-code-point: New
14235         file.
14236         * modules/unictype/property-deprecated: New file.
14237         * modules/unictype/property-logical-order-exception: New file.
14238         * modules/unictype/property-variation-selector: New file.
14239         * modules/unictype/property-private-use: New file.
14240         * modules/unictype/property-unassigned-code-value: New file.
14241         * modules/unictype/property-uppercase: New file.
14242         * modules/unictype/property-other-uppercase: New file.
14243         * modules/unictype/property-lowercase: New file.
14244         * modules/unictype/property-other-lowercase: New file.
14245         * modules/unictype/property-titlecase: New file.
14246         * modules/unictype/property-soft-dotted: New file.
14247         * modules/unictype/property-id-start: New file.
14248         * modules/unictype/property-other-id-start: New file.
14249         * modules/unictype/property-id-continue: New file.
14250         * modules/unictype/property-other-id-continue: New file.
14251         * modules/unictype/property-xid-start: New file.
14252         * modules/unictype/property-xid-continue: New file.
14253         * modules/unictype/property-pattern-white-space: New file.
14254         * modules/unictype/property-pattern-syntax: New file.
14255         * modules/unictype/property-join-control: New file.
14256         * modules/unictype/property-grapheme-base: New file.
14257         * modules/unictype/property-grapheme-extend: New file.
14258         * modules/unictype/property-other-grapheme-extend: New file.
14259         * modules/unictype/property-grapheme-link: New file.
14260         * modules/unictype/property-bidi-control: New file.
14261         * modules/unictype/property-bidi-left-to-right: New file.
14262         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14263         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14264         * modules/unictype/property-bidi-european-digit: New file.
14265         * modules/unictype/property-bidi-eur-num-separator: New file.
14266         * modules/unictype/property-bidi-eur-num-terminator: New file.
14267         * modules/unictype/property-bidi-arabic-digit: New file.
14268         * modules/unictype/property-bidi-common-separator: New file.
14269         * modules/unictype/property-bidi-block-separator: New file.
14270         * modules/unictype/property-bidi-segment-separator: New file.
14271         * modules/unictype/property-bidi-whitespace: New file.
14272         * modules/unictype/property-bidi-non-spacing-mark: New file.
14273         * modules/unictype/property-bidi-boundary-neutral: New file.
14274         * modules/unictype/property-bidi-pdf: New file.
14275         * modules/unictype/property-bidi-embedding-or-override: New file.
14276         * modules/unictype/property-bidi-other-neutral: New file.
14277         * modules/unictype/property-hex-digit: New file.
14278         * modules/unictype/property-ascii-hex-digit: New file.
14279         * modules/unictype/property-ideographic: New file.
14280         * modules/unictype/property-unified-ideograph: New file.
14281         * modules/unictype/property-radical: New file.
14282         * modules/unictype/property-ids-binary-operator: New file.
14283         * modules/unictype/property-ids-trinary-operator: New file.
14284         * modules/unictype/property-zero-width: New file.
14285         * modules/unictype/property-space: New file.
14286         * modules/unictype/property-non-break: New file.
14287         * modules/unictype/property-iso-control: New file.
14288         * modules/unictype/property-format-control: New file.
14289         * modules/unictype/property-dash: New file.
14290         * modules/unictype/property-hyphen: New file.
14291         * modules/unictype/property-punctuation: New file.
14292         * modules/unictype/property-line-separator: New file.
14293         * modules/unictype/property-paragraph-separator: New file.
14294         * modules/unictype/property-quotation-mark: New file.
14295         * modules/unictype/property-sentence-terminal: New file.
14296         * modules/unictype/property-terminal-punctuation: New file.
14297         * modules/unictype/property-currency-symbol: New file.
14298         * modules/unictype/property-math: New file.
14299         * modules/unictype/property-other-math: New file.
14300         * modules/unictype/property-paired-punctuation: New file.
14301         * modules/unictype/property-left-of-pair: New file.
14302         * modules/unictype/property-combining: New file.
14303         * modules/unictype/property-composite: New file.
14304         * modules/unictype/property-decimal-digit: New file.
14305         * modules/unictype/property-numeric: New file.
14306         * modules/unictype/property-diacritic: New file.
14307         * modules/unictype/property-extender: New file.
14308         * modules/unictype/property-ignorable-control: New file.
14309         * modules/unictype/property-test: New file.
14310         * modules/unictype/property-byname: New file.
14311         * modules/unictype/property-all: New file.
14312         * modules/unictype/scripts: New file.
14313         * modules/unictype/scripts-all: New file.
14314         * modules/unictype/block-of: New file.
14315         * modules/unictype/block-test: New file.
14316         * modules/unictype/block-list: New file.
14317         * modules/unictype/block-all: New file.
14318         * modules/unictype/syntax-c-whitespace: New file.
14319         * modules/unictype/syntax-java-whitespace: New file.
14320         * modules/unictype/syntax-c-ident: New file.
14321         * modules/unictype/syntax-java-ident: New file.
14322         * modules/unictype/ctype-alnum: New file.
14323         * modules/unictype/ctype-alpha: New file.
14324         * modules/unictype/ctype-cntrl: New file.
14325         * modules/unictype/ctype-digit: New file.
14326         * modules/unictype/ctype-graph: New file.
14327         * modules/unictype/ctype-lower: New file.
14328         * modules/unictype/ctype-print: New file.
14329         * modules/unictype/ctype-punct: New file.
14330         * modules/unictype/ctype-space: New file.
14331         * modules/unictype/ctype-upper: New file.
14332         * modules/unictype/ctype-xdigit: New file.
14333         * modules/unictype/ctype-blank: New file.
14334         * lib/unictype/bidi_byname.c: New file.
14335         * lib/unictype/bidi_name.c: New file.
14336         * lib/unictype/bidi_of.c: New file.
14337         * lib/unictype/bidi_test.c: New file.
14338         * lib/unictype/bitmap.h: New file.
14339         * lib/unictype/block_test.c: New file.
14340         * lib/unictype/blocks.c: New file.
14341         * lib/unictype/categ_C.c: New file.
14342         * lib/unictype/categ_Cc.c: New file.
14343         * lib/unictype/categ_Cf.c: New file.
14344         * lib/unictype/categ_Cn.c: New file.
14345         * lib/unictype/categ_Co.c: New file.
14346         * lib/unictype/categ_Cs.c: New file.
14347         * lib/unictype/categ_L.c: New file.
14348         * lib/unictype/categ_Ll.c: New file.
14349         * lib/unictype/categ_Lm.c: New file.
14350         * lib/unictype/categ_Lo.c: New file.
14351         * lib/unictype/categ_Lt.c: New file.
14352         * lib/unictype/categ_Lu.c: New file.
14353         * lib/unictype/categ_M.c: New file.
14354         * lib/unictype/categ_Mc.c: New file.
14355         * lib/unictype/categ_Me.c: New file.
14356         * lib/unictype/categ_Mn.c: New file.
14357         * lib/unictype/categ_N.c: New file.
14358         * lib/unictype/categ_Nd.c: New file.
14359         * lib/unictype/categ_Nl.c: New file.
14360         * lib/unictype/categ_No.c: New file.
14361         * lib/unictype/categ_P.c: New file.
14362         * lib/unictype/categ_Pc.c: New file.
14363         * lib/unictype/categ_Pd.c: New file.
14364         * lib/unictype/categ_Pe.c: New file.
14365         * lib/unictype/categ_Pf.c: New file.
14366         * lib/unictype/categ_Pi.c: New file.
14367         * lib/unictype/categ_Po.c: New file.
14368         * lib/unictype/categ_Ps.c: New file.
14369         * lib/unictype/categ_S.c: New file.
14370         * lib/unictype/categ_Sc.c: New file.
14371         * lib/unictype/categ_Sk.c: New file.
14372         * lib/unictype/categ_Sm.c: New file.
14373         * lib/unictype/categ_So.c: New file.
14374         * lib/unictype/categ_Z.c: New file.
14375         * lib/unictype/categ_Zl.c: New file.
14376         * lib/unictype/categ_Zp.c: New file.
14377         * lib/unictype/categ_Zs.c: New file.
14378         * lib/unictype/categ_and.c: New file.
14379         * lib/unictype/categ_and_not.c: New file.
14380         * lib/unictype/categ_byname.c: New file.
14381         * lib/unictype/categ_name.c: New file.
14382         * lib/unictype/categ_none.c: New file.
14383         * lib/unictype/categ_of.c: New file.
14384         * lib/unictype/categ_or.c: New file.
14385         * lib/unictype/categ_test.c: New file.
14386         * lib/unictype/combining.c: New file.
14387         * lib/unictype/ctype_alnum.c: New file.
14388         * lib/unictype/ctype_alpha.c: New file.
14389         * lib/unictype/ctype_blank.c: New file.
14390         * lib/unictype/ctype_cntrl.c: New file.
14391         * lib/unictype/ctype_digit.c: New file.
14392         * lib/unictype/ctype_graph.c: New file.
14393         * lib/unictype/ctype_lower.c: New file.
14394         * lib/unictype/ctype_print.c: New file.
14395         * lib/unictype/ctype_punct.c: New file.
14396         * lib/unictype/ctype_space.c: New file.
14397         * lib/unictype/ctype_upper.c: New file.
14398         * lib/unictype/ctype_xdigit.c: New file.
14399         * lib/unictype/decdigit.c: New file.
14400         * lib/unictype/digit.c: New file.
14401         * lib/unictype/identsyntaxmap.h: New file.
14402         * lib/unictype/mirror.c: New file.
14403         * lib/unictype/numeric.c: New file.
14404         * lib/unictype/pr_alphabetic.c: New file.
14405         * lib/unictype/pr_ascii_hex_digit.c: New file.
14406         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14407         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14408         * lib/unictype/pr_bidi_block_separator.c: New file.
14409         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14410         * lib/unictype/pr_bidi_common_separator.c: New file.
14411         * lib/unictype/pr_bidi_control.c: New file.
14412         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14413         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14414         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14415         * lib/unictype/pr_bidi_european_digit.c: New file.
14416         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14417         * lib/unictype/pr_bidi_left_to_right.c: New file.
14418         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14419         * lib/unictype/pr_bidi_other_neutral.c: New file.
14420         * lib/unictype/pr_bidi_pdf.c: New file.
14421         * lib/unictype/pr_bidi_segment_separator.c: New file.
14422         * lib/unictype/pr_bidi_whitespace.c: New file.
14423         * lib/unictype/pr_byname.c: New file.
14424         * lib/unictype/pr_byname.gperf: New file.
14425         * lib/unictype/pr_combining.c: New file.
14426         * lib/unictype/pr_composite.c: New file.
14427         * lib/unictype/pr_currency_symbol.c: New file.
14428         * lib/unictype/pr_dash.c: New file.
14429         * lib/unictype/pr_decimal_digit.c: New file.
14430         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14431         * lib/unictype/pr_deprecated.c: New file.
14432         * lib/unictype/pr_diacritic.c: New file.
14433         * lib/unictype/pr_extender.c: New file.
14434         * lib/unictype/pr_format_control.c: New file.
14435         * lib/unictype/pr_grapheme_base.c: New file.
14436         * lib/unictype/pr_grapheme_extend.c: New file.
14437         * lib/unictype/pr_grapheme_link.c: New file.
14438         * lib/unictype/pr_hex_digit.c: New file.
14439         * lib/unictype/pr_hyphen.c: New file.
14440         * lib/unictype/pr_id_continue.c: New file.
14441         * lib/unictype/pr_id_start.c: New file.
14442         * lib/unictype/pr_ideographic.c: New file.
14443         * lib/unictype/pr_ids_binary_operator.c: New file.
14444         * lib/unictype/pr_ids_trinary_operator.c: New file.
14445         * lib/unictype/pr_ignorable_control.c: New file.
14446         * lib/unictype/pr_iso_control.c: New file.
14447         * lib/unictype/pr_join_control.c: New file.
14448         * lib/unictype/pr_left_of_pair.c: New file.
14449         * lib/unictype/pr_line_separator.c: New file.
14450         * lib/unictype/pr_logical_order_exception.c: New file.
14451         * lib/unictype/pr_lowercase.c: New file.
14452         * lib/unictype/pr_math.c: New file.
14453         * lib/unictype/pr_non_break.c: New file.
14454         * lib/unictype/pr_not_a_character.c: New file.
14455         * lib/unictype/pr_numeric.c: New file.
14456         * lib/unictype/pr_other_alphabetic.c: New file.
14457         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14458         * lib/unictype/pr_other_grapheme_extend.c: New file.
14459         * lib/unictype/pr_other_id_continue.c: New file.
14460         * lib/unictype/pr_other_id_start.c: New file.
14461         * lib/unictype/pr_other_lowercase.c: New file.
14462         * lib/unictype/pr_other_math.c: New file.
14463         * lib/unictype/pr_other_uppercase.c: New file.
14464         * lib/unictype/pr_paired_punctuation.c: New file.
14465         * lib/unictype/pr_paragraph_separator.c: New file.
14466         * lib/unictype/pr_pattern_syntax.c: New file.
14467         * lib/unictype/pr_pattern_white_space.c: New file.
14468         * lib/unictype/pr_private_use.c: New file.
14469         * lib/unictype/pr_punctuation.c: New file.
14470         * lib/unictype/pr_quotation_mark.c: New file.
14471         * lib/unictype/pr_radical.c: New file.
14472         * lib/unictype/pr_sentence_terminal.c: New file.
14473         * lib/unictype/pr_soft_dotted.c: New file.
14474         * lib/unictype/pr_space.c: New file.
14475         * lib/unictype/pr_terminal_punctuation.c: New file.
14476         * lib/unictype/pr_test.c: New file.
14477         * lib/unictype/pr_titlecase.c: New file.
14478         * lib/unictype/pr_unassigned_code_value.c: New file.
14479         * lib/unictype/pr_unified_ideograph.c: New file.
14480         * lib/unictype/pr_uppercase.c: New file.
14481         * lib/unictype/pr_variation_selector.c: New file.
14482         * lib/unictype/pr_white_space.c: New file.
14483         * lib/unictype/pr_xid_continue.c: New file.
14484         * lib/unictype/pr_xid_start.c: New file.
14485         * lib/unictype/pr_zero_width.c: New file.
14486         * lib/unictype/scripts.c: New file.
14487         * lib/unictype/sy_c_ident.c: New file.
14488         * lib/unictype/sy_c_whitespace.c: New file.
14489         * lib/unictype/sy_java_ident.c: New file.
14490         * lib/unictype/sy_java_whitespace.c: New file.
14491
14492         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14493         Unicode 5.0.0.
14494         * lib/unictype/blocks.h: Likewise.
14495         * lib/unictype/categ_C.h: Likewise.
14496         * lib/unictype/categ_Cc.h: Likewise.
14497         * lib/unictype/categ_Cf.h: Likewise.
14498         * lib/unictype/categ_Cn.h: Likewise.
14499         * lib/unictype/categ_Co.h: Likewise.
14500         * lib/unictype/categ_Cs.h: Likewise.
14501         * lib/unictype/categ_L.h: Likewise.
14502         * lib/unictype/categ_Ll.h: Likewise.
14503         * lib/unictype/categ_Lm.h: Likewise.
14504         * lib/unictype/categ_Lo.h: Likewise.
14505         * lib/unictype/categ_Lt.h: Likewise.
14506         * lib/unictype/categ_Lu.h: Likewise.
14507         * lib/unictype/categ_M.h: Likewise.
14508         * lib/unictype/categ_Mc.h: Likewise.
14509         * lib/unictype/categ_Me.h: Likewise.
14510         * lib/unictype/categ_Mn.h: Likewise.
14511         * lib/unictype/categ_N.h: Likewise.
14512         * lib/unictype/categ_Nd.h: Likewise.
14513         * lib/unictype/categ_Nl.h: Likewise.
14514         * lib/unictype/categ_No.h: Likewise.
14515         * lib/unictype/categ_P.h: Likewise.
14516         * lib/unictype/categ_Pc.h: Likewise.
14517         * lib/unictype/categ_Pd.h: Likewise.
14518         * lib/unictype/categ_Pe.h: Likewise.
14519         * lib/unictype/categ_Pf.h: Likewise.
14520         * lib/unictype/categ_Pi.h: Likewise.
14521         * lib/unictype/categ_Po.h: Likewise.
14522         * lib/unictype/categ_Ps.h: Likewise.
14523         * lib/unictype/categ_S.h: Likewise.
14524         * lib/unictype/categ_Sc.h: Likewise.
14525         * lib/unictype/categ_Sk.h: Likewise.
14526         * lib/unictype/categ_Sm.h: Likewise.
14527         * lib/unictype/categ_So.h: Likewise.
14528         * lib/unictype/categ_Z.h: Likewise.
14529         * lib/unictype/categ_Zl.h: Likewise.
14530         * lib/unictype/categ_Zp.h: Likewise.
14531         * lib/unictype/categ_Zs.h: Likewise.
14532         * lib/unictype/categ_of.h: Likewise.
14533         * lib/unictype/combining.h: Likewise.
14534         * lib/unictype/ctype_alnum.h: Likewise.
14535         * lib/unictype/ctype_alpha.h: Likewise.
14536         * lib/unictype/ctype_blank.h: Likewise.
14537         * lib/unictype/ctype_cntrl.h: Likewise.
14538         * lib/unictype/ctype_digit.h: Likewise.
14539         * lib/unictype/ctype_graph.h: Likewise.
14540         * lib/unictype/ctype_lower.h: Likewise.
14541         * lib/unictype/ctype_print.h: Likewise.
14542         * lib/unictype/ctype_punct.h: Likewise.
14543         * lib/unictype/ctype_space.h: Likewise.
14544         * lib/unictype/ctype_upper.h: Likewise.
14545         * lib/unictype/ctype_xdigit.h: Likewise.
14546         * lib/unictype/decdigit.h: Likewise.
14547         * lib/unictype/digit.h: Likewise.
14548         * lib/unictype/mirror.h: Likewise.
14549         * lib/unictype/numeric.h: Likewise.
14550         * lib/unictype/pr_alphabetic.h: Likewise.
14551         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14552         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14553         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14554         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14555         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14556         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14557         * lib/unictype/pr_bidi_control.h: Likewise.
14558         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14559         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14560         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14561         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14562         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14563         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14564         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14565         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14566         * lib/unictype/pr_bidi_pdf.h: Likewise.
14567         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14568         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14569         * lib/unictype/pr_combining.h: Likewise.
14570         * lib/unictype/pr_composite.h: Likewise.
14571         * lib/unictype/pr_currency_symbol.h: Likewise.
14572         * lib/unictype/pr_dash.h: Likewise.
14573         * lib/unictype/pr_decimal_digit.h: Likewise.
14574         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14575         * lib/unictype/pr_deprecated.h: Likewise.
14576         * lib/unictype/pr_diacritic.h: Likewise.
14577         * lib/unictype/pr_extender.h: Likewise.
14578         * lib/unictype/pr_format_control.h: Likewise.
14579         * lib/unictype/pr_grapheme_base.h: Likewise.
14580         * lib/unictype/pr_grapheme_extend.h: Likewise.
14581         * lib/unictype/pr_grapheme_link.h: Likewise.
14582         * lib/unictype/pr_hex_digit.h: Likewise.
14583         * lib/unictype/pr_hyphen.h: Likewise.
14584         * lib/unictype/pr_id_continue.h: Likewise.
14585         * lib/unictype/pr_id_start.h: Likewise.
14586         * lib/unictype/pr_ideographic.h: Likewise.
14587         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14588         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14589         * lib/unictype/pr_ignorable_control.h: Likewise.
14590         * lib/unictype/pr_iso_control.h: Likewise.
14591         * lib/unictype/pr_join_control.h: Likewise.
14592         * lib/unictype/pr_left_of_pair.h: Likewise.
14593         * lib/unictype/pr_line_separator.h: Likewise.
14594         * lib/unictype/pr_logical_order_exception.h: Likewise.
14595         * lib/unictype/pr_lowercase.h: Likewise.
14596         * lib/unictype/pr_math.h: Likewise.
14597         * lib/unictype/pr_non_break.h: Likewise.
14598         * lib/unictype/pr_not_a_character.h: Likewise.
14599         * lib/unictype/pr_numeric.h: Likewise.
14600         * lib/unictype/pr_other_alphabetic.h: Likewise.
14601         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14602         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14603         * lib/unictype/pr_other_id_continue.h: Likewise.
14604         * lib/unictype/pr_other_id_start.h: Likewise.
14605         * lib/unictype/pr_other_lowercase.h: Likewise.
14606         * lib/unictype/pr_other_math.h: Likewise.
14607         * lib/unictype/pr_other_uppercase.h: Likewise.
14608         * lib/unictype/pr_paired_punctuation.h: Likewise.
14609         * lib/unictype/pr_paragraph_separator.h: Likewise.
14610         * lib/unictype/pr_pattern_syntax.h: Likewise.
14611         * lib/unictype/pr_pattern_white_space.h: Likewise.
14612         * lib/unictype/pr_private_use.h: Likewise.
14613         * lib/unictype/pr_punctuation.h: Likewise.
14614         * lib/unictype/pr_quotation_mark.h: Likewise.
14615         * lib/unictype/pr_radical.h: Likewise.
14616         * lib/unictype/pr_sentence_terminal.h: Likewise.
14617         * lib/unictype/pr_soft_dotted.h: Likewise.
14618         * lib/unictype/pr_space.h: Likewise.
14619         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14620         * lib/unictype/pr_titlecase.h: Likewise.
14621         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14622         * lib/unictype/pr_unified_ideograph.h: Likewise.
14623         * lib/unictype/pr_uppercase.h: Likewise.
14624         * lib/unictype/pr_variation_selector.h: Likewise.
14625         * lib/unictype/pr_white_space.h: Likewise.
14626         * lib/unictype/pr_xid_continue.h: Likewise.
14627         * lib/unictype/pr_xid_start.h: Likewise.
14628         * lib/unictype/pr_zero_width.h: Likewise.
14629         * lib/unictype/scripts.h: Likewise.
14630         * lib/unictype/scripts_byname.gperf: Likewise.
14631         * lib/unictype/sy_c_ident.h: Likewise.
14632         * lib/unictype/sy_c_whitespace.h: Likewise.
14633         * lib/unictype/sy_java_ident.h: Likewise.
14634         * lib/unictype/sy_java_whitespace.h: Likewise.
14635
14636         * lib/unictype/Makefile: New file.
14637         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14638         glibc.
14639         * lib/unictype/3level.h: New file, copied from glibc.
14640         * lib/unictype/3levelbit.h: New file.
14641
14642 2007-11-11  Bruno Haible  <bruno@clisp.org>
14643
14644         * modules/gperf: New file.
14645         * modules/iconv_open (Depends-on): Add it.
14646         (Makefile.am): Remove the GPERF definition.
14647
14648 2007-11-11  Bruno Haible  <bruno@clisp.org>
14649
14650         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14651         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14652
14653 2007-11-11  Bruno Haible  <bruno@clisp.org>
14654
14655         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14656         (usage): Remove function.
14657
14658 2007-11-11  Bruno Haible  <bruno@clisp.org>
14659
14660         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14661         gl_FUNC_CEILF_LIBS.
14662         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14663         gl_FUNC_CEIL_LIBS.
14664         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14665         gl_FUNC_CEILL_LIBS.
14666         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14667         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14668         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14669
14670 2007-11-11  Bruno Haible  <bruno@clisp.org>
14671
14672         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14673         roundf were declared but do not exist on functions.
14674         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14675         roundl were declared but do not exist on functions.
14676         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14677         HAVE_FLOORL_AND_CEILL, respectively.
14678         Needed for Sun C on Solaris 10.
14679
14680 2007-11-11  Bruno Haible  <bruno@clisp.org>
14681
14682         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14683         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14684         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14685         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14686         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14687         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14688         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14689         HAVE_DECL_ROUNDF.
14690         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14691         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14693         of HAVE_DECL_ROUND*.
14694         * modules/math (Makefile.am): Update.
14695
14696 2007-11-10  Bruno Haible  <bruno@clisp.org>
14697
14698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14699         ptrdiff_t as m4/intl.m4.
14700
14701 2007-11-10  Jim Meyering  <meyering@redhat.com>
14702
14703         Avoid link failure for the argmatch test.
14704         * tests/test-argmatch.c (usage): Define function to avoid a link
14705         failure: argmatch_die requires a usage function.
14706
14707 2007-11-09  Bruno Haible  <bruno@clisp.org>
14708
14709         * doc/functions/snprintf.texi: Mention BeOS deficiency.
14710         * doc/functions/vsnprintf.texi: Likewise.
14711         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14712         with a size argument < 2.
14713
14714 2007-11-09  Bruno Haible  <bruno@clisp.org>
14715
14716         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14717         buffer. Fixes an inefficiency introduced on 2007-11-03.
14718
14719 2007-11-09  Bruno Haible  <bruno@clisp.org>
14720
14721         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14722         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14723
14724 2007-11-08  Jim Meyering  <meyering@redhat.com>
14725
14726         Change cache variable name prefix "jm_" to "gl_" everywhere.
14727         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14728         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14729         * m4/uptime.m4: s/gl_/jm_/
14730
14731 2007-11-07  Bruno Haible  <bruno@clisp.org>
14732
14733         Update to GNU gettext 0.17.
14734         * m4/intl.m4: Update to GNU gettext 0.17.
14735         * m4/po.m4: Likewise.
14736         * modules/gettext (Files): Remove m4/ulonglong.m4.
14737         (configure.ac): Require gettext infrastructure from version 0.17.
14738
14739 2007-11-06  Bruno Haible  <bruno@clisp.org>
14740
14741         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14742         symbolic values are not defined in a public header.
14743         * lib/freadable.c (freadable) [QNX]: Likewise.
14744         * lib/freadahead.c (freadahead) [QNX]: Likewise.
14745         * lib/freading.c (freading) [QNX]: Likewise.
14746         * lib/fseterr.c (fseterr) [QNX]: Likewise.
14747         * lib/fwritable.c (fwritable) [QNX]: Likewise.
14748         * lib/fwriting.c (fwriting) [QNX]: Likewise.
14749         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
14750         Reported by Alain Magloire.
14751
14752         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
14753
14754 2007-11-05  Bruno Haible  <bruno@clisp.org>
14755
14756         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
14757         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
14758         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
14759         Reported by Eric Blake.
14760
14761 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14762             Bruno Haible  <bruno@clisp.org>
14763
14764         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
14765         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
14766         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
14767         (malloc): Undefine also before including <stdlib.h>.
14768         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
14769         Needed on OSF/1 4.0.
14770
14771 2007-11-05  Jim Meyering  <meyering@redhat.com>
14772
14773         git-version-gen: sync from coreutils.
14774         * build-aux/git-version-gen: Add comments.
14775         Change the first '-' to '.' in the snapshot version string,
14776         e.g., 6.9-377-08144 -> 6.9.377-08144
14777         Remove first parameter.
14778         Don't declare a version "-dirty" merely because a time
14779         stamp has changed.
14780
14781 2007-11-04  Bruno Haible  <bruno@clisp.org>
14782
14783         * lib/lock.h: Protect all macro definitions containing an 'if'
14784         statement through a "do { ... } while (0)".
14785         * lib/tls.h: Likewise.
14786
14787 2007-11-04  Bruno Haible  <bruno@clisp.org>
14788
14789         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
14790
14791 2007-11-04  Bruno Haible  <bruno@clisp.org>
14792
14793         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
14794         * modules/fprintf-posix (Depends-on): Add nocrash.
14795         * modules/snprintf-posix (Depends-on): Likewise.
14796         * modules/sprintf-posix (Depends-on): Likewise.
14797         * modules/vasnprintf-posix (Depends-on): Likewise.
14798         * modules/vasprintf-posix (Depends-on): Likewise.
14799         * modules/vfprintf-posix (Depends-on): Likewise.
14800         * modules/vsnprintf-posix (Depends-on): Likewise.
14801         * modules/vsprintf-posix (Depends-on): Likewise.
14802         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14803         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14804         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14805         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14806         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14807         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14808         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14809
14810 2007-11-04  Bruno Haible  <bruno@clisp.org>
14811
14812         * modules/nocrash: New file.
14813         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
14814         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
14815
14816 2007-11-04  Bruno Haible  <bruno@clisp.org>
14817
14818         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
14819         precision handling.
14820         * tests/test-vasprintf-posix.c (test_function): Likewise.
14821         * tests/test-snprintf-posix.h (test_function): Likewise.
14822         * tests/test-sprintf-posix.h (test_function): Likewise.
14823
14824         Fix *printf behaviour for large precisions on mingw and BeOS.
14825         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
14826         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
14827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
14828         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14829         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14830         gl_PRINTF_PRECISION and test its result. Invoke
14831         gl_PREREQ_VASNPRINTF_PRECISION.
14832         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14833         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14834         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14835         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14838         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14839         * doc/functions/fprintf.texi: Update.
14840         * doc/functions/printf.texi: Update.
14841         * doc/functions/snprintf.texi: Update.
14842         * doc/functions/sprintf.texi: Update.
14843         * doc/functions/vfprintf.texi: Update.
14844         * doc/functions/vprintf.texi: Update.
14845         * doc/functions/vsnprintf.texi: Update.
14846         * doc/functions/vsprintf.texi: Update.
14847
14848 2007-11-04  Bruno Haible  <bruno@clisp.org>
14849
14850         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
14851
14852 2007-11-04  Bruno Haible  <bruno@clisp.org>
14853
14854         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
14855         Reported by Sylvain Beucler <beuc@gnu.org>.
14856
14857 2007-11-03  Bruno Haible  <bruno@clisp.org>
14858
14859         * tests/test-fprintf-posix2.sh: New file.
14860         * tests/test-fprintf-posix2.c: New file.
14861         * modules/fprintf-posix-tests (Files): Add them.
14862         (TESTS): Add test-fprintf-posix2.sh.
14863         (configure.ac): Check for getrlimit and setrlimit.
14864         (check_PROGRAMS): Add test-fprintf-posix2.
14865
14866         * tests/test-printf-posix2.sh: New file.
14867         * tests/test-printf-posix2.c: New file.
14868         * modules/printf-posix-tests (Files): Add them.
14869         (TESTS): Add test-printf-posix2.sh.
14870         (configure.ac): Check for getrlimit and setrlimit.
14871         (check_PROGRAMS): Add test-printf-posix2.
14872
14873         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
14874         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
14875         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
14876         (decode_double): New function, copied from decode_long_double.
14877         (scale10_round_decimal_decoded): New function, extracted from
14878         scale10_round_decimal_long_double.
14879         (scale10_round_decimal_long_double): Use it.
14880         (scale10_round_decimal_double): New function.
14881         (floorlog10): New function.
14882         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
14883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
14884         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14886         gl_PRINTF_ENOMEM and test its result. Invoke
14887         gl_PREREQ_VASNPRINTF_ENOMEM.
14888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14889         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14895         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
14896         * modules/snprintf-posix (Depends-on): Likewise.
14897         * modules/sprintf-posix (Depends-on): Likewise.
14898         * modules/vasnprintf-posix (Depends-on): Likewise.
14899         * modules/vasprintf-posix (Depends-on): Likewise.
14900         * modules/vfprintf-posix (Depends-on): Likewise.
14901         * modules/vsnprintf-posix (Depends-on): Likewise.
14902         * modules/vsprintf-posix (Depends-on): Likewise.
14903         * doc/functions/fprintf.texi: Update.
14904         * doc/functions/printf.texi: Update.
14905         * doc/functions/snprintf.texi: Update.
14906         * doc/functions/sprintf.texi: Update.
14907         * doc/functions/vfprintf.texi: Update.
14908         * doc/functions/vprintf.texi: Update.
14909         * doc/functions/vsnprintf.texi: Update.
14910         * doc/functions/vsprintf.texi: Update.
14911
14912 2007-11-03  Bruno Haible  <bruno@clisp.org>
14913
14914         * modules/frexp-nolibm-tests: New file.
14915
14916         * modules/frexp-nolibm: New file.
14917         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
14918
14919 2007-11-03  Bruno Haible  <bruno@clisp.org>
14920
14921         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
14922         value is C99 compliant.
14923         Needed for OSF/1 5.1.
14924
14925 2007-11-03  Bruno Haible  <bruno@clisp.org>
14926
14927         Fix out-of-memory handling of vasnprintf.
14928         * lib/printf-parse.c: Include <errno.h>.
14929         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
14930         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
14931         is already set.
14932
14933 2007-11-02  Eric Blake  <ebb9@byu.net>
14934
14935         Fix tests on cygwin.
14936         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
14937
14938 2007-11-01  Bruno Haible  <bruno@clisp.org>
14939
14940         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
14941         warning.
14942         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
14943         needed for POSIX compatibility.
14944
14945 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14946
14947         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
14948         for compatibility with GNU.
14949
14950 2007-11-01  Bruno Haible  <bruno@clisp.org>
14951
14952         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
14953         (putenv): Renamed from rpl_putenv. Change argument type from
14954         'const char *' to 'char *'.
14955         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
14956         of defining putenv in config.h, just set REPLACE_PUTENV.
14957         * modules/putenv (Depends-on): Add stdlib.
14958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14959         (Include): Use <stdlib.h>.
14960         * lib/stdlib.in.h (putenv): New declaration.
14961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
14962         REPLACE_PUTENV.
14963         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
14964         REPLACE_PUTENV.
14965         Needed for MacOS X 10.5.0.
14966         Reported by Peter O'Gorman <peter@pogma.com>.
14967
14968 2007-11-01  Jim Meyering  <meyering@redhat.com>
14969
14970         Treat an empty date string exactly like "0".
14971         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
14972         if the remaining date string (to be parsed) is empty, use "0".
14973         Reported by Mischa Molhoek and discussed in this thread:
14974         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
14975
14976 2007-10-31  Bruno Haible  <bruno@clisp.org>
14977
14978         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
14979         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
14980         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
14981         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
14982         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
14983         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
14984
14985 2007-10-31  Bruno Haible  <bruno@clisp.org>
14986
14987         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
14988         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
14989         (AC_TYPE_LONG_LONG_INT): Use it.
14990         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
14991         it as well.
14992         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
14993         to m4/longlong.m4.
14994         * modules/stdint (Files): Remove m4/ulonglong.m4.
14995         * modules/strtoull (Files): Use m4/longlong.m4 instead of
14996         m4/ulonglong.m4.
14997         * modules/strtoumax (Files): Likewise.
14998
14999 2007-10-30  Bruno Haible  <bruno@clisp.org>
15000
15001         * modules/xvasprintf-posix: New file.
15002         Suggested by Eric Blake.
15003
15004 2007-10-30  Bruno Haible  <bruno@clisp.org>
15005
15006         * modules/xprintf-posix-tests: New file.
15007         * tests/test-xprintf-posix.sh: New file.
15008         * tests/test-xprintf-posix.c: New file.
15009         * tests/test-xfprintf-posix.c: New file.
15010
15011         * modules/xprintf-posix: New file.
15012
15013 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15014
15015         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15016         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15017         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15018
15019 2007-10-29  Bruno Haible  <bruno@clisp.org>
15020
15021         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15022         contain the special marker '_cv_'.
15023         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15024         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15025         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15026         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15027         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15028         Reported by Ralf Wildenhues.
15029
15030 2007-10-29  Bruno Haible  <bruno@clisp.org>
15031
15032         * gnulib-tool (func_import): When --lgpl is not specified, set
15033         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15034         GPLv3.
15035         Reported by Simon Josefsson.
15036
15037 2007-10-28  Bruno Haible  <bruno@clisp.org>
15038
15039         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15040         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15041         HAVE_DECL_ISFINITE.
15042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15043         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15044         HAVE_DECL_ISFINITE.
15045
15046 2007-10-28  Bruno Haible  <bruno@clisp.org>
15047
15048         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15049         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15050
15051 2007-10-28  Bruno Haible  <bruno@clisp.org>
15052
15053         Fix link errors with Sun C 5.0 on Solaris 10.
15054         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15055         function is declared but not present in the compiler's libm.
15056         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15057         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15058         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15059         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15060         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15061         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15062         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15064         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15065         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15066         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15067         HAVE_DECL_FLOORL.
15068
15069 2007-10-28  Bruno Haible  <bruno@clisp.org>
15070
15071         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15072         gl_FUNC_FLOORL. Cache the result.
15073         (gl_FUNC_FLOORL): Use it.
15074         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15075         gl_FUNC_CEILL. Cache the result.
15076         (gl_FUNC_CEILL): Use it.
15077
15078         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15079         gl_FUNC_FLOOR. Cache the result.
15080         (gl_FUNC_FLOOR): Use it.
15081         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15082         gl_FUNC_CEIL. Cache the result.
15083         (gl_FUNC_CEIL): Use it.
15084
15085         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15086         gl_FUNC_FLOORF. Cache the result.
15087         (gl_FUNC_FLOORF): Use it.
15088         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15089         gl_FUNC_CEILF. Cache the result.
15090         (gl_FUNC_CEILF): Use it.
15091
15092 2007-10-28  Bruno Haible  <bruno@clisp.org>
15093
15094         * gnulib-tool: Allow specifying the LGPL version number through
15095         --lgpl=2 or --lgpl=3.
15096         (func_usage): Document --lgpl with argument.
15097         Handle --lgpl=... arguments.
15098         (func_import): Recognize also gl_LGPL calls with an argument. When
15099         --lgpl=2 is used and the module's license is just LGPL, report an
15100         error. Set sed_transform_lib_file according to the lgpl variable. In
15101         the generated files, use --lgpl or gl_LGPL invocations with argument,
15102         if necessary.
15103         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15104         an LGPv2+ license.
15105         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15106         gl_LGPL macro.
15107
15108 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15109             Bruno Haible  <bruno@clisp.org>
15110
15111         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15112         (u16_uctomb_aux): Likewise.
15113         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15114         !HAVE_INLINE.
15115         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15116
15117 2007-10-28  Bruno Haible  <bruno@clisp.org>
15118
15119         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15120         Invoke AM_GETTEXT_OPTION if it exists.
15121         * modules/vasprintf: Likewise.
15122         * modules/verror: Likewise.
15123         * modules/xprintf: Likewise.
15124         * modules/xvasprintf: Likewise.
15125
15126 2007-10-27  Ben Pfaff  <blp@gnu.org>
15127
15128         * lib/math.in.h: Define isfinite macro and prototypes for
15129         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15130         implementations.
15131         * m4/math_h.m4: New substitutions for isfinite module.
15132         * lib/isfinite.c: New file.
15133         * m4/isfinite.m4: New file.
15134         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15135         * modules/isfinite: New file.
15136         * modules/isfinite-tests: New file.
15137         * tests/tests-isfinite.c: New file.
15138         * doc/functions/isfinite.texi: Mention isfinite module.
15139         * MODULES.html.sh: Mention new module.
15140
15141 2007-10-27  Ben Pfaff  <blp@gnu.org>
15142
15143         Ralf Wildenhues reported that Tru64 4.0D declares the round
15144         functions but does not have definitions.
15145         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15146         cannot be found in any library, set the output variable to
15147         "missing" instead of "".
15148         * m4/round.m4: Also use our substitute if we cannot find round in
15149         any library, even if it is declared.
15150         * m4/roundf.m4: Likewise for roundf.
15151         * m4/roundl.m4: Likewise for roundl.
15152         * lib/math.in.h: Undefine roundf, round, roundl before defining
15153         their replacements, to allow for hypothetical systems where these
15154         may be defined as macros but not available in libraries.
15155
15156 2007-10-27  Bruno Haible  <bruno@clisp.org>
15157
15158         * doc/gnulib.texi: Invoke @firstparagraphindent.
15159         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15160         changes in gnulib.
15161         (Source changes): New section.
15162
15163 2007-10-26  Bruno Haible  <bruno@clisp.org>
15164
15165         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15166         borrowed from autoconf.
15167
15168 2007-10-26  Bruno Haible  <bruno@clisp.org>
15169
15170         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15171         strerror returned the empty string. Needed on HP-UX 11.00.
15172
15173 2007-10-24  Micah Cowan  <micah@cowan.name>
15174
15175         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15176         * build-aux/bootstrap: Remove support for now-unnecessary option,
15177         --cvs-user, and envvars CVS_USER, CVS_RSH.
15178
15179 2007-10-24  Jim Meyering  <meyering@redhat.com>
15180
15181         Avoid diagnostics from sha1sum when there is no cached checksum.
15182         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15183         if the po.s1 file hasn't been created yet.
15184
15185         * build-aux/bootstrap: Sync from coreutils:
15186         2007-10-24  Jim Meyering  <meyering@redhat.com>
15187         Get gnulib from the git repository, not from an obsolete cvs one.
15188         * build-aux/bootstrap: Suggestion from Micah Cowan.
15189         2007-10-04  Jim Meyering  <jim@meyering.net>
15190         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15191         (update_po_files): Work also when there are no .po files in po/.
15192
15193 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15194
15195         * README: Append ".git" to git and cg examples.
15196         Problem reported by Benoit Sigoure.
15197
15198 2007-10-23  Micah Cowan  <micah@cowan.name>
15199
15200         * users.txt: Add wget.
15201
15202 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15203
15204         Fix linking of some unistdio tests on FreeBSD.
15205         * modules/unistdio/u16-vsnprintf-tests
15206         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15207         * modules/unistdio/u16-vsprintf-tests
15208         (test_u16_vsnprintf1_LDADD): Likewise.
15209         * modules/unistdio/u32-vsnprintf-tests
15210         (test_u32_vsnprintf1_LDADD): Likewise.
15211         * modules/unistdio/u32-vsprintf-tests
15212         (test_u32_vsprintf1_LDADD): Likewise.
15213         * modules/unistdio/u8-vsnprintf-tests
15214         (test_u8_vsnprintf1_LDADD): Likewise.
15215         * modules/unistdio/u8-vsprintf-tests
15216         (test_u8_vsprintf1_LDADD): Likewise.
15217         * modules/unistdio/ulc-vsnprintf-tests
15218         (test_ulc_vsnprintf1_LDADD): Likewise.
15219         * modules/unistdio/ulc-vsprintf-tests
15220         (test_ulc_vsprintf1_LDADD): Likewise.
15221
15222         Fix linking of some uniconv tests on FreeBSD.
15223         * modules/uniconv/u16-conv-from-enc-tests
15224         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15225         * modules/uniconv/u16-conv-to-enc-tests
15226         (test_u16_conv_to_enc_LDADD): Likewise.
15227         * modules/uniconv/u16-strconv-from-enc-tests
15228         (test_u16_strconv_from_enc_LDADD): Likewise.
15229         * modules/uniconv/u16-strconv-to-enc-tests
15230         (test_u16_strconv_to_enc_LDADD): Likewise.
15231         * modules/uniconv/u32-conv-from-enc-tests
15232         (test_u32_conv_from_enc_LDADD): Likewise.
15233         * modules/uniconv/u32-conv-to-enc-tests
15234         (test_u32_conv_to_enc_LDADD): Likewise.
15235         * modules/uniconv/u32-strconv-from-enc-tests
15236         (test_u32_strconv_from_enc_LDADD): Likewise.
15237         * modules/uniconv/u32-strconv-to-enc-tests
15238         (test_u32_strconv_to_enc_LDADD): Likewise.
15239         * modules/uniconv/u8-conv-from-enc-tests
15240         (test_u8_conv_from_enc_LDADD): Likewise.
15241         * modules/uniconv/u8-conv-to-enc-tests
15242         (test_u8_conv_to_enc_LDADD): Likewise.
15243         * modules/uniconv/u8-strconv-from-enc-tests
15244         (test_u8_strconv_from_enc_LDADD): Likewise.
15245         * modules/uniconv/u8-strconv-to-enc-tests
15246         (test_u8_strconv_to_enc_LDADD): Likewise.
15247
15248 2007-10-22  Bruno Haible  <bruno@clisp.org>
15249
15250         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15251         size.
15252
15253 2007-10-22  Eric Blake  <ebb9@byu.net>
15254
15255         Tweak x*printf documentation.
15256         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15257         variable name and comments.
15258         Suggested by Bruno Haible.
15259
15260 2007-10-22  Bruno Haible  <bruno@clisp.org>
15261
15262         * lib/acl.c (copy_acl): Fix file name in comment.
15263
15264 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         Fix Tru64 problem with stdbool.h.
15267         * lib/stdbool.in.h (false, true):
15268         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15269         Don't declare as an enum in this situation; it runs afoul of Tru64.
15270         Problem reported by Steven M. Schweda in
15271         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15272
15273 2007-10-22  Eric Blake  <ebb9@byu.net>
15274
15275         Also wrap vf?printf.
15276         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15277         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15278         (xvprintf, xvfprintf): New functions.
15279
15280 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15281
15282         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15283         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15284
15285         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15286         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15287
15288 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15289
15290         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15291         by Bruno Haible.
15292
15293 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15294
15295         * lib/getloadavg.c
15296         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15297         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15298
15299         * tests/test-i-ring.c: Work for C89.
15300
15301 2007-10-22  Bruno Haible  <bruno@clisp.org>
15302
15303         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15304         -1u, in preprocessor expression, so that we don't test for the bug
15305         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15307
15308 2007-10-22  Eric Blake  <ebb9@byu.net>
15309
15310         * tests/test-yesno.sh: Silence stderr during test.
15311
15312 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15313
15314         * modules/crypto/gc-camellia: New file.
15315
15316         * m4/gc-camellia.m4: New file.
15317
15318         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15319
15320         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15321
15322 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15323
15324         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15325         --help to stdout.  Reported by sms@antinode.org (Steven
15326         M. Schweda).
15327
15328 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15329
15330         * users.txt: Fix link to libksba.
15331
15332 2007-10-21  Ben Pfaff  <blp@gnu.org>
15333
15334         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15335         round.c roundf implementation that depends on floorf and ceilf to
15336         be tested unconditionally.
15337
15338 2007-10-21  Ben Pfaff  <blp@gnu.org>
15339
15340         * m4/check-libm-func.m4: Removed.
15341         * m4/check-math-lib.m4: New file.
15342         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15343         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15344         definition and lack of AC_LIBOBJ([roundf]).
15345         * m4/roundl.m4: Ditto, and similarly for roundl.
15346         * modules/round: Reference new m4 file.
15347         * modules/roundf: Ditto.
15348         * modules/roundl: Ditto.
15349         * tests/test-round2.c (main): Use ROUND instead of round.
15350         Bug report from Bruno Haible.
15351
15352 2007-10-21  Bruno Haible  <bruno@clisp.org>
15353
15354         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15355         context.
15356
15357 2007-10-21  Bruno Haible  <bruno@clisp.org>
15358
15359         * tests/test-wcwidth.c (main): Allow negative result for some control
15360         characters.
15361
15362         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15363         Needed on OSF/1 5.1.
15364
15365 2007-10-21  Bruno Haible  <bruno@clisp.org>
15366
15367         * tests/test-floorf1.c: Include isnanf.h.
15368         (main): Use isnanf() instead of isnan().
15369         * tests/test-ceilf1.c: Include isnanf.h.
15370         (main): Use isnanf() instead of isnan().
15371         * tests/test-truncf1.c: Include isnanf.h.
15372         (main): Use isnanf() instead of isnan().
15373         * tests/test-roundf1.c: Include isnanf.h.
15374         (main): Use isnanf() instead of isnan().
15375
15376 2007-10-21  Eric Blake  <ebb9@byu.net>
15377
15378         * users.txt: Update URL for m4.
15379
15380 2007-10-21  Bruno Haible  <bruno@clisp.org>
15381
15382         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15383
15384 2007-10-21  Bruno Haible  <bruno@clisp.org>
15385
15386         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15387         Git's management files if the CVS files are not present.
15388
15389 2007-10-20  Bruno Haible  <bruno@clisp.org>
15390
15391         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15392         gcc-3.4.x.
15393
15394 2007-10-20  Ben Pfaff  <blp@gnu.org>
15395
15396         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15397         implementations.
15398         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15399         * lib/round.c: New file.
15400         * lib/roundf.c: New file.
15401         * lib/roundl.c: New file.
15402         * m4/round.m4: New file.
15403         * m4/roundf.m4: New file.
15404         * m4/roundl.m4: New file.
15405         * m4/check-libm-func-m4: New file.
15406         * modules/math: Replace round, roundf, roundl related @VARS@ in
15407         math.in.h.
15408         * modules/round: New file.
15409         * modules/round-tests: New file.
15410         * modules/roundf: New file.
15411         * modules/roundf-tests: New file.
15412         * modules/roundl: New file.
15413         * modules/roundl-tests: New file.
15414         * tests/test-round1.c: New file.
15415         * tests/test-round2.c: New file.
15416         * tests/test-roundf1.c: New file.
15417         * tests/test-roundf2.c: New file.
15418         * tests/test-roundl.c: New file.
15419         * doc/functions/round.texi: Mention round module.
15420         * doc/functions/roundf.texi: Mention roundf module.
15421         * doc/functions/roundl.texi: Mention roundl module.
15422         * MODULES.html.sh: Mention new modules.
15423         Thanks to Bruno Haible for suggestions.
15424
15425 2007-10-20  Jim Meyering  <meyering@redhat.com>
15426
15427         * lib/xprintf.c: Include <config.h> unconditionally.
15428
15429         Change xprintf's license to GPL.
15430         * modules/xprintf (License): s/LGPL/GPL/, since this module
15431         depends on modules (exit and exitfail) which are GPL.
15432         Suggestion from Bruno Haible.
15433
15434         xprintf fixes.
15435         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15436         Use a clearer diagnostic.
15437         Patch from Bruno Haible.
15438
15439 2007-10-20  Bruno Haible  <bruno@clisp.org>
15440
15441         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15442         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15444
15445 2007-10-20  Bruno Haible  <bruno@clisp.org>
15446
15447         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15448         precision in the comparison result > x - 1 or similar.
15449         * tests/test-ceilf2.c (correct_result_p): Likewise.
15450         * tests/test-truncf2.c (correct_result_p): Likewise.
15451         * tests/test-trunc2.c (correct_result_p): Likewise.
15452         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15453
15454 2007-10-20  Bruno Haible  <bruno@clisp.org>
15455
15456         * modules/ceil: New file.
15457         * m4/ceil.m4: New file.
15458         * doc/functions/ceil.texi: Mention the 'ceil' module.
15459
15460 2007-10-20  Bruno Haible  <bruno@clisp.org>
15461
15462         * modules/floor: New file.
15463         * m4/floor.m4: New file.
15464         * doc/functions/floor.texi: Mention the 'floor' module.
15465
15466 2007-10-20  Bruno Haible  <bruno@clisp.org>
15467
15468         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15469         of %a.
15470         * modules/floorf-tests (Depends-on): Likewise.
15471         * modules/truncf-tests (Depends-on): Likewise.
15472         * modules/trunc-tests (Depends-on): Likewise.
15473         Reported by Ben Pfaff.
15474
15475 2007-10-19  Jim Meyering  <meyering@redhat.com>
15476
15477         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15478         Don't bother testing specific errno values.  Just test ferror.
15479
15480         New module: xprintf
15481         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15482
15483 2007-10-19  Bruno Haible  <bruno@clisp.org>
15484
15485         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15486         syntax.
15487         * modules/javaexec (Makefile.am): Likewise.
15488         * modules/relocatable-prog (Makefile.am): Likewise.
15489         Suggested by Jim Meyering.
15490
15491 2007-10-18  Bruno Haible  <bruno@clisp.org>
15492
15493         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15494         Reported by Jim Meyering.
15495
15496 2007-10-18  Eric Blake  <ebb9@byu.net>
15497
15498         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15499
15500 2007-10-18  Bruno Haible  <bruno@clisp.org>
15501
15502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15503         the format string into writable memory. Needed in Fortify conditions.
15504
15505 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15506             Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15509         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15510         * modules/trim (Depends-on): Add mbchar.
15511         (configure.ac): Add gl_FUNC_MBRTOWC.
15512         (Makefile.am): Augment lib_SOURCES.
15513
15514 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15515
15516         Modify glob.c to use fstatat and dirfd, to simplify it.
15517         Suggested by Eric Blake.
15518         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15519         Don't include <stdbool.h>; not used.
15520         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15521         (link_exists_p): Simplify implementation, since we can now assume
15522         dirfd and fstatat.
15523         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15524
15525 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15526
15527         * gnulib-tool (func_get_dependencies): Fix sed script to
15528         match only tests.
15529
15530 2007-10-17  Bruno Haible  <bruno@clisp.org>
15531
15532         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15533         allow locale names without encoding suffix.
15534         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15535         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15536
15537 2007-10-16  Bruno Haible  <bruno@clisp.org>
15538
15539         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15540         * lib/getgroups.c (getgroups): Likewise.
15541         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15542
15543 2007-10-16  Bruno Haible  <bruno@clisp.org>
15544
15545         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15546         * modules/malloc-posix (License): Likewise.
15547         * modules/realloc-posix (License): Likewise.
15548         * modules/calloc-posix (License): Likewise.
15549         * modules/intprops (License): Change from GPL to LGPL, with
15550         Paul Eggert's approval.
15551
15552 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15553
15554         Merge glibc changes into lib/glob.c.
15555
15556         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15557         2007-10-15 04:59:03 UTC.  Here are the changes:
15558
15559         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15560
15561         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15562
15563         * lib/glob.c: Add some branch prediction throughout.
15564
15565         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15566
15567         [BZ #5103]
15568         * lib/glob.c (glob): Recognize patterns starting \/.
15569
15570         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15571
15572         [BZ #3996]
15573         * lib/glob.c (attribute_hidden): Define if not defined.
15574         (glob): Unescape dirname, filename or username when needed and not
15575         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15576         is NULL.  Handle unescaped [ in pattern without closing ].
15577         Don't pass GLOB_CHECK down to recursive glob for directories.
15578         (__glob_pattern_type): New function.
15579         (__glob_pattern_p): Implement using __glob_pattern_type.
15580         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15581         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15582         Remove unreachable code.
15583
15584         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15585
15586         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15587         explain why there are no leaks.
15588
15589         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15590
15591         [BZ #3253]
15592         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15593         time, rather allocate increasingly bigger arrays of pointers, if
15594         possible with alloca, if too large with malloc.
15595
15596 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15597
15598         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15599         Problem reported by H.Merijn Brand in
15600         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15601         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15602         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15603
15604 2007-10-15  Bruno Haible  <bruno@clisp.org>
15605
15606         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15607         with explicit rpl_ prefix.
15608         * lib/fopen.c (fopen): Likewise.
15609         * lib/freopen.c (freopen): Likewise.
15610         * lib/iconv.c (iconv): Likewise.
15611         * lib/iconv_close.c (iconv_close): Likewise.
15612
15613 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15614
15615         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15616
15617 2007-10-15  Bruno Haible  <bruno@clisp.org>
15618
15619         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15620         <stddef.h> instead of <stdlib.h> since we only need NULL.
15621         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15622
15623 2007-10-15  Bruno Haible  <bruno@clisp.org>
15624
15625         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15626         Replace paragraph talking about LIBOBJS.
15627         Reported by Colin Watson <cjwatson@debian.org>.
15628
15629 2007-10-15  Bruno Haible  <bruno@clisp.org>
15630
15631         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15632         <stdlib.h> before using NULL.
15633
15634 2007-10-15  Simon Josefsson  <simon@josefsson.org>
15635
15636         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15637         Reported by Albert Chin <china@thewrittenword.com>.
15638
15639 2007-10-14  Bruno Haible  <bruno@clisp.org>
15640
15641         * modules/iconv_open-utf-tests: New file.
15642         * tests/test-iconv-utf.c: New file.
15643
15644         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15645         * modules/iconv_open-utf: New file.
15646         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15647         (iconv, iconv_close): New declarations.
15648         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15649         be defined.
15650         (iconv_open): Add special handling of conversion between UTF-8 and
15651         UTF-{16,32}{BE,LE}.
15652         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15653         * lib/iconv_close.c: New file.
15654         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15655         gl_FUNC_ICONV_OPEN.
15656         (gl_FUNC_ICONV_OPEN): Use it.
15657         (gl_FUNC_ICONV_OPEN_UTF): New macro.
15658         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15659         and REPLACE_ICONV_UTF.
15660         * modules/iconv_open (Depends-on): Add c-strcase.
15661         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15662         ICONV_CONST.
15663         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15664
15665 2007-10-13  Albert Chin  <china@thewrittenword.com>
15666             Bruno Haible  <bruno@clisp.org>
15667
15668         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15669         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15670
15671 2007-10-13  Bruno Haible  <bruno@clisp.org>
15672
15673         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15674         defined, use the ISO C99 inline semantics.
15675         * lib/argp.h (ARGP_EI): Likewise.
15676
15677 2007-10-13  Bruno Haible  <bruno@clisp.org>
15678
15679         Handle 'inline' change in gcc 4.3.0.
15680         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15681         argp_fmtstream_write, argp_fmtstream_set_lmargin,
15682         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15683         argp_fmtstream_point): Disable 'extern' declaration if the function
15684         definition is going to be provided inline.
15685         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15686         semantics, not the ISO C99 inline semantics.
15687         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15688         'extern' declaration if the function definition is going to be provided
15689         inline.
15690         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15691         the GNU C inline semantics, not the ISO C99 inline semantics. With
15692         GCC 4.2, avoid a warning.
15693
15694 2007-10-13  Bruno Haible  <bruno@clisp.org>
15695
15696         * lib/freading.h (freading): Enable the use of __freading for
15697         glibc >= 2.7.
15698         * lib/freading.c (freading): Likewise.
15699
15700 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15701
15702         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15703         "warning: C99 inline functions are not supported; using GNU89".
15704
15705 2007-10-12  Bruno Haible  <bruno@clisp.org>
15706
15707         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15708         of 2.
15709         * tests/test-ceilf2.c: New file.
15710         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15711
15712         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15713         * modules/ceilf-tests: Update.
15714
15715 2007-10-12  Bruno Haible  <bruno@clisp.org>
15716
15717         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15718         of 2.
15719         * tests/test-floorf2.c: New file.
15720         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15721
15722         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15723         * modules/floorf-tests: Update.
15724
15725 2007-10-12  Bruno Haible  <bruno@clisp.org>
15726
15727         * tests/test-trunc2.c: New file.
15728         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15729
15730         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15731         * modules/trunc-tests: Update.
15732
15733 2007-10-12  Bruno Haible  <bruno@clisp.org>
15734
15735         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15736         of 2.
15737         * tests/test-truncf2.c: New file.
15738         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15739
15740         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15741         * modules/truncf-tests: Update.
15742
15743 2007-10-11  Eric Blake  <ebb9@byu.net>
15744
15745         Don't claim strerror is broken on Interix.
15746         * doc/functions/strerror.texi (strerror): Known broken systems are
15747         now Solaris 8, and not Interix.
15748         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
15749         Interix on cross-compile.
15750         Reported by Martin Koeppe in
15751         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
15752
15753 2007-10-11  Bruno Haible  <bruno@clisp.org>
15754
15755         * modules/i-ring-tests: New file.
15756         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
15757         instead of assert.
15758
15759 2007-10-11  Bruno Haible  <bruno@clisp.org>
15760
15761         * modules/filenamecat-tests: New file.
15762         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
15763         * lib/filenamecat.c: Remove test code.
15764
15765 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15766
15767         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
15768
15769         * lib/strerror.c: Include <string.h> always, to test interface,
15770         and to remove the need for the dummy.
15771         Include intprops.h to compute width instead of doing it ourselves
15772         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
15773         (strerror): Define it to return NULL if there's no system strerror.
15774         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
15775         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
15776         ancient pre-strerror Unix systems well any more.  Saying "unknown
15777         system error" is enough.
15778         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
15779         simpler strerror.c implementation.
15780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
15781         Simplify the tests to reflect the simpler strerror implementation.
15782         * modules/strerror (Depends-on): Add intprops.
15783
15784 2007-10-09  Eric Blake  <ebb9@byu.net>
15785
15786         Silence test-fpending.
15787         * modules/fpending-tests (Files): Add wrapper script.
15788         * tests/test-fpending.sh: New file.
15789
15790 2007-10-09  Bruno Haible  <bruno@clisp.org>
15791
15792         * MODULES.html.sh (func_module): Don't create a hyperlink for
15793         function names like 'printf_frexp'.
15794         (Misc): Add crc, memxor.
15795         (Characteristics of floating types): New section.
15796         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
15797         isnanf-nolibm, signbit, trunc, truncf, truncl.
15798         (Enhancements for ISO C 99 functions): New subsection Input/output.
15799         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
15800         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
15801         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
15802         (Compatibility checks for POSIX:2001 functions): Add clock-time.
15803         (Enhancements for POSIX:2001 functions): Add chdir-long.
15804         (File system functions): Add areadlink, chdir-safer, read-file.
15805         Remove cycle-check.
15806         (File system as inode set): New section.
15807         (Date and time): Add gethrxtime.
15808         (Multithreading): Add openmp.
15809         (Internationalization functions): Add localename.
15810         (Unicode string functions): Add unistr/u*-mbsnlen.
15811         (Support for maintaining and releasing projects): Add git-version-gen.
15812         (Lone files): Remove directories.
15813
15814 2007-10-08  Ben Pfaff  <blp@gnu.org>
15815
15816         * lib/xmalloca.h: Fix typo in comment.
15817
15818 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
15821         when avoiding problems with integer overflow.  Use a portable test
15822         instead.
15823
15824 2007-10-08  Simon Josefsson  <simon@josefsson.org>
15825
15826         * modules/dummy (License): Change to LGPLv2+.
15827         * modules/float (License): Likewise
15828         * modules/realloc (License): Likewise
15829         * modules/stdlib (License): Likewise
15830
15831 2007-10-07  Bruno Haible  <bruno@clisp.org>
15832
15833         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
15834         * floor.c (TWO_MANT_DIG): Likewise.
15835         * ceil.c (TWO_MANT_DIG): Likewise.
15836         Reported by Ben Pfaff.
15837
15838 2007-10-07  Bruno Haible  <bruno@clisp.org>
15839
15840         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
15841         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
15842         * lib/frexp.c (FUNC): Likewise.
15843         * lib/printf-frexp.h (printf_frexp): Likewise.
15844         * lib/printf-frexpl.h (printf_frexpl): Likewise.
15845         * lib/printf-frexp.c (FUNC): Likewise.
15846         Suggested by Jim Meyering.
15847
15848 2007-10-07  Jim Meyering  <meyering@redhat.com>
15849
15850         Make xnanosleep's integer overflow test more robust.
15851         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
15852         so that gcc-4.3.0 doesn't optimize away this test for overflow.
15853
15854 2007-10-07  Bruno Haible  <bruno@clisp.org>
15855
15856         * NEWS: Mention the license change.
15857
15858         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
15859         abbreviations in the modules files.
15860
15861         Change copyright notice from GPLv2+ to GPLv3+.
15862         * README: Change copyright notice.
15863         * MODULES.html.sh: Likewise.
15864         * build-aux/bootstrap.conf: Likewise.
15865         * build-aux/config.libpath: Likewise.
15866         * build-aux/csharpcomp.sh.in: Likewise.
15867         * build-aux/csharpexec.sh.in: Likewise.
15868         * build-aux/install-reloc: Likewise.
15869         * build-aux/javacomp.sh.in: Likewise.
15870         * build-aux/javaexec.sh.in: Likewise.
15871         * build-aux/ldd.sh.in: Likewise.
15872         * build-aux/reloc-ldflags: Likewise.
15873         * build-aux/relocatable.sh.in: Likewise.
15874         * build-aux/x-to-1.in: Likewise.
15875         * check-module: Likewise.
15876         * config/srclistvars.sh: Likewise.
15877         * gnulib-tool: Likewise.
15878         * lib/acl-internal.h: Likewise.
15879         * lib/acl.c: Likewise.
15880         * lib/acl.h: Likewise.
15881         * lib/acl_entries.c: Likewise.
15882         * lib/areadlink-with-size.c: Likewise.
15883         * lib/areadlink.c: Likewise.
15884         * lib/areadlink.h: Likewise.
15885         * lib/argmatch.c: Likewise.
15886         * lib/argmatch.h: Likewise.
15887         * lib/argp-ba.c: Likewise.
15888         * lib/argp-eexst.c: Likewise.
15889         * lib/argp-fmtstream.c: Likewise.
15890         * lib/argp-fmtstream.h: Likewise.
15891         * lib/argp-fs-xinl.c: Likewise.
15892         * lib/argp-help.c: Likewise.
15893         * lib/argp-namefrob.h: Likewise.
15894         * lib/argp-parse.c: Likewise.
15895         * lib/argp-pin.c: Likewise.
15896         * lib/argp-pv.c: Likewise.
15897         * lib/argp-pvh.c: Likewise.
15898         * lib/argp-xinl.c: Likewise.
15899         * lib/argp.h: Likewise.
15900         * lib/at-func.c: Likewise.
15901         * lib/atanl.c: Likewise.
15902         * lib/backupfile.c: Likewise.
15903         * lib/backupfile.h: Likewise.
15904         * lib/basename.c: Likewise.
15905         * lib/binary-io.h: Likewise.
15906         * lib/byteswap.in.h: Likewise.
15907         * lib/c-stack.c: Likewise.
15908         * lib/c-stack.h: Likewise.
15909         * lib/c-strcasestr.c: Likewise.
15910         * lib/c-strcasestr.h: Likewise.
15911         * lib/c-strstr.c: Likewise.
15912         * lib/c-strstr.h: Likewise.
15913         * lib/c-strtod.c: Likewise.
15914         * lib/calloc.c: Likewise.
15915         * lib/canon-host.c: Likewise.
15916         * lib/canon-host.h: Likewise.
15917         * lib/canonicalize-lgpl.c: Likewise.
15918         * lib/canonicalize.c: Likewise.
15919         * lib/canonicalize.h: Likewise.
15920         * lib/ceil.c: Likewise.
15921         * lib/ceilf.c: Likewise.
15922         * lib/ceill.c: Likewise.
15923         * lib/chdir-long.c: Likewise.
15924         * lib/chdir-long.h: Likewise.
15925         * lib/chdir-safer.c: Likewise.
15926         * lib/chdir-safer.h: Likewise.
15927         * lib/chown.c: Likewise.
15928         * lib/classpath.c: Likewise.
15929         * lib/classpath.h: Likewise.
15930         * lib/clean-temp.c: Likewise.
15931         * lib/clean-temp.h: Likewise.
15932         * lib/cloexec.c: Likewise.
15933         * lib/close-stream.c: Likewise.
15934         * lib/closein.c: Likewise.
15935         * lib/closein.h: Likewise.
15936         * lib/closeout.c: Likewise.
15937         * lib/closeout.h: Likewise.
15938         * lib/concat-filename.c: Likewise.
15939         * lib/copy-file.c: Likewise.
15940         * lib/copy-file.h: Likewise.
15941         * lib/count-one-bits.h: Likewise.
15942         * lib/crc.c: Likewise.
15943         * lib/crc.h: Likewise.
15944         * lib/creat-safer.c: Likewise.
15945         * lib/csharpcomp.c: Likewise.
15946         * lib/csharpcomp.h: Likewise.
15947         * lib/csharpexec.c: Likewise.
15948         * lib/csharpexec.h: Likewise.
15949         * lib/cycle-check.c: Likewise.
15950         * lib/cycle-check.h: Likewise.
15951         * lib/diacrit.c: Likewise.
15952         * lib/diacrit.h: Likewise.
15953         * lib/diffseq.h: Likewise.
15954         * lib/dirchownmod.c: Likewise.
15955         * lib/dirent.in.h: Likewise.
15956         * lib/dirfd.c: Likewise.
15957         * lib/dirfd.h: Likewise.
15958         * lib/dirname.c: Likewise.
15959         * lib/dirname.h: Likewise.
15960         * lib/dummy.c: Likewise.
15961         * lib/dup-safer.c: Likewise.
15962         * lib/dup2.c: Likewise.
15963         * lib/eealloc.h: Likewise.
15964         * lib/error.c: Likewise.
15965         * lib/error.h: Likewise.
15966         * lib/euidaccess.c: Likewise.
15967         * lib/exclude.c: Likewise.
15968         * lib/exclude.h: Likewise.
15969         * lib/execute.c: Likewise.
15970         * lib/execute.h: Likewise.
15971         * lib/exitfail.c: Likewise.
15972         * lib/exitfail.h: Likewise.
15973         * lib/expl.c: Likewise.
15974         * lib/fatal-signal.c: Likewise.
15975         * lib/fatal-signal.h: Likewise.
15976         * lib/fbufmode.c: Likewise.
15977         * lib/fbufmode.h: Likewise.
15978         * lib/fchdir.c: Likewise.
15979         * lib/fchmodat.c: Likewise.
15980         * lib/fchownat.c: Likewise.
15981         * lib/fcntl--.h: Likewise.
15982         * lib/fcntl-safer.h: Likewise.
15983         * lib/fcntl.in.h: Likewise.
15984         * lib/fd-safer.c: Likewise.
15985         * lib/fflush.c: Likewise.
15986         * lib/file-has-acl.c: Likewise.
15987         * lib/file-set.c: Likewise.
15988         * lib/file-type.c: Likewise.
15989         * lib/file-type.h: Likewise.
15990         * lib/fileblocks.c: Likewise.
15991         * lib/filemode.c: Likewise.
15992         * lib/filemode.h: Likewise.
15993         * lib/filename.h: Likewise.
15994         * lib/filenamecat.c: Likewise.
15995         * lib/filenamecat.h: Likewise.
15996         * lib/findprog.c: Likewise.
15997         * lib/findprog.h: Likewise.
15998         * lib/float.in.h: Likewise.
15999         * lib/floor.c: Likewise.
16000         * lib/floorf.c: Likewise.
16001         * lib/floorl.c: Likewise.
16002         * lib/fopen-safer.c: Likewise.
16003         * lib/fopen.c: Likewise.
16004         * lib/fpending.c: Likewise.
16005         * lib/fpending.h: Likewise.
16006         * lib/fprintf.c: Likewise.
16007         * lib/fprintftime.h: Likewise.
16008         * lib/fpucw.h: Likewise.
16009         * lib/fpurge.c: Likewise.
16010         * lib/fpurge.h: Likewise.
16011         * lib/freadable.c: Likewise.
16012         * lib/freadable.h: Likewise.
16013         * lib/freadahead.c: Likewise.
16014         * lib/freadahead.h: Likewise.
16015         * lib/freading.c: Likewise.
16016         * lib/freading.h: Likewise.
16017         * lib/free.c: Likewise.
16018         * lib/freopen.c: Likewise.
16019         * lib/frexp.c: Likewise.
16020         * lib/frexpl.c: Likewise.
16021         * lib/fseek.c: Likewise.
16022         * lib/fseterr.c: Likewise.
16023         * lib/fseterr.h: Likewise.
16024         * lib/fstatat.c: Likewise.
16025         * lib/fstrcmp.c: Likewise.
16026         * lib/fstrcmp.h: Likewise.
16027         * lib/fsusage.c: Likewise.
16028         * lib/fsusage.h: Likewise.
16029         * lib/ftell.c: Likewise.
16030         * lib/ftello.c: Likewise.
16031         * lib/fts-cycle.c: Likewise.
16032         * lib/fts.c: Likewise.
16033         * lib/fts_.h: Likewise.
16034         * lib/full-read.c: Likewise.
16035         * lib/full-read.h: Likewise.
16036         * lib/full-write.c: Likewise.
16037         * lib/full-write.h: Likewise.
16038         * lib/fwritable.c: Likewise.
16039         * lib/fwritable.h: Likewise.
16040         * lib/fwriteerror.c: Likewise.
16041         * lib/fwriteerror.h: Likewise.
16042         * lib/fwriting.c: Likewise.
16043         * lib/fwriting.h: Likewise.
16044         * lib/gcd.c: Likewise.
16045         * lib/gcd.h: Likewise.
16046         * lib/getcwd.c: Likewise.
16047         * lib/getdate.h: Likewise.
16048         * lib/getdate.y: Likewise.
16049         * lib/getdomainname.c: Likewise.
16050         * lib/getdomainname.h: Likewise.
16051         * lib/getgroups.c: Likewise.
16052         * lib/gethostname.c: Likewise.
16053         * lib/gethrxtime.c: Likewise.
16054         * lib/gethrxtime.h: Likewise.
16055         * lib/getloadavg.c: Likewise.
16056         * lib/getndelim2.c: Likewise.
16057         * lib/getndelim2.h: Likewise.
16058         * lib/getnline.c: Likewise.
16059         * lib/getnline.h: Likewise.
16060         * lib/getopt.c: Likewise.
16061         * lib/getopt.in.h: Likewise.
16062         * lib/getopt1.c: Likewise.
16063         * lib/getopt_int.h: Likewise.
16064         * lib/getpagesize.h: Likewise.
16065         * lib/getsubopt.c: Likewise.
16066         * lib/gettime.c: Likewise.
16067         * lib/getugroups.c: Likewise.
16068         * lib/getugroups.h: Likewise.
16069         * lib/getusershell.c: Likewise.
16070         * lib/gl_anyavltree_list1.h: Likewise.
16071         * lib/gl_anyavltree_list2.h: Likewise.
16072         * lib/gl_anyhash_list1.h: Likewise.
16073         * lib/gl_anyhash_list2.h: Likewise.
16074         * lib/gl_anylinked_list1.h: Likewise.
16075         * lib/gl_anylinked_list2.h: Likewise.
16076         * lib/gl_anyrbtree_list1.h: Likewise.
16077         * lib/gl_anyrbtree_list2.h: Likewise.
16078         * lib/gl_anytree_list1.h: Likewise.
16079         * lib/gl_anytree_list2.h: Likewise.
16080         * lib/gl_anytree_oset.h: Likewise.
16081         * lib/gl_anytreehash_list1.h: Likewise.
16082         * lib/gl_anytreehash_list2.h: Likewise.
16083         * lib/gl_array_list.c: Likewise.
16084         * lib/gl_array_list.h: Likewise.
16085         * lib/gl_array_oset.c: Likewise.
16086         * lib/gl_array_oset.h: Likewise.
16087         * lib/gl_avltree_list.c: Likewise.
16088         * lib/gl_avltree_list.h: Likewise.
16089         * lib/gl_avltree_oset.c: Likewise.
16090         * lib/gl_avltree_oset.h: Likewise.
16091         * lib/gl_avltreehash_list.c: Likewise.
16092         * lib/gl_avltreehash_list.h: Likewise.
16093         * lib/gl_carray_list.c: Likewise.
16094         * lib/gl_carray_list.h: Likewise.
16095         * lib/gl_linked_list.c: Likewise.
16096         * lib/gl_linked_list.h: Likewise.
16097         * lib/gl_linkedhash_list.c: Likewise.
16098         * lib/gl_linkedhash_list.h: Likewise.
16099         * lib/gl_list.c: Likewise.
16100         * lib/gl_list.h: Likewise.
16101         * lib/gl_oset.c: Likewise.
16102         * lib/gl_oset.h: Likewise.
16103         * lib/gl_rbtree_list.c: Likewise.
16104         * lib/gl_rbtree_list.h: Likewise.
16105         * lib/gl_rbtree_oset.c: Likewise.
16106         * lib/gl_rbtree_oset.h: Likewise.
16107         * lib/gl_rbtreehash_list.c: Likewise.
16108         * lib/gl_rbtreehash_list.h: Likewise.
16109         * lib/gl_sublist.c: Likewise.
16110         * lib/gl_sublist.h: Likewise.
16111         * lib/group-member.c: Likewise.
16112         * lib/group-member.h: Likewise.
16113         * lib/hard-locale.c: Likewise.
16114         * lib/hard-locale.h: Likewise.
16115         * lib/hash-pjw.c: Likewise.
16116         * lib/hash-pjw.h: Likewise.
16117         * lib/hash-triple.c: Likewise.
16118         * lib/hash.c: Likewise.
16119         * lib/hash.h: Likewise.
16120         * lib/human.c: Likewise.
16121         * lib/human.h: Likewise.
16122         * lib/i-ring.c: Likewise.
16123         * lib/i-ring.h: Likewise.
16124         * lib/idcache.c: Likewise.
16125         * lib/imaxabs.c: Likewise.
16126         * lib/imaxdiv.c: Likewise.
16127         * lib/inet_pton.c: Likewise.
16128         * lib/inet_pton.h: Likewise.
16129         * lib/intprops.h: Likewise.
16130         * lib/inttostr.c: Likewise.
16131         * lib/inttostr.h: Likewise.
16132         * lib/inttypes.in.h: Likewise.
16133         * lib/isapipe.c: Likewise.
16134         * lib/isdir.c: Likewise.
16135         * lib/isnan.c: Likewise.
16136         * lib/isnan.h: Likewise.
16137         * lib/isnanf.c: Likewise.
16138         * lib/isnanf.h: Likewise.
16139         * lib/isnanl-nolibm.h: Likewise.
16140         * lib/isnanl.c: Likewise.
16141         * lib/isnanl.h: Likewise.
16142         * lib/javacomp.c: Likewise.
16143         * lib/javacomp.h: Likewise.
16144         * lib/javaexec.c: Likewise.
16145         * lib/javaexec.h: Likewise.
16146         * lib/javaversion.c: Likewise.
16147         * lib/javaversion.h: Likewise.
16148         * lib/javaversion.java: Likewise.
16149         * lib/lbrkprop.h: Likewise.
16150         * lib/lchmod.h: Likewise.
16151         * lib/lchown.c: Likewise.
16152         * lib/ldexpl.c: Likewise.
16153         * lib/linebreak.c: Likewise.
16154         * lib/linebreak.h: Likewise.
16155         * lib/linebuffer.c: Likewise.
16156         * lib/linebuffer.h: Likewise.
16157         * lib/locale.in.h: Likewise.
16158         * lib/logl.c: Likewise.
16159         * lib/long-options.c: Likewise.
16160         * lib/long-options.h: Likewise.
16161         * lib/lstat.c: Likewise.
16162         * lib/lstat.h: Likewise.
16163         * lib/math.in.h: Likewise.
16164         * lib/mbchar.c: Likewise.
16165         * lib/mbchar.h: Likewise.
16166         * lib/mbfile.h: Likewise.
16167         * lib/mbiter.h: Likewise.
16168         * lib/mbscasecmp.c: Likewise.
16169         * lib/mbscasestr.c: Likewise.
16170         * lib/mbschr.c: Likewise.
16171         * lib/mbscspn.c: Likewise.
16172         * lib/mbslen.c: Likewise.
16173         * lib/mbsncasecmp.c: Likewise.
16174         * lib/mbsnlen.c: Likewise.
16175         * lib/mbspbrk.c: Likewise.
16176         * lib/mbspcasecmp.c: Likewise.
16177         * lib/mbsrchr.c: Likewise.
16178         * lib/mbssep.c: Likewise.
16179         * lib/mbsspn.c: Likewise.
16180         * lib/mbsstr.c: Likewise.
16181         * lib/mbstok_r.c: Likewise.
16182         * lib/mbswidth.c: Likewise.
16183         * lib/mbswidth.h: Likewise.
16184         * lib/mbuiter.h: Likewise.
16185         * lib/memcasecmp.c: Likewise.
16186         * lib/memcasecmp.h: Likewise.
16187         * lib/memchr.c: Likewise.
16188         * lib/memcmp.c: Likewise.
16189         * lib/memcoll.c: Likewise.
16190         * lib/memcoll.h: Likewise.
16191         * lib/memcpy.c: Likewise.
16192         * lib/memrchr.c: Likewise.
16193         * lib/mkancesdirs.c: Likewise.
16194         * lib/mkdir-p.c: Likewise.
16195         * lib/mkdir-p.h: Likewise.
16196         * lib/mkdir.c: Likewise.
16197         * lib/mkdirat.c: Likewise.
16198         * lib/mkdtemp.c: Likewise.
16199         * lib/mkstemp-safer.c: Likewise.
16200         * lib/mkstemp.c: Likewise.
16201         * lib/modechange.c: Likewise.
16202         * lib/modechange.h: Likewise.
16203         * lib/mountlist.c: Likewise.
16204         * lib/mountlist.h: Likewise.
16205         * lib/mpsort.c: Likewise.
16206         * lib/nanosleep.c: Likewise.
16207         * lib/obstack.c: Likewise.
16208         * lib/obstack.h: Likewise.
16209         * lib/open-safer.c: Likewise.
16210         * lib/open.c: Likewise.
16211         * lib/openat-die.c: Likewise.
16212         * lib/openat-priv.h: Likewise.
16213         * lib/openat-proc.c: Likewise.
16214         * lib/openat.c: Likewise.
16215         * lib/openat.h: Likewise.
16216         * lib/pagealign_alloc.c: Likewise.
16217         * lib/pagealign_alloc.h: Likewise.
16218         * lib/physmem.c: Likewise.
16219         * lib/physmem.h: Likewise.
16220         * lib/pipe-safer.c: Likewise.
16221         * lib/pipe.c: Likewise.
16222         * lib/pipe.h: Likewise.
16223         * lib/posixtm.c: Likewise.
16224         * lib/posixtm.h: Likewise.
16225         * lib/posixver.c: Likewise.
16226         * lib/printf-frexp.c: Likewise.
16227         * lib/printf-frexp.h: Likewise.
16228         * lib/printf-frexpl.c: Likewise.
16229         * lib/printf-frexpl.h: Likewise.
16230         * lib/printf.c: Likewise.
16231         * lib/progname.c: Likewise.
16232         * lib/progname.h: Likewise.
16233         * lib/progreloc.c: Likewise.
16234         * lib/putenv.c: Likewise.
16235         * lib/quote.c: Likewise.
16236         * lib/quote.h: Likewise.
16237         * lib/quotearg.c: Likewise.
16238         * lib/quotearg.h: Likewise.
16239         * lib/raise.c: Likewise.
16240         * lib/readline.c: Likewise.
16241         * lib/readline.h: Likewise.
16242         * lib/readlink.c: Likewise.
16243         * lib/readtokens.c: Likewise.
16244         * lib/readtokens.h: Likewise.
16245         * lib/readtokens0.c: Likewise.
16246         * lib/readtokens0.h: Likewise.
16247         * lib/readutmp.c: Likewise.
16248         * lib/readutmp.h: Likewise.
16249         * lib/realloc.c: Likewise.
16250         * lib/relocwrapper.c: Likewise.
16251         * lib/rename-dest-slash.c: Likewise.
16252         * lib/rename.c: Likewise.
16253         * lib/rmdir.c: Likewise.
16254         * lib/rpmatch.c: Likewise.
16255         * lib/safe-read.c: Likewise.
16256         * lib/safe-read.h: Likewise.
16257         * lib/safe-write.c: Likewise.
16258         * lib/safe-write.h: Likewise.
16259         * lib/same-inode.h: Likewise.
16260         * lib/same.c: Likewise.
16261         * lib/same.h: Likewise.
16262         * lib/save-cwd.c: Likewise.
16263         * lib/save-cwd.h: Likewise.
16264         * lib/savedir.c: Likewise.
16265         * lib/savedir.h: Likewise.
16266         * lib/savewd.c: Likewise.
16267         * lib/savewd.h: Likewise.
16268         * lib/search.in.h: Likewise.
16269         * lib/setenv.c: Likewise.
16270         * lib/setenv.h: Likewise.
16271         * lib/settime.c: Likewise.
16272         * lib/sh-quote.c: Likewise.
16273         * lib/sh-quote.h: Likewise.
16274         * lib/sig2str.c: Likewise.
16275         * lib/sig2str.h: Likewise.
16276         * lib/signal.in.h: Likewise.
16277         * lib/signbitd.c: Likewise.
16278         * lib/signbitf.c: Likewise.
16279         * lib/signbitl.c: Likewise.
16280         * lib/sigprocmask.c: Likewise.
16281         * lib/sincosl.c: Likewise.
16282         * lib/sleep.c: Likewise.
16283         * lib/sprintf.c: Likewise.
16284         * lib/sqrtl.c: Likewise.
16285         * lib/stat-time.h: Likewise.
16286         * lib/stdio--.h: Likewise.
16287         * lib/stdio-safer.h: Likewise.
16288         * lib/stdlib--.h: Likewise.
16289         * lib/stdlib-safer.h: Likewise.
16290         * lib/stdlib.in.h: Likewise.
16291         * lib/stpcpy.c: Likewise.
16292         * lib/stpncpy.c: Likewise.
16293         * lib/strchrnul.c: Likewise.
16294         * lib/strcspn.c: Likewise.
16295         * lib/strerror.c: Likewise.
16296         * lib/strftime.c: Likewise.
16297         * lib/strftime.h: Likewise.
16298         * lib/striconveh.c: Likewise.
16299         * lib/striconveh.h: Likewise.
16300         * lib/striconveha.c: Likewise.
16301         * lib/striconveha.h: Likewise.
16302         * lib/stripslash.c: Likewise.
16303         * lib/strnlen1.c: Likewise.
16304         * lib/strnlen1.h: Likewise.
16305         * lib/strtod.c: Likewise.
16306         * lib/strtoimax.c: Likewise.
16307         * lib/strtok_r.c: Likewise.
16308         * lib/strtol.c: Likewise.
16309         * lib/strtoll.c: Likewise.
16310         * lib/strtoul.c: Likewise.
16311         * lib/strtoull.c: Likewise.
16312         * lib/sysexits.in.h: Likewise.
16313         * lib/tempname.c: Likewise.
16314         * lib/tempname.h: Likewise.
16315         * lib/timespec.h: Likewise.
16316         * lib/tls.c: Likewise.
16317         * lib/tls.h: Likewise.
16318         * lib/tmpdir.c: Likewise.
16319         * lib/tmpdir.h: Likewise.
16320         * lib/tmpfile-safer.c: Likewise.
16321         * lib/tmpfile.c: Likewise.
16322         * lib/trigl.c: Likewise.
16323         * lib/trigl.h: Likewise.
16324         * lib/trim.c: Likewise.
16325         * lib/trim.h: Likewise.
16326         * lib/trunc.c: Likewise.
16327         * lib/truncf.c: Likewise.
16328         * lib/truncl.c: Likewise.
16329         * lib/tsearch.c: Likewise.
16330         * lib/unicodeio.c: Likewise.
16331         * lib/unicodeio.h: Likewise.
16332         * lib/unistd--.h: Likewise.
16333         * lib/unistd-safer.h: Likewise.
16334         * lib/unistdio/ulc-fprintf.c: Likewise.
16335         * lib/unistdio/ulc-vfprintf.c: Likewise.
16336         * lib/unlinkdir.c: Likewise.
16337         * lib/unlinkdir.h: Likewise.
16338         * lib/unlocked-io.h: Likewise.
16339         * lib/unsetenv.c: Likewise.
16340         * lib/userspec.c: Likewise.
16341         * lib/utime.c: Likewise.
16342         * lib/utimecmp.c: Likewise.
16343         * lib/utimecmp.h: Likewise.
16344         * lib/utimens.c: Likewise.
16345         * lib/verify.h: Likewise.
16346         * lib/verror.c: Likewise.
16347         * lib/verror.h: Likewise.
16348         * lib/version-etc-fsf.c: Likewise.
16349         * lib/version-etc.c: Likewise.
16350         * lib/version-etc.h: Likewise.
16351         * lib/vfprintf.c: Likewise.
16352         * lib/vprintf.c: Likewise.
16353         * lib/vsprintf.c: Likewise.
16354         * lib/w32spawn.h: Likewise.
16355         * lib/wait-process.c: Likewise.
16356         * lib/wait-process.h: Likewise.
16357         * lib/wcwidth.c: Likewise.
16358         * lib/write-any-file.c: Likewise.
16359         * lib/xalloc-die.c: Likewise.
16360         * lib/xalloc.h: Likewise.
16361         * lib/xasprintf.c: Likewise.
16362         * lib/xgetcwd.c: Likewise.
16363         * lib/xgetcwd.h: Likewise.
16364         * lib/xgetdomainname.c: Likewise.
16365         * lib/xgetdomainname.h: Likewise.
16366         * lib/xgethostname.c: Likewise.
16367         * lib/xmalloc.c: Likewise.
16368         * lib/xmalloca.c: Likewise.
16369         * lib/xmalloca.h: Likewise.
16370         * lib/xmemcoll.c: Likewise.
16371         * lib/xnanosleep.c: Likewise.
16372         * lib/xreadlink.c: Likewise.
16373         * lib/xreadlink.h: Likewise.
16374         * lib/xsetenv.c: Likewise.
16375         * lib/xsetenv.h: Likewise.
16376         * lib/xstriconv.c: Likewise.
16377         * lib/xstriconv.h: Likewise.
16378         * lib/xstrndup.c: Likewise.
16379         * lib/xstrndup.h: Likewise.
16380         * lib/xstrtod.c: Likewise.
16381         * lib/xstrtod.h: Likewise.
16382         * lib/xstrtol-error.c: Likewise.
16383         * lib/xstrtol.c: Likewise.
16384         * lib/xstrtol.h: Likewise.
16385         * lib/xtime.h: Likewise.
16386         * lib/xvasprintf.c: Likewise.
16387         * lib/xvasprintf.h: Likewise.
16388         * lib/yesno.c: Likewise.
16389         * lib/yesno.h: Likewise.
16390         * posix-modules: Likewise.
16391         * tests/test-alloca-opt.c: Likewise.
16392         * tests/test-arcfour.c: Likewise.
16393         * tests/test-arctwo.c: Likewise.
16394         * tests/test-argmatch.c: Likewise.
16395         * tests/test-argp-2.sh: Likewise.
16396         * tests/test-argp.c: Likewise.
16397         * tests/test-arpa_inet.c: Likewise.
16398         * tests/test-array_list.c: Likewise.
16399         * tests/test-array_oset.c: Likewise.
16400         * tests/test-atexit.c: Likewise.
16401         * tests/test-avltree_list.c: Likewise.
16402         * tests/test-avltree_oset.c: Likewise.
16403         * tests/test-avltreehash_list.c: Likewise.
16404         * tests/test-base64.c: Likewise.
16405         * tests/test-binary-io.c: Likewise.
16406         * tests/test-byteswap.c: Likewise.
16407         * tests/test-c-ctype.c: Likewise.
16408         * tests/test-c-strcasecmp.c: Likewise.
16409         * tests/test-c-strcasestr.c: Likewise.
16410         * tests/test-c-strncasecmp.c: Likewise.
16411         * tests/test-c-strstr.c: Likewise.
16412         * tests/test-canonicalize-lgpl.c: Likewise.
16413         * tests/test-canonicalize.c: Likewise.
16414         * tests/test-carray_list.c: Likewise.
16415         * tests/test-ceilf.c: Likewise.
16416         * tests/test-ceill.c: Likewise.
16417         * tests/test-count-one-bits.c: Likewise.
16418         * tests/test-crc.c: Likewise.
16419         * tests/test-dirname.c: Likewise.
16420         * tests/test-fbufmode.c: Likewise.
16421         * tests/test-fcntl.c: Likewise.
16422         * tests/test-fflush.c: Likewise.
16423         * tests/test-floorf.c: Likewise.
16424         * tests/test-floorl.c: Likewise.
16425         * tests/test-fopen.c: Likewise.
16426         * tests/test-fprintf-posix.c: Likewise.
16427         * tests/test-fprintf-posix.h: Likewise.
16428         * tests/test-fpurge.c: Likewise.
16429         * tests/test-freadable.c: Likewise.
16430         * tests/test-freadahead.c: Likewise.
16431         * tests/test-freading.c: Likewise.
16432         * tests/test-freopen.c: Likewise.
16433         * tests/test-frexp.c: Likewise.
16434         * tests/test-frexpl.c: Likewise.
16435         * tests/test-fseek.c: Likewise.
16436         * tests/test-fseeko.c: Likewise.
16437         * tests/test-fseterr.c: Likewise.
16438         * tests/test-fstrcmp.c: Likewise.
16439         * tests/test-ftell.c: Likewise.
16440         * tests/test-ftello.c: Likewise.
16441         * tests/test-fwritable.c: Likewise.
16442         * tests/test-fwriting.c: Likewise.
16443         * tests/test-getaddrinfo.c: Likewise.
16444         * tests/test-getpass.c: Likewise.
16445         * tests/test-gettimeofday.c: Likewise.
16446         * tests/test-hmac-md5.c: Likewise.
16447         * tests/test-hmac-sha1.c: Likewise.
16448         * tests/test-iconv.c: Likewise.
16449         * tests/test-iconvme.c: Likewise.
16450         * tests/test-inttypes.c: Likewise.
16451         * tests/test-isnan.c: Likewise.
16452         * tests/test-isnanf.c: Likewise.
16453         * tests/test-isnanl-nolibm.c: Likewise.
16454         * tests/test-isnanl.c: Likewise.
16455         * tests/test-isnanl.h: Likewise.
16456         * tests/test-ldexpl.c: Likewise.
16457         * tests/test-linked_list.c: Likewise.
16458         * tests/test-linkedhash_list.c: Likewise.
16459         * tests/test-locale.c: Likewise.
16460         * tests/test-localename.c: Likewise.
16461         * tests/test-lock.c: Likewise.
16462         * tests/test-lseek.c: Likewise.
16463         * tests/test-malloca.c: Likewise.
16464         * tests/test-math.c: Likewise.
16465         * tests/test-mbscasecmp.c: Likewise.
16466         * tests/test-mbscasestr1.c: Likewise.
16467         * tests/test-mbscasestr2.c: Likewise.
16468         * tests/test-mbscasestr3.c: Likewise.
16469         * tests/test-mbscasestr4.c: Likewise.
16470         * tests/test-mbschr.c: Likewise.
16471         * tests/test-mbscspn.c: Likewise.
16472         * tests/test-mbsncasecmp.c: Likewise.
16473         * tests/test-mbspbrk.c: Likewise.
16474         * tests/test-mbspcasecmp.c: Likewise.
16475         * tests/test-mbsrchr.c: Likewise.
16476         * tests/test-mbsspn.c: Likewise.
16477         * tests/test-mbsstr1.c: Likewise.
16478         * tests/test-mbsstr2.c: Likewise.
16479         * tests/test-mbsstr3.c: Likewise.
16480         * tests/test-md5.c: Likewise.
16481         * tests/test-memmem.c: Likewise.
16482         * tests/test-netinet_in.c: Likewise.
16483         * tests/test-open.c: Likewise.
16484         * tests/test-printf-frexp.c: Likewise.
16485         * tests/test-printf-frexpl.c: Likewise.
16486         * tests/test-printf-posix.c: Likewise.
16487         * tests/test-printf-posix.h: Likewise.
16488         * tests/test-rbtree_list.c: Likewise.
16489         * tests/test-rbtree_oset.c: Likewise.
16490         * tests/test-rbtreehash_list.c: Likewise.
16491         * tests/test-read-file.c: Likewise.
16492         * tests/test-rijndael.c: Likewise.
16493         * tests/test-search.c: Likewise.
16494         * tests/test-signbit.c: Likewise.
16495         * tests/test-sleep.c: Likewise.
16496         * tests/test-snprintf-posix.c: Likewise.
16497         * tests/test-snprintf-posix.h: Likewise.
16498         * tests/test-snprintf.c: Likewise.
16499         * tests/test-sprintf-posix.c: Likewise.
16500         * tests/test-sprintf-posix.h: Likewise.
16501         * tests/test-stat-time.c: Likewise.
16502         * tests/test-stdbool.c: Likewise.
16503         * tests/test-stdint.c: Likewise.
16504         * tests/test-stdio.c: Likewise.
16505         * tests/test-stdlib.c: Likewise.
16506         * tests/test-stpncpy.c: Likewise.
16507         * tests/test-strcasestr.c: Likewise.
16508         * tests/test-striconv.c: Likewise.
16509         * tests/test-striconveh.c: Likewise.
16510         * tests/test-striconveha.c: Likewise.
16511         * tests/test-string.c: Likewise.
16512         * tests/test-sys_select.c: Likewise.
16513         * tests/test-sys_socket.c: Likewise.
16514         * tests/test-sys_stat.c: Likewise.
16515         * tests/test-sys_time.c: Likewise.
16516         * tests/test-sysexits.c: Likewise.
16517         * tests/test-time.c: Likewise.
16518         * tests/test-tls.c: Likewise.
16519         * tests/test-trunc.c: Likewise.
16520         * tests/test-truncf.c: Likewise.
16521         * tests/test-truncl.c: Likewise.
16522         * tests/test-unistd.c: Likewise.
16523         * tests/test-vasnprintf-posix.c: Likewise.
16524         * tests/test-vasnprintf-posix2.c: Likewise.
16525         * tests/test-vasnprintf.c: Likewise.
16526         * tests/test-vasprintf-posix.c: Likewise.
16527         * tests/test-vasprintf.c: Likewise.
16528         * tests/test-verify.c: Likewise.
16529         * tests/test-vfprintf-posix.c: Likewise.
16530         * tests/test-vprintf-posix.c: Likewise.
16531         * tests/test-vsnprintf-posix.c: Likewise.
16532         * tests/test-vsnprintf.c: Likewise.
16533         * tests/test-vsprintf-posix.c: Likewise.
16534         * tests/test-wchar.c: Likewise.
16535         * tests/test-wctype.c: Likewise.
16536         * tests/test-wcwidth.c: Likewise.
16537         * tests/test-xstrtol.c: Likewise.
16538         * tests/test-xvasprintf.c: Likewise.
16539         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16540         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16541         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16542         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16543         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16544         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16545         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16546         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16547         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16548         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16549         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16550         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16551         * tests/uniname/test-uninames.c: Likewise.
16552         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16553         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16554         * tests/unistdio/test-u16-printf1.h: Likewise.
16555         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16556         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16557         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16558         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16559         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16560         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16561         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16562         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16563         * tests/unistdio/test-u32-printf1.h: Likewise.
16564         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16565         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16566         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16567         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16568         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16569         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16570         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16571         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16572         * tests/unistdio/test-u8-printf1.h: Likewise.
16573         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16574         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16575         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16576         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16577         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16578         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16579         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16580         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16581         * tests/unistdio/test-ulc-printf1.h: Likewise.
16582         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16583         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16584         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16585         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16586         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16587         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16588         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16589         * tests/uniwidth/test-u16-width.c: Likewise.
16590         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16591         * tests/uniwidth/test-u32-width.c: Likewise.
16592         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16593         * tests/uniwidth/test-u8-width.c: Likewise.
16594         * tests/uniwidth/test-uc_width.c: Likewise.
16595         * config/srclist-update: Likewise.
16596         (fixlicense): Update to GPLv3+.
16597
16598         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16599         * tests/test-tsearch.c: Change copyright notice.
16600
16601         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16602         * lib/c-strcaseeq.h: Change copyright notice.
16603         * lib/streq.h: Likewise.
16604         * lib/uniconv.h: Likewise.
16605         * lib/uniconv/u-conv-from-enc.h: Likewise.
16606         * lib/uniconv/u-conv-to-enc.h: Likewise.
16607         * lib/uniconv/u-strconv-from-enc.h: Likewise.
16608         * lib/uniconv/u-strconv-to-enc.h: Likewise.
16609         * lib/uniconv/u16-conv-from-enc.c: Likewise.
16610         * lib/uniconv/u16-conv-to-enc.c: Likewise.
16611         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16612         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16613         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16614         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16615         * lib/uniconv/u32-conv-from-enc.c: Likewise.
16616         * lib/uniconv/u32-conv-to-enc.c: Likewise.
16617         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16618         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16619         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16620         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16621         * lib/uniconv/u8-conv-from-enc.c: Likewise.
16622         * lib/uniconv/u8-conv-to-enc.c: Likewise.
16623         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16624         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16625         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16626         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16627         * lib/uniname.h: Likewise.
16628         * lib/uniname/uniname.c: Likewise.
16629         * lib/unistdio.h: Likewise.
16630         * lib/unistdio/u-asnprintf.h: Likewise.
16631         * lib/unistdio/u-asprintf.h: Likewise.
16632         * lib/unistdio/u-printf-args.c: Likewise.
16633         * lib/unistdio/u-printf-args.h: Likewise.
16634         * lib/unistdio/u-printf-parse.h: Likewise.
16635         * lib/unistdio/u-snprintf.h: Likewise.
16636         * lib/unistdio/u-sprintf.h: Likewise.
16637         * lib/unistdio/u-vasprintf.h: Likewise.
16638         * lib/unistdio/u-vsnprintf.h: Likewise.
16639         * lib/unistdio/u-vsprintf.h: Likewise.
16640         * lib/unistdio/u16-asnprintf.c: Likewise.
16641         * lib/unistdio/u16-asprintf.c: Likewise.
16642         * lib/unistdio/u16-printf-parse.c: Likewise.
16643         * lib/unistdio/u16-snprintf.c: Likewise.
16644         * lib/unistdio/u16-sprintf.c: Likewise.
16645         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16646         * lib/unistdio/u16-u16-asprintf.c: Likewise.
16647         * lib/unistdio/u16-u16-snprintf.c: Likewise.
16648         * lib/unistdio/u16-u16-sprintf.c: Likewise.
16649         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16650         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16651         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16652         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16653         * lib/unistdio/u16-vasnprintf.c: Likewise.
16654         * lib/unistdio/u16-vasprintf.c: Likewise.
16655         * lib/unistdio/u16-vsnprintf.c: Likewise.
16656         * lib/unistdio/u16-vsprintf.c: Likewise.
16657         * lib/unistdio/u32-asnprintf.c: Likewise.
16658         * lib/unistdio/u32-asprintf.c: Likewise.
16659         * lib/unistdio/u32-printf-parse.c: Likewise.
16660         * lib/unistdio/u32-snprintf.c: Likewise.
16661         * lib/unistdio/u32-sprintf.c: Likewise.
16662         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16663         * lib/unistdio/u32-u32-asprintf.c: Likewise.
16664         * lib/unistdio/u32-u32-snprintf.c: Likewise.
16665         * lib/unistdio/u32-u32-sprintf.c: Likewise.
16666         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16667         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16668         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16669         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16670         * lib/unistdio/u32-vasnprintf.c: Likewise.
16671         * lib/unistdio/u32-vasprintf.c: Likewise.
16672         * lib/unistdio/u32-vsnprintf.c: Likewise.
16673         * lib/unistdio/u32-vsprintf.c: Likewise.
16674         * lib/unistdio/u8-asnprintf.c: Likewise.
16675         * lib/unistdio/u8-asprintf.c: Likewise.
16676         * lib/unistdio/u8-printf-parse.c: Likewise.
16677         * lib/unistdio/u8-snprintf.c: Likewise.
16678         * lib/unistdio/u8-sprintf.c: Likewise.
16679         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16680         * lib/unistdio/u8-u8-asprintf.c: Likewise.
16681         * lib/unistdio/u8-u8-snprintf.c: Likewise.
16682         * lib/unistdio/u8-u8-sprintf.c: Likewise.
16683         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16684         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16685         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16686         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16687         * lib/unistdio/u8-vasnprintf.c: Likewise.
16688         * lib/unistdio/u8-vasprintf.c: Likewise.
16689         * lib/unistdio/u8-vsnprintf.c: Likewise.
16690         * lib/unistdio/u8-vsprintf.c: Likewise.
16691         * lib/unistdio/ulc-asnprintf.c: Likewise.
16692         * lib/unistdio/ulc-asprintf.c: Likewise.
16693         * lib/unistdio/ulc-printf-parse.c: Likewise.
16694         * lib/unistdio/ulc-snprintf.c: Likewise.
16695         * lib/unistdio/ulc-sprintf.c: Likewise.
16696         * lib/unistdio/ulc-vasnprintf.c: Likewise.
16697         * lib/unistdio/ulc-vasprintf.c: Likewise.
16698         * lib/unistdio/ulc-vsnprintf.c: Likewise.
16699         * lib/unistdio/ulc-vsprintf.c: Likewise.
16700         * lib/unistr.h: Likewise.
16701         * lib/unistr/u-cpy-alloc.h: Likewise.
16702         * lib/unistr/u-cpy.h: Likewise.
16703         * lib/unistr/u-endswith.h: Likewise.
16704         * lib/unistr/u-move.h: Likewise.
16705         * lib/unistr/u-set.h: Likewise.
16706         * lib/unistr/u-startswith.h: Likewise.
16707         * lib/unistr/u-stpcpy.h: Likewise.
16708         * lib/unistr/u-stpncpy.h: Likewise.
16709         * lib/unistr/u-strcat.h: Likewise.
16710         * lib/unistr/u-strcpy.h: Likewise.
16711         * lib/unistr/u-strcspn.h: Likewise.
16712         * lib/unistr/u-strdup.h: Likewise.
16713         * lib/unistr/u-strlen.h: Likewise.
16714         * lib/unistr/u-strncat.h: Likewise.
16715         * lib/unistr/u-strncpy.h: Likewise.
16716         * lib/unistr/u-strnlen.h: Likewise.
16717         * lib/unistr/u-strpbrk.h: Likewise.
16718         * lib/unistr/u-strspn.h: Likewise.
16719         * lib/unistr/u-strstr.h: Likewise.
16720         * lib/unistr/u-strtok.h: Likewise.
16721         * lib/unistr/u16-check.c: Likewise.
16722         * lib/unistr/u16-chr.c: Likewise.
16723         * lib/unistr/u16-cmp.c: Likewise.
16724         * lib/unistr/u16-cpy-alloc.c: Likewise.
16725         * lib/unistr/u16-cpy.c: Likewise.
16726         * lib/unistr/u16-endswith.c: Likewise.
16727         * lib/unistr/u16-mblen.c: Likewise.
16728         * lib/unistr/u16-mbsnlen.c: Likewise.
16729         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16730         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16731         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16732         * lib/unistr/u16-mbtouc.c: Likewise.
16733         * lib/unistr/u16-mbtoucr.c: Likewise.
16734         * lib/unistr/u16-move.c: Likewise.
16735         * lib/unistr/u16-next.c: Likewise.
16736         * lib/unistr/u16-prev.c: Likewise.
16737         * lib/unistr/u16-set.c: Likewise.
16738         * lib/unistr/u16-startswith.c: Likewise.
16739         * lib/unistr/u16-stpcpy.c: Likewise.
16740         * lib/unistr/u16-stpncpy.c: Likewise.
16741         * lib/unistr/u16-strcat.c: Likewise.
16742         * lib/unistr/u16-strchr.c: Likewise.
16743         * lib/unistr/u16-strcmp.c: Likewise.
16744         * lib/unistr/u16-strcpy.c: Likewise.
16745         * lib/unistr/u16-strcspn.c: Likewise.
16746         * lib/unistr/u16-strdup.c: Likewise.
16747         * lib/unistr/u16-strlen.c: Likewise.
16748         * lib/unistr/u16-strmblen.c: Likewise.
16749         * lib/unistr/u16-strmbtouc.c: Likewise.
16750         * lib/unistr/u16-strncat.c: Likewise.
16751         * lib/unistr/u16-strncmp.c: Likewise.
16752         * lib/unistr/u16-strncpy.c: Likewise.
16753         * lib/unistr/u16-strnlen.c: Likewise.
16754         * lib/unistr/u16-strpbrk.c: Likewise.
16755         * lib/unistr/u16-strrchr.c: Likewise.
16756         * lib/unistr/u16-strspn.c: Likewise.
16757         * lib/unistr/u16-strstr.c: Likewise.
16758         * lib/unistr/u16-strtok.c: Likewise.
16759         * lib/unistr/u16-to-u32.c: Likewise.
16760         * lib/unistr/u16-to-u8.c: Likewise.
16761         * lib/unistr/u16-uctomb-aux.c: Likewise.
16762         * lib/unistr/u16-uctomb.c: Likewise.
16763         * lib/unistr/u32-check.c: Likewise.
16764         * lib/unistr/u32-chr.c: Likewise.
16765         * lib/unistr/u32-cmp.c: Likewise.
16766         * lib/unistr/u32-cpy-alloc.c: Likewise.
16767         * lib/unistr/u32-cpy.c: Likewise.
16768         * lib/unistr/u32-endswith.c: Likewise.
16769         * lib/unistr/u32-mblen.c: Likewise.
16770         * lib/unistr/u32-mbsnlen.c: Likewise.
16771         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16772         * lib/unistr/u32-mbtouc.c: Likewise.
16773         * lib/unistr/u32-mbtoucr.c: Likewise.
16774         * lib/unistr/u32-move.c: Likewise.
16775         * lib/unistr/u32-next.c: Likewise.
16776         * lib/unistr/u32-prev.c: Likewise.
16777         * lib/unistr/u32-set.c: Likewise.
16778         * lib/unistr/u32-startswith.c: Likewise.
16779         * lib/unistr/u32-stpcpy.c: Likewise.
16780         * lib/unistr/u32-stpncpy.c: Likewise.
16781         * lib/unistr/u32-strcat.c: Likewise.
16782         * lib/unistr/u32-strchr.c: Likewise.
16783         * lib/unistr/u32-strcmp.c: Likewise.
16784         * lib/unistr/u32-strcpy.c: Likewise.
16785         * lib/unistr/u32-strcspn.c: Likewise.
16786         * lib/unistr/u32-strdup.c: Likewise.
16787         * lib/unistr/u32-strlen.c: Likewise.
16788         * lib/unistr/u32-strmblen.c: Likewise.
16789         * lib/unistr/u32-strmbtouc.c: Likewise.
16790         * lib/unistr/u32-strncat.c: Likewise.
16791         * lib/unistr/u32-strncmp.c: Likewise.
16792         * lib/unistr/u32-strncpy.c: Likewise.
16793         * lib/unistr/u32-strnlen.c: Likewise.
16794         * lib/unistr/u32-strpbrk.c: Likewise.
16795         * lib/unistr/u32-strrchr.c: Likewise.
16796         * lib/unistr/u32-strspn.c: Likewise.
16797         * lib/unistr/u32-strstr.c: Likewise.
16798         * lib/unistr/u32-strtok.c: Likewise.
16799         * lib/unistr/u32-to-u16.c: Likewise.
16800         * lib/unistr/u32-to-u8.c: Likewise.
16801         * lib/unistr/u32-uctomb.c: Likewise.
16802         * lib/unistr/u8-check.c: Likewise.
16803         * lib/unistr/u8-chr.c: Likewise.
16804         * lib/unistr/u8-cmp.c: Likewise.
16805         * lib/unistr/u8-cpy-alloc.c: Likewise.
16806         * lib/unistr/u8-cpy.c: Likewise.
16807         * lib/unistr/u8-endswith.c: Likewise.
16808         * lib/unistr/u8-mblen.c: Likewise.
16809         * lib/unistr/u8-mbsnlen.c: Likewise.
16810         * lib/unistr/u8-mbtouc-aux.c: Likewise.
16811         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16812         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16813         * lib/unistr/u8-mbtouc.c: Likewise.
16814         * lib/unistr/u8-mbtoucr.c: Likewise.
16815         * lib/unistr/u8-move.c: Likewise.
16816         * lib/unistr/u8-next.c: Likewise.
16817         * lib/unistr/u8-prev.c: Likewise.
16818         * lib/unistr/u8-set.c: Likewise.
16819         * lib/unistr/u8-startswith.c: Likewise.
16820         * lib/unistr/u8-stpcpy.c: Likewise.
16821         * lib/unistr/u8-stpncpy.c: Likewise.
16822         * lib/unistr/u8-strcat.c: Likewise.
16823         * lib/unistr/u8-strchr.c: Likewise.
16824         * lib/unistr/u8-strcmp.c: Likewise.
16825         * lib/unistr/u8-strcpy.c: Likewise.
16826         * lib/unistr/u8-strcspn.c: Likewise.
16827         * lib/unistr/u8-strdup.c: Likewise.
16828         * lib/unistr/u8-strlen.c: Likewise.
16829         * lib/unistr/u8-strmblen.c: Likewise.
16830         * lib/unistr/u8-strmbtouc.c: Likewise.
16831         * lib/unistr/u8-strncat.c: Likewise.
16832         * lib/unistr/u8-strncmp.c: Likewise.
16833         * lib/unistr/u8-strncpy.c: Likewise.
16834         * lib/unistr/u8-strnlen.c: Likewise.
16835         * lib/unistr/u8-strpbrk.c: Likewise.
16836         * lib/unistr/u8-strrchr.c: Likewise.
16837         * lib/unistr/u8-strspn.c: Likewise.
16838         * lib/unistr/u8-strstr.c: Likewise.
16839         * lib/unistr/u8-strtok.c: Likewise.
16840         * lib/unistr/u8-to-u16.c: Likewise.
16841         * lib/unistr/u8-to-u32.c: Likewise.
16842         * lib/unistr/u8-uctomb-aux.c: Likewise.
16843         * lib/unistr/u8-uctomb.c: Likewise.
16844         * lib/unitypes.h: Likewise.
16845         * lib/uniwidth.h: Likewise.
16846         * lib/uniwidth/cjk.h: Likewise.
16847         * lib/uniwidth/u16-strwidth.c: Likewise.
16848         * lib/uniwidth/u16-width.c: Likewise.
16849         * lib/uniwidth/u32-strwidth.c: Likewise.
16850         * lib/uniwidth/u32-width.c: Likewise.
16851         * lib/uniwidth/u8-strwidth.c: Likewise.
16852         * lib/uniwidth/u8-width.c: Likewise.
16853         * lib/uniwidth/width.c: Likewise.
16854
16855 2007-10-07  Bruno Haible  <bruno@clisp.org>
16856
16857         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
16858         The file is still under LGPL (see modules/inttypes).
16859
16860 2007-10-06  Bruno Haible  <bruno@clisp.org>
16861
16862         * modules/trunc (Dependencies): Add 'extensions'.
16863         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
16864         Reported by Ben Pfaff <blp@gnu.org>.
16865
16866 2007-10-06  Bruno Haible  <bruno@clisp.org>
16867
16868         * modules/freopen-tests: New file.
16869         * tests/test-freopen.c: New file.
16870
16871         * modules/fopen-tests: New file.
16872         * tests/test-fopen.c: New file.
16873
16874         * modules/fopen: New file.
16875         * lib/fopen.c: New file.
16876         * m4/fopen.m4: New file.
16877         * modules/freopen: New file.
16878         * lib/freopen.c: New file.
16879         * m4/freopen.m4: New file.
16880         * lib/stdio.in.h (fopen, freopen): New declarations.
16881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
16882         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16883         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
16884         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16885         * doc/functions/fopen.texi: Mention the 'fopen' module.
16886         * doc/functions/freopen.texi: Mention the 'freopen' module.
16887
16888 2007-10-06  Bruno Haible  <bruno@clisp.org>
16889
16890         * modules/open-tests: New file.
16891         * tests/test-open.c: New file.
16892
16893         * modules/open: New file.
16894         * lib/open.c: New file.
16895         * m4/open.m4: New file.
16896         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
16897         lib/open.c does.
16898         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
16899         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
16900         macros.
16901         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
16902         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
16903         REPLACE_OPEN.
16904         * doc/functions/open.texi: Mention the 'open' module.
16905
16906 2007-10-04  Bruno Haible  <bruno@clisp.org>
16907
16908         * modules/ceill-tests: New file.
16909         * tests/test-ceill.c: New file.
16910
16911         * modules/ceill: New file.
16912         * lib/ceill.c: Replace entire file.
16913         * m4/ceill.m4: New file.
16914         * lib/math.in.h (ceill): Replace declaration.
16915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
16916         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
16917         * doc/functions/ceill.texi: Mention the 'ceill' module.
16918         * modules/mathl (Files): Remove lib/ceill.c.
16919         (Depends-on): Add ceill.
16920
16921 2007-10-04  Bruno Haible  <bruno@clisp.org>
16922
16923         * modules/ceilf-tests: New file.
16924         * tests/test-ceilf.c: New file.
16925
16926         * modules/ceilf: New file.
16927         * lib/ceil.c: New file.
16928         * lib/ceilf.c: New file.
16929         * m4/ceilf.m4: New file.
16930         * lib/math.in.h (ceilf): New declaration.
16931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
16932         HAVE_DECL_CEILF.
16933         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
16934         HAVE_DECL_CEILF.
16935         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
16936
16937 2007-10-04  Bruno Haible  <bruno@clisp.org>
16938
16939         * modules/floorl-tests: New file.
16940         * tests/test-floorl.c: New file.
16941
16942         * modules/floorl: New file.
16943         * lib/floorl.c: Replace entire file.
16944         * m4/floorl.m4: New file.
16945         * lib/math.in.h (floorl): Replace declaration.
16946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
16947         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
16948         * doc/functions/floorl.texi: Mention the 'floorl' module.
16949         * modules/mathl (Files): Remove lib/floorl.c.
16950         (Depends-on): Add floorl.
16951
16952 2007-10-04  Bruno Haible  <bruno@clisp.org>
16953
16954         * modules/floorf-tests: New file.
16955         * tests/test-floorf.c: New file.
16956
16957         * modules/floorf: New file.
16958         * lib/floor.c: New file.
16959         * lib/floorf.c: New file.
16960         * m4/floorf.m4: New file.
16961         * lib/math.in.h (floorf): New declaration.
16962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
16963         HAVE_DECL_FLOORF.
16964         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
16965         HAVE_DECL_FLOORF.
16966         * doc/functions/floorf.texi: Mention the 'floorf' module.
16967
16968 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
16969             Bruno Haible  <bruno@clisp.org>
16970
16971         Advertise for the Git server instead of the CVS server.
16972         * doc/gnulib-intro.texi (Steady Development): Mention the Git
16973         repository instead of the CVS one.
16974         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
16975         about all VCS systems generically.
16976         * doc/gnulib.texi (Introduction): Capitalize `Git'.
16977
16978 2007-10-04  Bruno Haible  <bruno@clisp.org>
16979
16980         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
16981         means.
16982         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
16983
16984 2007-10-04  Bruno Haible  <bruno@clisp.org>
16985
16986         * modules/truncl-tests: New file.
16987         * tests/test-truncl.c: New file.
16988
16989         * modules/truncl: New file.
16990         * lib/truncl.c: New file.
16991         * m4/truncl.m4: New file.
16992         * lib/math.in.h (truncl): New declaration.
16993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
16994         HAVE_DECL_TRUNCL.
16995         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
16996         HAVE_DECL_TRUNCL.
16997         * doc/functions/truncl.texi: Mention the 'truncl' module.
16998
16999 2007-10-04  Bruno Haible  <bruno@clisp.org>
17000
17001         * modules/truncf-tests: New file.
17002         * tests/test-truncf.c: New file.
17003
17004         * modules/truncf: New file.
17005         * lib/trunc.c: Make paramerizable through USE_* macros.
17006         * lib/truncf.c: New file.
17007         * m4/truncf.m4: New file.
17008         * lib/math.in.h (truncf): New declaration.
17009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17010         HAVE_DECL_TRUNCF.
17011         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17012         HAVE_DECL_TRUNCF.
17013         * doc/functions/truncf.texi: Mention the 'truncf' module.
17014
17015 2007-10-03  Bruno Haible  <bruno@clisp.org>
17016
17017         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17018         augmentation also for tests modules.
17019         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17020         * modules/atexit-tests (Makefile.am): Likewise.
17021         * modules/binary-io-tests (Makefile.am): Likewise.
17022         * modules/c-strcase-tests (Makefile.am): Likewise.
17023         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17024         * modules/canonicalize-tests (Makefile.am): Likewise.
17025         * modules/closein-tests (Makefile.am): Likewise.
17026         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17027         * modules/freadahead-tests (Makefile.am): Likewise.
17028         * modules/fseek-tests (Makefile.am): Likewise.
17029         * modules/fseeko-tests (Makefile.am): Likewise.
17030         * modules/ftell-tests (Makefile.am): Likewise.
17031         * modules/ftello-tests (Makefile.am): Likewise.
17032         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17033         * modules/isnanl-tests (Makefile.am): Likewise.
17034         * modules/lseek-tests (Makefile.am): Likewise.
17035         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17036         * modules/mbscasestr-tests (Makefile.am): Likewise.
17037         * modules/mbschr-tests (Makefile.am): Likewise.
17038         * modules/mbscspn-tests (Makefile.am): Likewise.
17039         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17040         * modules/mbspbrk-tests (Makefile.am): Likewise.
17041         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17042         * modules/mbsrchr-tests (Makefile.am): Likewise.
17043         * modules/mbsspn-tests (Makefile.am): Likewise.
17044         * modules/mbsstr-tests (Makefile.am): Likewise.
17045         * modules/printf-posix-tests (Makefile.am): Likewise.
17046         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17047         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17048         * modules/tsearch-tests (Makefile.am): Likewise.
17049         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17050         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17051         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17052         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17053         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17054         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17055         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17056         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17057         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17058         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17059         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17060         * modules/xstrtol-tests (Makefile.am): Likewise.
17061         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17062         * modules/yesno-tests (Makefile.am): Likewise.
17063
17064 2007-10-03  Bruno Haible  <bruno@clisp.org>
17065
17066         * modules/trunc-tests: New file.
17067         * tests/test-trunc.c: New file.
17068
17069         * modules/trunc: New file.
17070         * lib/trunc.c: New file.
17071         * m4/trunc.m4: New file.
17072         * lib/math.in.h (trunc): New declaration.
17073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17074         HAVE_DECL_TRUNC.
17075         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17076         HAVE_DECL_TRUNC.
17077         * doc/functions/trunc.texi: Mention the 'trunc' module.
17078
17079 2007-10-03  Bruno Haible  <bruno@clisp.org>
17080
17081         * tests/test-fpending.c: New file, mostly copied
17082         from coreutils/lib/t-fpending.c.
17083         * modules/fpending-tests: New file.
17084
17085 2007-10-03  Bruno Haible  <bruno@clisp.org>
17086
17087         Port the stdio extensions to QNX (untested).
17088         * lib/fseterr.c (fseterr): Add support for QNX.
17089         * lib/fbufmode.c (fbufmode): Likewise.
17090         * lib/freadable.c (freadable): Likewise.
17091         * lib/fwritable.c (fwritable): Likewise.
17092         * lib/freading.c (freading): Likewise.
17093         * lib/fwriting.c (fwriting): Likewise.
17094         * lib/freadahead.c (freadahed): Likewise.
17095         * lib/fpurge.c (fpurge): Likewise.
17096         * lib/fseeko.c (rpl_fseeko): Likewise.
17097
17098 2007-10-03  Bruno Haible  <bruno@clisp.org>
17099             Jim Meyering  <jim@meyering.net>
17100             Eric Blake  <ebb9@byu.net>
17101
17102         * doc/relocatable.texi: Use @command instead of @program.
17103
17104 2007-10-02  Jim Meyering  <jim@meyering.net>
17105
17106         Perform one more "_.h" -> ".in.h" substitution.
17107         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17108         instead of unistd_.h here, too.
17109
17110 2007-10-01  Bruno Haible  <bruno@clisp.org>
17111
17112         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17113         Needed for the alloca-opt module.
17114
17115 2007-09-30  Bruno Haible  <bruno@clisp.org>
17116
17117         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17118         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17119         alloca_.h.
17120         * lib/argz.in.h: Renamed from lib/argz_.h.
17121         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17122         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17123         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17124         byteswap_.h.
17125         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17126         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17127         dirent_.h.
17128         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17129         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17130         fcntl_.h.
17131         * lib/float.in.h: Renamed from lib/float_.h.
17132         * modules/float (Files, Makefile.am): Use float.in.h instead of
17133         float_.h.
17134         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17135         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17136         fnmatch_.h.
17137         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17138         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17139         getopt_.h.
17140         * lib/glob.in.h: Renamed from lib/glob_.h.
17141         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17142         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17143         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17144         iconv_.h.
17145         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17146         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17147         inttypes_.h.
17148         * lib/locale.in.h: Renamed from lib/locale_.h.
17149         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17150         locale_.h.
17151         * lib/math.in.h: Renamed from lib/math_.h.
17152         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17153         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17154         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17155         of netinet_in_.h. Add dependency.
17156         * lib/poll.in.h: Renamed from lib/poll_.h.
17157         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17158         * lib/search.in.h: Renamed from lib/search_.h.
17159         * modules/search (Files, Makefile.am): Use search.in.h instead of
17160         search_.h.
17161         * lib/signal.in.h: Renamed from lib/signal_.h.
17162         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17163         _signal.h.
17164         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17165         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17166         stdbool_.h.
17167         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17168         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17169         stdint_.h.
17170         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17171         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17172         stdio_.h.
17173         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17174         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17175         stdlib_.h.
17176         * lib/string.in.h: Renamed from lib/string_.h.
17177         * modules/string (Files, Makefile.am): Use string.in.h instead of
17178         string_.h.
17179         * doc/gnulib-tool.texi (Initial import): Update.
17180         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17181         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17182         of sys_select_.h. Add dependency.
17183         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17184         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17185         of sys_socket_.h.
17186         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17187         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17188         sys_stat_.h.
17189         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17190         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17191         sys_time_.h.
17192         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17193         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17194         sysexits_.h.
17195         * lib/time.in.h: Renamed from lib/time_.h.
17196         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17197         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17198         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17199         unistd_.h.
17200         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17201         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17202         wchar_.h.
17203         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17204         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17205         wctype_.h.
17206         * build-aux/bootstrap (slurp): Update.
17207         * lib/.cppi-disable: Update.
17208
17209 2007-09-30  Bruno Haible  <bruno@clisp.org>
17210
17211         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17212         Needed on BeOS.
17213
17214 2007-09-30  Bruno Haible  <bruno@clisp.org>
17215
17216         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17217
17218 2007-09-29  Bruno Haible  <bruno@clisp.org>
17219
17220         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17221
17222 2007-09-29  Bruno Haible  <bruno@clisp.org>
17223
17224         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17225         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17226         * build-aux/install-reloc: Compile also areadlink.c.
17227         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17228
17229 2007-09-29  Bruno Haible  <bruno@clisp.org>
17230
17231         * gnulib-tool (func_emit_initmacro_done): Indentation.
17232
17233 2007-09-29  Bruno Haible  <bruno@clisp.org>
17234
17235         * README: Add CVS checkout update instructions.
17236         Info from Bob Proulx <bob@proulx.com>.
17237
17238 2007-09-28  Eric Blake  <ebb9@byu.net>
17239
17240         Provide move-if-change.
17241         * build-aux/move-if-change: New file, based on best practice
17242         rather than any canonical upstream location.
17243
17244 2007-09-28  Jim Meyering  <jim@meyering.net>
17245
17246         Fix canonicalize loop-detection corner case.
17247         Do not attempt to stat the symlink values stored via seen_triple.
17248         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17249         on linux-2.6.18, (but not 2.6.22).
17250         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17251         triple_compare.  The former compares dev,ino,filename, while the latter
17252         would actually stat dirname(filename) when dev and ino were equal.
17253         * lib/hash-triple.c: Install <string.h>.
17254         (STREQ): Define.
17255         (triple_compare_ino_str): New function.
17256         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17257
17258 2007-09-28  Eric Blake  <ebb9@byu.net>
17259
17260         Enforce that AC_REPLACE_FUNCS files exist.
17261         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17262         override check for typos.
17263
17264         Fix test-closein on Solaris 10.
17265         * tests/test-closein.c (main): Don't assume stdin can be inherited
17266         closed on all systems.
17267         * tests/test-closein.sh: Likewise.
17268         Reported by Piotr Tarnowski.
17269
17270 2007-09-28  Jim Meyering  <jim@meyering.net>
17271
17272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17273
17274 2007-09-27  Jim Meyering  <jim@meyering.net>
17275
17276         canonicalize: Avoid a false-positive cycle failure.
17277         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17278         Sort.  Remove cycle-check.
17279         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17280         not cycle-check.h.
17281         (seen_triple): New function.
17282         (canonicalize_filename_mode): Use it instead of cycle-check.
17283         * tests/test-canonicalize.c: Add a test for this bug.
17284         * tests/test-canonicalize.sh: Set up and run the test.
17285
17286         New module, file-set, from coreutils.
17287         * modules/file-set: Define it.
17288         * lib/file-set.c, lib/file-set.h: Implement.
17289
17290         New module, hash-triple, from coreutils.
17291         * modules/hash-triple: Define it.
17292         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17293
17294 2007-09-25  Eric Blake  <ebb9@byu.net>
17295
17296         Fix strerror on Interix.
17297         * lib/string_.h (strerror): Declare replacement.
17298         * doc/functions/strerror.texi (strerror): Document the Interix
17299         shortcoming.
17300         * modules/string (Makefile.am): Support new hooks.
17301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17302         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17303         gl_FUNC_STRERROR_SEPARATE.
17304         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17305         * lib/strerror.c (rpl_strerror): Provide replacement.
17306         * modules/strerror (Depends-on): Add string.
17307         (configure.ac): Detect use of module.
17308         * tests/test-strerror.c: New file.
17309         * modules/strerror-tests: New test module.
17310         * modules/argp (Depends-on): Add strerror.
17311         * modules/error (Depends-on): Likewise.
17312         Reported by Martin Koeppe.
17313
17314 2007-09-24  Bruno Haible  <bruno@clisp.org>
17315
17316         * README: Update git instructions.
17317
17318 2007-09-24  Eric Blake  <ebb9@byu.net>
17319
17320         Revert fpending breakage from 2007-09-08.
17321         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17322         __fpending.c.
17323
17324 2007-09-24  Jim Meyering  <jim@meyering.net>
17325
17326         filenamecat.c: Add a test.
17327         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17328         showing how the function works when DIR is the empty string.
17329
17330 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17331
17332         * tests/test-canonicalize.sh: Turn on executable bit.
17333
17334 2007-09-19  Eric Blake  <ebb9@byu.net>
17335
17336         * README: Update CVS instructions.
17337
17338 2007-09-18  Bruno Haible  <bruno@clisp.org>
17339
17340         * modules/areadlink: New file.
17341         * lib/areadlink.h (areadlink): New declaration.
17342         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17343
17344 2007-09-17  Jim Meyering  <jim@meyering.net>
17345
17346         * lib/savewd.c (ESTALE) [!defined]: Define.
17347         Reported to be required on Interix by Martin Koeppe.
17348
17349 2007-09-17  Bruno Haible  <bruno@clisp.org>
17350
17351         * gnulib-tool (func_version): Use $version.
17352
17353 2007-09-16  Bruno Haible  <bruno@clisp.org>
17354
17355         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17356         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17357         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17358         Reported by Greg Schafer <gschafer@zip.com.au>.
17359
17360 2007-09-15  Bruno Haible  <bruno@clisp.org>
17361
17362         * gnulib-tool (sed): Try a little harder to make bash understand the
17363         alias.
17364         Reported by Bruce Korb <bruce.korb@gmail.com>.
17365
17366 2007-09-13  Eric Blake  <ebb9@byu.net>
17367
17368         * ChangeLog: Remove conflict markers.
17369
17370 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17371
17372         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17373         Reported by Bruno Haible <bruno@clisp.org>.
17374
17375 2007-09-12  Bruno Haible  <bruno@clisp.org>
17376
17377         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17378         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17379         is not defined.
17380
17381 2007-09-12  Eric Blake  <ebb9@byu.net>
17382
17383         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17384         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17385         Autoconf definition.
17386         * modules/euidaccess (Depends-on): Add extensions, for
17387         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17388         * modules/fnmatch (Depends-on): Likewise.
17389         * modules/getaddrinfo (Depends-on): Likewise.
17390         * modules/getdelim (Depends-on): Likewise.
17391         * modules/getline (Depends-on): Likewise.
17392         * modules/getsubopt (Depends-on): Likewise.
17393         * modules/gettext (Depends-on): Likewise.
17394         * modules/group-member (Depends-on): Likewise.
17395         * modules/mbchar (Depends-on): Likewise.
17396         * modules/memmem (Depends-on): Likewise.
17397         * modules/mempcpy (Depends-on): Likewise.
17398         * modules/memrchr (Depends-on): Likewise.
17399         * modules/pagealign_alloc (Depends-on): Likewise.
17400         * modules/readutmp (Depends-on): Likewise.
17401         * modules/stpcpy (Depends-on): Likewise.
17402         * modules/stpncpy (Depends-on): Likewise.
17403         * modules/strchrnul (Depends-on): Likewise.
17404         * modules/strndup (Depends-on): Likewise.
17405         * modules/strsep (Depends-on): Likewise.
17406         * modules/strverscmp (Depends-on): Likewise.
17407         * modules/vasprintf (Depends-on): Likewise.
17408         * modules/wcwidth (Depends-on): Likewise.
17409         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17410         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17411         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17413         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17414         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17415         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17416         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17417         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17418         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17420         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17421         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17422         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17423         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17424         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17425         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17426         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17428         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17429         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17430         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17431         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17432         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17433         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17435         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17436         so that lock.m4 can be used in gettext without extensions module.
17437
17438 2007-09-11  Bruno Haible  <bruno@clisp.org>
17439
17440         * m4/isc-posix.m4: Remove file.
17441         Suggested by Eric Blake.
17442
17443 2007-09-11  Eric Blake  <ebb9@byu.net>
17444
17445         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17446
17447 2007-09-10  Bruno Haible  <bruno@clisp.org>
17448
17449         * posix-modules: Fix typo in error message.
17450         Reported by Matt <mkraai@beckman.com>.
17451
17452 2007-09-09  Bruno Haible  <bruno@clisp.org>
17453
17454         * doc/functions/getdelim.texi: Update list of platforms lacking the
17455         function.
17456         * doc/functions/getline.texi: Likewise.
17457
17458 2007-09-09  Jim Meyering  <jim@meyering.net>
17459
17460         * lib/hash.c (hash_initialize): Detect calloc failure.
17461         Reported by Bruno Haible.
17462
17463 2007-09-09  Bruno Haible  <bruno@clisp.org>
17464
17465         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17466         malloc or realloc fails.
17467
17468 2007-09-09  Bruno Haible  <bruno@clisp.org>
17469
17470         * modules/getcwd (Depends-on): Add malloc-posix.
17471         * modules/glob (Depends-on): Likewise.
17472         * modules/putenv (Depends-on): Likewise.
17473         * modules/strdup (Depends-on): Likewise.
17474         * modules/getdelim (Depends-on): Add realloc-posix.
17475         * modules/read-file (Depends-on): Likewise.
17476
17477 2007-09-09  Bruno Haible  <bruno@clisp.org>
17478
17479         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17480         (gl_FUNC_MALLOC_POSIX): Require it.
17481         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17482         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17483         * modules/realloc (Files): Add m4/malloc.m4.
17484         * modules/calloc (Files): Likewise.
17485
17486 2007-09-09  Bruno Haible  <bruno@clisp.org>
17487
17488         * modules/malloc-posix: New file.
17489         * modules/malloc (Depends-on): Add malloc-posix.
17490         * lib/malloc.c: Include errno.h.
17491         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17492         and a POSIX-compatible malloc into a single function. Set ENOMEM
17493         when returning NULL.
17494         * m4/malloc.m4: New file.
17495         * doc/functions/malloc.texi: Mention the malloc-posix module.
17496         * lib/stdlib_.h (malloc): New declaration.
17497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17498         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17499         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17500         and HAVE_MALLOC_POSIX.
17501
17502 2007-09-09  Bruno Haible  <bruno@clisp.org>
17503
17504         * modules/realloc-posix: New file.
17505         * modules/realloc (Depends-on): Add realloc-posix.
17506         * lib/realloc.c: Include errno.h.
17507         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17508         and a POSIX-compatible realloc into a single function. Set ENOMEM
17509         when returning NULL.
17510         * m4/realloc.m4: New file.
17511         * doc/functions/realloc.texi: Mention the realloc-posix module.
17512         * lib/stdlib_.h (realloc): New declaration.
17513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17514         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17515         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17516         and HAVE_REALLOC_POSIX.
17517
17518 2007-09-09  Bruno Haible  <bruno@clisp.org>
17519
17520         * modules/calloc-posix: New file.
17521         * modules/calloc (Depends-on): Add calloc-posix.
17522         * lib/calloc.c: Include errno.h.
17523         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17524         and a POSIX-compatible calloc into a single function. Set ENOMEM
17525         when returning NULL.
17526         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17527         * doc/functions/calloc.texi: Mention the calloc-posix module.
17528         * lib/stdlib_.h (calloc): New declaration.
17529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17530         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17531         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17532         and HAVE_CALLOC_POSIX.
17533
17534 2007-09-09  Bruno Haible  <bruno@clisp.org>
17535
17536         Allow for modules to show an arbitrary notice.
17537         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17538         * gnulib-tool: New option --extract-notice.
17539         (func_usage): Document it.
17540         (sed_extract_prog): Update.
17541         (func_get_notice): New function.
17542         (func_modules_notice): New function.
17543         (func_import, func_create_testdir): Invoke it.
17544         Suggested by Jim Meyering.
17545
17546 2007-09-09  Bruno Haible  <bruno@clisp.org>
17547
17548         * gnulib-tool: New options --verbose, --quiet.
17549         (func_usage): Document them.
17550         (verbose): New variable.
17551         (func_execute_command): New function.
17552         (func_import): Don't show the module list and the file list if
17553         $verbose < 0.
17554         (func_create_testdir): Likewise. Use func_execute_command.
17555         (func_create_megatestdir): Use func_execute_command.
17556
17557 2007-09-08  Bruno Haible  <bruno@clisp.org>
17558
17559         * gnulib-tool (func_import): Prefer rsync over wget when available,
17560         for fetching the PO files.
17561
17562 2007-09-08  Bruno Haible  <bruno@clisp.org>
17563
17564         * posix-modules: New file. Portions copied from gnulib-tool.
17565         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17566
17567 2007-09-08  Jim Meyering  <jim@meyering.net>
17568
17569         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17570         * lib/fpending.h: Rename from __fpending.h.
17571         * lib/fpending.c: Rename from __fpending.c.
17572         Include "fpending.h", not "__fpending.h".
17573         * lib/__fpending.h, lib/__fpending.c: Remove files.
17574         * modules/fpending (Files): Reflect new file names.
17575         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17576
17577 2007-09-08  Bruno Haible  <bruno@clisp.org>
17578
17579         * m4/inttypes-h.m4: Remove stub file.
17580
17581 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17582
17583         * doc/headers/stdint.texi: Discuss #include_next issue.
17584
17585 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17586
17587         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17588
17589 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17590
17591         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17592         in variable name.
17593
17594 2007-09-03  Jim Meyering  <jim@meyering.net>
17595
17596         New module: git-version-gen.
17597         * modules/git-version-gen: New file.
17598
17599         Import changes from coreutils for bootstrap script.
17600
17601         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17602
17603         bootstrap: uses rsync to download the .po files
17604         * build-aux/bootstrap (po_download_command_format): New global.
17605         (download_po_files): Use rsync.
17606         (update_po_files): Don't remove .po files after download,
17607         so future rsync runs can take advantage of the copies.
17608
17609         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17610
17611         Solve the unnecessary-.po-file-regeneration problem once and for all.
17612         * build-aux/bootstrap (download_po_files): New function, renamed from
17613         get_translations.  Now, downloads, but doesn't update LINGUAS.
17614         (update_po_files): New function.
17615
17616         bootstrap: Ignore more.
17617         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17618         uniwidth to e.g., lib/.gitignore.
17619         (slurp): Handle the sys_stat_.h -> sys mapping, too.
17620
17621         * build-aux/bootstrap: New setting: vc_ignore.
17622         (insert_sorted_if_absent): Create $file if absent.
17623         Adapt to new, possibly empty, list: $vc_ignore.
17624
17625         bootstrap: generate more ignorable names
17626         * build-aux/bootstrap (slurp): When generating ignorable names,
17627         also map .sin to .sed, .gperf to .c, and .y to .c.
17628
17629 2007-09-03  Jim Meyering  <jim@meyering.net>
17630
17631         * build-aux/git-version-gen: New file, from coreutils.  For details, see
17632         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17633
17634 2007-09-02  Bruno Haible  <bruno@clisp.org>
17635
17636         Fix mis-recognition of 'mcs' on QNX 6.
17637         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17638         output contains the string "Mono".
17639         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17640         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17641
17642 2007-09-01  Bruno Haible  <bruno@clisp.org>
17643
17644         Fix collision between uniwidth/* and linebreak modules.
17645         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17646         u32_width): Remove declarations.
17647         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17648         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17649         streq3, streq2, streq1, streq0): Remove functions.
17650         (STREQ): Remove macro.
17651         (is_cjk_encoding): Remove function.
17652         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17653         (uc_width, u8_width, u16_width, u32_width): Remove functions.
17654         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17655         * NEWS: Document the change.
17656
17657 2007-09-01  Bruno Haible  <bruno@clisp.org>
17658
17659         * lib/streq.h: Add double-inclusion guard.
17660
17661 2007-09-01  Karl Berry  <karl@gnu.org>
17662
17663         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17664
17665 2007-08-28  Jim Meyering  <jim@meyering.net>
17666
17667         Rename mreadlink_with_size to areadlink_with_size.
17668         * NEWS: Document the change.
17669         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17670         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17671         * lib/mreadlink.h: Rename this to...
17672         * lib/areadlink.h: ...this.
17673         * modules/mreadlink-with-size: Rename this to...
17674         * modules/areadlink-with-size: ...this.
17675         * lib/canonicalize.c: Reflect the renaming.
17676         * modules/canonicalize: Likewise.
17677
17678 2007-08-26  Bruno Haible  <bruno@clisp.org>
17679
17680         * gnulib-tool (func_import): When deciding which files to remove,
17681         consider also dangling symbolic links.
17682         Reported by Eric Blake.
17683
17684 2007-08-26  Bruno Haible  <bruno@clisp.org>
17685
17686         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17687
17688 2007-08-23  Simon Josefsson  <simon@josefsson.org>
17689
17690         * lib/readline.c: Don't include getline.h, the prototype is now
17691         found in stdio.h.
17692
17693 2007-08-23  Jim Meyering  <jim@meyering.net>
17694
17695         Getdelim touchup.
17696         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17697         around the funlockfile call, since funlockfile never sets errno.
17698         Don't set errno upon failed realloc.
17699
17700 2007-08-22  Eric Blake  <ebb9@byu.net>
17701
17702         Getline touchups.
17703         * lib/getdelim.c (getdelim): Revert regression that required *n to
17704         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
17705         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17706         getdelim, rather than whether implementation is missing.
17707         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17708         * lib/stdio_.h (getline): Also declare if replacement is
17709         required.
17710         * doc/functions/getdelim.texi: New file.
17711         * doc/functions/getline.texi: Likewise.
17712         * doc/gnulib.texi (Function Substitutes): Add new files.
17713         Reported by Bruno Haible.
17714
17715 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
17716
17717         * users.txt: Add Guile.
17718
17719 2007-08-22  Eric Blake  <ebb9@byu.net>
17720
17721         * tests/test-getdelim.c (main): Use remove, not unlink.
17722         * tests/test-getline.c (main): Likewise.
17723
17724         Move getline and getdelim into stdio.h, per POSIX 200x.
17725         * modules/getline (Files): Remove getline.h.
17726         (Depends-on): Add stdio.
17727         (configure.ac): Add module indicator.
17728         * modules/getdelim (Files): Remove getdelim.h.
17729         (Depends-on): Add stdio.
17730         (configure.ac): Add module indicator.
17731         * modules/stdio (Makefile.am): Work with new indicators.
17732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17733         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17734         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17735         * lib/getdelim.h: Delete.
17736         * lib/getline.h: Delete.
17737         * lib/stdio_.h (getdelim, getline): Declare.
17738         * modules/getdelim-tests: New module.
17739         * modules/getline-tests: Likewise.
17740         * tests/test-getdelim.c: New file.
17741         * tests/test-getline.c: Likewise.
17742         * NEWS: Document the change.
17743         * lib/getline.c: Update choice of header.
17744         * lib/csharpcomp.c: Likewise.
17745         * lib/getpass.c: Likewise.
17746         * lib/javacomp.c: Likewise.
17747         * lib/javaversion.c: Likewise.
17748         * lib/yesno.c: Likewise.
17749         * lib/getdelim.c: Likewise.
17750         (getdelim): Set errno on failure, and avoid memory leak.
17751
17752 2007-08-19  Bruno Haible  <bruno@clisp.org>
17753
17754         * modules/closein (Depends-on): Add freadahead.
17755         * lib/closein.c: Include freadahead.h.
17756         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
17757         is zero.
17758
17759 2007-08-19  Bruno Haible  <bruno@clisp.org>
17760
17761         * modules/freadahead-tests: New file.
17762         * tests/test-freadahead.sh: New file.
17763         * tests/test-freadahead.c: New file.
17764
17765         * modules/freadahead: New file.
17766         * lib/freadahead.h: New file.
17767         * lib/freadahead.c: New file.
17768         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
17769         fbufmode, fpurge, freadable, fwritable.
17770
17771 2007-08-19  Eric Blake  <ebb9@byu.net>
17772
17773         Test yesno in combination with closein.
17774         * lib/yesno.c (yesno): Document use of stdin.
17775         * modules/yesno-tests (Files): New module.
17776         * tests/test-yesno.c (main): New file.
17777         * tests/test-yesno.sh: Likewise.
17778
17779 2007-08-19  Bruno Haible  <bruno@clisp.org>
17780
17781         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
17782         * lib/fseeko.c (rpl_fseeko): Likewise.
17783         * lib/fseterr.c (fseterr): Likewise.
17784
17785 2007-08-19  Bruno Haible  <bruno@clisp.org>
17786
17787         * tests/test-lseek.c (main): Disable a test for BeOS.
17788         * doc/functions/lseek.texi: Document the BeOS bug.
17789
17790 2007-08-19  Bruno Haible  <bruno@clisp.org>
17791             Eric Blake  <ebb9@byu.net>
17792
17793         * lib/lseek.c: Include <sys/stat.h>.
17794         (rpl_lseek): Add workaround code also for Unix platforms.
17795         Needed for BeOS.
17796         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
17797         * doc/functions/lseek.texi: Document BeOS definiency.
17798
17799 2007-08-18  Bruno Haible  <bruno@clisp.org>
17800
17801         * modules/fstrcmp-tests: New file.
17802         * tests/test-fstrcmp.c: New file.
17803
17804 2007-08-18  Bruno Haible  <bruno@clisp.org>
17805
17806         * modules/fstrcmp: New file, from GNU gettext with modifications.
17807         * lib/fstrcmp.h: New file, from GNU gettext.
17808         * lib/fstrcmp.c: New file, from GNU gettext.
17809         * MODULES.html.sh (String handling): Add fstrcmp.
17810
17811 2007-08-18  Bruno Haible  <bruno@clisp.org>
17812
17813         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
17814         'bool'.
17815         (diag, compareseq): Remove const from the ctxt argument.
17816         (USE_HEURISTIC): Undefine at the end.
17817
17818 2007-08-18  Jim Meyering  <jim@meyering.net>
17819
17820         New file: lib/idcache.h
17821         * NEWS: Mention the addition.
17822         * modules/idcache (Files): Add lib/idcache.h
17823         * lib/idcache.c: Include "idcache.h".
17824         Don't include <sys/types.h>.
17825         Add a FIXME comment.
17826         Move file-scoped "static" declarations to the top.
17827         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
17828
17829 2007-08-17  Bruno Haible  <bruno@clisp.org>
17830         and Paul Eggert  <eggert@cs.ucla.edu>
17831
17832         * MODULES.html.sh: Add diffseq.
17833         * modules/diffseq: New file.
17834         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
17835         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
17836
17837 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17838
17839         Import changes from coreutils for bootstrap script.
17840
17841         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
17842
17843         * build-aux/bootstrap (slurp): Work even in environments where
17844         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
17845         current code does not slurp files whose names start with ".", and
17846         this looks like it might be a troublesome area.
17847
17848         2007-07-11  Jim Meyering  <jim@meyering.net>
17849
17850         If there's a GPL vN copyright comment, require that N == 3.
17851
17852         2007-07-08  Jim Meyering  <jim@meyering.net>
17853
17854         Run the coreutils-specific code only if tests/Makefile.am.in exists.
17855         * build-aux/bootstrap (mam_template): Move definition out of loop.
17856
17857         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
17858
17859         * build-aux/bootstrap (symlink_to_dir): Rename function from
17860         symlink_to_gnulib.  Add a directory parameter.  Update all
17861         callers.
17862         (cp_mark_as_generated): Also check for -- and link to -- files in
17863         gl/.
17864
17865         2007-07-08  Jim Meyering  <jim@meyering.net>
17866
17867         Adapt to deeper hierarchy in gnulib.
17868         * build-aux/bootstrap (symlink_to_dir): If the destination
17869         directory doesn't exist, create it. This is required at least for
17870         "lib/uniwidth/cjk.h".
17871
17872         2007-05-15  Jim Meyering  <jim@meyering.net>
17873
17874         * build-aux/bootstrap: Now that generated Makefile.am files
17875         are no longer under version control, they must be created at
17876         bootstrap time.
17877
17878 2007-08-14  Ben Pfaff  <blp@gnu.org>
17879
17880         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
17881
17882 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17883
17884         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
17885         given the changes below.
17886         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
17887         even on hosts that have padding bits beyond the supported 64.
17888
17889 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17890
17891         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
17892         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
17893         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
17894         depends on it.
17895         (xstrtol_error): Remove.
17896         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
17897         but with a different signature.
17898         (ATTRIBUTE_NORETURN, __attribute__): New macros.
17899         * lib/xstrtol-error.c: Include exitfail.h.
17900         (xstrtol_fatal): New function, with a different signature from the
17901         old xstrtol_error, so that the caller need not worry about passing
17902         in an exit status, or about storage management of the option argument.
17903         (xstrtol_error): Now a static function.  Redo signature to
17904         implement xstrtol_fatal.  Output the correct number of hyphens in
17905         front of the option so that the caller need not worry about
17906         storage management.
17907         (N_): New macro.
17908         (_): Remove; not used now.
17909         * modules/xstrtol: Depend on getopt.
17910         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
17911         of old STRTOL_FATAL_ERROR macro.
17912         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
17913         of test program.
17914         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
17915         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
17916
17917 2007-08-08  Eric Blake  <ebb9@byu.net>
17918
17919         * lib/xstrtol-error.c: Add missing include.
17920
17921         Move xstrtol messages into gnulib domain, when --pobase is used.
17922         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
17923         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
17924         * modules/xstrtol (Files): Distribute new file.
17925         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
17926         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
17927         * tests/test-xstrtol.c: ...into new file.
17928         * tests/test-xstrtoul.c: Also test xstrtoul.
17929         * tests/test-xstrtoimax.c: Also test xstrtoimax.
17930         * tests/test-xstrtoumax.c: Also test xstrtoumax.
17931         * tests/test-xstrtol.sh: Drive the tests.
17932         * tests/test-xstrtoimax.sh: Likewise.
17933         * tests/test-xstrtoumax.sh: Likewise.
17934         * modules/xstrtol-tests: New module.
17935         * modules/xstrtoimax-tests: Likewise.
17936         * modules/xstrtoumax-tests: Likewise.
17937
17938 2007-08-08  Jim Meyering  <jim@meyering.net>
17939
17940         New function: mfile_name_concat.
17941         * lib/filenamecat.c (mfile_name_concat): New function, just like
17942         file_name_concat, but return NULL upon failure rather than exiting
17943         with a diagnostic.
17944         * lib/filenamecat.h: Declare it.
17945
17946 2007-08-07  Bruno Haible  <bruno@clisp.org>
17947
17948         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
17949         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
17950         warning from gcc.
17951         Reported by Eric Blake.
17952
17953 2007-08-07  Simon Josefsson  <simon@josefsson.org>
17954
17955         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
17956         * modules/crypto/arcfour (License): Likewise.
17957         * modules/crypto/des-tests (License): Likewise.
17958         * modules/crypto/gc-arctwo-tests (License): Likewise.
17959         * modules/crypto/gc-des-tests (License): Likewise.
17960         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
17961         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
17962         * modules/crypto/gc-md2-tests (License): Likewise.
17963         * modules/crypto/gc-md4-tests (License): Likewise.
17964         * modules/crypto/gc-md5-tests (License): Likewise.
17965         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
17966         * modules/crypto/gc-rijndael-tests (License): Likewise.
17967         * modules/crypto/gc-sha1-tests (License): Likewise.
17968         * modules/crypto/gc-tests (License): Likewise.
17969         * modules/crypto/hmac-md5 (License): Likewise.
17970         * modules/crypto/hmac-sha1 (License): Likewise.
17971         * modules/crypto/md2-tests (License): Likewise.
17972         * modules/crypto/md4-tests (License): Likewise.
17973         * modules/crypto/md5 (License): Likewise.
17974         * modules/crypto/rijndael (License): Likewise.
17975         * modules/crypto/sha1 (License): Likewise.
17976         * modules/memxor (License): Likewise.
17977
17978 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
17979         and Bruno Haible  <bruno@clisp.org>
17980
17981         * NEWS: Describe interface changes to human, xstrtol.
17982         * lib/human.h: Include <xstrtol.h>.
17983         (human_options): Return enum strtol_error, not int.  Remove
17984         bool arg; take int * instead.
17985         * lib/human.c: Don't include "gettext.h".
17986         (_): Remove; no longer used.
17987         Don't include <xstrtol.h>, since human.h does it.
17988         (human_options): Adjust to abovementioned interface changes.
17989         Do not report error to stderr; that's now the caller's
17990         responsibility.
17991         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
17992         interface change.
17993         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
17994         Str, Argument_type_string.  All uses changed.  Put " argument"
17995         in diagnostics to make them clearer.  Change wording of suffix
17996         message for clarity.
17997         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
17998         Argument_type_string.
17999         (STRTOL_FATAL_WARN): Remove; no longer used.
18000         * modules/human (Depends-on): Remove gettext-h.
18001
18002 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18003
18004         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18005
18006 2007-07-31  Bruno Haible  <bruno@clisp.org>
18007
18008         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18009         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18010         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18011
18012 2007-07-31  Bruno Haible  <bruno@clisp.org>
18013
18014         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18015         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18016
18017 2007-07-30  Bruno Haible  <bruno@clisp.org>
18018
18019         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18020         * modules/c-ctype (License): Likewise.
18021         * modules/c-strcase (License): Likewise.
18022         * modules/check-version (License): Likewise.
18023         * modules/iconv (License): Likewise.
18024         * modules/iconv_open (License): Likewise.
18025         * modules/read-file (License): Likewise.
18026         * modules/striconv (License): Likewise.
18027         * modules/strverscmp (License): Likewise.
18028         * modules/vasprintf (License): Likewise.
18029         * modules/crypto/des (License): Likewise.
18030         * modules/crypto/gc (License): Likewise.
18031         * modules/crypto/gc-arcfour (License): Likewise.
18032         * modules/crypto/gc-arctwo (License): Likewise.
18033         * modules/crypto/gc-des (License): Likewise.
18034         * modules/crypto/gc-hmac-md5 (License): Likewise.
18035         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18036         * modules/crypto/gc-md2 (License): Likewise.
18037         * modules/crypto/gc-md4 (License): Likewise.
18038         * modules/crypto/gc-md5 (License): Likewise.
18039         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18040         * modules/crypto/gc-random (License): Likewise.
18041         * modules/crypto/gc-rijndael (License): Likewise.
18042         * modules/crypto/gc-sha1 (License): Likewise.
18043         * modules/crypto/md2 (License): Likewise.
18044         * modules/crypto/md4 (License): Likewise.
18045
18046 2007-07-30  Jim Meyering  <jim@meyering.net>
18047
18048         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18049         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18050         it has valid stat data.  This bug would cause du not to count the
18051         sizes of inaccessible directories.
18052         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18053         in <http://bugzilla.redhat.com/250077>.
18054
18055 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18056             Bruno Haible  <bruno@clisp.org>
18057
18058         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18059         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18060         #include_next, gives a diagnostic about it, but reports no error in
18061         the exit code.
18062         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18063
18064 2007-07-24  Ben Pfaff  <blp@gnu.org>
18065
18066         Improve name: "count-one-bits" is better than "popcount".
18067         * MODULES.html.sh: Update name.
18068         * lib/popcount.h: Renamed lib/count-one-bits.h.
18069         (popcount): Renamed count_one_bits.
18070         (popcountl): Renamed count_one_bits_l.
18071         (popcountll): Renamed count_one_bits_ll.
18072         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18073         * modules/popcount: Renamed module/count-one-bits.
18074         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18075         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18076
18077 2007-07-23  Ben Pfaff  <blp@gnu.org>
18078
18079         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18080         better code generation, and add U to large constants to avoid
18081         warnings, in non-GCC case.
18082         Suggested by Bruno Haible.
18083
18084 2007-07-23  Ben Pfaff  <blp@gnu.org>
18085
18086         * lib/popcount.h: Use verify_true instead of if...abort.
18087         * modules/popcount: Depend on verify module.
18088         Suggested by Jim Meyering.
18089
18090 2007-07-23  Bruno Haible  <bruno@clisp.org>
18091
18092         * gnulib-tool (func_import): Create a .cvsignore file also when the
18093         directory is not yet in CVS but the toplevel directory is. When
18094         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18095         Reported by Karl Berry.
18096
18097 2007-07-22  Ben Pfaff  <blp@gnu.org>
18098
18099         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18100         case.
18101         Suggested by Eric Blake.
18102
18103 2007-07-22  Ben Pfaff  <blp@gnu.org>
18104
18105         New module: popcount.
18106         * MODULES.html.sh: Add popcount.
18107         * modules/popcount: New file.
18108         * modules/popcount-tests: New file.
18109         * tests/test-popcount.c: New file.
18110         * lib/popcount.h: New file.
18111         * m4/popcount.m4: New file.
18112
18113 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18114
18115         * build-aux/announce-gen: Update to GPLv3.
18116
18117         * build-aux/config.guess: Update from config.
18118
18119 2007-07-21  Bruno Haible  <bruno@clisp.org>
18120
18121         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18122         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18123
18124 2007-07-20  Jim Meyering  <jim@meyering.net>
18125
18126         * check-module: Diagnose a self-dependency.
18127
18128 2007-07-19  Bruno Haible  <bruno@clisp.org>
18129
18130         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18131         empty.
18132         Reported by Eric Blake.
18133
18134 2007-07-18  Bruno Haible  <bruno@clisp.org>
18135
18136         * gnulib-tool: New options --po-base, --po-domain.
18137         (func_usage): Document them.
18138         (pobase, po_domain): New variables.
18139         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18140         DEFAULT_TEXT_DOMAIN.
18141         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18142         (func_import): Consider pobase and po_domain. Create a po/ directory.
18143         (func_create_testdir): Set pobase and po_domain to empty.
18144         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18145         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18146
18147 2007-07-18  Bruno Haible  <bruno@clisp.org>
18148
18149         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18150         EXTRA_DIST augmentation for files in build-aux/.
18151
18152 2007-07-16  Bruno Haible  <bruno@clisp.org>
18153
18154         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18155         * modules/getdelim (License): Likewise.
18156
18157 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18158
18159         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18160         * modules/d-type (License): Likewise.
18161         * modules/extensions (License): Likewise.
18162         * modules/fnmatch (License): Likewise.
18163         * modules/fseeko (License): Likewise.
18164         * modules/getaddrinfo (License): Likewise.
18165         * modules/getline (License): Likewise.
18166         * modules/getlogin_r (License): Likewise.
18167         * modules/getpass (License): Likewise.
18168         * modules/gettimeofday (License): Likewise.
18169         * modules/glob (License): Likewise.
18170         * modules/inet_ntop (License): Likewise.
18171         * modules/malloc (License): Likewise.
18172         * modules/malloca (License): Likewise.
18173         * modules/memmem (License): Likewise.
18174         * modules/mempcpy (License): Likewise.
18175         * modules/memset (License): Likewise.
18176         * modules/minmax (License): Likewise.
18177         * modules/mktime (License): Likewise.
18178         * modules/netinet_in (License): Likewise.
18179         * modules/pathmax (License): Likewise.
18180         * modules/poll (License): Likewise.
18181         * modules/regex (License): Likewise.
18182         * modules/snprintf (License): Likewise.
18183         * modules/stdbool (License): Likewise.
18184         * modules/stdint (License): Likewise.
18185         * modules/stdio (License): Likewise.
18186         * modules/strcase (License): Likewise.
18187         * modules/strcasestr (License): Likewise.
18188         * modules/strdup (License): Likewise.
18189         * modules/string (License): Likewise.
18190         * modules/strndup (License): Likewise.
18191         * modules/strnlen (License): Likewise.
18192         * modules/strpbrk (License): Likewise.
18193         * modules/strptime (License): Likewise.
18194         * modules/strsep (License): Likewise.
18195         * modules/sys_select (License): Likewise.
18196         * modules/sys_socket (License): Likewise.
18197         * modules/sys_stat (License): Likewise.
18198         * modules/sys_time (License): Likewise.
18199         * modules/time (License): Likewise.
18200         * modules/time_r (License): Likewise.
18201         * modules/timegm (License): Likewise.
18202         * modules/unistd (License): Likewise.
18203         * modules/vsnprintf (License): Likewise.
18204         * modules/wctype (License): Likewise.
18205
18206 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18207
18208         * modules/argz (License): LGPLv2+.
18209
18210 2007-07-15  Karl Berry  <karl@gnu.org>
18211
18212         * doc/gnulib.texi: revise node structure per new fdl.texi.
18213
18214 2007-07-14  Bruno Haible  <bruno@clisp.org>
18215
18216         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18217         the output file.
18218         * lib/uniname/uninames.h: Regenerated.
18219
18220 2007-07-14  Karl Berry  <karl@gnu.org>
18221
18222         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18223         omitting sectioning and index commands.
18224
18225 2007-07-13  Bruno Haible  <bruno@clisp.org>
18226
18227         New gnulib-tool option --more-symlinks.
18228         * gnulib-tool (func_usage): Document --more-symlinks.
18229         (do_copyrights): New variable.
18230         Recognize option --more-symlinks.
18231         (func_import): Don't add a copyright notice transform to
18232         sed_transform_lib_file if do_copyrights is empty.
18233
18234 2007-07-13  Bruno Haible  <bruno@clisp.org>
18235
18236         * lib/vasnprintf.c (decimal_point_char): Define also if
18237         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18238         && !NEED_PRINTF_DIRECTIVE_A.
18239         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18240         Gary V. Vaughan <gary@gnu.org>.
18241
18242 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18243
18244         * lib/inttypes_.h: Undo previous change, since it was fixed
18245         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18246
18247 2007-07-13  Bruno Haible  <bruno@clisp.org>
18248
18249         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18250         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18251
18252 2007-07-13  Jim Meyering  <jim@meyering.net>
18253
18254         df: Don't fail for Tru64's "file-on-file mount".
18255         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18256         so we fall through and use statfs instead.  Details here:
18257         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18258         Reported by Albert Chin.
18259
18260 2007-07-13  Bruno Haible  <bruno@clisp.org>
18261
18262         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18263         * modules/configmake (License): Likewise.
18264         * modules/gettext (License): Likewise.
18265         * modules/gettext-h (License): Likewise.
18266         * modules/include_next (License): Likewise.
18267         * modules/link-warning (License): Likewise.
18268         * modules/localcharset (License): Likewise.
18269         * modules/localename (License): Likewise.
18270         * modules/lock (License): Likewise.
18271         * modules/relocatable-lib-lgpl (License): Likewise.
18272         * modules/size_max (License): Likewise.
18273         * modules/vasnprintf (License): Likewise.
18274         * modules/wchar (License): Likewise.
18275         * modules/xsize (License): Likewise.
18276
18277 2007-07-13  Bruno Haible  <bruno@clisp.org>
18278
18279         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18280         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18281
18282 2007-07-12  Bruno Haible  <bruno@clisp.org>
18283
18284         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18285         in the modules files.
18286
18287 2007-07-11  Karl Berry  <karl@gnu.org>
18288
18289         * MODULES.html.sh (func_module): use
18290          sed -e '\|^'"${includefile}"'$|d'
18291          instead of /.../d, to avoid errors on $includefile's containing /.
18292
18293 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18294
18295         * gnulib-tool (func_import): Avoid duplication of --avoid
18296         statements
18297         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18298         names to `_' in variable names.
18299
18300 2007-07-10  Eric Blake  <ebb9@byu.net>
18301
18302         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18303         * NEWS: Document this change.
18304
18305 2007-07-08  Bruno Haible  <bruno@clisp.org>
18306
18307         Update to Unicode 5.0.
18308         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18309         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18310         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18311         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18312         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18313         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18314         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18315         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18316         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18317         U+10A3F, U+1D242..U+1D244.
18318         (nonspacing_table_ind): Update.
18319         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18320         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18321
18322 2007-07-08  Bruno Haible  <bruno@clisp.org>
18323
18324         Update to Unicode 5.0.
18325         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18326         code transform. Extend the name index field of unicode_name_to_code and
18327         unicode_code_to_name from 16 to 24 bits.
18328         * lib/uniname/uniname.c (unicode_character_name,
18329         unicode_name_character): Add the range 0x12xxx to the code transform.
18330         * lib/uniname/uninames.h: Regenerated.
18331         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18332
18333 2007-07-07  Bruno Haible  <bruno@clisp.org>
18334
18335         * modules/wcwidth-tests: New file.
18336         * tests/test-wcwidth.c: New file.
18337
18338         Work around MacOS X wcwidth() bug.
18339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18340         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18341         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18342         original wcwidth in non-UTF-8 locales.
18343         * modules/wcwidth (Depends-on): Add localcharset, streq,
18344         uniwidth/width.
18345         * doc/functions/wcwidth.texi: Update.
18346
18347 2007-07-07  Bruno Haible  <bruno@clisp.org>
18348
18349         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18350         (wcwidth): New declaration.
18351         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18352         macros.
18353         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18354         here. Prepare for creating <wchar.h> unconditionally.
18355         * modules/wchar (Depends-on): Add link-warning.
18356         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18357         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18358         * lib/wcwidth.h: Remove file.
18359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18360         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18361         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18362         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18363         (Include): Replace wcwidth.h with <wchar.h>.
18364         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18365         * lib/mbchar.h: Don't include wcwidth.h.
18366         * lib/mbswidth.c: Likewise.
18367         * NEWS: Mention the change.
18368
18369 2007-07-07  Bruno Haible  <bruno@clisp.org>
18370
18371         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18372         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18373         definition with an external declaration.
18374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18375         defined as a function. Remove AC_C_INLINE requirement.
18376         * modules/wcwidth (Files): Add lib/wcwidth.c.
18377         (Makefile.am): Remove redundant statement.
18378
18379 2007-07-07  Bruno Haible  <bruno@clisp.org>
18380
18381         * MODULES.html.sh (Unicode string functions): Add the new modules.
18382
18383         * tests/uniwidth/test-u32-strwidth.c: New file.
18384         * modules/uniwidth/u32-strwidth-tests: New file.
18385
18386         * lib/uniwidth/u32-strwidth.c: New file.
18387         * modules/uniwidth/u32-strwidth: New file.
18388
18389         * tests/uniwidth/test-u16-strwidth.c: New file.
18390         * modules/uniwidth/u16-strwidth-tests: New file.
18391
18392         * lib/uniwidth/u16-strwidth.c: New file.
18393         * modules/uniwidth/u16-strwidth: New file.
18394
18395         * tests/uniwidth/test-u8-strwidth.c: New file.
18396         * modules/uniwidth/u8-strwidth-tests: New file.
18397
18398         * lib/uniwidth/u8-strwidth.c: New file.
18399         * modules/uniwidth/u8-strwidth: New file.
18400
18401         * tests/uniwidth/test-u32-width.c: New file.
18402         * modules/uniwidth/u32-width-tests: New file.
18403
18404         * lib/uniwidth/u32-width.c: New file.
18405         * modules/uniwidth/u32-width: New file.
18406
18407         * tests/uniwidth/test-u16-width.c: New file.
18408         * modules/uniwidth/u16-width-tests: New file.
18409
18410         * lib/uniwidth/u16-width.c: New file.
18411         * modules/uniwidth/u16-width: New file.
18412
18413         * tests/uniwidth/test-u8-width.c: New file.
18414         * modules/uniwidth/u8-width-tests: New file.
18415
18416         * lib/uniwidth/u8-width.c: New file.
18417         * modules/uniwidth/u8-width: New file.
18418
18419         * tests/uniwidth/test-uc_width.c: New file.
18420         * modules/uniwidth/width-tests: New file.
18421
18422         * lib/uniwidth/width.c: New file, from GNU libiconv.
18423         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18424         * modules/uniwidth/width: New file.
18425
18426         * lib/uniwidth.h: New file, from GNU libiconv.
18427         * modules/uniwidth/base: New file.
18428
18429 2007-07-07  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/uniname.h: New file, from GNU gettext.
18432         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18433         * lib/uniname/uninames.h: New file, from GNU gettext.
18434         * lib/uniname/uniname.c: New file, from GNU gettext.
18435         * tests/uniname/test-uninames.sh: New file.
18436         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18437         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18438         * modules/uniname/base: New file.
18439         * modules/uniname/uniname: New file.
18440         * modules/uniname/uniname-tests: New file.
18441         * MODULES.html.sh (Unicode string functions): Add the new modules.
18442
18443 2007-07-06  Bruno Haible  <bruno@clisp.org>
18444
18445         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18446
18447 2007-07-06  Bruno Haible  <bruno@clisp.org>
18448
18449         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18450         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18451         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18452         include <sys/time.h>.
18453         Reported by Eric Blake.
18454
18455 2007-07-06  Eric Blake  <ebb9@byu.net>
18456
18457         Fix testing canonicalize on cygwin.
18458         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18459         Revert patch from 2007-06-19.
18460         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18461         canonicalize module is also in use.
18462         * tests/test-canonicalize.c: New file.
18463         * tests/test-canonicalize.sh: Likewise.
18464         * modules/canonicalize-tests: Likewise.
18465
18466 2007-07-06  Jim Meyering  <jim@meyering.net>
18467
18468         * lib/getugroups.c (getugroups): Detect getgrent failure.
18469         Adjust comment to reflect reality: this function may return -1.
18470
18471 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18472
18473         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18474         the new TP address.
18475         (usage): Fix typo
18476         (gnulib_mk): New variable.
18477
18478 2007-07-05  Jim Meyering  <jim@meyering.net>
18479
18480         Don't let endgrent clobber errno, no matter how improbable.
18481         * lib/getugroups.c (getugroups): Save and restore errno around
18482         endgrent call.
18483
18484         Close the group DB even when failing with 2^31 or more members.
18485         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18486
18487 2007-07-04  Jim Meyering  <jim@meyering.net>
18488
18489         * lib/getugroups.h: New file.
18490         * lib/getugroups.c: Include "getugroups.h".
18491         Remove uses of "register" keyword.
18492         Move local variable, "cp", down into scope where used.
18493         Give "username" parameter the "const" attribute.
18494         * modules/getugroups (Files): Add lib/getugroups.h
18495
18496 2007-07-04  Karl Berry  <karl@gnu.org>
18497
18498         * MODULES.html.sh (func_all_modules): Complete rename of
18499         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18500
18501 2007-07-02  Bruno Haible  <bruno@clisp.org>
18502
18503         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18504         mode, when inttypes.h comes from gnulib.
18505         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18506
18507 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18508
18509         * NEWS: Mention lgpl module name change.
18510
18511         * modules/lgpl-2.1: Renamed from lgpl.
18512
18513         * NEWS: Mention gpl module name change.
18514
18515         * modules/gpl-3.0: New file, based on gpl-2.0.
18516
18517         * modules/gpl-2.0: Renamed from gpl.
18518
18519         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18520         doc/gpl-2.0.texi.
18521
18522 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18523
18524         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18525         #define __STDC_LIMIT_MACROS temporarily while including
18526         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18527         Problem reported by Joel E. Denny in
18528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18529
18530 2007-07-01  Bruno Haible  <bruno@clisp.org>
18531
18532         * lib/unistdio.h: New file.
18533         * lib/unistdio/u-asnprintf.h: New file.
18534         * lib/unistdio/u-asprintf.h: New file.
18535         * lib/unistdio/u-printf-args.c: New file.
18536         * lib/unistdio/u-printf-args.h: New file.
18537         * lib/unistdio/u-printf-parse.h: New file.
18538         * lib/unistdio/u-snprintf.h: New file.
18539         * lib/unistdio/u-sprintf.h: New file.
18540         * lib/unistdio/u-vasprintf.h: New file.
18541         * lib/unistdio/u-vsnprintf.h: New file.
18542         * lib/unistdio/u-vsprintf.h: New file.
18543         * lib/unistdio/ulc-asnprintf.c: New file.
18544         * lib/unistdio/ulc-asprintf.c: New file.
18545         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18546         * lib/unistdio/ulc-printf-parse.c: New file.
18547         * lib/unistdio/ulc-snprintf.c: New file.
18548         * lib/unistdio/ulc-sprintf.c: New file.
18549         * lib/unistdio/ulc-vasnprintf.c: New file.
18550         * lib/unistdio/ulc-vasprintf.c: New file.
18551         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18552         * lib/unistdio/ulc-vsnprintf.c: New file.
18553         * lib/unistdio/ulc-vsprintf.c: New file.
18554         * lib/unistdio/u8-asnprintf.c: New file.
18555         * lib/unistdio/u8-asprintf.c: New file.
18556         * lib/unistdio/u8-printf-parse.c: New file.
18557         * lib/unistdio/u8-snprintf.c: New file.
18558         * lib/unistdio/u8-sprintf.c: New file.
18559         * lib/unistdio/u8-vasnprintf.c: New file.
18560         * lib/unistdio/u8-vasprintf.c: New file.
18561         * lib/unistdio/u8-vsnprintf.c: New file.
18562         * lib/unistdio/u8-vsprintf.c: New file.
18563         * lib/unistdio/u8-u8-asnprintf.c: New file.
18564         * lib/unistdio/u8-u8-asprintf.c: New file.
18565         * lib/unistdio/u8-u8-snprintf.c: New file.
18566         * lib/unistdio/u8-u8-sprintf.c: New file.
18567         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18568         * lib/unistdio/u8-u8-vasprintf.c: New file.
18569         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18570         * lib/unistdio/u8-u8-vsprintf.c: New file.
18571         * lib/unistdio/u16-asnprintf.c: New file.
18572         * lib/unistdio/u16-asprintf.c: New file.
18573         * lib/unistdio/u16-printf-parse.c: New file.
18574         * lib/unistdio/u16-snprintf.c: New file.
18575         * lib/unistdio/u16-sprintf.c: New file.
18576         * lib/unistdio/u16-vasnprintf.c: New file.
18577         * lib/unistdio/u16-vasprintf.c: New file.
18578         * lib/unistdio/u16-vsnprintf.c: New file.
18579         * lib/unistdio/u16-vsprintf.c: New file.
18580         * lib/unistdio/u16-u16-asnprintf.c: New file.
18581         * lib/unistdio/u16-u16-asprintf.c: New file.
18582         * lib/unistdio/u16-u16-snprintf.c: New file.
18583         * lib/unistdio/u16-u16-sprintf.c: New file.
18584         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18585         * lib/unistdio/u16-u16-vasprintf.c: New file.
18586         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18587         * lib/unistdio/u16-u16-vsprintf.c: New file.
18588         * lib/unistdio/u32-asnprintf.c: New file.
18589         * lib/unistdio/u32-asprintf.c: New file.
18590         * lib/unistdio/u32-printf-parse.c: New file.
18591         * lib/unistdio/u32-snprintf.c: New file.
18592         * lib/unistdio/u32-sprintf.c: New file.
18593         * lib/unistdio/u32-vasnprintf.c: New file.
18594         * lib/unistdio/u32-vasprintf.c: New file.
18595         * lib/unistdio/u32-vsnprintf.c: New file.
18596         * lib/unistdio/u32-vsprintf.c: New file.
18597         * lib/unistdio/u32-u32-asnprintf.c: New file.
18598         * lib/unistdio/u32-u32-asprintf.c: New file.
18599         * lib/unistdio/u32-u32-snprintf.c: New file.
18600         * lib/unistdio/u32-u32-sprintf.c: New file.
18601         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18602         * lib/unistdio/u32-u32-vasprintf.c: New file.
18603         * lib/unistdio/u32-u32-vsnprintf.c: New file.
18604         * lib/unistdio/u32-u32-vsprintf.c: New file.
18605         * tests/unistdio/test-ulc-asnprintf1.c: New file.
18606         * tests/unistdio/test-ulc-asnprintf1.h: New file.
18607         * tests/unistdio/test-ulc-printf1.h: New file.
18608         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18609         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18610         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18611         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18612         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18613         * tests/unistdio/test-ulc-vasprintf1.c: New file.
18614         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18615         * tests/unistdio/test-ulc-vsprintf1.c: New file.
18616         * tests/unistdio/test-u8-asnprintf1.c: New file.
18617         * tests/unistdio/test-u8-asnprintf1.h: New file.
18618         * tests/unistdio/test-u8-printf1.h: New file.
18619         * tests/unistdio/test-u8-vasnprintf1.c: New file.
18620         * tests/unistdio/test-u8-vasnprintf2.c: New file.
18621         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18622         * tests/unistdio/test-u8-vasnprintf3.c: New file.
18623         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18624         * tests/unistdio/test-u8-vasprintf1.c: New file.
18625         * tests/unistdio/test-u8-vsnprintf1.c: New file.
18626         * tests/unistdio/test-u8-vsprintf1.c: New file.
18627         * tests/unistdio/test-u16-asnprintf1.c: New file.
18628         * tests/unistdio/test-u16-asnprintf1.h: New file.
18629         * tests/unistdio/test-u16-printf1.h: New file.
18630         * tests/unistdio/test-u16-vasnprintf1.c: New file.
18631         * tests/unistdio/test-u16-vasnprintf2.c: New file.
18632         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18633         * tests/unistdio/test-u16-vasnprintf3.c: New file.
18634         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18635         * tests/unistdio/test-u16-vasprintf1.c: New file.
18636         * tests/unistdio/test-u16-vsnprintf1.c: New file.
18637         * tests/unistdio/test-u16-vsprintf1.c: New file.
18638         * tests/unistdio/test-u32-asnprintf1.c: New file.
18639         * tests/unistdio/test-u32-asnprintf1.h: New file.
18640         * tests/unistdio/test-u32-printf1.h: New file.
18641         * tests/unistdio/test-u32-vasnprintf1.c: New file.
18642         * tests/unistdio/test-u32-vasnprintf2.c: New file.
18643         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18644         * tests/unistdio/test-u32-vasnprintf3.c: New file.
18645         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18646         * tests/unistdio/test-u32-vasprintf1.c: New file.
18647         * tests/unistdio/test-u32-vsnprintf1.c: New file.
18648         * tests/unistdio/test-u32-vsprintf1.c: New file.
18649         * modules/unistdio/base: New file.
18650         * modules/unistdio/u-printf-args: New file.
18651         * modules/unistdio/ulc-asnprintf: New file.
18652         * modules/unistdio/ulc-asprintf: New file.
18653         * modules/unistdio/ulc-fprintf: New file.
18654         * modules/unistdio/ulc-printf-parse: New file.
18655         * modules/unistdio/ulc-snprintf: New file.
18656         * modules/unistdio/ulc-sprintf: New file.
18657         * modules/unistdio/ulc-vasnprintf: New file.
18658         * modules/unistdio/ulc-vasprintf: New file.
18659         * modules/unistdio/ulc-vfprintf: New file.
18660         * modules/unistdio/ulc-vsnprintf: New file.
18661         * modules/unistdio/ulc-vsprintf: New file.
18662         * modules/unistdio/u8-asnprintf: New file.
18663         * modules/unistdio/u8-asprintf: New file.
18664         * modules/unistdio/u8-printf-parse: New file.
18665         * modules/unistdio/u8-snprintf: New file.
18666         * modules/unistdio/u8-sprintf: New file.
18667         * modules/unistdio/u8-vasnprintf: New file.
18668         * modules/unistdio/u8-vasprintf: New file.
18669         * modules/unistdio/u8-vsnprintf: New file.
18670         * modules/unistdio/u8-vsprintf: New file.
18671         * modules/unistdio/u8-u8-asnprintf: New file.
18672         * modules/unistdio/u8-u8-asprintf: New file.
18673         * modules/unistdio/u8-u8-snprintf: New file.
18674         * modules/unistdio/u8-u8-sprintf: New file.
18675         * modules/unistdio/u8-u8-vasnprintf: New file.
18676         * modules/unistdio/u8-u8-vasprintf: New file.
18677         * modules/unistdio/u8-u8-vsnprintf: New file.
18678         * modules/unistdio/u8-u8-vsprintf: New file.
18679         * modules/unistdio/u16-asnprintf: New file.
18680         * modules/unistdio/u16-asprintf: New file.
18681         * modules/unistdio/u16-printf-parse: New file.
18682         * modules/unistdio/u16-snprintf: New file.
18683         * modules/unistdio/u16-sprintf: New file.
18684         * modules/unistdio/u16-vasnprintf: New file.
18685         * modules/unistdio/u16-vasprintf: New file.
18686         * modules/unistdio/u16-vsnprintf: New file.
18687         * modules/unistdio/u16-vsprintf: New file.
18688         * modules/unistdio/u16-u16-asnprintf: New file.
18689         * modules/unistdio/u16-u16-asprintf: New file.
18690         * modules/unistdio/u16-u16-snprintf: New file.
18691         * modules/unistdio/u16-u16-sprintf: New file.
18692         * modules/unistdio/u16-u16-vasnprintf: New file.
18693         * modules/unistdio/u16-u16-vasprintf: New file.
18694         * modules/unistdio/u16-u16-vsnprintf: New file.
18695         * modules/unistdio/u16-u16-vsprintf: New file.
18696         * modules/unistdio/u32-asnprintf: New file.
18697         * modules/unistdio/u32-asprintf: New file.
18698         * modules/unistdio/u32-printf-parse: New file.
18699         * modules/unistdio/u32-snprintf: New file.
18700         * modules/unistdio/u32-sprintf: New file.
18701         * modules/unistdio/u32-vasnprintf: New file.
18702         * modules/unistdio/u32-vasprintf: New file.
18703         * modules/unistdio/u32-vsnprintf: New file.
18704         * modules/unistdio/u32-vsprintf: New file.
18705         * modules/unistdio/u32-u32-asnprintf: New file.
18706         * modules/unistdio/u32-u32-asprintf: New file.
18707         * modules/unistdio/u32-u32-snprintf: New file.
18708         * modules/unistdio/u32-u32-sprintf: New file.
18709         * modules/unistdio/u32-u32-vasnprintf: New file.
18710         * modules/unistdio/u32-u32-vasprintf: New file.
18711         * modules/unistdio/u32-u32-vsnprintf: New file.
18712         * modules/unistdio/u32-u32-vsprintf: New file.
18713         * modules/unistdio/ulc-asnprintf-tests: New file.
18714         * modules/unistdio/ulc-vasnprintf-tests: New file.
18715         * modules/unistdio/ulc-vasprintf-tests: New file.
18716         * modules/unistdio/ulc-vsnprintf-tests: New file.
18717         * modules/unistdio/ulc-vsprintf-tests: New file.
18718         * modules/unistdio/u8-asnprintf-tests: New file.
18719         * modules/unistdio/u8-vasnprintf-tests: New file.
18720         * modules/unistdio/u8-vasprintf-tests: New file.
18721         * modules/unistdio/u8-vsnprintf-tests: New file.
18722         * modules/unistdio/u8-vsprintf-tests: New file.
18723         * modules/unistdio/u16-asnprintf-tests: New file.
18724         * modules/unistdio/u16-vasnprintf-tests: New file.
18725         * modules/unistdio/u16-vasprintf-tests: New file.
18726         * modules/unistdio/u16-vsnprintf-tests: New file.
18727         * modules/unistdio/u16-vsprintf-tests: New file.
18728         * modules/unistdio/u32-asnprintf-tests: New file.
18729         * modules/unistdio/u32-vasnprintf-tests: New file.
18730         * modules/unistdio/u32-vasprintf-tests: New file.
18731         * modules/unistdio/u32-vsnprintf-tests: New file.
18732         * modules/unistdio/u32-vsprintf-tests: New file.
18733         * MODULES.html.sh (Unicode string functions): Add the new modules.
18734
18735 2007-07-01  Bruno Haible  <bruno@clisp.org>
18736
18737         * lib/sprintf.c (sprintf): Limit the available length estimation,
18738         to avoid address wraparound.
18739         * lib/vsprintf.c (vsprintf): Likewise.
18740         * modules/sprintf-posix (Dependencies): Add stdint.
18741         * modules/vsprintf-posix (Dependencies): Likewise.
18742
18743 2007-07-01  Bruno Haible  <bruno@clisp.org>
18744
18745         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
18746         Windows PATH as well. Conservative double-quoting. Comments.
18747
18748 2007-07-01  Bruno Haible  <bruno@clisp.org>
18749             Eric Blake  <ebb9@byu.net>
18750             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18751
18752         * gnulib-tool (self_abspathname): Fix algorithm to cope with
18753         empty components in $PATH, denoting '.'.
18754
18755 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18756
18757         * gnulib-tool: Fix indentation.
18758         (func_create_megatestdir): Likewise.
18759         Report by Bruno Haible.
18760
18761 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18762
18763         Sync from Automake.
18764         * build-aux/gnupload: Fix shell portability issues with for loops.
18765         Report by Karl Berry.
18766
18767 2007-06-29  Simon Josefsson  <simon@josefsson.org>
18768
18769         * build-aux/maint.mk (POURL): Use translationproject.org.
18770
18771 2007-06-27  Simon Josefsson  <simon@josefsson.org>
18772             Bruno Haible  <bruno@clisp.org>
18773
18774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
18775         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
18776         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
18777         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
18778         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
18779
18780 2007-06-27  Bruno Haible  <bruno@clisp.org>
18781
18782         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
18783         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
18784
18785 2007-06-26  Karl Berry  <karl@gnu.org>
18786
18787         * MODULES.html.sh: remove xreadlink-with-size.
18788
18789 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18790
18791         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
18792         method that I hope also handles the double-include problem noted
18793         by Bruno Haible in
18794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
18795
18796 2007-06-23  Bruno Haible  <bruno@clisp.org>
18797
18798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18799         Don't let the 'mostlyclean' target fail if the last subdirectory could
18800         not be removed.
18801         Reported by Karl Berry.
18802
18803 2007-06-23  Bruno Haible  <bruno@clisp.org>
18804
18805         * gnulib-tool (echo): Add a speedier workaround for ksh.
18806         * tests/test-echo.sh: Likewise.
18807
18808 2007-06-23  Bruno Haible  <bruno@clisp.org>
18809
18810         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
18811         * tests/test-echo.sh: Likewise.
18812
18813 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18814
18815         * gnulib-tool (IFS): Initialize early, so we don't set it to
18816         empty later.
18817         (self_abspathname): Rewrite algorithm to set it, reindent.
18818         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
18819         (func_create_megatestdir): Merge some sed scripts.
18820
18821 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18822
18823         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
18824         exposed by Sun Studio 11 cc on Solaris 8.
18825
18826 2007-06-22  Bruno Haible  <bruno@clisp.org>
18827
18828         * gnulib-tool (echo): Ensure the echo primitive does not interpret
18829         backslashes.
18830         * tests/test-echo.sh: New file.
18831
18832 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18833
18834         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
18835         simplify `sed_replace_build_aux' scripts, they are portable but
18836         echoing them with `echo' is not.
18837         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
18838
18839 2007-06-21  Karl Berry  <karl@gnu.org>
18840
18841         * config/srclist.txt: guess we can't handle the licenses via
18842         srclist at the moment.
18843
18844 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18845
18846         * MODULES.html.sh: Add include_next.
18847         * modules/include_next: New file.
18848
18849 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18850
18851         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
18852         INCLUDE_NEXT.
18853         (gl_CHECK_NEXT_HEADERS): New macro.
18854         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
18855         the obsolescent gl_ABSOLUTE_HEADER.
18856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18857         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18858         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18859         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18860         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18861         * m4/math_h.m4 (gl_MATH_H): Likewise.
18862         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18863         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18864         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18865         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18866         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18867         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18870         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18872         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18873         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18874         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
18875         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18876         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18877         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18878         * m4/inttypes.m4 (gl_INTTYPES_H): Define
18879         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
18880         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
18881         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
18882         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
18883         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
18884         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
18885         * lib/float_.h: Likewise.
18886         * lib/inttypes_.h: Likewise.
18887         * lib/math_.h: Likewise.
18888         * lib/search_.h: Likewise.
18889         * lib/signal_.h: Likewise.
18890         * lib/stdint_.h: Likewise.
18891         * lib/stdio_.h: Likewise.
18892         * lib/stdlib_.h: Likewise.
18893         * lib/string_.h: Likewise.
18894         * lib/sys_stat_.h: Likewise.
18895         * lib/sys_time_.h: Likewise.
18896         * lib/time_.h: Likewise.
18897         * lib/unistd_.h: Likewise.
18898         * lib/wchar_.h: Likewise.
18899         * lib/wctype_.h: Likewise.
18900         * lib/dirent_.h: Likewise.
18901         * lib/iconv_.h: Likewise.
18902         * lib/locale_.h: Likewise.
18903         * lib/netinet_in_.h: Likewise.
18904         * lib/sys_select_.h: Likewise.
18905         * lib/sys_socket_.h: Likewise.
18906         * lib/sysexits_.h: Likewise.
18907         * modules/fcntl (Depends-on): Depend on include_next, not
18908         absolute_header.
18909         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
18910         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
18911         * modules/fchdir: Likewise.
18912         * modules/float: Likewise.
18913         * modules/iconv_open: Likewise.
18914         * modules/inttypes: Likewise.
18915         * modules/locale: Likewise.
18916         * modules/math: Likewise.
18917         * modules/netinet_in: Likewise.
18918         * modules/search: Likewise.
18919         * modules/signal: Likewise.
18920         * modules/stdint: Likewise.
18921         * modules/stdio: Likewise.
18922         * modules/stdlib: Likewise.
18923         * modules/string: Likewise.
18924         * modules/sys_select: Likewise.
18925         * modules/sys_socket: Likewise.
18926         * modules/sys_stat: Likewise.
18927         * modules/sys_time: Likewise.
18928         * modules/sysexits: Likewise.
18929         * modules/time: Likewise.
18930         * modules/unistd: Likewise.
18931         * modules/wchar: Likewise.
18932         * modules/wctype: Likewise.
18933         * modules/sys_stat: Change maintainer to "all".
18934         * modules/unistd: Likewise.
18935
18936 2007-06-20  Karl Berry  <karl@gnu.org>
18937
18938         * config/srclist.txt: track www changes in license files.
18939
18940 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
18941
18942         * build-aux/bootstrap: Remove stray dot.
18943         Make sure build_aux settings are honored when linking
18944         gnulib_extra_files.
18945
18946 2007-06-19  Eric Blake  <ebb9@byu.net>
18947
18948         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18949         Allow compilation on cygwin.
18950
18951 2007-06-19  Jim Meyering  <jim@meyering.net>
18952
18953         xreadlink-with-size: Remove module.  No longer used.
18954         Ex-callers now use xreadlink or mreadlink-with-size.
18955         * modules/xreadlink-with-size: Remove module.
18956         * lib/xreadlink-with-size.c: Remove file.
18957         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
18958         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
18959         just before the function definition *is* accurate.
18960
18961         Eliminate one way canonicalize_filename_mode could exit.
18962         * lib/canonicalize.c (canonicalize_filename_mode):
18963         Use mreadlink_with_size, not xreadlink_with_size.
18964
18965 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
18966
18967         Detect porting problems to FreeBSD/arm, which has time_t wider than
18968         long int.  Original problem reported for GNU diff by Xin Li in
18969         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
18970         * modules/getdate (Depends-on): Add intprops, verify.
18971         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
18972         is an integer type no wider than long int.
18973
18974 2007-06-18  Jim Meyering  <jim@meyering.net>
18975
18976         New module: mreadlink-with-size.
18977         * MODULES.html.sh: Add mreadlink-with-size.
18978         * modules/mreadlink-with-size: New module
18979         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
18980         not xreadlink-with-size.
18981         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
18982
18983 2007-06-16  Bruno Haible  <bruno@clisp.org>
18984
18985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
18986         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
18987         Reported by Gary V. Vaughan <gary@gnu.org>.
18988
18989 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18990
18991         Revamp lchown so that it lives in unistd.h where it belongs.
18992         * lib/lchown.h: Remove.
18993         * lib/dirchownmod.c: Don't include lib/lchown.h.
18994         * lib/fchownat.c: Likewise.
18995         * lib/openat.c: Likewise.
18996         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
18997         does not follow symlinks.
18998         (EOPNOTSUPP): Define if not defined.
18999         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19000         is defined to 0.
19001         (lchown): New decl.
19002         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19003         Do not check for lchown decl.
19004         Set REPLACE_LCHOWN.
19005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19006         REPLACE_LCHOWN.
19007         * modules/chown: Make it clear it follows symlinks.
19008         * modules/lchown: Make it clear it doesn't follow symlinks.
19009         (Files): Remove lib/lchown.h
19010         (Depends-on): Add unistd.
19011         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19012         (Include): Include <unistd.h>, not "lchown.h".
19013         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19014         REPLACE_LCHOWN.
19015
19016 2007-06-15  Jim Meyering  <jim@meyering.net>
19017
19018         Change license (GPL to LGPL) of fsusage and dependents.
19019         * modules/fsusage (License): Change to LGPL.
19020         * modules/full-read (License): Likewise.
19021         * modules/full-write (License): Likewise.
19022         * modules/safe-read (License): Likewise.
19023         * modules/safe-write (License): Likewise.
19024
19025 2007-06-14  Ben Pfaff  <blp@gnu.org>
19026
19027         Missing part of allocsa -> malloca transition.
19028         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19029         gl_MALLOCA.
19030
19031 2007-06-12  Bruno Haible  <bruno@clisp.org>
19032
19033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19034         to ia64, x86_64, i386.
19035         Reported by Eric Blake.
19036
19037 2007-06-12  Bruno Haible  <bruno@clisp.org>
19038
19039         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19040         cross-compiling to x86_64.
19041
19042 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19043
19044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19045         glitch reported by Ralf Wildenhues in
19046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19047
19048         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19049         Vin Shelton.
19050
19051 2007-06-11  Bruno Haible  <bruno@clisp.org>
19052
19053         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19054         replacement string.
19055         Reported by Eric Blake.
19056
19057 2007-06-10  Bruno Haible  <bruno@clisp.org>
19058
19059         Prepare vasnprintf code for use with Unicode strings.
19060         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19061         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19062         TYPE_U32_STRING.
19063         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19064         a_u32_string variants.
19065         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19066         * lib/printf-args.c: Don't include config.h and the specification
19067         header if PRINTF_FETCHARGS is already defined.
19068         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19069         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19070         TYPE_U16_STRING, TYPE_U32_STRING.
19071         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19072         u16_directive, u16_directives, u32_directive, u32_directives): New
19073         types.
19074         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19075         New declarations.
19076         * lib/printf-parse.c: Don't include config.h and the specification
19077         header if PRINTF_PARSE is already defined. Eliminate the set of
19078         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19079         them now. Include c-ctype.h.
19080         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19081         directive and CHAR_T_ONLY_ASCII.
19082         * lib/vasnprintf.c: Don't include config.h and the specification header
19083         if VASNPRINTF is already defined.
19084         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19085         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19086         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19087         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19088         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19089         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19090         code accordingly.
19091         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19092         pad_ourselves also in this case, with the 'c' and 's' directives, and
19093         with a different notion of "width".
19094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19095
19096 2007-06-10  Bruno Haible  <bruno@clisp.org>
19097
19098         * modules/unistr/u32-mbsnlen: New file.
19099         * lib/unistr/u32-mbsnlen.c: New file.
19100
19101         * modules/unistr/u16-mbsnlen: New file.
19102         * lib/unistr/u16-mbsnlen.c: New file.
19103
19104         * modules/unistr/u8-mbsnlen: New file.
19105         * lib/unistr/u8-mbsnlen.c: New file.
19106
19107         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19108         declarations.
19109
19110 2007-06-10  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/string_.h (mbsnlen): New declaration.
19113         * lib/mbsnlen.c: New file.
19114         * m4/mbsnlen.m4: New file.
19115         * modules/mbsnlen: New file.
19116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19117         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19118         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19119
19120 2007-06-10  Bruno Haible  <bruno@clisp.org>
19121
19122         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19123
19124 2007-06-10  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19127         * lib/mbuiter.h: Likewise.
19128
19129 2007-06-10  Bruno Haible  <bruno@clisp.org>
19130
19131         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19132         declaration.
19133
19134 2007-06-10  Karl Berry  <karl@gnu.org>
19135
19136         * config/srclist.txt: remove gettext entries, Bruno prefers
19137         to update individually.
19138
19139 2007-06-10  Bruno Haible  <bruno@clisp.org>
19140
19141         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19142         'maxlen'. Ensure only length + width bytes are allocated, not
19143         length + 1 + width.
19144
19145 2007-06-09  Bruno Haible  <bruno@clisp.org>
19146
19147         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19148         (CHAR_T): Remove macro.
19149         (VASNPRINTF): Update.
19150
19151 2007-06-09  Bruno Haible  <bruno@clisp.org>
19152
19153         * MODULES.html.sh (Unicode string functions): Add the new modules.
19154
19155         * modules/uniconv/u32-conv-to-enc: New file.
19156         * lib/uniconv/u32-conv-to-enc.c: New file.
19157         * modules/uniconv/u32-conv-to-enc-tests: New file.
19158         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19159
19160         * modules/uniconv/u16-conv-to-enc: New file.
19161         * lib/uniconv/u16-conv-to-enc.c: New file.
19162         * lib/uniconv/u-conv-to-enc.h: New file.
19163         * modules/uniconv/u16-conv-to-enc-tests: New file.
19164         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19165
19166         * modules/uniconv/u8-conv-to-enc: New file.
19167         * lib/uniconv/u8-conv-to-enc.c: New file.
19168         * modules/uniconv/u8-conv-to-enc-tests: New file.
19169         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19170
19171         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19172         u32_conv_to_encoding): New declarations.
19173
19174 2007-06-09  Bruno Haible  <bruno@clisp.org>
19175
19176         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19177
19178 2007-06-09  Bruno Haible  <bruno@clisp.org>
19179
19180         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19181         * modules/malloca: Renamed from modules/allocsa, updated.
19182         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19183         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19184         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19185         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19186         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19187         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19188         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19189         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19190         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19191         * modules/c-strcasestr (Depends-on): Update.
19192         * lib/c-strcasestr.c: Update.
19193         * modules/c-strstr (Depends-on): Update.
19194         * lib/c-strstr.c: Update.
19195         * modules/canonicalize-lgpl (Depends-on): Update.
19196         * lib/canonicalize-lgpl.c: Update.
19197         * modules/clean-temp (Depends-on): Update.
19198         * lib/clean-temp.c: Update.
19199         * modules/csharpcomp (Depends-on): Update.
19200         * lib/csharpcomp.c: Update.
19201         * modules/csharpexec (Depends-on): Update.
19202         * lib/csharpexec.c: Update.
19203         * modules/javacomp (Depends-on): Update.
19204         * lib/javacomp.c: Update.
19205         * modules/javaexec (Depends-on): Update.
19206         * lib/javaexec.c: Update.
19207         * modules/mbscasestr (Depends-on): Update.
19208         * lib/mbscasestr.c: Update.
19209         * modules/mbsstr (Depends-on): Update.
19210         * lib/mbsstr.c: Update.
19211         * modules/setenv (Depends-on): Update.
19212         * lib/setenv.c: Update.
19213         * modules/strcasestr (Depends-on): Update.
19214         * lib/strcasestr.c: Update.
19215         * modules/striconveha (Depends-on): Update.
19216         * lib/striconveha.c: Update.
19217         * modules/relocatable-prog-wrapper (Files): Update.
19218         * lib/relocwrapper.c: Update.
19219         * build-aux/install-reloc: Update.
19220         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19221
19222 2007-06-08  Bruno Haible  <bruno@clisp.org>
19223
19224         Port to uClibc.
19225         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19226         * lib/fpurge.c (fpurge): Likewise.
19227         * lib/freading.c (freading): Likewise.
19228         * lib/fseeko.c (rpl_fseeko): Likewise.
19229         * lib/fseterr.c (fseterr): Likewise.
19230         * lib/fwriting.c (fwriting): Likewise.
19231         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19232
19233 2007-06-08  Bruno Haible  <bruno@clisp.org>
19234
19235         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19236         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19237         * modules/gettext (Files): Add m4/intlmacosx.m4.
19238
19239 2007-06-07  Bruno Haible  <bruno@clisp.org>
19240
19241         * modules/localename-tests: New file.
19242         * tests/test-localename.c: New file.
19243
19244         New module 'localename'.
19245         * lib/localename.h: New file.
19246         * lib/localename.c: New file, from GNU gettext.
19247         * m4/localename.m4: New file.
19248         * modules/localename: New file.
19249
19250 2007-06-07  Bruno Haible  <bruno@clisp.org>
19251
19252         Work around the lack of <wchar.h> on some builds of uClibc.
19253         * doc/headers/wchar.texi: Update.
19254         * lib/wchar_.h: Include <wchar.h> only if it exists.
19255         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19256         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19257         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19258         doesn't exist.
19259         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19260         * modules/mbfile (Depends-on): Add wchar.
19261         * modules/mbiter (Depends-on): Likewise.
19262         * modules/mbuiter (Depends-on): Likewise.
19263         Reported by Simon Josefsson.
19264
19265 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19266
19267         Work around problem reported by Steven M. Schweda in
19268         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19269         Tru64 5.1B with the Compaq compiler environment installed declares
19270         an 'isblank' function but does not define it in the C library.
19271         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19272         * lib/regex_internal.h (isblank): Likewise.
19273         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19274         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19275
19276 2007-06-05  Bruno Haible  <bruno@clisp.org>
19277
19278         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19279         ia64.
19280         * modules/printf-safe: New file.
19281         * modules/fprintf-posix (Depends-on): Add printf-safe.
19282         * modules/printf-posix (Depends-on): Likewise.
19283         * modules/snprintf-posix (Depends-on): Likewise.
19284         * modules/sprintf-posix (Depends-on): Likewise.
19285         * modules/vasnprintf-posix (Depends-on): Likewise.
19286         * modules/vasprintf-posix (Depends-on): Likewise.
19287         * modules/vfprintf-posix (Depends-on): Likewise.
19288         * modules/vprintf-posix (Depends-on): Likewise.
19289         * modules/vsnprintf-posix (Depends-on): Likewise.
19290         * modules/vsprintf-posix (Depends-on): Likewise.
19291         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19292         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19293         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19294         "no" on i386, x86_64, ia64.
19295         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19296         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19297         on i386, x86_64, ia64.
19298         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19299         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19300         on i386, x86_64, ia64.
19301         * tests/test-vasnprintf-posix.c: Include float.h.
19302         (LDBL80_WORDS): New macro.
19303         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19304         on i386, x86_64, ia64.
19305         * tests/test-vasprintf-posix.c: Include float.h.
19306         (LDBL80_WORDS): New macro.
19307         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19308         on i386, x86_64, ia64.
19309         * tests/test-snprintf-posix.c: Include float.h.
19310         * tests/test-sprintf-posix.c: Likewise.
19311         * tests/test-vsnprintf-posix.c: Likewise.
19312         * tests/test-vsprintf-posix.c: Likewise.
19313
19314 2007-06-05  Bruno Haible  <bruno@clisp.org>
19315
19316         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19318         non-IEEE numbers on i386, x86_64, ia64.
19319         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19320         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19321         * tests/test-isnanl.h: Include float.h.
19322         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19323
19324 2007-06-05  Bruno Haible  <bruno@clisp.org>
19325
19326         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19327         also the %a / %A. Handle the %a / %A code before this extra handling.
19328
19329 2007-06-05  Bruno Haible  <bruno@clisp.org>
19330
19331         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19332         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19333
19334 2007-06-05  Bruno Haible  <bruno@clisp.org>
19335
19336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19337         typo in variable name.
19338
19339 2007-06-05  Eric Blake  <ebb9@byu.net>
19340
19341         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19342         Reported by Simon Josefsson.
19343
19344 2007-06-04  Bruno Haible  <bruno@clisp.org>
19345
19346         Avoid test failures on some PowerPC platforms.
19347         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19348         Define differently for PowerPC.
19349         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19350         Reported by Gary V. Vaughan <gary@gnu.org>.
19351
19352 2007-06-02  Bruno Haible  <bruno@clisp.org>
19353
19354         Fix test-stdint failure on FreeBSD/ia64.
19355         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19356         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19357         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19358         * doc/headers/stdint.texi: Update.
19359
19360 2007-06-01  Bruno Haible  <bruno@clisp.org>
19361
19362         * tests/test-binary-io.c (main): Pass a third argument to open().
19363         Reported by Gary V. Vaughan <gary@gnu.org>.
19364
19365 2007-06-01  Bruno Haible  <bruno@clisp.org>
19366
19367         * doc/functions/frexpl.texi: Update for mingw.
19368
19369 2007-06-01  Bruno Haible  <bruno@clisp.org>
19370
19371         * tests/test-lseek.c (main): Disable test of errno for invalid third
19372         argument.
19373         * doc/functions/lseek.texi: Update.
19374         Reported by Gary V. Vaughan <gary@gnu.org>.
19375
19376 2007-05-28  Bruno Haible  <bruno@clisp.org>
19377
19378         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19379
19380 2007-05-31  Eric Blake  <ebb9@byu.net>
19381
19382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19383         cross compiling.
19384
19385 2007-05-30  Eric Blake  <ebb9@byu.net>
19386         and Bruno Haible  <bruno@clisp.org>
19387
19388         Work around mingw test failures exposed by m4-1.4.9b.
19389         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19390         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19391         moment.
19392
19393 2007-05-30  Bruno Haible  <bruno@clisp.org>
19394
19395         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19396         assuming that they are closed. Needed on HP-UX 11.
19397
19398 2007-05-29  Bruno Haible  <bruno@clisp.org>
19399
19400         Fix a problem with #include_next.
19401         * lib/dirent_.h: Split the double-inclusion guard.
19402         * lib/fcntl_.h: Likewise.
19403         * lib/float_.h: Likewise.
19404         * lib/iconv_.h: Likewise.
19405         * lib/inttypes_.h: Likewise.
19406         * lib/locale_.h: Likewise.
19407         * lib/math_.h: Likewise.
19408         * lib/netinet_in_.h: Likewise.
19409         * lib/search_.h: Likewise.
19410         * lib/signal_.h: Likewise.
19411         * lib/stdint_.h: Likewise.
19412         * lib/stdio_.h: Likewise.
19413         * lib/stdlib_.h: Likewise.
19414         * lib/string_.h: Likewise.
19415         * lib/sys_select_.h: Likewise.
19416         * lib/sys_socket_.h: Likewise.
19417         * lib/sys_stat_.h: Likewise.
19418         * lib/sys_time_.h: Likewise.
19419         * lib/sysexits_.h: Likewise.
19420         * lib/time_.h: Likewise.
19421         * lib/unistd_.h: Likewise.
19422         * lib/wchar_.h: Likewise.
19423         * lib/wctype_.h: Likewise.
19424
19425 2007-05-29  Bruno Haible  <bruno@clisp.org>
19426
19427         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19428         for the moment.
19429
19430 2007-05-29  Bruno Haible  <bruno@clisp.org>
19431
19432         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19433         invocation.
19434         Reported by Eric Blake.
19435
19436 2007-05-29  Bruno Haible  <bruno@clisp.org>
19437
19438         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19439         compiling case.
19440
19441 2007-05-29  Eric Blake  <ebb9@byu.net>
19442             Bruno Haible  <bruno@clisp.org>
19443
19444         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19445         cross compiles.
19446
19447 2007-05-28  Eric Blake  <ebb9@byu.net>
19448
19449         * modules/closein-tests (test_closein_LDADD): Support test on
19450         cygwin with libtool.
19451
19452 2007-05-28  Bruno Haible  <bruno@clisp.org>
19453
19454         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19455         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19456         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19457         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19458         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19459         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19460         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19461         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19462         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19463
19464 2007-05-28  Eric Blake  <ebb9@byu.net>
19465
19466         Unconditionally include <config.h> in unit tests.
19467         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19468         * tests/test-allocsa.c, tests/test-arcfour.c,
19469         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19470         tests/test-array_list.c, tests/test-array_oset.c,
19471         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19472         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19473         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19474         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19475         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19476         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19477         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19478         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19479         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19480         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19481         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19482         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19483         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19484         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19485         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19486         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19487         test-md5.c, test-memmem.c, test-printf-posix.c,
19488         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19489         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19490         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19491         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19492         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19493         test-vasnprintf-posix2.c, test-vasnprintf.c,
19494         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19495         test-vfprintf-posix.c, test-vprintf-posix.c,
19496         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19497         test-xvasprintf.c: Likewise.
19498
19499 2007-05-28  Bruno Haible  <bruno@clisp.org>
19500
19501         * gnulib-tool (func_import): Remember the --with-tests command-line
19502         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19503         Reported by Eric Blake.
19504
19505 2007-05-28  Bruno Haible  <bruno@clisp.org>
19506
19507         * modules/ftell-tests: New file.
19508         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19509         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19510
19511         * lib/ftell.c: New file.
19512         * modules/ftell: New file.
19513         * m4/ftell.m4: New file.
19514         * doc/functions/ftell.texi: Update.
19515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19516         REPLACE_FTELL.
19517         * lib/stdio_.h (rpl_ftell): New declaration.
19518         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19519         REPLACE_FTELL.
19520
19521 2007-05-28  Eric Blake  <ebb9@byu.net>
19522
19523         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19524
19525 2007-05-28  Bruno Haible  <bruno@clisp.org>
19526
19527         * modules/fseek-tests: New file.
19528         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19529         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19530
19531         * lib/fseek.c: New file.
19532         * modules/fseek: New file.
19533         * m4/fseek.m4: New file.
19534         * doc/functions/fseek.texi: Update.
19535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19536         REPLACE_FSEEK.
19537         * lib/stdio_.h (rpl_fseek): New declaration.
19538         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19539         REPLACE_FSEEK.
19540
19541 2007-05-28  Bruno Haible  <bruno@clisp.org>
19542
19543         * lib/stdio_.h (fflush): More comments.
19544
19545 2007-05-28  Bruno Haible  <bruno@clisp.org>
19546
19547         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19548         runtime test.
19549
19550 2007-05-28  Eric Blake  <ebb9@byu.net>
19551
19552         Improve lseek module.
19553         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19554         * lib/unistd_.h (lseek): Scale back link warning message.
19555         * tests/test-lseek.c: Beef up test.
19556         * tests/test-lseek.sh: Exercise more facets of lseek.
19557         Reported by Bruno Haible.
19558
19559 2007-05-28  Bruno Haible  <bruno@clisp.org>
19560
19561         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19562         to define.
19563
19564 2007-05-27  Bruno Haible  <bruno@clisp.org>
19565
19566         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19567
19568 2007-05-27  Bruno Haible  <bruno@clisp.org>
19569
19570         * modules/openmp: New file.
19571         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19572         Noah Misch.
19573
19574 2007-05-26  Bruno Haible  <bruno@clisp.org>
19575
19576         * modules/chdir-long (Depends-on): Add fchdir.
19577         * modules/chdir-safer (Depends-on): Likewise.
19578         * modules/fts (Depends-on): Likewise.
19579         * modules/fts-lgpl (Depends-on): Likewise.
19580         * modules/openat (Depends-on): Likewise.
19581         * modules/savewd (Depends-on): Likewise.
19582
19583 2007-05-24  Eric Blake  <ebb9@byu.net>
19584
19585         Fix lseek on mingw.
19586         * modules/lseek: New module.
19587         * m4/lseek.m4: New file.
19588         * lib/lseek.c: New file.
19589         * modules/lseek-tests: New file.
19590         * tests/test-lseek.c: New file.
19591         * tests/test-lseek.sh: New file.
19592         * MODULES.html.sh: Document lseek module.
19593         * modules/fflush (Depends-on): Add lseek, fseeko.
19594         * modules/fseeko (Depends-on): Likewise.
19595         * modules/ftello (Depends-on): Likewise.
19596         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19597         broken.
19598         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19599         broken.
19600         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19601         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19602         * lib/ftello.c (rpl_ftello): Likewise.
19603         * tests/test-fseeko.c (main): Test this.
19604         * tests/test-fseeko.sh: Likewise.
19605         * tests/test-ftello.c (main): Likewise.
19606         * tests/test-ftello.sh: Likewise.
19607         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19608         implies replacing fseek.
19609         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19610         HAVE_FTELLO.
19611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19612         * modules/unistd (Makefile.am): Likewise.
19613         * lib/unistd_.h (lseek): Declare a replacement.
19614         * doc/functions/lseek.texi (lseek): Document this fix.
19615         * doc/functions/fseek.texi (fseek): Likewise.
19616         * doc/functions/ftell.texi (ftell): Likewise.
19617
19618 2007-05-24  Bruno Haible  <bruno@clisp.org>
19619
19620         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19621         in the printed representation of a NaN.
19622         * tests/test-vasprintf-posix.c (test_function): Likewise.
19623         * tests/test-snprintf-posix.h (test_function): Likewise.
19624         * tests/test-sprintf-posix.h (test_function): Likewise.
19625         Reported by Eric Blake.
19626
19627 2007-05-23  Eric Blake  <ebb9@byu.net>
19628
19629         Fix fseeko/ftello on cygwin 1.5.24.
19630         * doc/functions/fseeko.texi (fseeko): Document the fix.
19631         * doc/functions/ftello.texi (ftello): Document the fix.
19632         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19633         * doc/functions/stdout.text (stdout): New file.
19634         * doc/functions/stderr.text (stderr): New file.
19635         * doc/gnulib.texi (Function Substitutes): Use new files.
19636         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19637         prior to 1.7.0.
19638         * tests/test-ftello.c (main): Likewise for ftello.
19639         * tests/test-fseeko.sh: New file.
19640         * tests/test-ftello.sh: New file.
19641         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19642         with seekable stdin.
19643         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19644         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19645         (gl_REPLACE_FSEEKO): New macro.
19646         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19647         * modules/fseeko (Files): Distribute fseeko.c.
19648         * modules/ftello (Files): Distribute ftello.c.
19649         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19650         mode.
19651         * lib/ftello.c (rpl_ftello): New file.
19652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19653         fseeko, ftello.
19654         (gl_STDIN_LARGE_OFFSET): New macro.
19655         * modules/stdio (Makefile.am): Perform the replacement.
19656         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19657
19658 2007-05-23  Bruno Haible  <bruno@clisp.org>
19659
19660         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19661         GNULIB_POSIXCHECK is defined.
19662
19663 2007-05-21  Bruno Haible  <bruno@clisp.org>
19664
19665         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19666         Check also the output for NaN arguments. When cross-compiling, guess
19667         no on IRIX.
19668         * lib/vasnprintf.c: Update comments.
19669         * tests/test-vasnprintf-posix.c (strisnan): New function.
19670         (test_function): Use it.
19671         * tests/test-vasprintf-posix.c (strisnan): New function.
19672         (test_function): Use it.
19673         * tests/test-snprintf-posix.h (strisnan): New function.
19674         (test_function): Use it.
19675         * tests/test-sprintf-posix.h (strisnan): New function.
19676         (test_function): Use it.
19677         Reported by Eric Blake.
19678
19679 2007-05-20  Bruno Haible  <bruno@clisp.org>
19680
19681         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19682         numbers that fails on BeOS.
19683         * doc/functions/frexpl.texi: Update.
19684
19685 2007-05-20  Jim Meyering  <jim@meyering.net>
19686
19687         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19688         forced upon us by glibc-2.6.
19689
19690 2007-05-20  Bruno Haible  <bruno@clisp.org>
19691
19692         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19693         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19694         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19695         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19696         NEED_PRINTF_INFINITE.
19697         (is_infinitel): New function.
19698         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19699         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19700         gl_PREREQ_VASNPRINTF_INFINITE.
19701         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19702         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19703         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19704         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19705         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19706         gl_PREREQ_VASNPRINTF_INFINITE.
19707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19713         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19714         * doc/functions/fprintf.texi: Update.
19715         * doc/functions/printf.texi: Update.
19716         * doc/functions/snprintf.texi: Update.
19717         * doc/functions/sprintf.texi: Update.
19718         * doc/functions/vfprintf.texi: Update.
19719         * doc/functions/vprintf.texi: Update.
19720         * doc/functions/vsnprintf.texi: Update.
19721         * doc/functions/vsprintf.texi: Update.
19722
19723 2007-05-20  Bruno Haible  <bruno@clisp.org>
19724
19725         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19726         was not found in libc.
19727         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19728
19729 2007-05-20  Bruno Haible  <bruno@clisp.org>
19730
19731         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19732         printed as "-nan" instead of "nan".
19733         * tests/test-vasprintf-posix.c (test_function): Likewise.
19734         * tests/test-snprintf-posix.h (test_function): Likewise.
19735         * tests/test-sprintf-posix.h (test_function): Likewise.
19736         Needed for HP-UX 11.
19737
19738 2007-05-20  Jim Meyering  <jim@meyering.net>
19739
19740         Fix buggy test for the fchownat-deref bug.
19741         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19742         symlink required for the run-test.  Without it, this test would
19743         always declare that fchownat doesn't work, and client code would
19744         unnecessarily use the replacement function with fixed libc.
19745         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
19746         Reported by Greg Schafer.
19747
19748 2007-05-19  Bruno Haible  <bruno@clisp.org>
19749
19750         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
19751         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
19752         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
19753         Needed for IRIX 6.5 and Solaris 2.5.1.
19754
19755 2007-05-19  Bruno Haible  <bruno@clisp.org>
19756
19757         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
19758         (test_function): Skip tests involving -0.0 on platforms where
19759         -0.0 = 0.0.
19760         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
19761         (test_function): Skip tests involving -0.0 on platforms where
19762         -0.0 = 0.0.
19763         * tests/test-snprintf-posix.h (have_minus_zero): New function.
19764         (test_function): Skip tests involving -0.0 on platforms where
19765         -0.0 = 0.0.
19766         * tests/test-sprintf-posix.h (have_minus_zero): New function.
19767         (test_function): Skip tests involving -0.0 on platforms where
19768         -0.0 = 0.0.
19769         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
19770         tests.
19771         * tests/test-printf-posix.h (test_function): Likewise.
19772         * tests/test-printf-posix.output: Remove all -0.0 related results.
19773         Needed for IRIX 6.5.
19774
19775 2007-05-19  Bruno Haible  <bruno@clisp.org>
19776
19777         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19778         printed as "nan0x7fffffff" instead of "nan".
19779         * tests/test-vasprintf-posix.c (test_function): Likewise.
19780         * tests/test-snprintf-posix.h (test_function): Likewise.
19781         * tests/test-sprintf-posix.h (test_function): Likewise.
19782         * tests/test-fprintf-posix.h (NaN): Remove macro.
19783         (test_function): Remove all NaN related tests.
19784         * tests/test-printf-posix.h (NaN): Remove macro.
19785         (test_function): Remove all NaN related tests.
19786         * tests/test-printf-posix.output: Remove all NaN related results.
19787         Needed for IRIX 6.5.
19788
19789 2007-05-19  Bruno Haible  <bruno@clisp.org>
19790
19791         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
19792         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19793
19794 2007-05-19  Bruno Haible  <bruno@clisp.org>
19795
19796         * lib/float_.h: New file.
19797         * m4/float_h.m4: New file.
19798         * modules/float: New file.
19799         * modules/isnanl (Dependencies): Add float.
19800         * modules/isnanl-nolibm (Dependencies): Likewise.
19801         * modules/mathl (Dependencies): Likewise.
19802         * modules/printf-frexpl (Dependencies): Likewise.
19803         * modules/signbit (Dependencies): Likewise.
19804         * modules/vasnprintf (Dependencies): Likewise.
19805         * doc/headers/float.texi: Update.
19806
19807 2007-05-19  Jim Meyering  <jim@meyering.net>
19808
19809         * lib/utimens.c (gl_futimens): Rename from futimens,
19810         now that glibc-2.6 declares futimens.
19811         * lib/utimens.h: Likewise.
19812
19813 2007-05-19  Bruno Haible  <bruno@clisp.org>
19814
19815         Avoid test failures on mingw.
19816         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
19817         * tests/test-printf-posix.sh: Likewise.
19818         * tests/test-vfprintf-posix.sh: Likewise.
19819         * tests/test-vprintf-posix.sh: Likewise.
19820
19821 2007-05-19  Bruno Haible  <bruno@clisp.org>
19822
19823         Fix *printf result for NaN, Inf, -0.0 on mingw.
19824         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
19825         * lib/vasnprintf.c: Include math.h and isnan.h.
19826         (is_infinite_or_zero): New function.
19827         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
19828         values in the %f, %F, %e, %E, %g, %G directives.
19829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
19830         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19831         gl_PRINTF_INFINITE and test its result. Invoke
19832         gl_PREREQ_VASNPRINTF_INFINITE.
19833         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19835         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19836         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19837         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19838         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19839         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19840         * doc/functions/fprintf.texi: Update.
19841         * doc/functions/printf.texi: Update.
19842         * doc/functions/snprintf.texi: Update.
19843         * doc/functions/sprintf.texi: Update.
19844         * doc/functions/vfprintf.texi: Update.
19845         * doc/functions/vprintf.texi: Update.
19846         * doc/functions/vsnprintf.texi: Update.
19847         * doc/functions/vsprintf.texi: Update.
19848
19849 2007-05-19  Bruno Haible  <bruno@clisp.org>
19850
19851         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
19852         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
19853         Instead of multiplying with 10^k, set extra_zeroes to k.
19854         (scale10_round_long_double): Remove function.
19855
19856 2007-05-18  Bruno Haible  <bruno@clisp.org>
19857
19858         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
19859         introduced on 2007-05-06.
19860
19861 2007-05-18  Bruno Haible  <bruno@clisp.org>
19862
19863         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
19864         %g directives.
19865         * tests/test-vasprintf-posix.c (test_function): Likewise.
19866         * tests/test-snprintf-posix.h (test_function): Likewise.
19867         * tests/test-sprintf-posix.h (test_function): Likewise.
19868
19869 2007-05-18  Bruno Haible  <bruno@clisp.org>
19870
19871         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
19872         (strmatch): New function.
19873         (test_function): Test the %f directive on numbers of various exponents.
19874         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
19875         (strmatch): New function.
19876         (test_function): Test the %f directive on numbers of various exponents.
19877         * tests/test-snprintf-posix.h (strmatch): New function.
19878         (test_function): Test the %f directive on numbers of various exponents.
19879         * tests/test-sprintf-posix.h (strmatch): New function.
19880         (test_function): Test the %f directive on numbers of various exponents.
19881         * tests/test-snprintf-posix.c (SIZEOF): New macro.
19882         * tests/test-sprintf-posix.c (SIZEOF): New macro.
19883         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
19884         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
19885
19886 2007-05-18  Bruno Haible  <bruno@clisp.org>
19887
19888         Add support for 'long double' number output.
19889         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
19890         * lib/vasnprintf.c: Include math.h and float+.h.
19891         (mp_limb_t): New type.
19892         (GMP_LIMB_BITS): New macro.
19893         (mp_twolimb_t): New type.
19894         (GMP_TWOLIMB_BITS): New macro.
19895         (mpn_t): New type.
19896         (multiply, divide, convert_to_decimal, decode_long_double,
19897         scale10_round_long_double, scale10_round_decimal_long_double,
19898         floorlog10l): New functions.
19899         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
19900         for the %f, %F, %e, %E, %g, %G directives.
19901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
19902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19903         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
19904         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
19905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19906         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19907         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19908         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19909         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19910         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19911         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19912         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
19913         * modules/snprintf-posix (Depends-on): Likewise.
19914         * modules/sprintf-posix (Depends-on): Likewise.
19915         * modules/vasnprintf-posix (Depends-on): Likewise.
19916         * modules/vasprintf-posix (Depends-on): Likewise.
19917         * modules/vfprintf-posix (Depends-on): Likewise.
19918         * modules/vsnprintf-posix (Depends-on): Likewise.
19919         * modules/vsprintf-posix (Depends-on): Likewise.
19920         * modules/vasnprintf (Files): Add lib/float+.h.
19921         * doc/functions/fprintf.texi: Update.
19922         * doc/functions/printf.texi: Update.
19923         * doc/functions/snprintf.texi: Update.
19924         * doc/functions/sprintf.texi: Update.
19925         * doc/functions/vfprintf.texi: Update.
19926         * doc/functions/vprintf.texi: Update.
19927         * doc/functions/vsnprintf.texi: Update.
19928         * doc/functions/vsprintf.texi: Update.
19929
19930 2007-05-18  Bruno Haible  <bruno@clisp.org>
19931
19932         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
19933
19934 2007-05-18  Bruno Haible  <bruno@clisp.org>
19935
19936         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
19937         for printing 64-bit integers. Needed for mingw.
19938
19939 2007-05-18  Bruno Haible  <bruno@clisp.org>
19940
19941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
19942         gl_FUNC_FREXPL_WORKS.
19943         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
19944
19945 2007-05-18  Bruno Haible  <bruno@clisp.org>
19946
19947         * modules/frexpl-nolibm-tests: New file.
19948
19949         * modules/frexpl-nolibm: New file.
19950         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
19951
19952 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19953
19954         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
19955         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19956         GCC 4.2, which otherwise issues a lot of warnings.
19957         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
19958         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
19959         Likewise.
19960         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
19961         * modules/iconv_open (iconv.h): Likewise.
19962         * modules/locale (locale.h): Likewise.
19963         * modules/netinet_in (netinet/in.h): Likewise.
19964         * modules/sys_select (sys_select.h): Likewise.
19965         * modules/sys_socket (sys/socket.h): Likewise.
19966         * modules/sys_stat (sys/stat.h): Likewise.
19967         * modules/sysexits (sysexits.h): Likewise.
19968         * modules/unistd (unistd.h): Likewise.
19969
19970 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19971
19972         * modules/closein-tests (Makefile.am): Distribute
19973         `test-closein.sh'.
19974
19975 2007-05-17  Bruno Haible  <bruno@clisp.org>
19976
19977         * tests/test-printf-posix.output: Renamed from
19978         tests/test-fprintf-posix.out.
19979         * modules/fprintf-posix-tests: Update.
19980         * modules/printf-posix-tests: Update.
19981         * modules/vfprintf-posix-tests: Update.
19982         * modules/vprintf-posix-tests: Update.
19983         * tests/test-fprintf-posix.sh: Update.
19984         * tests/test-printf-posix.sh: Update.
19985         * tests/test-vfprintf-posix.sh: Update.
19986         * tests/test-vprintf-posix.sh: Update.
19987         Reported by Ralf Wildenhues.
19988
19989 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
19992         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
19993         GCC 4.2, which otherwise issues a lot of warnings.
19994         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
19995         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
19996         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
19997         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
19998         it should no longer be needed.
19999         * lib/string_.h: Likewise.
20000         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20001         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20002         * modules/inttypes (inttypes.h): Likewise.
20003         * modules/math (math.h): Likewise.
20004         * modules/search (search.h): Likewise.
20005         * modules/signal (signal.h): Likewise.
20006         * modules/stdint (stdint.h): Likewise.
20007         * modules/stdio (stdio.h): Likewise.
20008         * modules/stdlib (stdlib.h): Likewise.
20009         * modules/string (string.h): Likewise.
20010         * modules/sys_time (sys/time.h): Likewise.
20011         * modules/time (time.h): Likewise.
20012         * modules/wchar (wchar.h): Likewise.
20013         * modules/wctype (wtype.h): Likewise.
20014
20015 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20016
20017         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20018
20019 2007-05-13  Bruno Haible  <bruno@clisp.org>
20020
20021         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20022         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20023         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20024         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20025         (gl_PREREQ_STRTOK_R): Don't require it here.
20026
20027 2007-05-13  Bruno Haible  <bruno@clisp.org>
20028
20029         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20030         when used in C++ mode.
20031
20032 2007-05-12  Bruno Haible  <bruno@clisp.org>
20033
20034         * lib/linebuffer.h: Tweak doc.
20035         * lib/linebuffer.c: Likewise.
20036
20037 2007-05-12  James Youngman  <jay@gnu.org>
20038
20039         * lib/linebuffer.c (readlinebuffer_delim): New function,
20040         like readlinebuffer, but use a caller-specified delimiter.
20041         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20042         as the delimiter.
20043         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20044
20045 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20046
20047         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20048         * modules/openat (Files): Remove openat-die.c.
20049         (Depends-on): Add openat-die.
20050         * modules/openat-die: New module.
20051
20052 2007-05-06  Bruno Haible  <bruno@clisp.org>
20053
20054         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20055         Update with info about Cygwin.
20056         * doc/functions/fprintf.texi: Update.
20057         * doc/functions/printf.texi: Update.
20058         * doc/functions/snprintf.texi: Update.
20059         * doc/functions/sprintf.texi: Update.
20060         * doc/functions/vfprintf.texi: Update.
20061         * doc/functions/vprintf.texi: Update.
20062         * doc/functions/vsnprintf.texi: Update.
20063         * doc/functions/vsprintf.texi: Update.
20064         Reported by Eric Blake.
20065
20066 2007-05-06  Bruno Haible  <bruno@clisp.org>
20067
20068         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20069         padding ourselves for the floating-point directives.
20070         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20073         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20074         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20082         * tests/test-snprintf-posix.h (test_function): Also check the width
20083         and some flags in the %f directive.
20084         * tests/test-sprintf-posix.h (test_function): Likewise.
20085         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20086         * tests/test-vasprintf-posix.c (test_function): Likewise.
20087         * doc/functions/fprintf.texi: Update.
20088         * doc/functions/printf.texi: Update.
20089         * doc/functions/snprintf.texi: Update.
20090         * doc/functions/sprintf.texi: Update.
20091         * doc/functions/vfprintf.texi: Update.
20092         * doc/functions/vprintf.texi: Update.
20093         * doc/functions/vsnprintf.texi: Update.
20094         * doc/functions/vsprintf.texi: Update.
20095
20096 2007-05-06  Bruno Haible  <bruno@clisp.org>
20097
20098         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20099         pass the ' flag character to sprintf or snprintf.
20100         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20103         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20104         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20106         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20107         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20108         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20112         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20113         flag.
20114         * tests/test-sprintf-posix.h (test_function): Likewise.
20115         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20116         * tests/test-vasprintf-posix.c (test_function): Likewise.
20117         * doc/functions/fprintf.texi: Update.
20118         * doc/functions/printf.texi: Update.
20119         * doc/functions/snprintf.texi: Update.
20120         * doc/functions/sprintf.texi: Update.
20121         * doc/functions/vfprintf.texi: Update.
20122         * doc/functions/vprintf.texi: Update.
20123         * doc/functions/vsnprintf.texi: Update.
20124         * doc/functions/vsprintf.texi: Update.
20125
20126 2007-05-01  Bruno Haible  <bruno@clisp.org>
20127
20128         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20129
20130 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20131
20132         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20133         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20134
20135 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20136
20137         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20138         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20140
20141 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20142
20143         * lib/argp-help.c (struct hol_entry): New member `ord'.
20144         (HOL_ENTRY_PTRCMP): Use ord for comparison
20145         (hol_sort): Initialize ord.
20146
20147 2007-05-01  Bruno Haible  <bruno@clisp.org>
20148
20149         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20150         Reported by Eric Blake.
20151         * doc/gnulib.texi (Function Substitutes): Update.
20152
20153 2007-05-01  Bruno Haible  <bruno@clisp.org>
20154
20155         * doc/functions.texi: Remove file, now redundant through
20156         doc/functions/*.texi.
20157
20158 2007-05-01  Bruno Haible  <bruno@clisp.org>
20159
20160         * modules/argp (Depends-on): Add sleep.
20161
20162 2007-05-01  Bruno Haible  <bruno@clisp.org>
20163
20164         * modules/sleep-tests: New file.
20165         * tests/test-sleep.c: New file.
20166
20167         * modules/sleep: New file.
20168         * lib/sleep.c: New file.
20169         * m4/sleep.m4: New file.
20170         * lib/unistd_.h (sleep): New declaration.
20171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20172         HAVE_SLEEP.
20173         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20174         * doc/functions/sleep.texi: Document the sleep module.
20175
20176 2007-05-01  Bruno Haible  <bruno@clisp.org>
20177
20178         * lib/sigprocmask.h: Remove file.
20179         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20180         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20181         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20182         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20183         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20184         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20185         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20186         HAVE_SIGSET_T as a shell variable.
20187         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20188         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20189         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20190         (Depends-on): Add signal. Remove verify.
20191         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20192         (Include): Mention <signal.h> instead of sigprocmask.h.
20193         * NEWS: Mention the change.
20194         * lib/fatal-signal.c: Don't include sigprocmask.h.
20195
20196 2007-05-01  Bruno Haible  <bruno@clisp.org>
20197
20198         * modules/signal: New file.
20199         * lib/signal_.h: New file.
20200         * m4/signal_h.m4: New file.
20201
20202 2007-05-01  Bruno Haible  <bruno@clisp.org>
20203
20204         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20205         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20206         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20207         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20208
20209 2007-05-01  Bruno Haible  <bruno@clisp.org>
20210
20211         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20212         configure time.
20213         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20214         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20215         * modules/sys_stat (Makefile.am): Substitute their values into
20216         sys/stat.h.
20217
20218 2007-05-01  Bruno Haible  <bruno@clisp.org>
20219
20220         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20221         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20222         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20223
20224 2007-05-01  Bruno Haible  <bruno@clisp.org>
20225
20226         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20227         'assert' module here.
20228
20229 2007-05-01  Bruno Haible  <bruno@clisp.org>
20230
20231         * doc/functions/*.texi: New files.
20232         * doc/functions/google-ranking.txt: New file.
20233         * doc/gnulib.texi (Function Substitutes): New chapter.
20234         (ctime, inet_ntoa): Remove sections.
20235         * doc/ctime.texi: Remove file.
20236         * doc/inet_ntoa.texi: Remove file.
20237         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20238         dependencies.
20239         (%.info): New rule, specifying a --reference-limit.
20240
20241 2007-05-01  Bruno Haible  <bruno@clisp.org>
20242
20243         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20244
20245 2007-05-01  Bruno Haible  <bruno@clisp.org>
20246
20247         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20248         the portability of 'mkdir' to mingw systems.
20249
20250 2007-05-01  Bruno Haible  <bruno@clisp.org>
20251
20252         * doc/headers/google-ranking.txt: New file.
20253
20254 2007-04-30  Eric Blake  <ebb9@byu.net>
20255
20256         Prefer fseeko to fseek.
20257         * modules/getpass (Depends-on): Add fseeko.
20258         * lib/getpass.c (getpass): Use fseeko, not fseek.
20259
20260 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20261
20262         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20263         assumes the sorting is stable, while most qsort implementations
20264         are not.  Use argument addresses to ensure they never compare as
20265         equal.
20266
20267         * tests/test-argp-2.sh (usage-indent test): Fix output
20268         (func_compare): Restore diff options
20269         * tests/test-argp.c: Restore #include "progname.h"
20270
20271 2007-04-29  Bruno Haible  <bruno@clisp.org>
20272
20273         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20275         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20277         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20278         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20279         (TESTS, check_PROGRAMS): Add test-snprintf.
20280         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20281         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20282         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20283         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20284         assertions that fail on HP-UX, OSF/1, or IRIX.
20285         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20286
20287 2007-04-29  Bruno Haible  <bruno@clisp.org>
20288
20289         * MODULES.html.sh (posix_functions): Remove 'contents'.
20290
20291 2007-04-29  Karl Berry  <karl@gnu.org>
20292
20293         * config/srclist.txt (gendocs_template_min): new entry.
20294
20295 2007-04-29  Bruno Haible  <bruno@clisp.org>
20296
20297         Work around fpurge bug on BSD systems.
20298         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20299         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20300         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20301         fpurge to rpl_fpurge if the system already has this function.
20302         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20303         the case where the system already has this function. Correct invariants
20304         on BSD systems.
20305         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20306         BSD systems.
20307
20308 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20309
20310         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20311         proposed by Sven Verdoolaege.
20312
20313         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20314         options.
20315         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20316         (usage and help tests): Update
20317
20318 2007-04-29  Bruno Haible  <bruno@clisp.org>
20319
20320         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20321         Print more information in case of failure. Disable a test on BeOS.
20322
20323 2007-04-29  Bruno Haible  <bruno@clisp.org>
20324
20325         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20326         This helps debugging on systems on which no gdb is available.
20327
20328 2007-04-29  Bruno Haible  <bruno@clisp.org>
20329
20330         * lib/freading.h: Improve comments.
20331         * lib/fwriting.h: Likewise.
20332         * tests/test-freading.c (main): Don't check freading immediately after
20333         repositioning. Needed for glibc.
20334
20335 2007-04-29  Bruno Haible  <bruno@clisp.org>
20336
20337         * lib/freading.c (freading): Trivial simplification.
20338
20339 2007-04-28  Bruno Haible  <bruno@clisp.org>
20340
20341         * tests/test-fwriting.c (main): Also test the interaction between
20342         fflush and fwriting.
20343         * modules/fwriting-tests (Depends-on): Add fflush.
20344
20345         * tests/test-freading.c (main): Also test the interaction between
20346         fflush and freading.
20347         * modules/freading-tests (Depends-on): Add fflush.
20348
20349 2007-04-28  Bruno Haible  <bruno@clisp.org>
20350
20351         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20352         fseeko and ftello.
20353         Suggested by Eric Blake.
20354
20355 2007-04-28  Jim Meyering  <jim@meyering.net>
20356
20357         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20358         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20359         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20360
20361 2007-04-27  Eric Blake  <ebb9@byu.net>
20362
20363         * doc/headers/assert.texi (assert.h): Document assert module use.
20364
20365 2007-04-27  Bruno Haible  <bruno@clisp.org>
20366
20367         * doc/headers/*.texi: New files.
20368         * doc/gnulib.texi (Header File Substitutes): New chapter.
20369         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20370         dependencies.
20371         (standards.info ,standards.html, standards.dvi): Update dependencies.
20372         (mostlyclean, clean): New targets.
20373
20374 2007-04-27  Bruno Haible  <bruno@clisp.org>
20375
20376         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20377         * modules/sysexits (Files, Makefile.am): Update.
20378
20379         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20380         * modules/sys_socket (Files, Makefile.am): Update.
20381
20382         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20383         * modules/sys_stat (Files, Makefile.am): Update.
20384
20385 2007-04-27  Eric Blake  <ebb9@byu.net>
20386
20387         * lib/freading.h: Improve comments.
20388         * lib/fwriting.h: Likewise.
20389         * lib/fflush.c: Likewise.
20390
20391         Fix closein for mingw.
20392         * modules/closein-tests: Add tests for closein.
20393         * tests/test-closein.c: New file.
20394         * tests/test-closein.sh: Likewise.
20395         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20396         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20397
20398 2007-04-27  Bruno Haible  <bruno@clisp.org>
20399
20400         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20401         version is < 6.
20402         * lib/math_.h [__DECC]: Likewise.
20403         * lib/stdio_.h [__DECC]: Likewise.
20404         * lib/stdlib_.h [__DECC]: Likewise.
20405         * lib/string_.h [__DECC]: Likewise.
20406         * lib/time_.h [__DECC]: Likewise.
20407         * lib/wchar_.h [__DECC]: Likewise.
20408         * lib/wctype_.h [__DECC]: Likewise.
20409
20410 2007-04-27  Bruno Haible  <bruno@clisp.org>
20411
20412         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20413
20414 2007-04-27  Bruno Haible  <bruno@clisp.org>
20415
20416         * lib/fflush.c: Add comments.
20417         * modules/fpurge-tests (Depends-on): Add fflush.
20418         * modules/freadable-tests (Depends-on): Likewise.
20419         * modules/fwritable-tests (Depends-on): Likewise.
20420
20421 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20422
20423         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20424         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20425         Report by Bruno Haible <bruno@clisp.org>.
20426
20427 2007-04-26  Eric Blake  <ebb9@byu.net>
20428
20429         Fix fflush on mingw.
20430         * modules/fflush (Depends-on): Add freading.
20431         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20432         but unread data.
20433
20434 2007-04-26  Eric Blake  <ebb9@byu.net>
20435         and Bruno Haible  <bruno@clisp.org>
20436
20437         Implement freading and fwriting.
20438         * lib/freading.c: New file.
20439         * lib/freading.h: Likewise.
20440         * m4/freading.m4: Likewise.
20441         * modules/freading: Likewise.
20442         * modules/freading-tests: Likewise.
20443         * tests/test-freading.c: Likewise.
20444         * lib/fwriting.c: New file.
20445         * lib/fwriting.h: Likewise.
20446         * m4/fwriting.m4: Likewise.
20447         * modules/fwriting: Likewise.
20448         * modules/fwriting-tests: Likewise.
20449         * tests/test-fwriting.c: Likewise.
20450         * MODULES.html.sh (File stream based Input/Output): Mention them.
20451
20452 2007-04-26  Bruno Haible  <bruno@clisp.org>
20453
20454         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20455         'long' when we assume it.
20456         Suggested by Eric Blake.
20457
20458 2007-04-26  Bruno Haible  <bruno@clisp.org>
20459
20460         Ensure fseeko, ftello are declared on glibc systems.
20461         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20462         * modules/fseeko (configure.ac-early): Likewise.
20463         * modules/ftello (configure.ac-early): Likewise.
20464         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20465         AC_FUNC_FSEEKO for this.
20466         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20467         (gl_CHECK_FSEEKO): Remove macro.
20468
20469 2007-04-26  Bruno Haible  <bruno@clisp.org>
20470
20471         * tests/test-fflush.c (main): Also check the ftell result after
20472         fflush and fseek/fseeko.
20473         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20474         file descriptor position cache in the stream.
20475         * lib/fseeko.c (rpl_fseeko): Likewise.
20476
20477 2007-04-26  Bruno Haible  <bruno@clisp.org>
20478
20479         * modules/fflush-tests (Depends-on): Add fseeko.
20480
20481 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20482             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20483
20484         * lib/argz_.h: ensure error_t definition is obtained in same
20485         mechanism system argz.h would have.
20486         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20487         argz facilities are known bad.  Err on the side of caution if
20488         cross-compiling.
20489
20490 2007-04-25  Eric Blake  <ebb9@byu.net>
20491
20492         * lib/fpurge.c (includes): Use stdlib.h for free.
20493         * tests/test-fflush.c (main): Also test fflush-fseeko.
20494
20495 2007-04-25  Bruno Haible  <bruno@clisp.org>
20496
20497         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20498         * lib/fseeko.c: New file.
20499         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20500         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20501         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20502         gl_FUNC_FSEEKO.
20503         (gl_FUNC_FSEEKO): Invoke it.
20504         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20505         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20506         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20507
20508 2007-04-25  Bruno Haible  <bruno@clisp.org>
20509
20510         * modules/fflush (Depends-on): Add ftello.
20511
20512 2007-04-25  Bruno Haible  <bruno@clisp.org>
20513
20514         * modules/ftello-tests: New file.
20515         * tests/test-ftello.c: New file.
20516
20517         * modules/ftello: New file.
20518         * m4/ftello.m4: New file.
20519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20520         HAVE_FTELLO.
20521         * lib/stdio_.h (ftello): New declaration.
20522         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20523         HAVE_FTELLO.
20524
20525 2007-04-25  Bruno Haible  <bruno@clisp.org>
20526
20527         * modules/fseeko-tests: New file.
20528         * tests/test-fseeko.c: New file.
20529
20530         * modules/fseeko: New file.
20531         * m4/fseeko.m4: New file.
20532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20533         HAVE_FSEEKO.
20534         * lib/stdio_.h (fseeko): New declaration.
20535         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20536         HAVE_FSEEKO.
20537
20538 2007-04-25  Bruno Haible  <bruno@clisp.org>
20539
20540         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20541
20542 2007-04-25  Bruno Haible  <bruno@clisp.org>
20543
20544         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20545         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20546         * tests/test-unistd.c: Likewise.
20547         * tests/test-fcntl.c: Likewise.
20548
20549 2007-04-23  Eric Blake  <ebb9@byu.net>
20550
20551         * lib/fflush.c: Fix missing include.
20552         Reported by Bruno Haible.
20553
20554 2007-04-23  Bruno Haible  <bruno@clisp.org>
20555
20556         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20557         Reported by Eric Blake.
20558
20559 2007-04-23  Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20562
20563 2007-04-23  Bruno Haible  <bruno@clisp.org>
20564
20565         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20566
20567 2007-04-23  Bruno Haible  <bruno@clisp.org>
20568
20569         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20570         Needed on HP-UX 11.
20571
20572 2007-04-16  Eric Blake  <ebb9@byu.net>
20573
20574         Make fflush rely on fpurge.
20575         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20576         open coding all variants.
20577         * modules/fflush (Depends-on): Add fpurge and unistd.
20578         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20579         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20580
20581         Fix --with-tests compilation on cygwin.
20582         * modules/argmatch-tests (Makefile.am): List gnulib library first
20583         in LDADD.
20584         * modules/argp-tests (Makefile.am): Likewise.
20585         * modules/array-list-tests (Makefile.am): Likewise.
20586         * modules/array-oset-tests (Makefile.am): Likewise.
20587         * modules/avltree-list-tests (Makefile.am): Likewise.
20588         * modules/avltree-oset-tests (Makefile.am): Likewise.
20589         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20590         * modules/carray-list-tests (Makefile.am): Likewise.
20591         * modules/dirname-tests (Makefile.am): Likewise.
20592         * modules/frexp-tests (Makefile.am): Likewise.
20593         * modules/isnanl-tests (Makefile.am): Likewise.
20594         * modules/linked-list-tests (Makefile.am): Likewise.
20595         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20596         * modules/lock-tests (Makefile.am): Likewise.
20597         * modules/rbtree-list-tests (Makefile.am): Likewise.
20598         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20599         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20600         * modules/tls-tests (Makefile.am): Likewise.
20601         * modules/tsearch-tests (Makefile.am): Likewise.
20602         * modules/xvasprintf-tests (Makefile.am): Likewise.
20603
20604         Fix fpurge for cygwin.
20605         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20606         value.
20607         * modules/fpurge-tests (Depends-on): Clean up trash.
20608
20609 2007-04-16  Simon Josefsson  <simon@josefsson.org>
20610
20611         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20612
20613         * m4/autobuild.m4: Re-indent.
20614
20615 2007-04-13  Bruno Haible  <bruno@clisp.org>
20616
20617         * modules/fpurge-tests: New file.
20618         * tests/test-fpurge.c: New file.
20619
20620         * modules/fpurge: New file.
20621         * lib/fpurge.h: New file.
20622         * lib/fpurge.c: New file.
20623         * m4/fpurge.m4: New file.
20624
20625 2007-04-13  Bruno Haible  <bruno@clisp.org>
20626
20627         * modules/fbufmode-tests: New file.
20628         * tests/test-fbufmode.c: New file.
20629
20630         * modules/fbufmode: New file.
20631         * lib/fbufmode.h: New file.
20632         * lib/fbufmode.c: New file.
20633         * m4/fbufmode.m4: New file.
20634
20635 2007-04-13  Bruno Haible  <bruno@clisp.org>
20636
20637         * modules/fwritable-tests: New file.
20638         * tests/test-fwritable.c: New file.
20639
20640         * modules/fwritable: New file.
20641         * lib/fwritable.h: New file.
20642         * lib/fwritable.c: New file.
20643         * m4/fwritable.m4: New file.
20644
20645 2007-04-13  Bruno Haible  <bruno@clisp.org>
20646
20647         * modules/freadable-tests: New file.
20648         * tests/test-freadable.c: New file.
20649
20650         * modules/freadable: New file.
20651         * lib/freadable.h: New file.
20652         * lib/freadable.c: New file.
20653         * m4/freadable.m4: New file.
20654
20655 2007-04-13  Bruno Haible  <bruno@clisp.org>
20656
20657         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20658         MOSTLYCLEANFILES.
20659
20660 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20661
20662         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20663         gzip bootstrap.conf to avoid dragging in i18n machinery.
20664         (gnulib_tool_option): Use it.
20665
20666 2007-04-13  Bruno Haible  <bruno@clisp.org>
20667
20668         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20669         %F directives.
20670         * tests/test-vasprintf-posix.c (test_function): Likewise.
20671         * tests/test-snprintf-posix.h (test_function): Likewise.
20672         * tests/test-sprintf-posix.h (test_function): Likewise.
20673         * tests/test-fprintf-posix.h (test_function): Likewise.
20674         * tests/test-printf-posix.h (test_function): Likewise.
20675         * tests/test-fprintf-posix.out: Likewise.
20676
20677 2007-04-13  Bruno Haible  <bruno@clisp.org>
20678
20679         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20680         * modules/tls-tests (configure.ac): Likewise.
20681         Reported by Arto C. Nirkko <anirkko@insel.ch>.
20682
20683 2007-04-13  Bruno Haible  <bruno@clisp.org>
20684
20685         * lib/tls.c (glthread_tls_get): Fix return type.
20686         Patch by Arto C. Nirkko <anirkko@insel.ch>.
20687
20688 2007-04-12  Eric Blake  <ebb9@byu.net>
20689
20690         * modules/gettime (Depends-on): Remove gettime.
20691         Reported by Dmitry V. Levin.
20692
20693 2007-04-12  Bruno Haible  <bruno@clisp.org>
20694
20695         * modules/fflush (Include): Mention <stdio.h>.
20696         * modules/strtoimax (Include): Mention <inttypes.h>.
20697         * modules/strtoumax (Include): Likewise.
20698
20699 2007-04-12  Eric Blake  <ebb9@byu.net>
20700
20701         * .cvsignore: New file.
20702         * .gitignore: Likewise.
20703
20704 2007-04-12  Bruno Haible  <bruno@clisp.org>
20705
20706         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20707         not before, since $(LDADD) often contains libgnu.a.
20708         * modules/striconv-tests (test_striconv_LDADD): Likewise.
20709         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20710         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20711         Needed on Cygwin.
20712
20713 2007-04-12  Eric Blake  <ebb9@byu.net>
20714
20715         Work around glibc's failure to flush stdin on fclose.
20716         * lib/closein.c (close_stdin): Flush stdin before closing.
20717
20718         Work around glibc's failure to reset seekable stdin on exit.
20719         * modules/closein: New module.
20720         * lib/closein.c: New file.
20721         * lib/closein.h: Likewise.
20722         * m4/closein.m4: Likewise.
20723         * MODULES.html.sh (File stream based Input/Output): Document it.
20724
20725 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20726
20727         * gnulib-tool: Rename generated 'autobuild' script to
20728         'do-autobuild' in --create-megatestdir output.
20729
20730         * doc/gnulib.texi (Build robot for gnulib): Fix.
20731
20732 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20733
20734         * modules/sysexits (Depends-on): Add absolute-header.
20735
20736 2007-04-12  Eric Blake  <ebb9@byu.net>
20737
20738         No need to preserve errno on success.
20739         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20740         Reported by Bruno Haible.
20741
20742 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20743
20744         * MODULES.html.sh (Support for maintaining and releasing
20745         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
20746
20747 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20748
20749         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
20750
20751 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20752
20753         * modules/autobuild: New module.
20754
20755         * m4/autobuild.m4: New file.
20756
20757 2007-04-11  Bruno Haible  <bruno@clisp.org>
20758
20759         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
20760         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
20761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
20762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
20763         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20769         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
20770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20772         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
20773         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20774         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
20776         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20777         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20778         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
20779         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20780         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
20782         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20783         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20784         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
20785         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20786         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20787         Reported by Eric Blake.
20788
20789 2007-04-11  Bruno Haible  <bruno@clisp.org>
20790
20791         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
20792
20793 2007-04-10  Bruno Haible  <bruno@clisp.org>
20794
20795         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
20796         for NaN and Infinity. Needed on FreeBSD 6.1.
20797         * tests/test-vasnprintf-posix.c (test_function): Undo last change
20798         regarding results for "%010a" of Infinity and NaN.
20799         * tests/test-vasprintf-posix.c (test_function): Likewise.
20800         * tests/test-snprintf-posix.h (test_function): Likewise.
20801         * tests/test-sprintf-posix.h (test_function): Likewise.
20802         * tests/test-fprintf-posix.h (test_function): Likewise.
20803         * tests/test-printf-posix.h (test_function): Likewise.
20804         * tests/test-fprintf-posix.out: Likewise.
20805
20806 2007-04-10  Bruno Haible  <bruno@clisp.org>
20807
20808         * modules/locale-tests: New file.
20809         * tests/test-locale.c: New file.
20810
20811         * modules/locale: New file.
20812         * lib/locale_.h: New file.
20813         * m4/locale_h.m4: New file.
20814
20815 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
20816             Bruno Haible  <bruno@clisp.org>
20817
20818         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
20819         be determined, test for availability of the copysignf, copysign,
20820         copysignl functions.
20821         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
20822         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
20823         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
20824
20825 2007-04-09  Eric Blake  <ebb9@byu.net>
20826
20827         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
20828         * modules/stdio (Makefile.am): Support fflush.
20829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20830         * modules/fflush: New file.
20831         * lib/fflush.c: Likewise.
20832         * m4/fflush.m4: Likewise.
20833         * modules/fflush-tests: New test.
20834         * tests/test-fflush.c: Likewise.
20835         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
20836
20837 2007-04-06  Bruno Haible  <bruno@clisp.org>
20838
20839         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
20840         (VASNPRINTF): Use signbit for faster determination whether to print a
20841         minus sign.
20842         * modules/vasnprintf (Files): Remove lib/float+.h.
20843         * modules/fprintf-posix (Depends-on): Add signbit.
20844         * modules/snprintf-posix (Depends-on): Likewise.
20845         * modules/sprintf-posix (Depends-on): Likewise.
20846         * modules/vasnprintf-posix (Depends-on): Likewise.
20847         * modules/vasprintf-posix (Depends-on): Likewise.
20848         * modules/vfprintf-posix (Depends-on): Likewise.
20849         * modules/vsnprintf-posix (Depends-on): Likewise.
20850         * modules/vsprintf-posix (Depends-on): Likewise.
20851
20852 2007-04-06  Bruno Haible  <bruno@clisp.org>
20853
20854         * tests/test-frexp.c (main): Test also the sign bit of zero results.
20855         * tests/test-frexpl.c (main): Likewise.
20856         * tests/test-ldexpl.c (main): Likewise.
20857         * modules/frexp-tests (Depends-on): Add signbit.
20858         * modules/frexpl-tests (Depdends-on): Likewise.
20859         * modules/ldexpl-tests (Depdends-on): Likewise.
20860
20861 2007-04-06  Bruno Haible  <bruno@clisp.org>
20862
20863         * modules/signbit-tests: New file.
20864         * tests/test-signbit.c: New file.
20865
20866         * modules/signbit: New file.
20867         * lib/signbitf.c: New file.
20868         * lib/signbitd.c: New file.
20869         * lib/signbitl.c: New file.
20870         * m4/signbit.m4: New file.
20871         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
20872         (signbit): New macro.
20873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
20874         REPLACE_SIGNBIT.
20875         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
20876         REPLACE_FREXPL into math.h.
20877
20878 2007-04-06  Bruno Haible  <bruno@clisp.org>
20879
20880         * modules/isnanf-nolibm-tests: New file.
20881         * tests/test-isnanf.c: New file.
20882
20883         * modules/isnanf-nolibm: New file.
20884         * lib/isnanf.h: New file.
20885         * lib/isnanf.c: New file.
20886         * lib/isnan.c: Consider the USE_FLOAT macro.
20887         * m4/isnanf.m4: New file.
20888
20889 2007-04-06  Bruno Haible  <bruno@clisp.org>
20890
20891         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
20892         (Link): New section.
20893
20894         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
20895
20896 2007-04-06  Bruno Haible  <bruno@clisp.org>
20897
20898         Assume the 'long double' type.
20899         * m4/longdouble.m4: Remove file.
20900         * config/srclist.txt: Don't mention longdouble.m4.
20901         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
20902         * lib/float+.h: Likewise.
20903         * lib/frexp.c: Likewise.
20904         * lib/printf-args.h: Likewise.
20905         * lib/printf-args.c: Likewise.
20906         * lib/printf-frexp.c: Likewise.
20907         * lib/printf-parse.c: Likewise.
20908         * lib/vasnprintf.c: Likewise.
20909         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
20910         * m4/intl.m4: Likewise.
20911         * m4/isnanl.m4: Likewise.
20912         * m4/printf.m4: Likewise.
20913         * m4/printf-frexpl.m4: Likewise.
20914         * m4/vasnprintf.m4: Likewise.
20915         * modules/allocsa (Files): Remove m4/longdouble.m4.
20916         * modules/gettext (Files): Likewise.
20917         * modules/relocatable-prog-wrapper (Files): Likewise.
20918         * modules/vasnprintf (Files): Likewise.
20919         * modules/isnanl (Files): Likewise.
20920         (Include): Simplify.
20921         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
20922         (Include): Simplify.
20923         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
20924         (Include): Simplify.
20925         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
20926         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20927         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
20928         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20929         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20930         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20931         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
20932         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20933         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20934         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20935         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
20936         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20937         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
20938         * tests/test-isnanl.c: Likewise.
20939         * tests/test-snprintf-posix.h: Likewise.
20940         * tests/test-sprintf-posix.h: Likewise.
20941         * tests/test-vasnprintf-posix.c: Likewise.
20942         * tests/test-vasnprintf-posix2.c: Likewise.
20943         * tests/test-vasprintf-posix.c: Likewise.
20944
20945 2007-04-06  Bruno Haible  <bruno@clisp.org>
20946
20947         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
20948         * lib/math_.h [__DECC]: Include the overridden include file through
20949         #include_next, outside the double-inclusion guard.
20950         * lib/stdio_.h [__DECC]: Likewise.
20951         * lib/stdlib_.h [__DECC]: Likewise.
20952         * lib/string_.h [__DECC]: Likewise.
20953         * lib/time_.h [__DECC]: Likewise.
20954         * lib/wchar_.h [__DECC]: Likewise.
20955         * lib/wctype_.h [__DECC]: Likewise.
20956         * lib/inttypes_.h [__DECC]: Likewise.
20957         Reported by Albert Chin <china@thewrittenword.com> in
20958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
20959
20960 2007-04-04  Eric Blake  <ebb9@byu.net>
20961
20962         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
20963         1.5.x.
20964
20965 2007-04-04  Bruno Haible  <bruno@clisp.org>
20966
20967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
20968         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
20969
20970 2007-04-04  Bruno Haible  <bruno@clisp.org>
20971
20972         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
20973         results for "%010a" of Infinity and NaN.
20974         * tests/test-vasprintf-posix.c (test_function): Likewise.
20975         * tests/test-snprintf-posix.h (test_function): Likewise.
20976         * tests/test-sprintf-posix.h (test_function): Likewise.
20977         * tests/test-fprintf-posix.h (test_function): Remove these tests.
20978         * tests/test-printf-posix.h (test_function): Likewise.
20979         * tests/test-fprintf-posix.out: Update.
20980         Needed for FreeBSD 6.1.
20981
20982 2007-04-04  Bruno Haible  <bruno@clisp.org>
20983
20984         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
20985         directly used by the gnulib modules nor by gnulib-tool.
20986
20987 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         * DEPENDENCIES: Give overall description of version dependency
20990         desirability.  Use more-typical names for apps.
20991         Add shell, coreutils, diffutils, grep, tar, gzip.
20992
20993 2007-04-04  Simon Josefsson  <simon@josefsson.org>
20994
20995         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
20996
20997 2007-04-04  Karl Berry  <karl@gnu.org>
20998
20999         * MODULES.html.sh (func_module): missing '.
21000
21001 2007-04-03  Bruno Haible  <bruno@clisp.org>
21002
21003         * modules/argmatch-tests (Makefile.am): New variable
21004         test_argmatch_LDADD.
21005         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21006         * modules/array-list-tests (Makefile.am): New variable
21007         test_array_list_LDADD.
21008         * modules/array-oset-tests (Makefile.am): New variable
21009         test_array_oset_LDADD.
21010         * modules/avltree-list-tests (Makefile.am): New variable
21011         test_avltree_list_LDADD.
21012         * modules/avltree-oset-tests (Makefile.am): New variable
21013         test_avltree_oset_LDADD.
21014         * modules/avltreehash-list-tests (Makefile.am): New variable
21015         test_avltreehash_list_LDADD.
21016         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21017         test_canonicalize_lgpl_LDADD.
21018         * modules/carray-list-tests (Makefile.am): New variable
21019         test_carray_list_LDADD.
21020         * modules/dirname-tests (Makefile.am): New variable
21021         test_dirname_LDADD.
21022         * modules/linked-list-tests (Makefile.am): New variable
21023         test_linked_list_LDADD.
21024         * modules/linkedhash-list-tests (Makefile.am): New variable
21025         test_linkedhash_list_LDADD.
21026         * modules/rbtree-list-tests (Makefile.am): New variable
21027         test_rbtree_list_LDADD.
21028         * modules/rbtree-oset-tests (Makefile.am): New variable
21029         test_rbtree_oset_LDADD.
21030         * modules/rbtreehash-list-tests (Makefile.am): New variable
21031         test_rbtreehash_list_LDADD.
21032         * modules/xvasprintf-tests (Makefile.am): New variable
21033         test_xvasprintf_LDADD.
21034         Reported by Eric Blake.
21035
21036 2007-04-03  Eric Blake  <ebb9@byu.net>
21037
21038         * DEPENDENCIES: Weaken m4 requirements.
21039
21040 2007-04-03  Bruno Haible  <bruno@clisp.org>
21041
21042         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21043         * modules/isnanl-tests (configure.ac): Likewise.
21044
21045 2007-04-03  Ben Pfaff  <blp@gnu.org>
21046
21047         * modules/iconv_open: Add $(srcdir)/ to source directory
21048         references in Makefile fragments that call gperf, to fix VPATH
21049         builds.
21050
21051 2007-04-03  Bruno Haible  <bruno@clisp.org>
21052
21053         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21054         * lib/ldexpl.c: Undo last change.
21055
21056 2007-04-03  Bruno Haible  <bruno@clisp.org>
21057
21058         * modules/printf-frexpl (Depends-on): Undo last change.
21059         (Files): Add m4/ldexpl.m4.
21060
21061 2007-04-03  Bruno Haible  <bruno@clisp.org>
21062
21063         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21064         * modules/isnanl (Link): New section.
21065
21066         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21067         * modules/frexp (Link): New section.
21068
21069         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21070         * modules/frexpl (Link): New section.
21071
21072         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21073         * modules/ldexpl (Link): New section.
21074
21075 2007-04-03  Bruno Haible  <bruno@clisp.org>
21076
21077         * modules/TEMPLATE-EXTENDED: New file.
21078         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21079
21080 2007-04-03  Bruno Haible  <bruno@clisp.org>
21081
21082         * DEPENDENCIES: New file.
21083         Suggested by Simon Josefsson.
21084
21085 2007-04-03  Bruno Haible  <bruno@clisp.org>
21086
21087         * doc/gnulib.texi: Escape @.
21088
21089 2007-04-03  James Youngman  <jay@gnu.org>
21090         and Paul Eggert  <eggert@cs.ucla.edu>
21091
21092         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21093         birthtime on all systems that have birthtime, not just those which
21094         use st_birthtimensec rather than st_birthtim.  Putting zero in
21095         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21096         that the birth time is not available for files on an NFS mount.
21097
21098 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21099
21100         * modules/memxor: Move back from crypto/, suggested by Bruno.
21101         * modules/crypto/hmac-sha1: Fix memxor dependency.
21102
21103         * modules/crypto/gc: Moved from ../.
21104
21105 2007-04-02  Eric Blake  <ebb9@byu.net>
21106
21107         * lib/ldexpl.c (includes): Avoid libm.
21108
21109         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21110
21111 2007-04-02  Bruno Haible  <bruno@clisp.org>
21112
21113         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21114         on IRIX.
21115
21116 2007-04-02  Bruno Haible  <bruno@clisp.org>
21117
21118         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21119         x86 or x86_64 platforms running MacOS X.
21120         Reported by Ryan Schmidt <@ryandesign.com>.
21121
21122 2007-04-02  Bruno Haible  <bruno@clisp.org>
21123
21124         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21125         i386.
21126
21127 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21128
21129         * modules/crypto/arcfour: Moved from ../.
21130         * modules/crypto/arcfour-tests: Moved from ../.
21131         * modules/crypto/arctwo: Moved from ../.
21132         * modules/crypto/arctwo-tests: Moved from ../.
21133         * modules/crypto/des: Moved from ../.
21134         * modules/crypto/des-tests: Moved from ../.
21135         * modules/crypto/gc-arcfour: Moved from ../.
21136         * modules/crypto/gc-arcfour-tests: Moved from ../.
21137         * modules/crypto/gc-arctwo: Moved from ../.
21138         * modules/crypto/gc-arctwo-tests: Moved from ../.
21139         * modules/crypto/gc-des: Moved from ../.
21140         * modules/crypto/gc-des-tests: Moved from ../.
21141         * modules/crypto/gc-hmac-md5: Moved from ../.
21142         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21143         * modules/crypto/gc-hmac-sha1: Moved from ../.
21144         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21145         * modules/crypto/gc-md2: Moved from ../.
21146         * modules/crypto/gc-md2-tests: Moved from ../.
21147         * modules/crypto/gc-md4: Moved from ../.
21148         * modules/crypto/gc-md4-tests: Moved from ../.
21149         * modules/crypto/gc-md5: Moved from ../.
21150         * modules/crypto/gc-md5-tests: Moved from ../.
21151         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21152         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21153         * modules/crypto/gc-random: Moved from ../.
21154         * modules/crypto/gc-rijndael: Moved from ../.
21155         * modules/crypto/gc-rijndael-tests: Moved from ../.
21156         * modules/crypto/gc-sha1: Moved from ../.
21157         * modules/crypto/gc-sha1-tests: Moved from ../.
21158         * modules/crypto/gc-tests: Moved from ../.
21159         * modules/crypto/hmac-md5: Moved from ../.
21160         * modules/crypto/hmac-md5-tests: Moved from ../.
21161         * modules/crypto/hmac-sha1: Moved from ../.
21162         * modules/crypto/hmac-sha1-tests: Moved from ../.
21163         * modules/crypto/md2: Moved from ../.
21164         * modules/crypto/md2-tests: Moved from ../.
21165         * modules/crypto/md4: Moved from ../.
21166         * modules/crypto/md4-tests: Moved from ../.
21167         * modules/crypto/md5: Moved from ../.
21168         * modules/crypto/md5-tests: Moved from ../.
21169         * modules/crypto/memxor: Moved from ../.
21170         * modules/crypto/rijndael: Moved from ../.
21171         * modules/crypto/rijndael-tests: Moved from ../.
21172         * modules/crypto/sha1: Moved from ../.
21173
21174 2007-03-30  James Youngman  <jay@gnu.org>
21175
21176         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21177         rename() to change the ctime of a file (because ctime is unaffected
21178         by rename on jfs2 on AIX 5.1).
21179         (main): Start by doing cleanup, in case a previous run failed leaving
21180         test files behind.
21181
21182 2007-03-31  Bruno Haible  <bruno@clisp.org>
21183
21184         Support old proprietary implementations of iconv.
21185         * modules/iconv_open: New file.
21186         * lib/iconv_.h: New file.
21187         * m4/iconv_h.m4: New file.
21188         * lib/iconv_open.c: New file.
21189         * lib/iconv_open-aix.gperf: New file.
21190         * lib/iconv_open-hpux.gperf: New file.
21191         * lib/iconv_open-irix.gperf: New file.
21192         * lib/iconv_open-osf.gperf: New file.
21193         * m4/iconv_open.m4: New file.
21194         * modules/linebreak (Depends-on): Add iconv_open.
21195         * modules/striconv (Depends-on): Likewise.
21196         * modules/striconveh (Depends-on): Likewise.
21197         * modules/unicodeio (Depends-on): Likewise.
21198         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21199         (iconv_t)(-1).
21200         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21201         conversion if cd is (iconv_t)(-1).
21202         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21203         is not possible.
21204
21205 2007-03-31  Bruno Haible  <bruno@clisp.org>
21206
21207         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21208         work on Solaris either. Protect also second use of "autodetect_jp".
21209
21210 2007-03-31  Bruno Haible  <bruno@clisp.org>
21211
21212         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21213         the function is not present.
21214
21215 2007-03-31  Bruno Haible  <bruno@clisp.org>
21216
21217         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21218         the function is not present.
21219
21220 2007-03-31  Bruno Haible  <bruno@clisp.org>
21221
21222         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21223         a bug in HP-UX iconv_open().
21224
21225 2007-03-31  Bruno Haible  <bruno@clisp.org>
21226
21227         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21228         (Mathematics <math.h>): New section, add fpieee.
21229         (Input/output <stdio.h>): Add fseterr.
21230         (Mathematics <math.h>): New section, add printf-frexp.
21231         (Container data structures): Add sublist.
21232         (Core language properties): Add fpucw, inline.
21233         (Functions for greatest-width integer types <inttypes.h>): Add
21234         imaxabs, imaxdiv, inttypes.
21235         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21236         isnanl-nolibm, ldexp.
21237         (Mathematics <math.h>): New section, add printf-frexpl.
21238         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21239         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21240         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21241         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21242         (Unicode string functions): Add unistr/u*-mbtoucr.
21243         (Java): Add javacomp-script, javaexec-script.
21244         (C#): Add csharpcomp-script, csharpexec-script.
21245         (Support for building libraries and executables): Add havelib,
21246         relocatable-*.
21247         (Support for maintaining and releasing projects): Renamed from
21248         'Support for maintaining and release projects'. Add announce-gen.
21249
21250 2007-03-31  Bruno Haible  <bruno@clisp.org>
21251
21252         * README: Talk primarily about git.
21253         (git and CVS): Renamed from CVS.
21254         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21255         gnulib is available through git.
21256         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21257
21258 2007-03-30  Bruno Haible  <bruno@clisp.org>
21259
21260         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21261         * lib/poll_.h: Likewise.
21262         * lib/stat_.h: Likewise.
21263         * lib/sys_time_.h: Likewise.
21264         * lib/sysexit_.h: Likewise.
21265         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21266         * lib/stdbool_.h: Likewise.
21267         * lib/byteswap_.h: Add double-inclusion guard.
21268
21269 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21270
21271         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21272
21273 2007-03-30  Karl Berry  <karl@gnu.org>
21274
21275         * config/srclist-update: double space after USA in the license
21276         substitution, since that's how it's usually (?) written.
21277
21278 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21279
21280         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21281         reported by Bruno Haible.
21282
21283 2007-03-29  Bruno Haible  <bruno@clisp.org>
21284
21285         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21286         a bug in AIX iconv().
21287
21288 2007-03-29  Bruno Haible  <bruno@clisp.org>
21289
21290         * modules/ldexpl-tests: New file.
21291         * tests/test-ldexpl.c: New file.
21292
21293 2007-03-29  Bruno Haible  <bruno@clisp.org>
21294
21295         * lib/ldexpl.c: Include fpucw.h.
21296         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21297         multiplication.
21298         * modules/ldexpl (Depends-on): Add fpucw.
21299
21300 2007-03-29  Bruno Haible  <bruno@clisp.org>
21301
21302         * modules/ldexpl: New file.
21303         * m4/ldexpl.m4: New file.
21304         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21305         set.
21306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21307         REPLACE_LDEXPL.
21308         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21309         REPLACE_LDEXPL.
21310         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21311         gl_FUNC_LDEXPL_WORKS.
21312         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21313         * modules/mathl (Files): Remove lib/ldexpl.c.
21314         (Depends-on): Add ldexpl.
21315
21316 2007-03-29  Bruno Haible  <bruno@clisp.org>
21317
21318         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21319
21320 2007-03-29  Bruno Haible  <bruno@clisp.org>
21321
21322         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21323         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21324         and possibly also HP-UX.
21325         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21326         work on AIX, IRIX, HP-UX, OSF/1.
21327         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21328         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21329         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21330         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21331         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21332         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21333
21334 2007-03-29  Bruno Haible  <bruno@clisp.org>
21335
21336         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21337
21338 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21339
21340         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21341         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21342
21343 2007-03-29  Eric Blake  <ebb9@byu.net>
21344
21345         * lib/acl-internal.h: Remove redundant include.
21346         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21347         Cygwin when a file is locked.
21348
21349 2007-03-29  Bruno Haible  <bruno@clisp.org>
21350
21351         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21352         file.
21353         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21354
21355 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21356
21357         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21358         try to remove a parent directory if the child couldn't be removed
21359         (except for the first rmdir, which could fail because the child
21360         doesn't exist).  Problem reported by Jeff Blaine in
21361         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21362
21363 2007-03-28  Bruno Haible  <bruno@clisp.org>
21364
21365         * lib/striconveh.c (utf8conv_carefully): New function.
21366         (mem_cd_iconveh_internal): Invoke it.
21367
21368 2007-03-28  Bruno Haible  <bruno@clisp.org>
21369
21370         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21371         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21372         input.
21373         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21374         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21375         unistr/u8-uctomb.
21376
21377 2007-03-28  Bruno Haible  <bruno@clisp.org>
21378
21379         * modules/unistr/u8-mbtoucr: New file.
21380         * lib/unistr/u8-mbtoucr.c: New file.
21381         * modules/unistr/u16-mbtoucr: New file.
21382         * lib/unistr/u16-mbtoucr.c: New file.
21383         * modules/unistr/u16-mbtoucr: New file.
21384         * lib/unistr/u16-mbtoucr.c: New file.
21385         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21386
21387 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21388             Bruno Haible  <bruno@clisp.org>
21389
21390         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21391         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21392         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21393
21394         * m4/stdio_h.m4: Add stubs for vasprintf too.
21395
21396         * modules/stdio: Support vasprintf in sed command.
21397
21398         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21399         vasprintf.h.  Add stdio module indicator.
21400
21401         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21402         vasprintf.h.
21403
21404         * lib/vasprintf.h: File removed.
21405
21406         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21407         * lib/vasprintf.c: Ditto.
21408         * lib/xvasprintf.c: Ditto.
21409         * tests/test-vasprintf-posix.c: Ditto.
21410         * tests/test-vasprintf.c: Ditto.
21411
21412 2007-03-27  Bruno Haible  <bruno@clisp.org>
21413
21414         Make vasnprintf multithread-safe.
21415         * lib/vasnprintf.c (decimal_point_char): New function.
21416         (VASNPRINTF): Use it.
21417         Suggested by Simon Josefsson.
21418
21419 2007-03-27  Eric Blake  <ebb9@byu.net>
21420
21421         Support sub-second birthtime on cygwin.
21422         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21423         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21424         (get_stat_birthtime): Also work with st_birthtim.
21425
21426 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21427
21428         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21429         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21430         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21431         (get_stat_birthtime_ns): Simplify compile-time tests.
21432         (get_stat_birthtime): Change the API to look like
21433         get_stat_mtime etc., except return a negative tv_nsec on error.
21434         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21435         Don't check for "spare" fields.
21436         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21437         or for struct stat.st_birthtime, as these tests aren't used.
21438         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21439
21440 2007-03-27  Bruno Haible  <bruno@clisp.org>
21441
21442         * lib/stat-time.h: Include <sys/stat.h>.
21443
21444 2007-03-27  James Youngman  <jay@gnu.org>
21445
21446         * lib/stat-time.h (get_stat_birthtime): New function for
21447           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21448         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21449           and its variants.
21450         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21451         * modules/stat-time-test: New file.
21452         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21453
21454 2007-03-26  Bruno Haible  <bruno@clisp.org>
21455
21456         Better support of signalling NaNs.
21457         * lib/atanl.c: Include isnanl.h.
21458         (atanl): Perform test for NaN at the beginning of the function and
21459         through a call to isnanl.
21460         * lib/cosl.c: Include isnanl.h.
21461         (cosl): Perform test for NaN at the beginning of the function and
21462         through a call to isnanl.
21463         * lib/ldexpl.c: Include isnanl.h.
21464         (ldexpl): Perform test for NaN through a call to isnanl.
21465         * lib/logl.c: Include isnanl.h.
21466         (logl): Perform test for NaN at the beginning of the function and
21467         through a call to isnanl.
21468         * lib/sinl.c: Include isnanl.h.
21469         (sinl): Perform test for NaN at the beginning of the function and
21470         through a call to isnanl.
21471         * lib/sqrtl.c: Include isnanl.h.
21472         (sqrtl): Perform test for NaN at the beginning of the function and
21473         through a call to isnanl.
21474         * lib/tanl.c: Include isnanl.h.
21475         (tanl): Perform test for NaN at the beginning of the function and
21476         through a call to isnanl.
21477         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21478         * modules/mathl (Depends-on): Add isnanl.
21479
21480 2007-03-26  Eric Blake  <ebb9@byu.net>
21481
21482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21483         regression in logic sense of previous patch.
21484
21485 2007-03-26  Bruno Haible  <bruno@clisp.org>
21486
21487         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21488         unportable shell command "if ! ...".
21489         Reported by Ralf Wildenhues.
21490
21491 2007-03-25  Bruno Haible  <bruno@clisp.org>
21492
21493         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21494         <sysexits.h> file, and only add EX_CONFIG.
21495         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21496         absolute file name and whether it is sufficient. Substitute also
21497         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21498         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21499         ABSOLUTE_SYSEXITS_H into sysexits.h.
21500
21501 2007-03-25  Bruno Haible  <bruno@clisp.org>
21502
21503         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21504         hints is NULL.
21505
21506 2007-03-25  Bruno Haible  <bruno@clisp.org>
21507
21508         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21509         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21510
21511 2007-03-25  Bruno Haible  <bruno@clisp.org>
21512
21513         * lib/vasnprintf.c: Include langinfo.h.
21514         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21515         multithread-safe.
21516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21517         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21525         Reported by Simon Josefsson.
21526
21527 2007-03-25  Bruno Haible  <bruno@clisp.org>
21528
21529         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21530         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21531         * modules/vasnprintf (Depends-on): Add stdint.
21532
21533 2007-03-25  Bruno Haible  <bruno@clisp.org>
21534
21535         * modules/fpieee: New file.
21536         * m4/fpieee.m4: New file.
21537         * modules/isnan-nolibm (Depends-on): Add fpieee.
21538         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21539         * modules/isnanl (Depends-on): Add fpieee.
21540
21541 2007-03-25  Bruno Haible  <bruno@clisp.org>
21542
21543         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21544
21545 2007-03-25  Bruno Haible  <bruno@clisp.org>
21546
21547         Avoid test failures on IRIX 6.5.
21548         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21549         (main): Use it.
21550         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21551         macros.
21552         (main): Use them.
21553
21554 2007-03-25  Bruno Haible  <bruno@clisp.org>
21555
21556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21557         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21558         exists but doesn't work.
21559         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21560         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21562         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21563
21564 2007-03-25  Bruno Haible  <bruno@clisp.org>
21565
21566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21567         returns inf. Needed on IRIX 6.5.
21568
21569 2007-03-25  Bruno Haible  <bruno@clisp.org>
21570
21571         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21572         (main): Use isnanl instead of x != x idiom.
21573         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21574
21575         * tests/test-frexp.c: Include isnan.h.
21576         (main): Use isnan instead of x != x idiom.
21577         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21578
21579 2007-03-25  Bruno Haible  <bruno@clisp.org>
21580
21581         * tests/test-frexp.c (NaN): New function/macro.
21582         (main): Use it instead of 0.0 / 0.0.
21583         * tests/test-isnan.c (NaN): New function/macro.
21584         (main): Use it instead of 0.0 / 0.0.
21585         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21586         (test_function): Use it instead of 0.0 / 0.0.
21587         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21588         (test_function): Use it instead of 0.0 / 0.0.
21589         * tests/test-snprintf-posix.h (NaN): New function/macro.
21590         (test_function): Use it instead of 0.0 / 0.0.
21591         * tests/test-sprintf-posix.h (NaN): New function/macro.
21592         (test_function): Use it instead of 0.0 / 0.0.
21593         * tests/test-fprintf-posix.h (NaN): New function/macro.
21594         (test_function): Use it instead of 0.0 / 0.0.
21595         * tests/test-printf-posix.h (NaN): New function/macro.
21596         (test_function): Use it instead of 0.0 / 0.0.
21597
21598         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21599
21600 2007-03-25  Bruno Haible  <bruno@clisp.org>
21601
21602         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21603
21604 2007-03-25  Bruno Haible  <bruno@clisp.org>
21605
21606         * lib/regexec.c (merge_state_with_log): Make static.
21607
21608 2007-03-25  Bruno Haible  <bruno@clisp.org>
21609
21610         * lib/trigl.c (kernel_rem_pio2): Make static.
21611
21612 2007-03-25  Bruno Haible  <bruno@clisp.org>
21613
21614         * lib/sincosl.c (sincosl_table): Make static.
21615
21616 2007-03-25  Bruno Haible  <bruno@clisp.org>
21617
21618         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21619         if the compiler does not support C99.
21620
21621 2007-03-25  Bruno Haible  <bruno@clisp.org>
21622
21623         * modules/time (Makefile.am): Ensure all rule action lines start with a
21624         tab.
21625
21626 2007-03-24  Bruno Haible  <bruno@clisp.org>
21627
21628         * modules/tsearch-tests: New file.
21629         * tests/test-tsearch.sh: New file.
21630         * tests/test-tsearch.c: New file, mostly copied from glibc.
21631
21632         * modules/search-tests: New file.
21633         * tests/test-search.c: New file.
21634
21635         * modules/search: New file.
21636         * lib/search_.h: New file, incorporating lib/tsearch.h.
21637         * m4/search_h.m4: New file.
21638         * lib/tsearch.h: Remove file.
21639         * lib/tsearch.c: Include search.h instead of tsearch.h.
21640         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21641         HAVE_TSEARCH.
21642         * modules/tsearch (Files): Remove lib/tsearch.h.
21643         (Depends-on): Add search.
21644         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21645         (Include): Change tsearch.h into search.h.
21646
21647 2007-03-24  Bruno Haible  <bruno@clisp.org>
21648
21649         * modules/fpucw: New file.
21650         * lib/fpucw.h: New file.
21651         * lib/frexp.c: Include fpucw.h.
21652         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21653         (FUNC): Use them.
21654         * lib/printf-frexp.c: Include fpucw.h.
21655         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21656         (FUNC): Use them.
21657         * lib/vasnprintf.c: Include fpucw.h.
21658         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21659         'long double' calculations.
21660         * tests/test-frexpl.c: Include fpucw.h.
21661         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21662         * tests/test-printf-frexpl.c: Include fpucw.h.
21663         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21664         * modules/frexpl (Depends-on): Add fpucw.
21665         * modules/printf-frexpl (Depends-on): Likewise.
21666         * modules/fprintf-posix (Depends-on): Likewise.
21667         * modules/snprintf-posix (Depends-on): Likewise.
21668         * modules/sprintf-posix (Depends-on): Likewise.
21669         * modules/vasnprintf-posix (Depends-on): Likewise.
21670         * modules/vasprintf-posix (Depends-on): Likewise.
21671         * modules/vfprintf-posix (Depends-on): Likewise.
21672         * modules/vsnprintf-posix (Depends-on): Likewise.
21673         * modules/vsprintf-posix (Depends-on): Likewise.
21674         * modules/frexpl-tests (Depends-on): Likewise.
21675         * modules/printf-frexpl-tests (Depends-on): Likewise.
21676
21677 2007-03-24  Bruno Haible  <bruno@clisp.org>
21678
21679         * lib/float+.h: New file.
21680         * lib/isnan.c: Include float+.h.
21681         (SIZE): New macro.
21682         (FUNC): Compare only SIZE bytes of the value.
21683         * lib/vasnprintf.c: Include float+.h.
21684         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21685         SIZEOF_LDBL or SIZEOF_DBL bytes.
21686         * modules/isnan-nolibm (Files): Add lib/float+.h.
21687         * modules/isnanl-nolibm (Files): Add lib/float+.h.
21688         * modules/isnanl (Files): Add lib/float+.h.
21689         * modules/vasnprintf (Files): Add lib/float+.h.
21690
21691 2007-03-24  Bruno Haible  <bruno@clisp.org>
21692
21693         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21694         include isnanl-nolibm.h.
21695
21696 2007-03-24  Bruno Haible  <bruno@clisp.org>
21697
21698         * tests/test-read-file.c (main): Don't produce spurious output for
21699         expected situations. Make the test fail if it encountered unexpected
21700         results.
21701
21702 2007-03-24  Bruno Haible  <bruno@clisp.org>
21703
21704         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21705         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21706
21707 2007-03-24  Bruno Haible  <bruno@clisp.org>
21708
21709         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21710
21711 2007-03-24  Bruno Haible  <bruno@clisp.org>
21712
21713         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21714         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21715
21716         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21717         * modules/utf8-ucs4: Turn into a symbolic link to module
21718         unistr/u8-mbtouc.
21719
21720         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21721         utf8-ucs4-unsafe.
21722         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21723         unistr/u8-mbtouc-unsafe.
21724
21725         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21726         * modules/utf16-ucs4: Turn into a symbolic link to module
21727         unistr/u16-mbtouc.
21728
21729         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21730         utf16-ucs4-unsafe.
21731         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21732         unistr/u16-mbtouc-unsafe.
21733
21734         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21735         * modules/ucs4-utf8: Turn into a symbolic link to module
21736         unistr/u8-ubtomb.
21737
21738         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21739         * modules/ucs4-utf16: Turn into a symbolic link to module
21740         unistr/u16-ubtomb.
21741
21742 2007-03-24  Bruno Haible  <bruno@clisp.org>
21743
21744         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
21745         Enable the function only if HAVE_INLINE.
21746         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
21747         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21748         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
21749         Enable the function only if HAVE_INLINE.
21750         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
21751         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21752         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
21753         Enable the function only if HAVE_INLINE.
21754         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
21755         Enable the function only if HAVE_INLINE.
21756         * modules/utf8-ucs4: Update.
21757         * modules/utf8-ucs4-unsafe: Update.
21758         * modules/utf16-ucs4: Update.
21759         * modules/utf16-ucs4-unsafe: Update.
21760         * modules/ucs4-utf8: Update.
21761         * modules/ucs4-utf16: Update.
21762
21763 2007-03-24  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/utf8-ucs4.h: Remove file.
21766         * lib/utf8-ucs4-unsafe.h: Remove file.
21767         * lib/utf16-ucs4.h: Remove file.
21768         * lib/utf16-ucs4-unsafe.h: Remove file.
21769         * lib/ucs4-utf8.h: Remove file.
21770         * lib/ucs4-utf16.h: Remove file.
21771         * lib/unistr.h: Include their previous contents.
21772         * m4/utf-ucs4.m4: Remove file.
21773         * m4/ucs4-utf.m4: Remove file.
21774         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
21775         (Depends-on): Add unistr/base.
21776         (configure.ac): Remove gl_UTF_UCS4.
21777         (Makefile.am): Update.
21778         (Include): Change to unistr.h.
21779         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
21780         (Depends-on): Add unistr/base.
21781         (configure.ac): Remove gl_UTF_UCS4.
21782         (Makefile.am): Update.
21783         (Include): Change to unistr.h.
21784         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
21785         (Depends-on): Add unistr/base.
21786         (configure.ac): Remove gl_UTF_UCS4.
21787         (Makefile.am): Update.
21788         (Include): Change to unistr.h.
21789         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
21790         (Depends-on): Add unistr/base.
21791         (configure.ac): Remove gl_UTF_UCS4.
21792         (Makefile.am): Update.
21793         (Include): Change to unistr.h.
21794         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
21795         (Depends-on): Add unistr/base.
21796         (configure.ac): Remove gl_UCS4_UTF.
21797         (Makefile.am): Update.
21798         (Include): Change to unistr.h.
21799         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
21800         (Depends-on): Add unistr/base.
21801         (configure.ac): Remove gl_UCS4_UTF.
21802         (Makefile.am): Update.
21803         (Include): Change to unistr.h.
21804         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
21805         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
21806         utf8-ucs4-unsafe.h.
21807         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
21808         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
21809         utf16-ucs4-unsafe.h.
21810         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
21811         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
21812         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
21813         * lib/unistr/u8-strchr.c: Likewise.
21814         * lib/unistr/u8-strrchr.c: Likewise.
21815         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
21816         * lib/unistr/u16-strchr.c: Likewise.
21817         * lib/unistr/u16-strrchr.c: Likewise.
21818         * lib/striconveh.c: Update.
21819         * lib/linebreak.c: Update.
21820
21821 2007-03-24  Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
21824         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
21825
21826 2007-03-22  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
21829
21830 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21831
21832         * MODULES.html.sh (File system functions): New module write-any-file.
21833         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
21834         * m4/write-any-file.m4: New files.
21835
21836 2007-03-23  Eric Blake  <ebb9@byu.net>
21837
21838         * gnulib-tool: Rearrange space-tab sequences, since some editors
21839         like to eat them.
21840
21841 2007-03-23  Eric Blake  <ebb9@byu.net>
21842
21843         * lib/version-etc.c (version_etc_va): Update license wording to
21844         be more concise.  Recommended by Richard Stallman.
21845
21846 2007-03-22  Bruno Haible  <bruno@clisp.org>
21847
21848         * lib/poll.c (MSG_PEEK): New fallback definition.
21849
21850 2007-03-22  Bruno Haible  <bruno@clisp.org>
21851
21852         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
21853         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
21854         (main): Update.
21855         Fixes a compilation error on BeOS.
21856
21857 2007-03-22  Bruno Haible  <bruno@clisp.org>
21858
21859         * modules/frexpl-tests: New file.
21860         * tests/test-frexpl.c: New file.
21861
21862         * modules/frexpl: New file.
21863         * m4/frexpl.m4: New file.
21864         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
21865         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
21866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
21867         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
21868         (Depends-on): Add frexpl. Remove isnanl-nolibm.
21869         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
21870
21871 2007-03-22  Bruno Haible  <bruno@clisp.org>
21872
21873         * lib/frexpl.c: Share code with lib/frexp.c.
21874         * modules/mathl (Files): Add lib/frexp.c.
21875         (Depends-on): Add isnanl-nolibm.
21876
21877 2007-03-22  Bruno Haible  <bruno@clisp.org>
21878
21879         * modules/printf-frexp (Files): Add m4/frexp.m4.
21880         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
21881         only if the found frexp function actually works.
21882
21883 2007-03-22  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/frexp.c: Remove older implementation that uses divisions.
21886
21887 2007-03-21  Bruno Haible  <bruno@clisp.org>
21888
21889         * modules/frexp-tests: New file.
21890         * tests/test-frexp.c: New file.
21891
21892         * modules/frexp: New file.
21893         * lib/frexp.c: New file.
21894         * m4/frexp.m4: New file.
21895         * lib/math_.h (frexp): New declaration.
21896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
21897         REPLACE_FREXP.
21898         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
21899
21900 2007-03-21  Bruno Haible  <bruno@clisp.org>
21901
21902         * modules/isnanl-tests: New file.
21903         * tests/test-isnanl.c: New file.
21904
21905         * modules/isnanl: New file.
21906         * lib/isnanl.h: New file.
21907         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
21908         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
21909         gl_FUNC_ISNANL_WORKS.
21910         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
21911         New macros.
21912
21913 2007-03-21  Bruno Haible  <bruno@clisp.org>
21914
21915         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
21916         lib/isnanl.h.
21917         (Include): Update.
21918         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
21919         * lib/vasnprintf.c: Update.
21920         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
21921         tests/test-isnanl.h, remove tests/test-isnanl.c.
21922         (Makefile.am): Update.
21923         * tests/test-isnanl-nolibm.c: New file.
21924         * tests/test-isnanl.h: New file.
21925         * tests/test-isnanl.c: Remove file.
21926
21927 2007-03-21  Jim Meyering  <jim@meyering.net>
21928
21929         When trying to open ".", treat ESTALE like EACCES.
21930         * lib/savewd.c (savewd_save): Resort to forking not just upon
21931         failure with EACCES, but also when errno is ESTALE.
21932
21933 2007-03-20  Bruno Haible  <bruno@clisp.org>
21934
21935         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
21936         Needed on AIX 5.1. Reported by Matthew Woehlke.
21937
21938 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21939
21940         Suggestions by Bruno Haible:
21941         * lib/acl-internal.h: Include "gettext.h" rather than rolling
21942         our own.
21943         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
21944         * modules/acl (Depends-on): Add gettext.
21945
21946 2007-03-19  Bruno Haible  <bruno@clisp.org>
21947
21948         * modules/iconvme: Remove file.
21949         * lib/iconvme.h: Remove file.
21950         * lib/iconvme.c: Remove file.
21951         * m4/iconvme.m4: Remove file.
21952
21953 2007-03-19  Bruno Haible  <bruno@clisp.org>
21954
21955         * doc/relocatable-maint.texi: Break long shell script line.
21956         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21957
21958 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21959
21960         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
21961         handle file_has_acl.
21962         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
21963         * lib/acl.c: Move header inclusions and related macro defns into
21964         lib/acl-internal.h.
21965         (S_ISLNK): Remove defn, since that's now done for us.
21966         (file_has_acl): Move to lib/file-has-acl.c.
21967         Call acl_trivial if available.  This is the crucial part of the fix.
21968         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
21969         shared within the library.  Rewrite a bit, partly to make it compatible
21970         with the GNU coding style.
21971         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
21972         Remove unnecessary double-quotes.
21973         Don't test for acl_to_text; the build will catch that.
21974         Replace acl_entries if it doesn't exist and it is needed.
21975         Check for -lsec and acl_trivial (as used on Solaris 10).
21976         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
21977         lib/file-has-acl.c.
21978         (Depends-on): Add sys_stat, for S_ISLNK.
21979
21980 2007-03-19  Ben Pfaff  <blp@gnu.org>
21981
21982         * doc/gnulib.texi: Fix typos.
21983         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
21984
21985 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21986
21987         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
21988         If size is zero here, buf must be zero.
21989
21990 2007-03-19  Simon Josefsson  <simon@josefsson.org>
21991
21992         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
21993         <bruno@clisp.org>.
21994
21995 2007-03-18  Bruno Haible  <bruno@clisp.org>
21996
21997         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
21998         Suggested by Eric Blake.
21999
22000 2007-03-18  Ben Pfaff  <blp@gnu.org>
22001
22002         * doc/relocatable.texi: Recommend using as prefix a directory
22003         that does not exist and will never be created.  Based on
22004         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22005         and others.
22006
22007 2007-03-17  Bruno Haible  <bruno@clisp.org>
22008
22009         * lib/fchownat.c: Include lchown.h.
22010
22011 2007-03-17  Bruno Haible  <bruno@clisp.org>
22012
22013         Fix endless loop when the given allocated size was > INT_MAX.
22014         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22015         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22016         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22017         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22018         * lib/sprintf.c (sprintf): Likewise.
22019
22020 2007-03-17  Bruno Haible  <bruno@clisp.org>
22021
22022         * tests/test-argp-2.sh (func_compare): Output a context diff.
22023
22024 2007-03-17  Bruno Haible  <bruno@clisp.org>
22025
22026         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22027         locale's decimal-point character.
22028
22029 2007-03-17  Bruno Haible  <bruno@clisp.org>
22030
22031         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22032         before comparing it. Needed because on some platforms (e.g. x86) a
22033         'long double' occupies less bytes than sizeof (long double).
22034
22035 2007-03-17  Bruno Haible  <bruno@clisp.org>
22036
22037         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22038         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22039         * tests/test-getaddrinfo.c (simple): Likewise.
22040         * tests/test-read-file.c (main): Likewise.
22041
22042 2007-03-17  Bruno Haible  <bruno@clisp.org>
22043
22044         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22045
22046 2007-03-17  Bruno Haible  <bruno@clisp.org>
22047
22048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22049         unused variable.
22050
22051 2007-03-17  Bruno Haible  <bruno@clisp.org>
22052
22053         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22054         * tests/test-c-strncasecmp.c: Likewise.
22055
22056 2007-03-17  Bruno Haible  <bruno@clisp.org>
22057
22058         * modules/stdlib (Depends-on): Add unistd.
22059         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22060         Needed for MacOS X 10.3.
22061
22062 2007-03-17  Bruno Haible  <bruno@clisp.org>
22063
22064         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22065
22066 2007-03-17  Bruno Haible  <bruno@clisp.org>
22067
22068         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22069
22070 2007-03-17  Bruno Haible  <bruno@clisp.org>
22071
22072         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22073         to reflect files copied from gnulib (with or without modifications).
22074         Suggested by Jim Meyering.
22075
22076 2007-03-17  Eric Blake  <ebb9@byu.net>
22077
22078         * NEWS: Document stdlib change from 2007-02-18.
22079
22080 2007-03-17  Jim Meyering  <jim@meyering.net>
22081
22082         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22083         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22084         someone uses a name containing shell meta-characters.
22085         Reported by Alfred M. Szmidt.
22086
22087         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22088
22089 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22090
22091         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22092         and copy gettext configuration files only if configure.ac contains
22093         a use of AM_GNU_GETTEXT_VERSION.
22094
22095 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22096
22097         * build-aux/bootstrap (gnulib_name): New variable.
22098         (gnulib_tool_options): Use it.
22099
22100 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22101
22102         * tests/test-des.c: Use new namespace.
22103
22104 2007-03-15  Bruno Haible  <bruno@clisp.org>
22105
22106         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22107         Reported by James Youngman <jay@gnu.org>.
22108
22109 2007-03-15  Bruno Haible  <bruno@clisp.org>
22110
22111         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22112         declared prototype. Needed with cc on OSF/1 5.1.
22113
22114 2007-03-15  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22117         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22118         (struct gl_list_implementation): Add dispose_fn argument to the
22119         'create_empty', 'create' methods.
22120         (struct gl_list_impl_base): Add field 'dispose_fn'.
22121         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22122         argument.
22123         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22124         dispose_fn argument.
22125         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22126         dispose_fn on the dropped values.
22127         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22128         dispose_fn argument.
22129         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22130         dropped values.
22131         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22132         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22133         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22134         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22135         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22136         argument.
22137         (gl_tree_list_free): Call dispose_fn on the dropped values.
22138         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22139         the dropped values.
22140         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22141         Add dispose_fn argument.
22142         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22143         Call dispose_fn on the dropped values.
22144         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22145         Add dispose_fn argument.
22146         (gl_sublist_create): Initialize the 'dispose_fn' field.
22147         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22148         * tests/test-array_list.c (main): Update.
22149         * tests/test-carray_list.c (main): Update.
22150         * tests/test-avltree_list.c (main): Update.
22151         * tests/test-rbtree_list.c (main): Update.
22152         * tests/test-avltreehash_list.c (main): Update.
22153         * tests/test-rbtreehash_list.c (main): Update.
22154         * tests/test-linked_list.c (main): Update.
22155         * tests/test-linkedhash_list.c (main): Update.
22156         * tests/test-array_oset.c (main): Update.
22157
22158 2007-03-15  Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22161         (gl_oset_create_empty): Add dispose_fn argument.
22162         (struct gl_oset_implementation): Add dispose_fn argument to
22163         'create_empty' method.
22164         (struct gl_oset_impl_base): Add dispose_fn field.
22165         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22166         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22167         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22168         values.
22169         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22170         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22171         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22172         dropped value.
22173         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22174         dropped value.
22175         * tests/test-array_oset.c (main): Update.
22176         * tests/test-avltree_oset.c (main): Update.
22177         * tests/test-rbtree_oset.c (main): Update.
22178         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22179
22180 2007-03-13  Bruno Haible  <bruno@clisp.org>
22181
22182         * tests/test-stdbool.c (i): Update after last patch.
22183
22184 2007-03-12  Bruno Haible  <bruno@clisp.org>
22185
22186         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22187         the iswprint macro. Needed on Solaris 2.5.1.
22188
22189 2007-03-12  Bruno Haible  <bruno@clisp.org>
22190
22191         * tests/test-printf-frexp.c (main): Declare x as volatile.
22192
22193 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22194
22195         * doc/gnulib.texi (Build robot for gnulib): New section.
22196
22197 2007-03-12  Jim Meyering  <jim@meyering.net>
22198
22199         * build-aux/bootstrap: New file.
22200         * build-aux/bootstrap.conf: New file, from coreutils.
22201
22202 2007-03-11  Bruno Haible  <bruno@clisp.org>
22203
22204         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22205
22206 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22207
22208         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22209         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22210         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22211
22212 2007-03-11  Bruno Haible  <bruno@clisp.org>
22213
22214         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22215         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22216
22217 2007-03-11  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22220         formula. Needed for SunPRO C 5.0.
22221
22222 2007-03-11  Bruno Haible  <bruno@clisp.org>
22223
22224         * modules/long-options (Depends-on): Add getopt.
22225
22226 2007-03-11  Bruno Haible  <bruno@clisp.org>
22227
22228         * modules/modechange (Depends-on): Add stdbool.
22229
22230 2007-03-11  Bruno Haible  <bruno@clisp.org>
22231
22232         * modules/i-ring (Depends-on): Add stdbool.
22233
22234 2007-03-11  Bruno Haible  <bruno@clisp.org>
22235
22236         * modules/gc-des (Depends-on): Add stdbool.
22237
22238 2007-03-11  Bruno Haible  <bruno@clisp.org>
22239
22240         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22241
22242 2007-03-11  Bruno Haible  <bruno@clisp.org>
22243
22244         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22245
22246 2007-03-11  Bruno Haible  <bruno@clisp.org>
22247
22248         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22249
22250 2007-03-11  Bruno Haible  <bruno@clisp.org>
22251
22252         * lib/vasnprintf.c (sprintf): Undefine.
22253
22254 2007-03-11  Bruno Haible  <bruno@clisp.org>
22255
22256         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22257         initializers in SunPRO C and Compaq C compilers.
22258
22259 2007-03-11  Bruno Haible  <bruno@clisp.org>
22260
22261         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22262         decrementing code ANSI C compliant.
22263
22264 2007-03-11  Bruno Haible  <bruno@clisp.org>
22265
22266         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22267         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22268
22269 2007-03-11  Bruno Haible  <bruno@clisp.org>
22270
22271         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22272         <stdbool.h> substitute doesn't pass.
22273
22274 2007-03-11  Bruno Haible  <bruno@clisp.org>
22275
22276         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22277
22278 2007-03-11  Bruno Haible  <bruno@clisp.org>
22279
22280         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22281         script, for submission to autobuild.josefsson.org.
22282
22283 2007-03-10  Bruno Haible  <bruno@clisp.org>
22284
22285         * modules/canonicalize-lgpl-tests: New file.
22286         * tests/test-canonicalize-lgpl.sh: New file.
22287         * tests/test-canonicalize-lgpl.c: New file.
22288
22289         * modules/c-strcase-tests: New file.
22290         * tests/test-c-strcase.sh: New file.
22291         * tests/test-c-strcasecmp.c: New file.
22292         * tests/test-c-strncasecmp.c: New file.
22293
22294         * modules/atexit-tests: New file.
22295         * tests/test-atexit.sh: New file.
22296         * tests/test-atexit.c: New file.
22297
22298 2007-03-10  Bruno Haible  <bruno@clisp.org>
22299
22300         * tests/test-binary-io.sh: Use temporary filenames that are not so
22301         likely to clash with those of other tests (in a parallel make).
22302         * tests/test-binary-io.c: Likewise.
22303
22304 2007-03-10  Bruno Haible  <bruno@clisp.org>
22305
22306         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22307         fallback; use #error instead.
22308         Suggested by Simon Josefsson.
22309
22310 2007-03-10  Bruno Haible  <bruno@clisp.org>
22311
22312         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22313         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22314         first and the last.
22315
22316 2007-03-10  Bruno Haible  <bruno@clisp.org>
22317
22318         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22319
22320 2007-03-10  Bruno Haible  <bruno@clisp.org>
22321
22322         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22323         "make distcheck".
22324         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22325         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22326         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22327
22328 2007-03-10  Bruno Haible  <bruno@clisp.org>
22329
22330         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22331         variable.
22332         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22333         variable.
22334
22335 2007-03-09  Eric Blake  <ebb9@byu.net>
22336         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22337
22338         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22339         types are not being provided by gnulib.
22340         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22341         types are supported.
22342
22343 2007-03-10  Bruno Haible  <bruno@clisp.org>
22344
22345         * lib/stdio_.h (__attribute__): New macro.
22346         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22347         vsprintf): Specify __attribute__ __format__ for GCC.
22348         Suggested by Eric Blake.
22349
22350 2007-03-09  Bruno Haible  <bruno@clisp.org>
22351
22352         * modules/printf-posix-tests: New file.
22353         * tests/test-printf-posix.sh: New file.
22354         * tests/test-printf-posix.c: New file.
22355
22356         * modules/printf-posix: New file.
22357         * lib/printf.c: New file.
22358         * m4/printf-posix-rpl.m4: New file.
22359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22360         REPLACE_PRINTF.
22361         * lib/stdio_.h (printf): New declaration.
22362         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22363         ____strfmon____): New macros.
22364         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22365         REPLACE_PRINTF.
22366
22367 2007-03-09  Bruno Haible  <bruno@clisp.org>
22368
22369         * tests/test-vasnprintf-posix2.sh: New file.
22370         * tests/test-vasnprintf-posix2.c: New file.
22371         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22372         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22373         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22374
22375         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22376         a locale dependent decimal point, rather than always '.'.
22377
22378 2007-03-09  Eric Blake  <ebb9@byu.net>
22379
22380         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22381         spite of platforms like Tandem/NSK that define it to -1.
22382
22383 2007-03-08  Bruno Haible  <bruno@clisp.org>
22384
22385         * modules/vprintf-posix-tests: New file.
22386         * tests/test-vprintf-posix.sh: New file.
22387         * tests/test-vprintf-posix.c: New file.
22388         * tests/test-printf-posix.h: New file.
22389
22390         * modules/vprintf-posix: New file.
22391         * lib/vprintf.c: New file.
22392         * m4/vprintf-posix.m4: New file.
22393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22394         REPLACE_VPRINTF.
22395         * lib/stdio_.h (vprintf): New declaration.
22396         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22397         REPLACE_VPRINTF.
22398
22399 2007-03-08  Bruno Haible  <bruno@clisp.org>
22400
22401         * modules/fprintf-posix-tests: New file.
22402         * tests/test-fprintf-posix.sh: New file.
22403         * tests/test-fprintf-posix.c: New file.
22404
22405         * modules/fprintf-posix: New file.
22406         * lib/fprintf.c: New file.
22407         * m4/fprintf-posix.m4: New file.
22408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22409         REPLACE_FPRINTF.
22410         * lib/stdio_.h (fprintf): New declaration.
22411         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22412         REPLACE_FPRINTF.
22413
22414 2007-03-08  Bruno Haible  <bruno@clisp.org>
22415
22416         * modules/vfprintf-posix-tests: New file.
22417         * tests/test-vfprintf-posix.sh: New file.
22418         * tests/test-vfprintf-posix.c: New file.
22419         * tests/test-fprintf-posix.h: New file.
22420         * tests/test-fprintf-posix.out: New file.
22421
22422         * modules/vfprintf-posix: New file.
22423         * lib/vfprintf.c: New file.
22424         * m4/vfprintf-posix.m4: New file.
22425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22426         REPLACE_VFPRINTF.
22427         * lib/stdio_.h (vfprintf): New declaration.
22428         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22429         REPLACE_VFPRINTF.
22430
22431 2007-03-08  Bruno Haible  <bruno@clisp.org>
22432
22433         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22434
22435 2007-03-08  Bruno Haible  <bruno@clisp.org>
22436
22437         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22438         instead of 'expr' invocations.
22439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22442         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22443         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22444         Suggested by Paul Eggert.
22445
22446 2007-03-08  Bruno Haible  <bruno@clisp.org>
22447
22448         * modules/fseterr-tests: New file.
22449         * tests/test-fseterr.c: New file.
22450
22451         * modules/fseterr: New file.
22452         * lib/fseterr.h: New file.
22453         * lib/fseterr.c: New file.
22454
22455 2007-03-08  Bruno Haible  <bruno@clisp.org>
22456
22457         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22458         * lib/getopt_.h: Likewise.
22459         * lib/mbswidth.h: Likewise.
22460         * lib/setenv.h: Likewise.
22461         * lib/vasnprintf.h: Likewise.
22462         * lib/vasprintf.h: Likewise.
22463         * lib/verror.h: Likewise.
22464         * lib/xsetenv.h: Likewise.
22465         * lib/xvasprintf.h: Likewise.
22466
22467 2007-03-08  Jim Meyering  <jim@meyering.net>
22468
22469         * users.txt: Add parted.
22470
22471         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22472
22473 2007-03-07  Bruno Haible  <bruno@clisp.org>
22474
22475         * m4/printf.m4: Make the shell script snippets copy&pastable.
22476
22477 2007-03-02  Bruno Haible  <bruno@clisp.org>
22478
22479         * lib/netinet_in_.h: New file.
22480         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22481         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22482         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22483         (Depends-on): Add absolute-header.
22484         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22485         into netinet/in.h.
22486
22487 2007-03-03  Bruno Haible  <bruno@clisp.org>
22488
22489         * lib/sys_select_.h: New file.
22490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22491         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22492         * modules/sys_select (Files): Add lib/sys_select_.h.
22493         (Depends-on): Add absolute-header.
22494         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22495         into sys/select.h.
22496
22497 2007-03-02  Bruno Haible  <bruno@clisp.org>
22498
22499         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22500         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22501         values.
22502         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22503         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22504         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22505         * modules/sys_socket (Depends-on): Add absolute-header.
22506         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22507         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22508         (Include): Remove requirement of inclusion of <sys/types.h>.
22509
22510 2007-03-02  Bruno Haible  <bruno@clisp.org>
22511
22512         * lib/byteswap_.h (bswap_32): Fix formula.
22513
22514 2007-03-06  Bruno Haible  <bruno@clisp.org>
22515
22516         * modules/sprintf-posix-tests: New file.
22517         * tests/test-sprintf-posix.c: New file.
22518
22519         * modules/sprintf-posix: New file.
22520         * lib/sprintf.c: New file.
22521         * m4/sprintf-posix.m4: New file.
22522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22523         REPLACE_SPRINTF.
22524         * lib/stdio_.h (sprintf): New declaration.
22525         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22526         REPLACE_SPRINTF.
22527
22528 2007-03-06  Bruno Haible  <bruno@clisp.org>
22529
22530         * modules/vsprintf-posix-tests: New file.
22531         * tests/test-vsprintf-posix.c: New file.
22532         * tests/test-sprintf-posix.h: New file.
22533
22534         * modules/vsprintf-posix: New file.
22535         * lib/vsprintf.c: New file.
22536         * m4/vsprintf-posix.m4: New file.
22537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22538         REPLACE_VSPRINTF.
22539         * lib/stdio_.h (vsprintf): New declaration.
22540         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22541         REPLACE_VSPRINTF.
22542
22543 2007-03-06  Bruno Haible  <bruno@clisp.org>
22544
22545         * modules/vsnprintf (Depend-on): Remove minmax.
22546
22547 2007-03-06  Bruno Haible  <bruno@clisp.org>
22548
22549         * modules/snprintf-posix-tests: New file.
22550         * tests/test-snprintf-posix.c: New file.
22551
22552         * modules/snprintf-posix: New file.
22553         * m4/snprintf-posix.m4: New file.
22554         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22555         gl_FUNC_SNPRINTF.
22556         (gl_FUNC_SNPRINTF): Invoke it.
22557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22558         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22559         is set.
22560         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22561
22562 2007-03-06  Bruno Haible  <bruno@clisp.org>
22563
22564         * modules/vsnprintf-posix-tests: New file.
22565         * tests/test-vsnprintf-posix.c: New file.
22566         * tests/test-snprintf-posix.h: New file.
22567
22568         * modules/vsnprintf-posix: New file.
22569         * m4/vsnprintf-posix.m4: New file.
22570         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22571         gl_FUNC_VSNPRINTF.
22572         (gl_FUNC_VSNPRINTF): Invoke it.
22573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22574         * lib/stdio_.h (vsnprintf): Define as a replacement if
22575         REPLACE_VSNPRINTF is set.
22576         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22577
22578 2007-03-06  Bruno Haible  <bruno@clisp.org>
22579
22580         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22582
22583 2007-03-06  Bruno Haible  <bruno@clisp.org>
22584
22585         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22586         (asinl): Declare also if HAVE_DECL_ASINL is set.
22587         (atanl): Declare also if HAVE_DECL_ATANL is set.
22588         (ceill): Declare also if HAVE_DECL_CEILL is set.
22589         (cosl): Declare also if HAVE_DECL_COSL is set.
22590         (expl): Declare also if HAVE_DECL_EXPL is set.
22591         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22592         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22593         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22594         (logl): Declare also if HAVE_DECL_LOGL is set.
22595         (sinl): Declare also if HAVE_DECL_SINL is set.
22596         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22597         (tanl): Declare also if HAVE_DECL_TANL is set.
22598         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22600         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22601         declaration of frexpl, ldexpl.
22602         * modules/printf-frexpl (Depends-on): Add math.
22603         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22604
22605 2007-03-05  Bruno Haible  <bruno@clisp.org>
22606
22607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22608         frexpl and ldexpl are declared.
22609         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22610
22611 2007-03-05  Bruno Haible  <bruno@clisp.org>
22612
22613         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22614         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22615
22616 2007-03-05  Bruno Haible  <bruno@clisp.org>
22617
22618         * lib/stdio_.h: Include <stddef.h>.
22619
22620 2007-03-05  Bruno Haible  <bruno@clisp.org>
22621
22622         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22623
22624 2007-03-05  Bruno Haible  <bruno@clisp.org>
22625
22626         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22627         NetBSD 4, from Ralf Wildenhues.
22628
22629 2007-03-04  Bruno Haible  <bruno@clisp.org>
22630
22631         * lib/vasprintf.h: Update #if logic for the case when the functions
22632         exist but are overridden.
22633
22634 2007-03-04  Bruno Haible  <bruno@clisp.org>
22635
22636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22637         implementations: glibc-2.4 and MacOS X 10.3.
22638         * tests/test-vasnprintf-posix.c (test_function): Test also the case
22639         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22640         * tests/test-vasprintf-posix.c (test_function): Likewise.
22641
22642 2007-03-04  Bruno Haible  <bruno@clisp.org>
22643
22644         * modules/vasprintf-posix-tests: New file.
22645         * tests/test-vasprintf-posix.c: New file.
22646
22647         * modules/vasprintf-posix: New file.
22648         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22649         defined.
22650         * m4/vasprintf-posix.m4: New file.
22651         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22652         gl_FUNC_VASPRINTF.
22653         (gl_FUNC_VASPRINTF): Invoke it.
22654         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22655         here.
22656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22657
22658 2007-03-04  Bruno Haible  <bruno@clisp.org>
22659
22660         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22661         REPLACE_GETTIMEOFDAY.
22662         * modules/sys_time (Makefile.am): Likewise.
22663         * m4/sys_time_h.m4: Likewise.
22664         * m4/gettimeofday.m4: Likewise.
22665
22666 2007-03-04  Bruno Haible  <bruno@clisp.org>
22667
22668         * modules/vasnprintf-posix-tests: New file.
22669         * tests/test-vasnprintf-posix.c: New file.
22670
22671         * modules/vasnprintf-posix: New file.
22672         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22673         printf-frexpl.h.
22674         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22675         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22676         REPLACE_VASNPRINTF is defined.
22677         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22678         gl_FUNC_VASNPRINTF.
22679         (gl_FUNC_VASNPRINTF): Invoke it.
22680         * m4/vasnprintf-posix.m4: New file.
22681         * m4/printf.m4: New file.
22682
22683 2007-03-04  Bruno Haible  <bruno@clisp.org>
22684
22685         Compile progreloc.c only if --enable-relocatable is specified.
22686         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22687         if --enable-relocatable was specified.
22688         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22689         lib_SOURCES.
22690
22691 2007-03-04  Jim Meyering  <jim@meyering.net>
22692
22693         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22694         Use it consistently, rather than enumerating errno constants.
22695
22696 2007-03-04  Bruno Haible  <bruno@clisp.org>
22697
22698         * modules/xvasprintf-tests: New file.
22699         * tests/test-xvasprintf.c: New file.
22700
22701         * modules/vasprintf-tests: New file.
22702         * tests/test-vasprintf.c: New file.
22703
22704         * modules/vasnprintf-tests: New file.
22705         * tests/test-vasnprintf.c: New file.
22706
22707         * modules/vsnprintf-tests: New file.
22708         * tests/test-vsnprintf.c: New file.
22709
22710         * modules/snprintf-tests: New file.
22711         * tests/test-snprintf.c: New file.
22712
22713 2007-03-04  Bruno Haible  <bruno@clisp.org>
22714
22715         Compile relocatable.c only if --enable-relocatable is specified.
22716         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22717         gl_RELOCATABLE_LIBRARY.
22718         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22719         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22720         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22721         gl_RELOCATABLE_LIBRARY.
22722         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22723         (Makefile.am): Remove lib_SOURCES.
22724         * modules/relocatable-lib-lgpl (configure.ac): Invoke
22725         gl_RELOCATABLE_LIBRARY.
22726         (Makefile.am): Remove lib_SOURCES.
22727         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22728         always.
22729         * modules/relocatable-prog-wrapper (configure.ac): Invoke
22730         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22731
22732 2007-03-04  Bruno Haible  <bruno@clisp.org>
22733
22734         * modules/argmatch-tests: New file.
22735         * tests/test-argmatch.c: New file.
22736
22737         * tests/test-allocsa.c (main): Halve the number of loop runs.
22738
22739         * modules/alloca-opt-tests: New file.
22740         * tests/test-alloca-opt.c: New file.
22741
22742 2007-03-04  Jim Meyering  <jim@meyering.net>
22743
22744         Work around difference between Linux ACLs and Solaris 10 ZFS.
22745         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
22746         for EINVAL.
22747
22748 2007-03-03  Bruno Haible  <bruno@clisp.org>
22749
22750         * modules/relocatable-prog (Depends-on): Add back progreloc's
22751         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
22752
22753 2007-03-03  Bruno Haible  <bruno@clisp.org>
22754
22755         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
22756         * modules/relocatable-lib: New file.
22757
22758 2007-03-03  Bruno Haible  <bruno@clisp.org>
22759
22760         * modules/relocatable-prog: Renamed from modules/relocatable.
22761         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
22762
22763 2007-03-03  Bruno Haible  <bruno@clisp.org>
22764
22765         * modules/relocatable-script (Files): Add doc/relocatable.texi,
22766         m4/relocatable-lib.m4.
22767         (Depends-on): Remove 'relocatable'.
22768         (configure.ac): Add gl_RELOCATABLE_NOP.
22769
22770 2007-03-03  Bruno Haible  <bruno@clisp.org>
22771
22772         * modules/relocatable-prog-wrapper: New file.
22773         * modules/relocatable (Depends-on): Add it. Remove all other
22774         dependencies except progname.
22775         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
22776
22777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
22778         (gl_FUNC_STRERROR): Nop.
22779         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
22780
22781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
22782         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
22783
22784         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
22785         (gl_FUNC_READLINK): Update.
22786
22787         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
22788
22789 2007-03-03  Bruno Haible  <bruno@clisp.org>
22790
22791         * lib/xreadlink.c: Include <unistd.h> unconditionally.
22792         * modules/xreadlink (Depends-on): Add unistd.
22793         * modules/xreadlink-with-size (Depends-on): Likewise.
22794
22795 2007-03-03  Bruno Haible  <bruno@clisp.org>
22796
22797         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
22798         extracted from gt_FUNC_SETENV.
22799         (gt_FUNC_SETENV): Remove macro.
22800         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
22801         remove gt_FUNC_SETENV.
22802
22803 2007-03-03  Bruno Haible  <bruno@clisp.org>
22804
22805         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
22806         ENABLE_RELOCATABLE here.
22807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
22808
22809 2007-03-03  Bruno Haible  <bruno@clisp.org>
22810
22811         * modules/rbtreehash-list-tests (Depends-on): Add progname.
22812         * tests/test-rbtreehash_list.c: Include progname.h.
22813         (main): Call set_program_name.
22814
22815         * modules/rbtree-oset-tests (Depends-on): Add progname.
22816         * tests/test-rbtree_oset.c: Include progname.h.
22817         (main): Call set_program_name.
22818
22819         * modules/rbtree-list-tests (Depends-on): Add progname.
22820         * tests/test-rbtree_list.c: Include progname.h.
22821         (main): Call set_program_name.
22822
22823         * modules/linked-list-tests (Depends-on): Add progname.
22824         * tests/test-linked_list.c: Include progname.h.
22825         (main): Call set_program_name.
22826
22827 2007-03-03  Bruno Haible  <bruno@clisp.org>
22828
22829         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
22830         All uses of __restrict changed to _Restrict_.
22831         * lib/glob_.h (__restrict): Remove macro.
22832
22833 2007-03-02  Bruno Haible  <bruno@clisp.org>
22834
22835         * modules/gettext (configure.ac): Require gettext infrastructure
22836         from version 0.16.1.
22837
22838 2007-03-02  Bruno Haible  <bruno@clisp.org>
22839
22840         * modules/linkedhash-list-tests (Depends-on): Add progname.
22841         * tests/test-linkedhash_list.c: Include progname.h.
22842         (main): Call set_program_name.
22843
22844         * modules/carray-list-tests (Depends-on): Add progname.
22845         * tests/test-carray_list.c: Include progname.h.
22846         (main): Call set_program_name.
22847
22848         * modules/avltreehash-list-tests (Depends-on): Add progname.
22849         * tests/test-avltreehash_list.c: Include progname.h.
22850         (main): Call set_program_name.
22851
22852         * modules/avltree-oset-tests (Depends-on): Add progname.
22853         * tests/test-avltree_oset.c: Include progname.h.
22854         (main): Call set_program_name.
22855
22856         * modules/avltree-list-tests (Depends-on): Add progname.
22857         * tests/test-avltree_list.c: Include progname.h.
22858         (main): Call set_program_name.
22859
22860         * modules/array-oset-tests (Depends-on): Add progname.
22861         * tests/test-array_oset.c: Include progname.h.
22862         (main): Call set_program_name.
22863
22864         * modules/array-list-tests (Depends-on): Add progname.
22865         * tests/test-array_list.c: Include progname.h.
22866         (main): Call set_program_name.
22867
22868         * modules/argp-tests (Depends-on): Add progname.
22869         * tests/test-argp.c: Include argp.h first. Include progname.h.
22870         (main): Call set_program_name.
22871
22872 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
22873
22874         * doc/gnulib-tool.texi (Initial import): Reword description of
22875         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
22876         limited effect even if defined after the first system include.
22877
22878 2007-03-01  Bruno Haible  <bruno@clisp.org>
22879
22880         * build-aux/config.libpath: Update to libtool-1.5.22.
22881         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22882
22883 2007-03-01  Bruno Haible  <bruno@clisp.org>
22884
22885         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
22886         foo_CFLAGS.
22887         Reported by Ralf Wildenhues.
22888
22889 2007-03-01  Bruno Haible  <bruno@clisp.org>
22890
22891         * build-aux/install-reloc: Remove object files left over by some
22892         compilers.
22893         Reported by Ralf Wildenhues.
22894
22895 2007-03-01  Bruno Haible  <bruno@clisp.org>
22896
22897         * build-aux/install-reloc: Break long lines.
22898
22899 2007-03-01  Bruno Haible  <bruno@clisp.org>
22900
22901         * doc/relocatable.texi: Document that it may not work on OpenBSD.
22902         Reported by Ralf Wildenhues.
22903
22904 2007-03-01  Bruno Haible  <bruno@clisp.org>
22905
22906         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
22907         include ordering constraints.
22908
22909 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22910
22911         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
22912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
22913         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
22914         as another example.
22915         * lib/time_.h: Fix misspelling.
22916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22917         Require gl_HEADER_TIME_H_DEFAULTS.
22918         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
22919         * m4/time_r.m4 (gl_TIME_R): Likewise.
22920         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
22921
22922 2007-03-01  Bruno Haible  <bruno@clisp.org>
22923
22924         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
22925         * m4/utimens.m4 (gl_UTIMENS): Likewise.
22926
22927 2007-03-01  Jim Meyering  <jim@meyering.net>
22928
22929         * modules/xreadlink (Maintainer): Add my name.
22930         * modules/xreadlink-with-size (Depends-on): Alphabetize.
22931
22932 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
22933             Bruno Haible  <bruno@clisp.org>
22934
22935         * build-aux/install-reloc: Compile also c-ctype.c.
22936         * build-aux/relocatable.sh.in: New file.
22937         * doc/relocatable.texi: New file.
22938         * doc/relocatable-maint.texi: New file.
22939         * doc/gnulib.texi: Include relocatable-maint.texi.
22940         * lib/progreloc.c: Include unistd.h unconditionally.
22941         * lib/relocwrapper.c: Include unistd.h unconditionally.
22942         Include c-ctype.h.
22943         (add_dotbin): Use c_tolower.
22944         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
22945         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
22946         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
22947         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
22948         to m4/relocatable-lib.m4.
22949         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
22950         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
22951         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
22952         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
22953         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
22954         * modules/relocatable: New file.
22955         * modules/relocatable-lib: New file.
22956         * modules/relocatable-script: New file.
22957
22958 2007-02-28  Bruno Haible  <bruno@clisp.org>
22959
22960         Import --enable-relocatable infrastructure.
22961         * build-aux/config.libpath: New file, from GNU gettext.
22962         * build-aux/install-reloc: New file, from GNU gettext.
22963         * build-aux/reloc-ldflags: New file, from GNU gettext.
22964         * lib/relocatable.h: New file, from GNU gettext.
22965         * lib/relocatable.c: New file, from GNU gettext.
22966         * lib/relocwrapper.c: New file, from GNU gettext.
22967         * m4/relocatable.m4: New file, from GNU gettext.
22968
22969 2007-02-28  Bruno Haible  <bruno@clisp.org>
22970
22971         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
22972
22973         * modules/xreadlink: New file, from GNU gettext with modifications.
22974         * lib/xreadlink.c: New file, from GNU gettext.
22975         * lib/xreadlink.h: Add comments.
22976         (xreadlink): New declaration.
22977
22978         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
22979         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
22980         lib/xreadlink-with-size.c.
22981         (configure.ac): Remove gl_XREADLINK invocation.
22982         (Makefile.am): Augment lib_SOURCES.
22983         * m4/xreadlink.m4: Remove file.
22984         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
22985         (xreadlink_with_size): Renamed from xreadink.
22986         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
22987         * modules/canonicalize (Depends-on): Replace xreadlink with
22988         xreadlink-with-size.
22989         * lib/canonicalize.c (canonicalize_filename_mode): Update.
22990
22991 2007-02-25  Jim Meyering  <jim@meyering.net>
22992
22993         * build-aux/announce-gen: When complaining about excess arguments,
22994         list them.
22995
22996 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22997
22998         * README: Document signed integer overflow situation more
22999         accurately.
23000
23001 2007-02-25  Bruno Haible  <bruno@clisp.org>
23002
23003         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23004         'a' or 'A' conversion.
23005
23006 2007-02-25  Bruno Haible  <bruno@clisp.org>
23007
23008         * modules/filename: Renamed from modules/pathname.
23009         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23010         lib/concatpath.c with lib/concat-filename.c.
23011         (Makefile.am): Update.
23012         (Include): Replace pathname.h with filename.h.
23013         * lib/filename.h: Renamed from lib/pathname.h.
23014         (concatenated_filename): Renamed from concatenated_pathname.
23015         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23016         (concatenated_filename): Renamed from concatenated_pathname.
23017         * lib/findprog.c: Include filename.h instead of pathname.h.
23018         (find_in_path): Update.
23019         * lib/javacomp.c: Include filename.h instead of pathname.h.
23020         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23021         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23022         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23023         is_oldgcj_14_13_usable, is_javac_usable): Update.
23024         * lib/javaexec.c: Include filename.h instead of pathname.h.
23025         (execute_java_class): Update.
23026         * modules/findprog: Update.
23027         * modules/javacomp: Update.
23028         * modules/javaexec: Update.
23029         * MODULES.html.sh (File system functions): Add 'filename', remove
23030         'pathname'.
23031
23032 2007-02-25  Bruno Haible  <bruno@clisp.org>
23033
23034         * modules/printf-frexpl-tests: New file.
23035         * tests/test-printf-frexpl.c: New file.
23036
23037         * modules/printf-frexpl: New file.
23038         * lib/printf-frexpl.h: New file.
23039         * lib/printf-frexpl.c: New file.
23040         * m4/printf-frexpl.m4: New file.
23041
23042 2007-02-25  Bruno Haible  <bruno@clisp.org>
23043
23044         * modules/printf-frexp-tests: New file.
23045         * tests/test-printf-frexp.c: New file.
23046
23047         * modules/printf-frexp: New file.
23048         * lib/printf-frexp.h: New file.
23049         * lib/printf-frexp.c: New file.
23050         * m4/printf-frexp.m4: New file.
23051
23052 2007-02-25  Bruno Haible  <bruno@clisp.org>
23053
23054         Assume automake >= 1.10 for the tests.
23055         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23056         * modules/arctwo-tests: Likewise.
23057         * modules/argp-tests: Likewise.
23058         * modules/avltree-list-tests: Likewise.
23059         * modules/avltree-oset-tests: Likewise.
23060         * modules/avltreehash-list-tests: Likewise.
23061         * modules/carray-list-tests: Likewise.
23062         * modules/crc-tests: Likewise.
23063         * modules/des-tests: Likewise.
23064         * modules/gc-arcfour-tests: Likewise.
23065         * modules/gc-arctwo-tests: Likewise.
23066         * modules/gc-des-tests: Likewise.
23067         * modules/gc-hmac-md5-tests: Likewise.
23068         * modules/gc-hmac-sha1-tests: Likewise.
23069         * modules/gc-md2-tests: Likewise.
23070         * modules/gc-md4-tests: Likewise.
23071         * modules/gc-md5-tests: Likewise.
23072         * modules/gc-pbkdf2-sha1-tests: Likewise.
23073         * modules/gc-rijndael-tests: Likewise.
23074         * modules/gc-sha1-tests: Likewise.
23075         * modules/gc-tests: Likewise.
23076         * modules/getaddrinfo-tests: Likewise.
23077         * modules/hmac-md5-tests: Likewise.
23078         * modules/hmac-sha1-tests: Likewise.
23079         * modules/linked-list-tests: Likewise.
23080         * modules/linkedhash-list-tests: Likewise.
23081         * modules/lock-tests: Likewise.
23082         * modules/md2-tests: Likewise.
23083         * modules/md4-tests: Likewise.
23084         * modules/md5-tests: Likewise.
23085         * modules/rbtree-list-tests: Likewise.
23086         * modules/rbtree-oset-tests: Likewise.
23087         * modules/rbtreehash-list-tests: Likewise.
23088         * modules/read-file-tests: Likewise.
23089         * modules/rijndael-tests: Likewise.
23090         * modules/stdint-tests: Likewise.
23091         * modules/tls-tests: Likewise.
23092
23093 2007-02-24  Bruno Haible  <bruno@clisp.org>
23094
23095         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23096         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23097         function; instead check whether isnan with a double argument links.
23098         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23099         function; instead check whether isnan with a 'long double' argument
23100         links.
23101         Reported by Eric Blake <ebb9@byu.net>.
23102
23103 2007-02-24  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23106         defined.
23107         * lib/isnanl.c: Remove all code. Just include isnan.c.
23108         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23109
23110 2007-02-25  Jim Meyering  <jim@meyering.net>
23111
23112         Avoid conflicting types for 'unsetenv' on FreeBSD.
23113         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23114         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23115         in stdlib.h.
23116
23117 2007-02-24  Bruno Haible  <bruno@clisp.org>
23118
23119         * modules/isnanl-nolibm-tests: New file.
23120         * tests/test-isnanl.c: New file.
23121
23122         * modules/isnanl-nolibm: New file.
23123         * lib/isnanl.h: New file.
23124         * lib/isnanl.c: New file.
23125         * m4/isnanl.m4: New file.
23126
23127 2007-02-24  Bruno Haible  <bruno@clisp.org>
23128
23129         * modules/isnan-nolibm-tests: New file.
23130         * tests/test-isnan.c: New file.
23131
23132         * modules/isnan-nolibm: New file.
23133         * lib/isnan.h: New file.
23134         * lib/isnan.c: New file.
23135         * m4/isnan.m4: New file.
23136
23137 2007-02-24  Bruno Haible  <bruno@clisp.org>
23138
23139         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23140         assume that an exponent fits in 20 bits.
23141
23142 2007-02-24  Jim Meyering  <jim@meyering.net>
23143
23144         * m4/regex.m4: Update the description of the configure-time option,
23145         --without-included-regex, to state accurately what the defaults are,
23146         and perhaps to give people an idea why using this option is risky.
23147
23148 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23149
23150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23151         loops on small arguments.  This attempts to avoid the problem
23152         Bruno Haible reported for AIX 4.3.2 in
23153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23154
23155 2007-02-23  Bruno Haible  <bruno@clisp.org>
23156
23157         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23158         Needed for help2man.
23159
23160 2007-02-23  Karl Berry  <karl@gnu.org>
23161
23162         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23163         exists, foo.h should be cvs-ignored, not committed.
23164
23165 2007-02-23  Eric Blake  <ebb9@byu.net>
23166
23167         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23168         * lib/stat-time.h (includes): Likewise.
23169         * lib/utimecmp.c (includes): Likewise.
23170         * lib/utimens.h (includes): Likewise.
23171         * lib/getdate.y (includes): Also include "timespec.h" for use
23172         internal to the module.
23173         * modules/utimens (Depends-on): Revert yesterday's patch.
23174         * modules/nanosleep (Depends-on): Add missing dependency.
23175
23176 2007-02-22  Bruno Haible  <bruno@clisp.org>
23177
23178         * lib/glob.c: Don't include getlogin_r.h.
23179
23180 2007-02-22  Jim Meyering  <jim@meyering.net>
23181
23182         * modules/utimens (Depends-on): Add timespec, required for
23183         utimens.h's inclusion of timespec.h.
23184
23185 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23186
23187         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23188         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23189         Schwab in
23190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23191         I'll try to think of a better way to fix the Solaris problem.
23192
23193         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23194         like glibc; on Solaris 10, it fails with errno == EINVAL.
23195         POSIX says the behavior is unspecified if the first argument is NULL,
23196         so play it safe and never pass NULL to the system getcwd.
23197
23198 2007-02-21  Jim Meyering  <jim@meyering.net>
23199
23200         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23201         of gettimeofday.  It would conflict with the one now always
23202         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23203         an IRIX 6.5 build failure.
23204
23205 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23206
23207         Minor fixups to port to Solaris 10 with Sun C 5.8.
23208         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23209         * modules/getcwd (Depends-on): Add dirfd.
23210         * lib/putenv.c (putenv): #undef it.
23211         (rpl_putenv): New decl.
23212         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23213
23214 2007-02-20  Bruno Haible  <bruno@clisp.org>
23215
23216         * modules/stdio-tests: New file.
23217         * tests/test-stdio.c: New file.
23218
23219         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23220         (Depends-on): Add stdio.
23221         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23222         (Include): Use <stdio.h> instead of vsnprintf.h.
23223         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23224         HAVE_DECL_VSNPRINTF.
23225         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23226
23227         * modules/snprintf (Files): Remove lib/snprintf.h.
23228         (Depends-on): Add stdio.
23229         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23230         (Include): Use <stdio.h> instead of snprintf.h.
23231         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23232         HAVE_DECL_SNPRINTF.
23233         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23234         * lib/getaddrinfo.c: Likewise.
23235
23236         * modules/stdio: New file.
23237         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23238         * lib/snprintf.h: Remove file.
23239         * lib/vsnprintf.h: Remove file.
23240         * lib/.cppi-disable: Remove snprintf.h.
23241         * m4/stdio_h.m4: New file.
23242         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23243
23244 2007-02-20  Jim Meyering  <jim@meyering.net>
23245
23246         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23247         used by e.g., mingw.  From Bruno Haible.
23248
23249 2007-02-19  Bruno Haible  <bruno@clisp.org>
23250
23251         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23252         warnings.
23253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23254
23255 2007-02-19  Bruno Haible  <bruno@clisp.org>
23256
23257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23258         from mingw users.
23259
23260 2007-02-19  Bruno Haible  <bruno@clisp.org>
23261
23262         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23263         warnings.
23264         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23265
23266 2007-02-19  Jim Meyering  <jim@meyering.net>
23267
23268         Don't use FD after a successful "fdopendir (fd)".
23269         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23270         Reset it by calling dirfd on the just-obtained DIR*.
23271
23272         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23273         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23274
23275 2007-02-18  Bruno Haible  <bruno@clisp.org>
23276
23277         * lib/readlink.c: Include <unistd.h>.
23278         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23279         HAVE_READLINK.
23280         * modules/readlink (Depends-on): Add unistd.
23281         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23282         (Include): Add <unistd.h>.
23283
23284         * lib/getlogin_r.h: Remove file.
23285         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23286         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23287         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23288         HAVE_DECL_GETLOGIN_R.
23289         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23291         (Include): Use <unistd.h> instead of getlogin_r.h.
23292
23293         * lib/getcwd.h: Remove file.
23294         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23295         * lib/xgetcwd.c: Likewise.
23296         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23297         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23298         * modules/getcwd (Files): Remove lib/getcwd.h.
23299         (Depends-on): Add unistd.
23300         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23301         (Include): Use <unistd.h> instad of getcwd.h.
23302
23303         * lib/ftruncate.c: Include <unistd.h> first.
23304         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23305         Set HAVE_FTRUNCATE.
23306         * modules/ftruncate (Depends-on): Add unistd.
23307         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23308
23309         * lib/fchdir.c: Include <unistd.h> first.
23310         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23312         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23313         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23314         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23315
23316         * lib/dup2.c: Include <unistd.h> first.
23317         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23318         HAVE_DUP2.
23319         * modules/dup2 (Depends-on): Add unistd.
23320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23321
23322         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23323         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23324         REPLACE_CHOWN. Don't define chown as a macro here.
23325         * modules/chown (Depends-on): Add unistd.
23326         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23327
23328         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23329         Add definition for GL_LINK_WARNING.
23330         (chown, dup2): New declarations.
23331         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23332         link warning.
23333         (ftruncate): New declaration.
23334         (getcwd): New declaration, taken from old getcwd.h.
23335         (getlogin_r): New declaration, taken from old getlogin_r.h.
23336         (readlink): New declaration.
23337         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23338         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23339         (gl_PREREQ_UNISTD): Remove macro.
23340         (gl_UNISTD_MODULE_INDICATOR): New macro.
23341         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23342         many new variables. Don't set UNISTD_H.
23343         * modules/unistd (Description): Change.
23344         (Depends-on): Add link-warning.
23345         (configure.ac): Update.
23346         (Makefile.am): Create unistd.h always. Substitute many new variables
23347         into it.
23348
23349 2007-02-18  Bruno Haible  <bruno@clisp.org>
23350
23351         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23352         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23353         HAVE_GETSUBOPT.
23354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23355         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23356         * lib/getsubopt.h: Remove file.
23357         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23358         (Depends-on): Add stdlib.
23359         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23360         (Includes): Use <stdlib.h> instead of getsubopt.h.
23361         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23362         Set HAVE_GETSUBOPT.
23363         * lib/getsubopt.c: Don't include getsubopt.h.
23364
23365 2007-02-18  Bruno Haible  <bruno@clisp.org>
23366
23367         * modules/fchdir (Depends-on): Add dup2.
23368
23369 2007-02-18  Bruno Haible  <bruno@clisp.org>
23370
23371         * lib/stdlib_.h: Handle glibc's special invocation convention
23372         specially.
23373
23374 2007-02-18  Bruno Haible  <bruno@clisp.org>
23375
23376         * modules/stdlib-tests: New file.
23377         * tests/test-stdlib.c: New file.
23378
23379         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23380         (Depends-on): Add stdlib.
23381         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23382         (Includes): Use <stdlib.h> instead of mkstemp.h.
23383         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23384         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23385         * lib/mkstemp.c: Don't include mkstemp.h.
23386         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23387         * lib/stdlib--.h: Don't include mkstemp.h.
23388
23389         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23390         (Depends-on): Add stdlib.
23391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23392         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23393         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23394         HAVE_MKDTEMP.
23395         * lib/mkdtemp.c: Don't include mkdtemp.h.
23396         * lib/clean-temp.c: Don't include mkdtemp.h.
23397
23398         * modules/exit (Files): Remove lib/exit.h.
23399         (Depends-on): Add stdlib.
23400         (Makefile.am): Remove lib_SOURCES.
23401         (Include): Use <stdlib.h> instead of exit.h.
23402         * lib/argmatch.c: Don't include exit.h.
23403         * lib/execute.c: Likewise.
23404         * lib/pagealign_alloc.c: Likewise.
23405         * lib/pipe.c: Likewise.
23406         * lib/wait-process.c: Likewise.
23407         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23408         * lib/exitfail.c: Likewise.
23409         * lib/savewd.c: Likewise.
23410         * lib/xsetenv.c: Likewise.
23411
23412         * modules/stdlib: New file.
23413         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23414         and extra comments about mkstemp().
23415         * lib/exit.h: Remove file.
23416         * lib/mkdtemp.h: Remove file.
23417         * lib/mkstemp.h: Remove file.
23418         * m4/stdlib_h.m4: New file.
23419         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23420
23421 2007-02-18  Bruno Haible  <bruno@clisp.org>
23422
23423         * modules/math-tests: New file.
23424         * tests/test-math.c: New file.
23425
23426         * modules/math: New file.
23427         * modules/mathl (Files): Remove lib/mathl.h.
23428         (Depends-on): Add math.
23429         (Makefile.am): Don't mention mathl.h.
23430         (Include): Use <math.h> instead of mathl.h.
23431         * lib/math_.h: New file.
23432         * lib/mathl.h: Remove file.
23433         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23434         mathl.h.
23435         * lib/asinl.c: Likewise.
23436         * lib/atanl.c: Likewise.
23437         * lib/ceill.c: Likewise.
23438         * lib/cosl.c: Likewise.
23439         * lib/expl.c: Likewise.
23440         * lib/floorl.c: Likewise.
23441         * lib/frexpl.c: Likewise.
23442         * lib/ldexpl.c: Likewise.
23443         * lib/logl.c: Likewise.
23444         * lib/sincosl.c: Likewise.
23445         * lib/sinl.c: Likewise.
23446         * lib/sqrtl.c: Likewise.
23447         * lib/tanl.c: Likewise.
23448         * lib/trigl.c: Likewise.
23449         * m4/math_h.m4: New file.
23450         * MODULES.html.sh (Mathematics): Add math.
23451
23452 2007-02-17  Bruno Haible  <bruno@clisp.org>
23453
23454         * modules/wctype-tests: New file.
23455         * tests/test-wctype.c: New file.
23456
23457         * modules/wchar-tests: New file.
23458         * tests/test-wchar.c: New file.
23459
23460         * modules/unistd-tests: New file.
23461         * tests/test-unistd.c: New file.
23462
23463         * modules/time-tests: New file.
23464         * tests/test-time.c: New file.
23465
23466         * modules/sysexits-tests: New file.
23467         * tests/test-sysexits.c: New file.
23468
23469         * modules/sys_time-tests: New file.
23470         * tests/test-sys_time.c: New file.
23471
23472         * modules/sys_stat-tests: New file.
23473         * tests/test-sys_stat.c: New file.
23474
23475         * modules/sys_socket-tests: New file.
23476         * tests/test-sys_socket.c: New file.
23477
23478         * modules/sys_select-tests: New file.
23479         * tests/test-sys_select.c: New file.
23480
23481         * modules/string-tests: New file.
23482         * tests/test-string.c: New file.
23483
23484         * modules/stdbool-tests: New file.
23485         * tests/test-stdbool.c: New file.
23486
23487         * modules/netinet_in-tests: New file.
23488         * tests/test-netinet_in.c: New file.
23489
23490         * modules/inttypes-tests: New file.
23491         * tests/test-inttypes.c: New file.
23492
23493         * modules/fcntl-tests: New file.
23494         * tests/test-fcntl.c: New file.
23495
23496         * modules/byteswap-tests: New file.
23497         * tests/test-byteswap.c: New file.
23498
23499         * modules/arpa_inet-tests: New file.
23500         * tests/test-arpa_inet.c: New file.
23501
23502 2007-02-17  Bruno Haible  <bruno@clisp.org>
23503
23504         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23505         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23506         if the corresponding module is not enabled. Emit link warnings if
23507         the function is used nevertheless.
23508         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23509         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23510         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23511         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23512         * modules/inttypes (Depends-on): Add link-warning.
23513         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23514         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23515         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23516         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23517         * modules/imaxdiv (configure.ac): Likewise.
23518         * modules/strtoimax (configure.ac): Likewise.
23519         * modules/strtoumax (configure.ac): Likewise.
23520
23521 2007-02-17  Bruno Haible  <bruno@clisp.org>
23522
23523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23524         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23525         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23526         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23527
23528 2007-02-17  Bruno Haible  <bruno@clisp.org>
23529
23530         * modules/link-warning: New file.
23531         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23532         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23533         * modules/string (Depends-on): Add link-warning.
23534         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23535         string.h.
23536         * MODULES.html.sh (Support for building libraries and executables): Add
23537         link-warning.
23538
23539 2007-02-17  Bruno Haible  <bruno@clisp.org>
23540
23541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23542         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23543         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23544         long lines.
23545
23546 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23547             Bruno Haible  <bruno@clisp.org>
23548
23549         * modules/tmpfile: New file.
23550         * lib/tmpfile.c: New file.
23551         * m4/tmpfile.m4: New file.
23552         * MODULES.html.sh (func_all_modules): New section "Input/output".
23553
23554 2007-02-15  Bruno Haible  <bruno@clisp.org>
23555
23556         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23557         (supports_delete_on_close): New function.
23558         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23559
23560 2007-02-14  Bruno Haible  <bruno@clisp.org>
23561
23562         * modules/mbspcasecmp-tests: New file.
23563         * tests/test-mbspcasecmp.sh: New file.
23564         * tests/test-mbspcasecmp.c: New file.
23565
23566         New module mbspcasecmp.
23567         * modules/mbspcasecmp: New file.
23568         * lib/mbspcasecmp.c: New file.
23569         * lib/string_.h (strncasecmp): Change warning message.
23570         (mbspcasecmp): New declaration.
23571         * m4/mbspcasecmp.m4: New file.
23572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23573         GNULIB_MBSPCASECMP.
23574         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23575         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23576
23577 2007-02-14  Bruno Haible  <bruno@clisp.org>
23578
23579         * modules/mbsncasecmp-tests: New file.
23580         * tests/test-mbsncasecmp.sh: New file.
23581         * tests/test-mbsncasecmp.c: New file.
23582
23583         New module mbsncasecmp.
23584         * modules/mbsncasecmp: New file.
23585         * lib/mbsncasecmp.c: New file.
23586         * lib/string_.h (mbsncasecmp): New declaration.
23587         * m4/mbsncasecmp.m4: New file.
23588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23589         GNULIB_MBSNCASECMP.
23590         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23591         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23592
23593 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23594
23595         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23596         Verify that it doesn't overlap with our flags.
23597         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23598         do not have the desired effect in multibyte locales; instead, use
23599         mbscasecmp.
23600         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23601         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23602         we don't require GNU fnmatch ourselves (if our users require it, they
23603         should do so explicitly).
23604
23605         Fix regex code so it doesn't rely on strcasecmp.
23606         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23607         Otherwise, include gnulib's langinfo.h.
23608         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23609         undesirable behavior in non-C locales.  Instead, rely on localecharset.
23610         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23611         * modules/regex (FILES): Remove m4/codeset.m4.
23612         (Depends-on): Add localcharset.  Remove strcase.
23613
23614 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23615
23616         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23617         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23618
23619 2007-02-13  Bruno Haible  <bruno@clisp.org>
23620
23621         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23623
23624 2007-02-12  Bruno Haible  <bruno@clisp.org>
23625
23626         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23627         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23628         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23629         time warning rather than a link error.
23630
23631 2007-02-12  Bruno Haible  <bruno@clisp.org>
23632
23633         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23634         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23636
23637 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23638
23639         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23640         args, not 2.
23641
23642 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23643
23644         New module 'time', so that apps can include <time.h> as per
23645         POSIX and GNU instead of separate include files like time_r.h
23646         and timegm.h.  This implementation tries out a simpler approach
23647         for replacing decls in standard include files (as compared to
23648         the string module), somewhat as an experiment.
23649
23650         * config/srclist.txt: Comment out mktime.c for now.
23651         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23652         since it doesn't apply any more.  Use generic wording instead.
23653         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23654         'time'.
23655         * lib/time_.h, m4/time_h.m4, modules/time: New files.
23656         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23657         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23658         Don't include <sys/types.h>; no longer needed since we assume C89.
23659         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23660         * lib/strftime.c: Likewise.
23661         * lib/time_r.c: Likewise.
23662         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23663         * lib/nanosleep.c: Include <time.h> first, to check interface.
23664         * lib/strptime.c: Likewise.
23665         * lib/time_r.c: Likewise.
23666         * lib/timegm.c: Likewise.
23667         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23668         needed.
23669         * lib/timegm.c: Don't include timegm.h; no longer needed.
23670         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23671         time.h now handles any problems in that area.
23672         (struct timespec, nanosleep): Remove; time.h now arranges for these.
23673         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23674         that time.h defines struct timespec.
23675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23676         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
23677         handles that.
23678         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23679         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23680         needed.  Set REPLACE_LOCALTIME.
23681         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23682         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23683         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23684         nanosleep; time_h.m4 now does that.  Don't require
23685         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23686         module handles this now.
23687         * modules/getdate (Depends-on): Remove timespec.  Add time.
23688         * modules/nanosleep (Depends-on): Likewise.
23689         * modules/stat-time (Depends-on): Likewise.
23690         * modules/nanosleep (Include): Include time.h, not timespec.h.
23691         * modules/strptime (Files): Remove lib/strptime.h.
23692         (Depends-on): Add extensions, time.
23693         (Include): Include time.h, not strptime.h.
23694         * modules/time_r (Files): Remove lib/time_r.h.
23695         (Depends-on): Add time.
23696         (Include): Include time.h, not time_r.h.
23697         * modules/timegm: Likewise.
23698         * modules/timespec (Description): Now does timespec-related decls
23699         of our own, instead of struct timespec itself.
23700         (Depends-on): Add time; remove extensions.
23701         (Maintainer): Add self.
23702         * modules/utimecmp (Depends-on): Add time; remove timespec.
23703         * modules/utimens (Depends-on): Likewise.
23704         * modules/xnanosleep (Depends-on): Likewise.
23705
23706 2007-02-11  Bruno Haible  <bruno@clisp.org>
23707
23708         * lib/c-strstr.c: Include allocsa.h.
23709         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23710         * lib/c-strcasestr.c: Include allocsa.h.
23711         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23712         * lib/strcasestr.c: Include allocsa.h.
23713         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23714         * lib/mbsstr.c: Include allocsa.h.
23715         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23716         allocsa/freesa instead of malloc/free.
23717         * lib/mbscasestr.c: Include allocsa.h.
23718         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23719         allocsa/freesa instead of malloc/free.
23720         * modules/c-strstr (Depends-on): Add allocsa.
23721         * modules/c-strcasestr (Depends-on): Likewise.
23722         * modules/strcasestr (Depends-on): Likewise.
23723         * modules/mbsstr (Depends-on): Likewise.
23724         * modules/mbscasestr (Depends-on): Likewise.
23725
23726 2007-02-11  Bruno Haible  <bruno@clisp.org>
23727
23728         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23729
23730         * modules/mbsspn-tests: New file.
23731         * tests/test-mbsspn.sh: New file.
23732         * tests/test-mbsspn.c: New file.
23733
23734 2007-02-11  Bruno Haible  <bruno@clisp.org>
23735
23736         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23737
23738         * modules/mbspbrk-tests: New file.
23739         * tests/test-mbspbrk.sh: New file.
23740         * tests/test-mbspbrk.c: New file.
23741
23742 2007-02-11  Bruno Haible  <bruno@clisp.org>
23743
23744         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
23745         unneeded cast.
23746
23747         * modules/mbscspn-tests: New file.
23748         * tests/test-mbscspn.sh: New file.
23749         * tests/test-mbscspn.c: New file.
23750
23751 2007-02-11  Bruno Haible  <bruno@clisp.org>
23752
23753         * modules/mbscasecmp-tests: New file.
23754         * tests/test-mbscasecmp.sh: New file.
23755         * tests/test-mbscasecmp.c: New file.
23756
23757 2007-02-11  Bruno Haible  <bruno@clisp.org>
23758
23759         Ensure O(n) worst-case complexity of mbscasestr.
23760         * lib/mbscasestr.c: Include stdbool.h.
23761         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23762         functions.
23763         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
23764         the bookkeeping indicates that it's worth it.
23765         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
23766
23767         * modules/mbscasestr-tests: New file.
23768         * tests/test-mbscasestr1.c: New file.
23769         * tests/test-mbscasestr2.sh: New file.
23770         * tests/test-mbscasestr2.c: New file.
23771         * tests/test-mbscasestr3.sh: New file.
23772         * tests/test-mbscasestr3.c: New file.
23773         * tests/test-mbscasestr4.sh: New file.
23774         * tests/test-mbscasestr4.c: New file.
23775         * m4/locale-tr.m4: New file.
23776
23777 2007-02-11  Bruno Haible  <bruno@clisp.org>
23778
23779         Ensure O(n) worst-case complexity of mbsstr.
23780         * lib/mbsstr.c: Include stdbool.h.
23781         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23782         functions.
23783         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
23784         bookkeeping indicates that it's worth it.
23785         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
23786
23787         * modules/mbsstr-tests: New file.
23788         * tests/test-mbsstr1.c: New file.
23789         * tests/test-mbsstr2.sh: New file.
23790         * tests/test-mbsstr2.c: New file.
23791         * tests/test-mbsstr3.sh: New file.
23792         * tests/test-mbsstr3.c: New file.
23793         * m4/locale-fr.m4: New file.
23794
23795 2007-02-11  Bruno Haible  <bruno@clisp.org>
23796
23797         * lib/mbsrchr.c (mbsrchr): Fix bug.
23798
23799         * modules/mbsrchr-tests: New file.
23800         * tests/test-mbsrchr.sh: New file.
23801         * tests/test-mbsrchr.c: New file.
23802
23803 2007-02-11  Bruno Haible  <bruno@clisp.org>
23804
23805         * lib/mbschr.c (mbschr): Fix bug.
23806
23807         * modules/mbschr-tests: New file.
23808         * tests/test-mbschr.sh: New file.
23809         * tests/test-mbschr.c: New file.
23810         * m4/locale-zh.m4: New file.
23811
23812 2007-02-11  Bruno Haible  <bruno@clisp.org>
23813
23814         Support for copying multibyte string iterators.
23815         * lib/mbiter.h: Include <string.h>.
23816         (mbiter_multi_copy): New function.
23817         (mbi_copy): New macro.
23818         * lib/mbuiter.h: Include <string.h>.
23819         (mbuiter_multi_copy): New function.
23820         (mbui_copy): New macro.
23821
23822 2007-02-11  Bruno Haible  <bruno@clisp.org>
23823
23824         New module mbslen.
23825         * modules/mbslen: New file.
23826         * lib/mbslen.c: New file.
23827         * lib/string_.h (mbslen): New declaration.
23828         * m4/mbslen.m4: New file.
23829         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23830         GNULIB_MBSLEN.
23831         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
23832         * MODULES.html.sh (Internationalization functions): Add mbslen.
23833
23834 2007-02-11  Bruno Haible  <bruno@clisp.org>
23835
23836         Ensure O(n) worst-case complexity of strcasestr substitute.
23837         * lib/strcasestr.c: Include stdbool.h.
23838         (knuth_morris_pratt): New function.
23839         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23840         bookkeeping indicates that it's worth it.
23841         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
23842
23843         * modules/strcasestr-tests: New file.
23844         * tests/test-strcasestr.c: New file.
23845
23846 2007-02-11  Bruno Haible  <bruno@clisp.org>
23847
23848         Ensure O(n) worst-case complexity of c_strcasestr.
23849         * lib/c-strcasestr.c: Include stdbool.h, string.h.
23850         (knuth_morris_pratt): New function.
23851         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
23852         the bookkeeping indicates that it's worth it.
23853         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
23854
23855         * modules/c-strcasestr-tests: New file.
23856         * tests/test-c-strcasestr.c: New file.
23857
23858 2007-02-11  Bruno Haible  <bruno@clisp.org>
23859
23860         Ensure O(n) worst-case complexity of c_strstr.
23861         * lib/c-strstr.c: Include stdbool.h, string.h.
23862         (knuth_morris_pratt): New function.
23863         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23864         bookkeeping indicates that it's worth it.
23865         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
23866
23867         * lib/c-strstr.c: Complete rewrite for maintainability.
23868
23869         * modules/c-strstr-tests: New file.
23870         * tests/test-c-strstr.c: New file.
23871
23872 2007-02-11  Bruno Haible  <bruno@clisp.org>
23873
23874         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
23875         5.2.1 and earlier, whereby \055 was treated just like the range
23876         delimiter '-'.
23877         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23878
23879 2007-02-08  Bruno Haible  <bruno@clisp.org>
23880
23881         * modules/regex (Depends-on): Add stdbool.
23882         Reported by Dalibor Topic <robilad@kaffe.org>.
23883
23884 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23885
23886         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
23887         Prefer returning from main to exiting from it.
23888         Remove unnecessary parens after sizeof.
23889
23890 2007-02-05  Bruno Haible  <bruno@clisp.org>
23891
23892         New module mbssep.
23893         * modules/mbssep: New file.
23894         * lib/mbssep.c: New file.
23895         * lib/string_.h (strsep): Add a conditional link warning.
23896         (mbssep): New declaration.
23897         * m4/mbssep.m4: New file.
23898         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23899         GNULIB_MBSSEP.
23900         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
23901         * MODULES.html.sh (Internationalization functions): Add mbssep.
23902
23903 2007-02-05  Bruno Haible  <bruno@clisp.org>
23904
23905         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
23906         Optimize search in case of 1 delimiter.
23907
23908 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23909
23910         * lib/acl.h: Include sys/types.h before sys/acl.h.
23911
23912 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23913
23914         Merge upstream fix for glibc bugzilla #3957:
23915
23916         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
23917
23918         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
23919         bit for RE_HAT_LISTS_NOT_NEWLINE.
23920         (build_charclass_op): Remove bogus comment.
23921
23922 2007-02-05  Simon Josefsson  <simon@josefsson.org>
23923
23924         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
23925
23926 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23927
23928         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
23929         * lib/memmem.c [!defined _LIBC]: Include config.h.
23930
23931 2007-02-04  Bruno Haible  <bruno@clisp.org>
23932
23933         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
23934         warning message.
23935
23936 2007-02-04  Bruno Haible  <bruno@clisp.org>
23937
23938         New module mbstok_r.
23939         * modules/mbstok_r: New file.
23940         * lib/mbstok_r.c: New file.
23941         * lib/string_.h (strtok_r): Change argument names to match the
23942         comments. Add a conditional link warning.
23943         (mbstok_r): New declaration.
23944         * m4/mbstok_r.m4: New file.
23945         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23946         GNULIB_MBSTOK_R.
23947         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
23948         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
23949
23950 2007-02-04  Bruno Haible  <bruno@clisp.org>
23951
23952         New module mbsspn.
23953         * modules/mbsspn: New file.
23954         * lib/mbsspn.c: New file.
23955         * lib/string_.h (strspn): Add a conditional link warning.
23956         (mbsspn): New declaration.
23957         * m4/mbsspn.m4: New file.
23958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23959         GNULIB_MBSSPN.
23960         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
23961         * MODULES.html.sh (Internationalization functions): Add mbsspn.
23962
23963 2007-02-04  Bruno Haible  <bruno@clisp.org>
23964
23965         New module mbspbrk.
23966         * modules/mbspbrk: New file.
23967         * lib/mbspbrk.c: New file.
23968         * lib/string_.h (strpbrk): Add a conditional link warning.
23969         (mbspbrk): New declaration.
23970         * m4/mbspbrk.m4: New file.
23971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23972         GNULIB_MBSPBRK.
23973         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
23974         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
23975
23976 2007-02-04  Bruno Haible  <bruno@clisp.org>
23977
23978         New module mbscspn.
23979         * modules/mbscspn: New file.
23980         * lib/mbscspn.c: New file.
23981         * lib/string_.h (strcspn): Add a conditional link warning.
23982         (mbscspn): New declaration.
23983         * m4/mbscspn.m4: New file.
23984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23985         GNULIB_MBSCSPN.
23986         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
23987         * MODULES.html.sh (Internationalization functions): Add mbscspn.
23988
23989 2007-02-04  Bruno Haible  <bruno@clisp.org>
23990
23991         New module mbscasestr, reduced goal of strcasestr.
23992         * modules/mbscasestr: New file.
23993         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
23994         (mbscasestr): Renamed from strcasestr.
23995         * lib/strcasestr.c: Don't include mbuiter.h.
23996         (strcasestr): Remove support for multibyte locales.
23997         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
23998         Change the conditional link warning.
23999         (mbscasestr): New declaration.
24000         * m4/mbscasestr.m4: New file.
24001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24002         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24003         REPLACE_STRCASESTR.
24004         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24006         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24008         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24009         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24010         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24011         (Depends-on): Remove mbuiter.
24012         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24013
24014 2007-02-04  Bruno Haible  <bruno@clisp.org>
24015
24016         Simplify handling of strncasecmp.
24017         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24018         the conditional link warning.
24019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24020         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24021         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24022         * modules/strcase (configure.ac): Don't invoke
24023         gl_STRING_MODULE_INDICATOR.
24024         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24025
24026 2007-02-04  Bruno Haible  <bruno@clisp.org>
24027
24028         New module mbscasecmp, reduced goal of strcasecmp.
24029         * modules/mbscasecmp: New file.
24030         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24031         (mbscasecmp): Renamed from strcasecmp.
24032         * lib/strcasecmp.c: Don't include mbuiter.h.
24033         (strcasecmp): Remove support for multibyte locales.
24034         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24035         Change the conditional link warning.
24036         (mbscasecmp): New declaration.
24037         * m4/mbscasecmp.m4: New file.
24038         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24039         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24040         REPLACE_STRCASECMP.
24041         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24043         GNULIB_MBSCASECMP.
24044         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24045         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24046         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24047         (Depends-on): Remove mbuiter.
24048         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24049
24050 2007-02-04  Bruno Haible  <bruno@clisp.org>
24051
24052         New module mbsstr. Remove module strstr.
24053         * modules/mbsstr: New file.
24054         * modules/strstr: Remove file.
24055         * lib/mbsstr.c: Renamed from lib/strstr.c.
24056         (mbsstr): Renamed from strstr.
24057         * lib/string_.h (strstr): Remove declaration. Change the conditional
24058         link warning.
24059         (mbsstr): New declaration.
24060         * m4/mbsstr.m4: New file.
24061         * m4/strstr.m4: Remove file.
24062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24063         REPLACE_STRSTR.
24064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24065         Don't initialize GNULIB_STRSTR.
24066         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24067         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24068         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24069         (Support for systems lacking ANSI C 89): Remove strstr.
24070
24071 2007-02-04  Bruno Haible  <bruno@clisp.org>
24072
24073         New module mbsrchr.
24074         * modules/mbsrchr: New file.
24075         * lib/mbsrchr.c: New file.
24076         * lib/string_.h (strrchr): Add a conditional link warning.
24077         (mbsrchr): New declaration.
24078         * m4/mbsrchr.m4: New file.
24079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24080         GNULIB_MBSRCHR.
24081         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24082         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24083
24084 2007-02-04  Bruno Haible  <bruno@clisp.org>
24085
24086         New module mbschr.
24087         * modules/mbschr: New file.
24088         * lib/mbschr.c: New file.
24089         * lib/string_.h (strchr): Add a conditional link warning.
24090         (mbschr): New declaration.
24091         * m4/mbschr.m4: New file.
24092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24093         GNULIB_MBSCHR.
24094         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24095         * MODULES.html.sh (Internationalization functions): Add mbschr.
24096
24097 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24098
24099         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24100
24101         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24102
24103 2007-02-04  Bruno Haible  <bruno@clisp.org>
24104
24105         New module description section 'configure.ac-early'.
24106         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24107         (func_get_autoconf_early_snippet): New function.
24108         (func_import, func_create_testdir): Use it. Remove special cases for
24109         modules 'extensions' and 'lock'.
24110         * modules/extensions (configure.ac-early): Require
24111         gl_USE_SYSTEM_EXTENSIONS.
24112         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24113
24114 2007-02-04  Bruno Haible  <bruno@clisp.org>
24115
24116         Make use of gcj-4.3's -fsource and -ftarget option.
24117         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24118         and if so try the options -fsource and -ftarget.
24119         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24120         source_version, ftarget_option, target_version arguments.
24121         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24122         (is_envjavac_oldgcj_14_14_usable): Renamed from
24123         is_envjavac_gcj_14_14_usable.
24124         (is_envjavac_oldgcj_14_13_usable): Renamed from
24125         is_envjavac_gcj_14_13_usable.
24126         (is_gcj_present): Update.
24127         (is_gcj_43, is_gcj43_usable): New functions.
24128         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24129         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24130         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24131         try the options -fsource and -ftarget.
24132
24133 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24134
24135         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24136         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24137         larger value.
24138
24139 2007-02-03  Jim Meyering  <jim@meyering.net>
24140
24141         Give tools a better chance to allocate space for very large buffers.
24142         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24143
24144         Make pwd and readlink work also when run with an unreadable parent dir
24145         on systems with openat support.
24146         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24147         provided getcwd function, even when we have openat support.
24148         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24149
24150 2007-02-02  Bruno Haible  <bruno@clisp.org>
24151
24152         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24153         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24154         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24155         portability problems if one of these functions is only used on specific
24156         platforms.
24157         Reported by Paul Eggert.
24158
24159 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24160
24161         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24162         is causing more trouble than it's curing.
24163         * lib/regex_internal.h (__mempcpy): Remove.
24164         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24165         (and make the code a tad smaller to boot).
24166         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24167
24168 2007-02-02  Jim Meyering  <jim@meyering.net>
24169
24170         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24171         section, not in the Makefile.am: one.
24172
24173 2007-02-02  Eric Blake  <ebb9@byu.net>
24174
24175         * lib/strchrnul.c: Always include config.h first.
24176
24177         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24178         gnulib strstr is not necessary here.
24179
24180 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24181
24182         * m4/socklen.m4: Fix typo.
24183
24184 2007-02-02  Eric Blake  <ebb9@byu.net>
24185
24186         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24187         * modules/netinet_in (Makefile.am): Likewise.
24188
24189 2007-02-01  Bruno Haible  <bruno@clisp.org>
24190
24191         * lib/string_.h (GL_LINK_WARNING): New macro.
24192         (strcasecmp, strstr, strcasestr): If provided by the system,
24193         conditionally define as a macro that leads to a warning instead of to
24194         an error.
24195         (strncasecmp): Conditionally define as a macro that leads to a warning.
24196
24197 2007-02-01  Karl Berry  <karl@gnu.org>
24198
24199         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24200
24201 2007-02-01  Bruno Haible  <bruno@clisp.org>
24202
24203         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24204         renamings.
24205
24206 2007-02-01  Eric Blake  <ebb9@byu.net>
24207
24208         * modules/regex (Depends-on): Revert dependence on mempcpy.
24209         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24210         module's definition of mempcpy.
24211         Reported by Paul Eggert.
24212
24213 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24214
24215         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24216         the symbol XYZ before redefining it.  This fixes a problem with
24217         programs that don't use XYZ, when compiled on systems that define
24218         XYZ to something else.
24219
24220 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24221
24222         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24223         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24224         writeable to group or other and (2) is intended to have a special
24225         mode bit that is set or cleared.  In such a case, the directory
24226         should be neither group- nor other-writeable until the special
24227         mode bits are right.
24228
24229 2007-01-31  Eric Blake  <ebb9@byu.net>
24230
24231         * modules/mountlist (Depends-on): Add strstr.
24232
24233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24234         bug.
24235         * modules/string (Makefile.am): Remove redundant replacement.
24236         * modules/regex (Depends-on): Add mempcpy.
24237
24238 2007-01-31  Bruno Haible  <bruno@clisp.org>
24239
24240         New module description field 'Link'.
24241         * gnulib-tool (func_usage): Document --extract-link-directive.
24242         (sed_extract_prog): Recognize 'Link' directive.
24243         (func_get_link_directive): New function.
24244         (func_import): Show summary of link directives.
24245         Handle --extract-link-directive option.
24246         * modules/acl (Link): New section.
24247         * modules/clock-time (Link): New section.
24248         * modules/euidaccess (Link): New section.
24249         * modules/gettext (Link): New section.
24250         * modules/iconv (Link): New section.
24251         * modules/lock (Link): New section.
24252         * modules/nanosleep (Link): New section.
24253         * modules/readline (Link): New section.
24254
24255 2007-01-27  Bruno Haible  <bruno@clisp.org>
24256
24257         Enforce the use of gnulib modules for unportable <string.h> functions.
24258         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24259         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24260         (gl_HEADER_STRING_H_BODY): Require it.
24261         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24262         the symbol XYZ to one that gives a link error.
24263         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24264         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24265         * modules/mempcpy (configure.ac): Likewise.
24266         * modules/memrchr (configure.ac): Likewise.
24267         * modules/stpcpy (configure.ac): Likewise.
24268         * modules/stpncpy (configure.ac): Likewise.
24269         * modules/strcase (configure.ac): Likewise.
24270         * modules/strcasestr (configure.ac): Likewise.
24271         * modules/strchrnul (configure.ac): Likewise.
24272         * modules/strdup (configure.ac): Likewise.
24273         * modules/strndup (configure.ac): Likewise.
24274         * modules/strnlen (configure.ac): Likewise.
24275         * modules/strpbrk (configure.ac): Likewise.
24276         * modules/strsep (configure.ac): Likewise.
24277         * modules/strstr (configure.ac): Likewise.
24278         * modules/strtok_r (configure.ac): Likewise.
24279
24280 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24281
24282         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24283
24284 2007-01-30  Jim Meyering  <jim@meyering.net>
24285
24286         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24287
24288 2007-01-29  Bruno Haible  <bruno@clisp.org>
24289
24290         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24291         * lib/execute.c: Likewise.
24292         * lib/pipe.c: Likewise.
24293         * lib/printf-args.h: Likewise.
24294         * lib/printf-args.c: Likewise.
24295         * lib/printf-parse.c: Likewise.
24296         * lib/vasnprintf.c: Likewise.
24297
24298 2007-01-29  Eric Blake  <ebb9@byu.net>
24299
24300         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24301         declaration.
24302
24303 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24304
24305         * lib/strptime.h (strptime): Use 'restrict' for args where
24306         POSIX requires this.
24307         * lib/strptime.c (strptime): Likewise.
24308         Change license notice from LGPL to GPL, since gnulib-tool will
24309         change this as needed.
24310         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24311         defined.
24312         Include "strptime.h" first, to check interface.
24313         Do not #undef _LIBC and _NL_CURRENT.
24314         Do not include <stdlib.h>; no longer needed.
24315         Include "time_r.h" and declare ptime_locale_status
24316         only if _LIBC is not defined.
24317         (__P): Remove unused macro.
24318         (match_string): Bring back glibc version, but use it only if _LIBC
24319         is defined.
24320         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24321         Remove unnecessary assertion and abort() call.
24322         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24323         * m4/strptime.m4: Fix serial number comment.
24324         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24325         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24326         (Depends-on): Add time_r.
24327
24328 2007-01-29  Bruno Haible  <bruno@clisp.org>
24329
24330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24331         strptime.
24332         * modules/strptime (Depends-on): Add stdbool.
24333         * lib/strptime.h: Include <time.h> always. Add comments.
24334
24335 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24336
24337         * modules/strptime: New file.
24338         * lib/strptime.h: New file.
24339         * lib/strptime.c: New file.
24340         * m4/strptime.m4: New file.
24341
24342 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24343
24344         * MODULES.html.sh: New module mpsort.
24345         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24346
24347         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24348         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24349         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24350         All uses changed.
24351         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24352         All uses changed.
24353         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24354         to _Restrict_.
24355         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24356         the parameter matches the prototype.
24357
24358 2007-01-28  Jim Meyering  <jim@meyering.net>
24359
24360         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24361         sys/time.h here, reverting that part of the previous patch:
24362         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24363
24364 2007-01-28  Bruno Haible  <bruno@clisp.org>
24365
24366         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24367         value of $(SYS_TIME_H).
24368         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24369         remove it conditionally, too. [added by Jim Meyering]
24370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24371         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24372         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24373         GETTIMEOFDAY_REPLACEMENT to 1.
24374
24375 2007-01-28  Bruno Haible  <bruno@clisp.org>
24376
24377         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24378         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24380         Set UNISTD_H instead of UNISTD_H2.
24381         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24382
24383 2007-01-28  Bruno Haible  <bruno@clisp.org>
24384
24385         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24386         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24387
24388 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24389
24390         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24391         (func_create_testdir): Ensure C locale for `grep' and `tr'
24392         character ranges.
24393         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24394         ACLOCAL_AMFLAGS parsing state machine.
24395
24396 2007-01-27  Bruno Haible  <bruno@clisp.org>
24397
24398         * modules/unistr/base: Update.
24399
24400 2007-01-27  Bruno Haible  <bruno@clisp.org>
24401
24402         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24403         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24404         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24405         modules/unistr/u32-mbtouc.
24406         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24407         * lib/unistr.h: Update.
24408         * lib/linebreak.c: Update.
24409         * modules/unistr/u32-mbtouc: Renamed from
24410         modules/unistr/u32-mbtouc-safe.
24411         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24412         * lib/unistr.h: Update.
24413         * lib/unistr/u32-to-u8.c: Update.
24414         * lib/unistr/u32-to-u16.c: Update.
24415
24416 2007-01-27  Bruno Haible  <bruno@clisp.org>
24417
24418         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24419         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24420         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24421         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24422         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24423         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24424         modules/unistr/u16-mbtouc.
24425         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24426         * lib/unistr.h: Update.
24427         * lib/linebreak.c: Update.
24428         * modules/linebreak: Update.
24429         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24430         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24431         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24432         * modules/unistr/u16-mbtouc: Renamed from
24433         modules/unistr/u16-mbtouc-safe.
24434         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24435         * lib/unistr.h: Update.
24436         * lib/unistr/u16-to-u8.c: Update.
24437         * modules/unistr/u16-to-u8: Update.
24438         * lib/unistr/u16-to-u32.c: Update.
24439         * modules/unistr/u16-to-u32: Update.
24440
24441 2007-01-27  Bruno Haible  <bruno@clisp.org>
24442
24443         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24444         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24445         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24446         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24447         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24448         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24449         modules/unistr/u8-mbtouc.
24450         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24451         * lib/unistr.h: Update.
24452         * lib/striconveh.c: Update.
24453         * modules/striconveh: Update.
24454         * lib/linebreak.c: Update.
24455         * modules/linebreak: Update.
24456         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24457         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24458         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24459         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24460         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24461         * lib/unistr.h: Update.
24462         * lib/striconveh.c: Update.
24463         * modules/striconveh: Update.
24464         * lib/unistr/u8-to-u16.c: Update.
24465         * modules/unistr/u8-to-u16: Update.
24466         * lib/unistr/u8-to-u32.c: Update.
24467         * modules/unistr/u8-to-u32: Update.
24468
24469 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24470
24471         Sync from Libtool.
24472         * lib/argz.c: Do not include strings.h nor memory.h, include
24473         string.h unconditionally.  Patch by Simon Josefsson.
24474
24475 2007-01-27  Bruno Haible  <bruno@clisp.org>
24476
24477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24478         from gl_HEADER_STRING_H_BODY.
24479         (gl_HEADER_STRING_H_BODY): Require it.
24480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24481         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24482         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24483         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24484         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24485         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24487         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24488         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24489         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24490         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24491         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24492         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24493         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24494         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24495
24496 2007-01-27  Bruno Haible  <bruno@clisp.org>
24497
24498         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24499         check_PROGRAMS into noinst_PROGRAMS.
24500         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24501         check_PROGRAMS in this case.
24502         (func_import): Set for_test to false.
24503         (func_create_testdir): Set for_test to true.
24504
24505 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24506             Bruno Haible  <bruno@clisp.org>
24507
24508         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24509         (Depends-on): Add string.
24510         (Includes): Use <string.h> instead of strcasestr.h.
24511         * modules/string (Makefile.am): Also substitute the value of
24512         REPLACE_STRCASESTR.
24513         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24514         assume strcasestr is declared in <string.h> not <strings.h>. Also
24515         set REPLACE_STRCASESTR.
24516         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24517         REPLACE_STRCASESTR.
24518         * lib/strcasestr.h: Remove file.
24519         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24520         * lib/string_.h (strcasestr): New declaration.
24521
24522 2007-01-27  Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/string_.h: Use 'extern'.
24525
24526 2007-01-27  Jim Meyering  <jim@meyering.net>
24527
24528         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24529         of set-but-not-used local, "q".
24530
24531         * lib/mempcpy.c: Include <config.h> before <string.h>.
24532         This fixes a compilation error on HP-UX, due to the system's
24533         "restrict"-using mempcpy prototype.
24534
24535 2007-01-26  Bruno Haible  <bruno@clisp.org>
24536
24537         Small optimization.
24538         * lib/javacomp.c: Include c-strstr.h.
24539          (is_envjavac_gcj): Use c_strstr instead of strstr.
24540         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24541
24542 2007-01-26  Bruno Haible  <bruno@clisp.org>
24543
24544         * MODULES.html.sh (Unicode string functions): Add the new modules.
24545
24546         * modules/uniconv/u32-strconv-to-locale: New file.
24547         * lib/uniconv/u32-strconv-to-locale.c: New file.
24548
24549         * modules/uniconv/u16-strconv-to-locale: New file.
24550         * lib/uniconv/u16-strconv-to-locale.c: New file.
24551
24552         * modules/uniconv/u8-strconv-to-locale: New file.
24553         * lib/uniconv/u8-strconv-to-locale.c: New file.
24554
24555         * modules/uniconv/u32-strconv-from-locale: New file.
24556         * lib/uniconv/u32-strconv-from-locale.c: New file.
24557
24558         * modules/uniconv/u16-strconv-from-locale: New file.
24559         * lib/uniconv/u16-strconv-from-locale.c: New file.
24560
24561         * modules/uniconv/u8-strconv-from-locale: New file.
24562         * lib/uniconv/u8-strconv-from-locale.c: New file.
24563
24564         * modules/uniconv/u32-strconv-to-enc: New file.
24565         * lib/uniconv/u32-strconv-to-enc.c: New file.
24566         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24567         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24568
24569         * modules/uniconv/u16-strconv-to-enc: New file.
24570         * lib/uniconv/u16-strconv-to-enc.c: New file.
24571         * lib/uniconv/u-strconv-to-enc.h: New file.
24572         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24573         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24574
24575         * modules/uniconv/u8-strconv-to-enc: New file.
24576         * lib/uniconv/u8-strconv-to-enc.c: New file.
24577         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24578         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24579
24580         * modules/uniconv/u32-strconv-from-enc: New file.
24581         * lib/uniconv/u32-strconv-from-enc.c: New file.
24582         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24583         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24584
24585         * modules/uniconv/u16-strconv-from-enc: New file.
24586         * lib/uniconv/u16-strconv-from-enc.c: New file.
24587         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24588         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24589
24590         * modules/uniconv/u8-strconv-from-enc: New file.
24591         * lib/uniconv/u8-strconv-from-enc.c: New file.
24592         * lib/uniconv/u-strconv-from-enc.h: New file.
24593         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24594         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24595
24596         * modules/uniconv/u32-conv-from-enc: New file.
24597         * lib/uniconv/u32-conv-from-enc.c: New file.
24598         * modules/uniconv/u32-conv-from-enc-tests: New file.
24599         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24600
24601         * modules/uniconv/u16-conv-from-enc: New file.
24602         * lib/uniconv/u16-conv-from-enc.c: New file.
24603         * lib/uniconv/u-conv-from-enc.h: New file.
24604         * modules/uniconv/u16-conv-from-enc-tests: New file.
24605         * tests/uniconv/test-u16-conv-from-enc.c: New file.
24606
24607         * modules/uniconv/u8-conv-from-enc: New file.
24608         * lib/uniconv/u8-conv-from-enc.c: New file.
24609         * modules/uniconv/u8-conv-from-enc-tests: New file.
24610         * tests/uniconv/test-u8-conv-from-enc.c: New file.
24611
24612         * modules/uniconv/base: New file.
24613         * lib/uniconv.h: New file.
24614
24615 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24616
24617         * doc/gnulib-tool.texi (Initial import): Update to match current
24618         behavior with strdup module.
24619         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24620         * lib/memmem.h: Remove; all uses removed.  This is now done
24621         by <string.h>.
24622         * lib/mempcpy.h: Likewise.
24623         * lib/memrchr.h: Likewise.
24624         * lib/stpcpy.h: Likewise.
24625         * lib/stpncpy.h: Likewise.
24626         * lib/strcase.h: Likewise.
24627         * lib/strchrnul.h: Likewise.
24628         * lib/strdup.h: Likewise.
24629         * lib/strndup.h: Likewise.
24630         * lib/strnlen.h: Likewise.
24631         * lib/strpbrk.h: Likewise.
24632         * lib/strsep.h: Likewise.
24633         * lib/strstr.h: Likewise.
24634         * lib/strtok_r.h: Likewise.
24635         * lib/string_.h: New file.
24636         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24637         Rely on <string.h> instead.
24638         * lib/canon-host.c: Likewise.
24639         * lib/chdir-long.c: Likewise.
24640         * lib/concatpath.c: Likewise.
24641         * lib/exclude.c: Likewise.
24642         * lib/fchdir.c: Likewise.
24643         * lib/getaddrinfo.c: Likewise.
24644         * lib/getcwd.c: Likewise.
24645         * lib/getsubopt.c: Likewise.
24646         * lib/glob.c: Likewise.
24647         * lib/hard-locale.c: Likewise.
24648         * lib/iconvme.c: Likewise.
24649         * lib/javacomp.c: Likewise.
24650         * lib/mempcpy.c: Likewise.
24651         * lib/memrchr.c: Likewise.
24652         * lib/regex_internal.h: Likewise.
24653         * lib/stpncpy.c: Likewise.
24654         * lib/strcasecmp.c: Likewise.
24655         * lib/strchrnul.c: Likewise.
24656         * lib/strdup.c: Likewise.
24657         * lib/striconv.c: Likewise.
24658         * lib/striconveh.c: Likewise.
24659         * lib/striconveha.c: Likewise.
24660         * lib/strncasecmp.c: Likewise.
24661         * lib/strndup.c: Likewise.
24662         * lib/strnlen.c: Likewise.
24663         * lib/strsep.c: Likewise.
24664         * lib/strstr.c: Likewise.
24665         * lib/strtok_r.c: Likewise.
24666         * lib/userspec.c: Likewise.
24667         * lib/w32spawn.h: Likewise.
24668         * lib/xstrndup.c: Likewise.
24669         * lib/mountlist.c (strstr): Remove decl.
24670         * m4/string_h.m4: New file.
24671         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24672         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24674         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24675         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24676         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24677         Set REPLACE_STRCASECMP if necessary.
24678         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24679         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24680         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24682         HAVE_DECL_STRDUP if necessary.
24683         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24684         since gl_FUNC_STRNDUP does that now.
24685         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24686         Check for decl here...
24687         (gl_PREREQ_STRNLEN): ... not here.
24688         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24689         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24690         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24691         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24692         necessary.
24693         * modules/string: New file.
24694         * modules/memmem (Files): Remove special-purpose include file.
24695         (Depends-on): Add string.
24696         (Include): Include <string.h>, not the removed file.
24697         * modules/mempcpy: Likewise.
24698         * modules/memrchr: Likewise.
24699         * modules/stpcpy: Likewise.
24700         * modules/stpncpy: Likewise.
24701         * modules/strcase: Likewise.
24702         * modules/strchrnul: Likewise.
24703         * modules/strdup: Likewise.
24704         * modules/strndup: Likewise.
24705         * modules/strnlen: Likewise.
24706         * modules/strpbrk: Likewise.
24707         * modules/strsep: Likewise.
24708         * modules/strstr: Likewise.
24709         * modules/strtok_r: Likewise.
24710         * tests/test-dirname.c: Don't include "strdup.h", since
24711         <string.h> now suffices.
24712         * tests/test-memmem.c: Don't include "memmem.h", since
24713         <string.h> now suffices.
24714
24715 2007-01-25  Bruno Haible  <bruno@clisp.org>
24716
24717         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24718         *resultp is 0.
24719
24720         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24721         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24722         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24723         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24724
24725         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24726         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24727         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24728         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24729         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24730         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24731
24732 2007-01-24  Bruno Haible  <bruno@clisp.org>
24733
24734         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24736         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24737         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24738         gl_FUNC_FTS_CORE.
24739         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24740         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24742         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24743         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24744         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
24745         gl_FUNC_FCHOWNAT.
24746         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
24747         gl_FUNC_STRFTIME.
24748         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
24749         Reported by Ralf Wildenhues.
24750
24751 2007-01-24  Bruno Haible  <bruno@clisp.org>
24752
24753         Drop AC_REQUIRE calls that are redundant with the module dependencies.
24754         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
24755         gl_GETADDRINFO.
24756         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
24757         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
24758         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
24759
24760 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24761
24762         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
24763         Don't use 'exit'; just return from 'main'.
24764         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
24765
24766         * lib/fnmatch_.h: Readjust white space and comments to match
24767         glibc, to avoid spurious diffs.
24768
24769 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24770
24771         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
24772         2004-12-01 change by Jakub Jelinek, since this code won't compile
24773         if !LIBC.  Problem reported by Bob Proulx.
24774
24775 2007-01-23  Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/striconveh.c: Include c-strcaseeq.h.
24778         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
24779         * modules/striconveh (Depends-on): Add c-strcaseeq.
24780
24781 2007-01-23  Bruno Haible  <bruno@clisp.org>
24782
24783         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
24784
24785         * modules/c-strcaseeq: New file.
24786         * lib/c-strcaseeq.h: New file.
24787
24788         * modules/streq: New file.
24789         * lib/streq.h: New file.
24790
24791 2007-01-23  Bruno Haible  <bruno@clisp.org>
24792
24793         * modules/striconveha-tests: New file.
24794         * tests/test-striconveha.c: New file.
24795
24796         * lib/striconveha.h: Include <stdbool.h>.
24797         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
24798         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
24799         (mem_iconveha_notranslit): Renamed from mem_iconveha.
24800         (mem_iconveha): New function.
24801         (str_iconveha_notranslit): Renamed from str_iconveha.
24802         (str_iconveha): New function.
24803         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
24804         c-strcase.
24805
24806 2007-01-23  Bruno Haible  <bruno@clisp.org>
24807
24808         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
24809         encodings without forgiving before trying any encoding with handler.
24810         (str_iconveha): Try all encodings without forgiving before trying any
24811         encoding with handler.
24812
24813 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         Import the following changes from libc.
24816
24817         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24818
24819         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
24820
24821         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
24822
24823         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
24824         normal_bracket label.
24825
24826         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
24827
24828         [BZ #361]
24829         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
24830         to normal_bracket after fetching the next character.
24831
24832 2007-01-22  Bruno Haible  <bruno@clisp.org>
24833
24834         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
24835         argument.
24836         * lib/striconveh.c (iconv_carefully_1): New function.
24837         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
24838         argument.
24839         (str_cd_iconveh): Update.
24840         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
24841         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
24842         * tests/test-striconveh.c (MAGIC): New macro.
24843         (new_offsets): New function.
24844         (main): Test call with and without offsets.
24845
24846 2007-01-22  Bruno Haible  <bruno@clisp.org>
24847
24848         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
24849         * modules/sys_select (Makefile.am): Likewise.
24850         * modules/sys_socket (Makefile.am): Likewise.
24851         * modules/sys_time (Makefile.am): Likewise.
24852
24853 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24854
24855         * modules/gettimeofday (License): Change from GPL to LGPL, since
24856         gettimeofday is a library function.
24857
24858 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24859
24860         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
24861
24862 2007-01-21  Bruno Haible  <bruno@clisp.org>
24863
24864         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
24865
24866 2007-01-21  Bruno Haible  <bruno@clisp.org>
24867
24868         * modules/striconveha: New file.
24869         * lib/striconveha.h: New file.
24870         * lib/striconveha.c: New file.
24871         * MODULES.html.sh (Internationalization functions): Add striconveha.
24872         * lib/striconv.c (str_iconv): Optimize the case of an empty input
24873         string.
24874         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
24875
24876 2007-01-21  Bruno Haible  <bruno@clisp.org>
24877
24878         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
24879         * lib/striconveh.c (str_iconveh): Likewise.
24880
24881 2007-01-21  Bruno Haible  <bruno@clisp.org>
24882
24883         * lib/striconveh.h (mem_iconveh): New declaration.
24884         * lib/striconveh.c (mem_iconveh): New function.
24885         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
24886
24887 2007-01-21  Bruno Haible  <bruno@clisp.org>
24888
24889         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
24890
24891         * lib/striconveh.h (mem_cd_iconveh): Change specification.
24892         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
24893         original result buffer.
24894         (str_cd_iconveh): Update.
24895         * tests/test-striconveh.c (main): Update.
24896
24897         * lib/striconv.h (mem_cd_iconv): Change specification.
24898         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
24899         result buffer.
24900         (str_cd_iconv): Update.
24901         * tests/test-striconv.c (main): Update.
24902
24903 2007-01-21  Bruno Haible  <bruno@clisp.org>
24904
24905         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
24906
24907 2007-01-20  Jim Meyering  <jim@meyering.net>
24908
24909         * lib/userspec.c (parse_with_separator): If a user or group string
24910         starts with "+", skip the corresponding name-to-ID look-up, since
24911         such a look-up must fail: user and group names may not include "+".
24912
24913 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24914
24915         * lib/poll.c: Include sys/time.h and time.h unconditionally,
24916         since we now assume the sys_time module.
24917         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
24918         check for sys/time.h; no longer needed.
24919         * modules/poll (Depends-on): Depend on sys_time.
24920
24921 2007-01-18  Bruno Haible  <bruno@clisp.org>
24922
24923         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
24924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24925
24926         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
24927         gettimeofday.
24928
24929         * tests/test-gettimeofday.c: Include <time.h>.
24930         (dummy): Remove variable.
24931
24932         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
24933         gl_HEADER_SYS_TIME_H.
24934         (gl_HEADER_SYS_TIME_H): New macro.
24935
24936         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
24937         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24938         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
24939         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
24940         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24941         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
24942         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
24943         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24944         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
24945         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
24946         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24947
24948         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
24949         last change; it caused a compilation error when cross-compiling to
24950         Cygwin.
24951
24952 2007-01-18  Jim Meyering  <jim@meyering.net>
24953
24954         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
24955         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
24956         than the race-prone "test -d sys || mkdir sys".
24957         (configure.ac): Use AC_PROG_MKDIR_P.
24958         * modules/sys_select: Likewise.
24959         * modules/sys_socket: Likewise.
24960         * modules/sys_time: Likewise.
24961
24962 2007-01-18  Eric Blake  <ebb9@byu.net>
24963
24964         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
24965         replace gettimeofday.
24966         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
24967         name, to avoid infinite recursion.
24968
24969 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
24970
24971         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
24972         module sys_time.
24973         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
24974         assume timespec.h defines struct timeval.
24975         * lib/settime.c: Likewise.
24976         * lib/utimens.c: Likewise.
24977         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
24978         since we now assume the gettimeofday module.
24979         * lib/tempname.c (__gen_tempname): Likewise.
24980         * lib/gettimeofday.h: Remove.
24981         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
24982         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
24983         Include <time.h>, for 'time()'.
24984         (localtime_buffer_addr): Also use this workaround if
24985         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
24986         to simplify the uses.  All uses changed.
24987         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
24988         that #undef is inside {}, and 'const' follows type name consistently.
24989         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
24990         (gettimeofday): Do not use the maximum possible value for
24991         tv->tv_usec, since that might break usages other than ls.c.
24992         Instead, we'll leave ls.c alone.  This undoes today's patch
24993         by Bruno.  Add a compile-time warning for 1s-clock resolution;
24994         we've never observed the problem but might as well keep the
24995         canary.
24996         * lib/nanosleep.c: Include timespec.h first, for interface check.
24997         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
24998         now assume the sys_time module.
24999         * lib/tempname.c: Likewise.
25000         * lib/timespec.h: Likewise.
25001         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25002         needed.
25003         * lib/strftime.c: Likewise.
25004         * lib/timespec.h: Likewise.
25005         * lib/posixtm.c: Include posixtm.h first, for interface check.
25006         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25007         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25008         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25009         * lib/sys_time_.h: New file.
25010         * lib/timespec.h (struct timespec): Use long int, not long.
25011         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25012         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25013         Remove obsolescent call to AC_HEADER_TIME.
25014         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25016         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25017         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25018         Likewise.
25019         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25020         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25021         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25022         into the sys_time module.  Check for gettimeofday just once.
25023         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25024         for gettimeofday signature to just check the signature.  Merely
25025         compile it, since linking doesn't test signature.  Improve test for
25026         whether gettimeofday.o is actually needed.
25027         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25028         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25029         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25030         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25031         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25032         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25033         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25034         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25035         than worrying about sys/time.h.
25036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25037         Don't bother worrying about TIME_WITH_SYS_TIME.
25038         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25039         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25040         * m4/sys_time_h.m4: New file.
25041         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25042         Don't include sys/time.h.  Return from main rather than exiting.
25043         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25044         all uses changed.
25045         * modules/gethrxtime (Depends-on): Add sys_time.
25046         * modules/gettime (Depends-on): Likewise.
25047         * modules/gettimeofday (Depends-on): Likewise.
25048         * modules/nanosleep (Depends-on): Likewise.
25049         * modules/settime (Depends-on): Likewise.
25050         * modules/tempname (Depends-on): Likewise.
25051         * modules/utimens (Depends-on): Likewise.
25052         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25053         (Include:) Change back to <sys/time.h>.
25054         (Maintainer:) Add self.
25055         * modules/sys_time: New file.
25056         * modules/tempname (Depends-on): Add gettimeofday.
25057         * tests/test-gettimeofday.c: Include <sys/time.h>
25058         rather than gettimeofday.h.
25059
25060 2007-01-17  Bruno Haible  <bruno@clisp.org>
25061
25062         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25063         the license default to GPL.
25064         (func_create_testdir): Don't complain if a module is LGPL and its
25065         tests module depends on GPLed modules.
25066
25067 2007-01-17  Bruno Haible  <bruno@clisp.org>
25068
25069         * lib/gettimeofday.c (gettimeofday): Add code for the case
25070         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25071         maximum possible value for tv->tv_usec, rather than the minimum one.
25072
25073 2005-10-08  Martin Lambers  <marlam@marlam.de>
25074 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25075 2007-01-16  Bruno Haible  <bruno@clisp.org>
25076
25077         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25078         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25079         gl_FUNC_GETTIMEOFDAY.
25080         (Include): Add gettimeofday.h.
25081         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25082         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25083         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25084         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25085         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25086         * lib/gettimeofday.h: New file.
25087         * lib/gettimeofday.c: Include <sys/timeb.h>.
25088         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25089         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25090         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25091         fall back on time().
25092
25093         * tests/test-gettimeofday.c: New file.
25094         * modules/gettimeofday-tests: New file.
25095
25096 2007-01-16  Eric Blake  <ebb9@byu.net>
25097
25098         * modules/fnmatch (Depends-on): Depend on wchar.
25099         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25100         * m4/fnmatch.m4: Likewise.
25101         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25102         * m4/mbchar.m4: Likewise.
25103         * modules/mbswidth (Depends-on): Depend on wchar.
25104         * lib/mbswidth.c: Assume <wchar.h>.
25105         * m4/mbswidth.m4: Likewise.
25106         * modules/quotearg (Depends-on): Depend on wchar.
25107         * lib/quotearg.c: Assume <wchar.h>.
25108         * m4/quotearg.m4: Likewise.
25109         * modules/regex (Depends-on): Depend on wchar.
25110         * lib/regex_internal.h: Assume <wchar.h>.
25111         * m4/regex.m4: Likewise.
25112         * modules/stdint (Depends-on): Depend on wchar.
25113         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25114         * m4/stdint.m4: Likewise.
25115         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25116         * modules/strftime (Depends-on): Depend on wchar.
25117         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25118         * modules/strtol (Depends-on): Depend on wchar.
25119         * lib/strtol.c: Assume <wchar.h>.
25120         * modules/wcwidth (Depends-on): Depend on wchar.
25121         * lib/wcwidth.h: Assume <wchar.h>.
25122         * m4/wcwidth.m4: Likewise.
25123
25124 2007-01-16  Bruno Haible  <bruno@clisp.org>
25125
25126         * modules/csharpexec-script: New, created from...
25127         * modules/csharpexec: ... this.
25128
25129 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25130
25131         * modules/javaexec-script: New, created from...
25132         * modules/javaexec: ... this.
25133
25134 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25135
25136         * modules/poll (Dependencies): Add sys_select.
25137
25138 2007-01-15  Jim Meyering  <jim@meyering.net>
25139
25140         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25141         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25142         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25143         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25144
25145 2007-01-15  Bruno Haible  <bruno@clisp.org>
25146
25147         * modules/striconveh: New file.
25148         * lib/striconveh.h: New file.
25149         * lib/striconveh.c: New file.
25150         * MODULES.html.sh (Internationalization functions): Add striconveh.
25151
25152         * modules/striconveh-tests: New file.
25153         * tests/test-striconveh.c: New file.
25154
25155 2007-01-15  Bruno Haible  <bruno@clisp.org>
25156
25157         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25158         not from GNU libiconv or GNU libc.
25159
25160 2007-01-15  Bruno Haible  <bruno@clisp.org>
25161
25162         * doc/gnulib-intro.texi (Copyright): Explain the different license
25163         terms for module descriptions, autoconf macros, tests, documentation.
25164
25165 2007-01-14  Bruno Haible  <bruno@clisp.org>
25166
25167         * modules/striconv-tests: New file.
25168         * tests/test-striconv.c: New file.
25169
25170 2007-01-14  Bruno Haible  <bruno@clisp.org>
25171
25172         * modules/iconv-tests: New file.
25173         * tests/test-iconv.c: New file.
25174
25175 2007-01-14  Bruno Haible  <bruno@clisp.org>
25176
25177         * gnulib-tool (func_get_license): For test modules, use the license of
25178         the main module.
25179
25180 2007-01-14  Bruno Haible  <bruno@clisp.org>
25181
25182         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25183         if iconv is found to exist.
25184
25185 2007-01-14  Bruno Haible  <bruno@clisp.org>
25186
25187         * modules/c-ctype-tests: New file.
25188         * tests/test-c-ctype.c: New file.
25189
25190 2007-01-14  Bruno Haible  <bruno@clisp.org>
25191
25192         * modules/binary-io-tests: New file.
25193         * tests/test-binary-io.sh: New file.
25194         * tests/test-binary-io.c: New file.
25195
25196 2007-01-14  Bruno Haible  <bruno@clisp.org>
25197
25198         * modules/array-oset-tests: New file.
25199         * tests/test-array_oset.c: New file.
25200
25201 2007-01-14  Bruno Haible  <bruno@clisp.org>
25202
25203         * modules/array-list-tests: New file.
25204         * tests/test-array_list.c: New file.
25205
25206 2007-01-14  Bruno Haible  <bruno@clisp.org>
25207
25208         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25209         and make.
25210         Reported by Simon Josefsson in
25211         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25212
25213 2007-01-14  Bruno Haible  <bruno@clisp.org>
25214
25215         * modules/allocsa-tests: New file.
25216         * tests/test-allocsa.c: New file.
25217
25218 2007-01-14  Bruno Haible  <bruno@clisp.org>
25219
25220         * modules/fchdir (Depends-on): Add absolute-header.
25221         * modules/unistd (Depends-on): Likewise.
25222
25223 2006-12-30  Bruno Haible  <bruno@clisp.org>
25224
25225         * modules/fchdir: New file.
25226         * modules/unistd (Files): Add lib/unistd_.h.
25227         (Makefile.am): Generate unistd.h from unistd_.h.
25228         * lib/fchdir.c: New file.
25229         * lib/dirent_.h: New file.
25230         * lib/unistd_.h: New file.
25231         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25232         * m4/fchdir.m4: New file.
25233         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25234         (gl_HEADER_UNISTD): Invoke it.
25235         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25236         function.
25237         * lib/backupfile.c (opendir, closedir): Undefine.
25238         * lib/chown.c (open, close): Undefine.
25239         * lib/clean-temp.c (open, close): Undefine.
25240         * lib/copy-file.c (open, close): Undefine.
25241         * lib/execute.c (open, close): Undefine.
25242         * lib/fsusage.c (open, close): Undefine.
25243         * lib/gc-gnulib.c (open, close): Undefine.
25244         * lib/getcwd.c (opendir, closedir): Undefine.
25245         * lib/glob.c (opendir, closedir): Undefine.
25246         * lib/javacomp.c (open, close): Undefine.
25247         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25248         * lib/openat-proc.c (open, close): Undefine.
25249         * lib/pagealign_alloc.c (open, close): Undefine.
25250         * lib/pipe.c (open, close): Undefine.
25251         * lib/progreloc.c (open, close): Undefine.
25252         * lib/savedir.c (opendir, closedir): Undefine.
25253         * lib/utime.c (open, close): Undefine.
25254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25255
25256 2007-01-10  Bruno Haible  <bruno@clisp.org>
25257
25258         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25259
25260 2007-01-12  Eric Blake  <ebb9@byu.net>
25261
25262         Provide a robust <wchar.h>.  Further simplifications are now
25263         possible in other modules, but not included here.
25264         * modules/wchar: New module.
25265         * m4/wchar.m4: New file.
25266         * lib/wchar_.h: Likewise.
25267         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25268         of the new module.
25269         * MODULES.html.sh (Extended multibyte and wide character utilities):
25270         New section.
25271
25272 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25273
25274         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25275         to a reasonable default for memory allocation.
25276         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25277         file system that reports garbage st_size values for symlinks.
25278         Problem reported by Liyang Hu.
25279
25280 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25281
25282         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25283         Emacs .#* auto-save files).
25284
25285 2007-01-11  Bruno Haible  <bruno@clisp.org>
25286
25287         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25288         directory.
25289
25290 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         Use @...@ consistently in lib/wctype_.h.
25293         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25294         on it being set to 1 or 0.
25295         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25296         go back to AC_SUBSTing it.
25297         * modules/wctype (Makefile.am): Undo previous change.
25298
25299 2007-01-10  Eric Blake  <ebb9@byu.net>
25300
25301         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25302         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25303         * modules/wctype (Makefile.am): Likewise.
25304         Reported by Chris McGuire.
25305
25306 2007-01-10  Jim Meyering  <jim@meyering.net>
25307
25308         fts.c: a small readability/maintainability improvement
25309         * lib/fts.c (fts_read): Make this code slightly more readable and
25310         maintainable by hoisting the "sp->fts_cur = p" assignments to
25311         immediately follow the statements that set P.  Derived from
25312         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25313
25314 2007-01-10  Eric Blake  <ebb9@byu.net>
25315
25316         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25317         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25319         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25320         Reported by Chris McGuire.
25321
25322 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25323
25324         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25325         in sed script.
25326
25327 2007-01-09  Bruno Haible  <bruno@clisp.org>
25328
25329         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25330         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25331         variables.
25332         (func_module): Use them.
25333
25334 2007-01-09  Bruno Haible  <bruno@clisp.org>
25335
25336         * modules/unistr/base: New file.
25337         * lib/unistr.h: New file.
25338
25339         * modules/unistr/u8-to-u16: New file.
25340         * lib/unistr/u8-to-u16.c: New file.
25341
25342         * modules/unistr/u8-to-u32: New file.
25343         * lib/unistr/u8-to-u32.c: New file.
25344
25345         * modules/unistr/u16-to-u8: New file.
25346         * lib/unistr/u16-to-u8.c: New file.
25347
25348         * modules/unistr/u16-to-u32: New file.
25349         * lib/unistr/u16-to-u32.c: New file.
25350
25351         * modules/unistr/u32-to-u8: New file.
25352         * lib/unistr/u32-to-u8.c: New file.
25353
25354         * modules/unistr/u32-to-u16: New file.
25355         * lib/unistr/u32-to-u16.c: New file.
25356
25357         * modules/unistr/u8-check: New file.
25358         * modules/unistr/u16-check: New file.
25359         * modules/unistr/u32-check: New file.
25360         * lib/unistr/u8-check.c: New file.
25361         * lib/unistr/u16-check.c: New file.
25362         * lib/unistr/u32-check.c: New file.
25363
25364         * modules/unistr/u8-chr: New file.
25365         * modules/unistr/u16-chr: New file.
25366         * modules/unistr/u32-chr: New file.
25367         * lib/unistr/u8-chr.c: New file.
25368         * lib/unistr/u16-chr.c: New file.
25369         * lib/unistr/u32-chr.c: New file.
25370
25371         * modules/unistr/u8-cmp: New file.
25372         * modules/unistr/u16-cmp: New file.
25373         * modules/unistr/u32-cmp: New file.
25374         * lib/unistr/u8-cmp.c: New file.
25375         * lib/unistr/u16-cmp.c: New file.
25376         * lib/unistr/u32-cmp.c: New file.
25377
25378         * modules/unistr/u8-cpy: New file.
25379         * modules/unistr/u16-cpy: New file.
25380         * modules/unistr/u32-cpy: New file.
25381         * lib/unistr/u8-cpy.c: New file.
25382         * lib/unistr/u16-cpy.c: New file.
25383         * lib/unistr/u32-cpy.c: New file.
25384         * lib/unistr/u-cpy.h: New file.
25385
25386         * modules/unistr/u8-cpy-alloc: New file.
25387         * modules/unistr/u16-cpy-alloc: New file.
25388         * modules/unistr/u32-cpy-alloc: New file.
25389         * lib/unistr/u8-cpy-alloc.c: New file.
25390         * lib/unistr/u16-cpy-alloc.c: New file.
25391         * lib/unistr/u32-cpy-alloc.c: New file.
25392         * lib/unistr/u-cpy-alloc.h: New file.
25393
25394         * modules/unistr/u8-endswith: New file.
25395         * modules/unistr/u16-endswith: New file.
25396         * modules/unistr/u32-endswith: New file.
25397         * lib/unistr/u8-endswith.c: New file.
25398         * lib/unistr/u16-endswith.c: New file.
25399         * lib/unistr/u32-endswith.c: New file.
25400         * lib/unistr/u-endswith.h: New file.
25401
25402         * modules/unistr/u8-mblen: New file.
25403         * modules/unistr/u16-mblen: New file.
25404         * modules/unistr/u32-mblen: New file.
25405         * lib/unistr/u8-mblen.c: New file.
25406         * lib/unistr/u16-mblen.c: New file.
25407         * lib/unistr/u32-mblen.c: New file.
25408
25409         * modules/unistr/u8-mbtouc: New file.
25410         * modules/unistr/u16-mbtouc: New file.
25411         * modules/unistr/u32-mbtouc: New file.
25412         * lib/unistr/u8-mbtouc.c: New file.
25413         * lib/unistr/u16-mbtouc.c: New file.
25414         * lib/unistr/u32-mbtouc.c: New file.
25415
25416         * modules/unistr/u8-mbtouc-safe: New file.
25417         * modules/unistr/u16-mbtouc-safe: New file.
25418         * modules/unistr/u32-mbtouc-safe: New file.
25419         * lib/unistr/u8-mbtouc-safe.c: New file.
25420         * lib/unistr/u16-mbtouc-safe.c: New file.
25421         * lib/unistr/u32-mbtouc-safe.c: New file.
25422
25423         * modules/unistr/u8-move: New file.
25424         * modules/unistr/u16-move: New file.
25425         * modules/unistr/u32-move: New file.
25426         * lib/unistr/u8-move.c: New file.
25427         * lib/unistr/u16-move.c: New file.
25428         * lib/unistr/u32-move.c: New file.
25429         * lib/unistr/u-move.h: New file.
25430
25431         * modules/unistr/u8-next: New file.
25432         * modules/unistr/u16-next: New file.
25433         * modules/unistr/u32-next: New file.
25434         * lib/unistr/u8-next.c: New file.
25435         * lib/unistr/u16-next.c: New file.
25436         * lib/unistr/u32-next.c: New file.
25437
25438         * modules/unistr/u8-prev: New file.
25439         * modules/unistr/u16-prev: New file.
25440         * modules/unistr/u32-prev: New file.
25441         * lib/unistr/u8-prev.c: New file.
25442         * lib/unistr/u16-prev.c: New file.
25443         * lib/unistr/u32-prev.c: New file.
25444
25445         * modules/unistr/u8-set: New file.
25446         * modules/unistr/u16-set: New file.
25447         * modules/unistr/u32-set: New file.
25448         * lib/unistr/u8-set.c: New file.
25449         * lib/unistr/u16-set.c: New file.
25450         * lib/unistr/u32-set.c: New file.
25451         * lib/unistr/u-set.h: New file.
25452
25453         * modules/unistr/u8-startswith: New file.
25454         * modules/unistr/u16-startswith: New file.
25455         * modules/unistr/u32-startswith: New file.
25456         * lib/unistr/u8-startswith.c: New file.
25457         * lib/unistr/u16-startswith.c: New file.
25458         * lib/unistr/u32-startswith.c: New file.
25459         * lib/unistr/u-startswith.h: New file.
25460
25461         * modules/unistr/u8-stpcpy: New file.
25462         * modules/unistr/u16-stpcpy: New file.
25463         * modules/unistr/u32-stpcpy: New file.
25464         * lib/unistr/u8-stpcpy.c: New file.
25465         * lib/unistr/u16-stpcpy.c: New file.
25466         * lib/unistr/u32-stpcpy.c: New file.
25467         * lib/unistr/u-stpcpy.h: New file.
25468
25469         * modules/unistr/u8-stpncpy: New file.
25470         * modules/unistr/u16-stpncpy: New file.
25471         * modules/unistr/u32-stpncpy: New file.
25472         * lib/unistr/u8-stpncpy.c: New file.
25473         * lib/unistr/u16-stpncpy.c: New file.
25474         * lib/unistr/u32-stpncpy.c: New file.
25475         * lib/unistr/u-stpncpy.h: New file.
25476
25477         * modules/unistr/u8-strcat: New file.
25478         * modules/unistr/u16-strcat: New file.
25479         * modules/unistr/u32-strcat: New file.
25480         * lib/unistr/u8-strcat.c: New file.
25481         * lib/unistr/u16-strcat.c: New file.
25482         * lib/unistr/u32-strcat.c: New file.
25483         * lib/unistr/u-strcat.h: New file.
25484
25485         * modules/unistr/u8-strchr: New file.
25486         * modules/unistr/u16-strchr: New file.
25487         * modules/unistr/u32-strchr: New file.
25488         * lib/unistr/u8-strchr.c: New file.
25489         * lib/unistr/u16-strchr.c: New file.
25490         * lib/unistr/u32-strchr.c: New file.
25491
25492         * modules/unistr/u8-strcmp: New file.
25493         * modules/unistr/u16-strcmp: New file.
25494         * modules/unistr/u32-strcmp: New file.
25495         * lib/unistr/u8-strcmp.c: New file.
25496         * lib/unistr/u16-strcmp.c: New file.
25497         * lib/unistr/u32-strcmp.c: New file.
25498
25499         * modules/unistr/u8-strcpy: New file.
25500         * modules/unistr/u16-strcpy: New file.
25501         * modules/unistr/u32-strcpy: New file.
25502         * lib/unistr/u8-strcpy.c: New file.
25503         * lib/unistr/u16-strcpy.c: New file.
25504         * lib/unistr/u32-strcpy.c: New file.
25505         * lib/unistr/u-strcpy.h: New file.
25506
25507         * modules/unistr/u8-strcspn: New file.
25508         * modules/unistr/u16-strcspn: New file.
25509         * modules/unistr/u32-strcspn: New file.
25510         * lib/unistr/u8-strcspn.c: New file.
25511         * lib/unistr/u16-strcspn.c: New file.
25512         * lib/unistr/u32-strcspn.c: New file.
25513         * lib/unistr/u-strcspn.h: New file.
25514
25515         * modules/unistr/u8-strdup: New file.
25516         * modules/unistr/u16-strdup: New file.
25517         * modules/unistr/u32-strdup: New file.
25518         * lib/unistr/u8-strdup.c: New file.
25519         * lib/unistr/u16-strdup.c: New file.
25520         * lib/unistr/u32-strdup.c: New file.
25521         * lib/unistr/u-strdup.h: New file.
25522
25523         * modules/unistr/u8-strlen: New file.
25524         * modules/unistr/u16-strlen: New file.
25525         * modules/unistr/u32-strlen: New file.
25526         * lib/unistr/u8-strlen.c: New file.
25527         * lib/unistr/u16-strlen.c: New file.
25528         * lib/unistr/u32-strlen.c: New file.
25529         * lib/unistr/u-strlen.h: New file.
25530
25531         * modules/unistr/u8-strmblen: New file.
25532         * modules/unistr/u16-strmblen: New file.
25533         * modules/unistr/u32-strmblen: New file.
25534         * lib/unistr/u8-strmblen.c: New file.
25535         * lib/unistr/u16-strmblen.c: New file.
25536         * lib/unistr/u32-strmblen.c: New file.
25537
25538         * modules/unistr/u8-strmbtouc: New file.
25539         * modules/unistr/u16-strmbtouc: New file.
25540         * modules/unistr/u32-strmbtouc: New file.
25541         * lib/unistr/u8-strmbtouc.c: New file.
25542         * lib/unistr/u16-strmbtouc.c: New file.
25543         * lib/unistr/u32-strmbtouc.c: New file.
25544
25545         * modules/unistr/u8-strncat: New file.
25546         * modules/unistr/u16-strncat: New file.
25547         * modules/unistr/u32-strncat: New file.
25548         * lib/unistr/u8-strncat.c: New file.
25549         * lib/unistr/u16-strncat.c: New file.
25550         * lib/unistr/u32-strncat.c: New file.
25551         * lib/unistr/u-strncat.h: New file.
25552
25553         * modules/unistr/u8-strncmp: New file.
25554         * modules/unistr/u16-strncmp: New file.
25555         * modules/unistr/u32-strncmp: New file.
25556         * lib/unistr/u8-strncmp.c: New file.
25557         * lib/unistr/u16-strncmp.c: New file.
25558         * lib/unistr/u32-strncmp.c: New file.
25559
25560         * modules/unistr/u8-strncpy: New file.
25561         * modules/unistr/u16-strncpy: New file.
25562         * modules/unistr/u32-strncpy: New file.
25563         * lib/unistr/u8-strncpy.c: New file.
25564         * lib/unistr/u16-strncpy.c: New file.
25565         * lib/unistr/u32-strncpy.c: New file.
25566         * lib/unistr/u-strncpy.h: New file.
25567
25568         * modules/unistr/u8-strnlen: New file.
25569         * modules/unistr/u16-strnlen: New file.
25570         * modules/unistr/u32-strnlen: New file.
25571         * lib/unistr/u8-strnlen.c: New file.
25572         * lib/unistr/u16-strnlen.c: New file.
25573         * lib/unistr/u32-strnlen.c: New file.
25574         * lib/unistr/u-strnlen.h: New file.
25575
25576         * modules/unistr/u8-strpbrk: New file.
25577         * modules/unistr/u16-strpbrk: New file.
25578         * modules/unistr/u32-strpbrk: New file.
25579         * lib/unistr/u8-strpbrk.c: New file.
25580         * lib/unistr/u16-strpbrk.c: New file.
25581         * lib/unistr/u32-strpbrk.c: New file.
25582         * lib/unistr/u-strpbrk.h: New file.
25583
25584         * modules/unistr/u8-strrchr: New file.
25585         * modules/unistr/u16-strrchr: New file.
25586         * modules/unistr/u32-strrchr: New file.
25587         * lib/unistr/u8-strrchr.c: New file.
25588         * lib/unistr/u16-strrchr.c: New file.
25589         * lib/unistr/u32-strrchr.c: New file.
25590
25591         * modules/unistr/u8-strspn: New file.
25592         * modules/unistr/u16-strspn: New file.
25593         * modules/unistr/u32-strspn: New file.
25594         * lib/unistr/u8-strspn.c: New file.
25595         * lib/unistr/u16-strspn.c: New file.
25596         * lib/unistr/u32-strspn.c: New file.
25597         * lib/unistr/u-strspn.h: New file.
25598
25599         * modules/unistr/u8-strstr: New file.
25600         * modules/unistr/u16-strstr: New file.
25601         * modules/unistr/u32-strstr: New file.
25602         * lib/unistr/u8-strstr.c: New file.
25603         * lib/unistr/u16-strstr.c: New file.
25604         * lib/unistr/u32-strstr.c: New file.
25605         * lib/unistr/u-strstr.h: New file.
25606
25607         * modules/unistr/u8-strtok: New file.
25608         * modules/unistr/u16-strtok: New file.
25609         * modules/unistr/u32-strtok: New file.
25610         * lib/unistr/u8-strtok.c: New file.
25611         * lib/unistr/u16-strtok.c: New file.
25612         * lib/unistr/u32-strtok.c: New file.
25613         * lib/unistr/u-strtok.h: New file.
25614
25615         * modules/unistr/u8-uctomb: New file.
25616         * modules/unistr/u16-uctomb: New file.
25617         * modules/unistr/u32-uctomb: New file.
25618         * lib/unistr/u8-uctomb.c: New file.
25619         * lib/unistr/u16-uctomb.c: New file.
25620         * lib/unistr/u32-uctomb.c: New file.
25621
25622         * MODULES.html.sh (Unicode string functions): Add the new modules.
25623
25624 2007-01-08  Bruno Haible  <bruno@clisp.org>
25625
25626         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25627         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25628         subdirectories.
25629
25630 2007-01-08  Karl Berry  <karl@gnu.org>
25631
25632         * doc/error.texi: mention that main() fns must set program_name
25633         when progname is used.
25634
25635 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25636
25637         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25638         WCTYPE_H is empty, for the benefit of builds from non-distclean
25639         directories.  Problem reported by Eric Blake in
25640         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25641
25642 2007-01-08  Bruno Haible  <bruno@clisp.org>
25643
25644         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25645         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25646         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25647         PROVIDE_CANONICALIZE_FILENAME_MODE.
25648         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25649
25650 2007-01-08  Bruno Haible  <bruno@clisp.org>
25651
25652         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25653         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25654         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25655         * lib/fts.c: Likewise.
25656         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25657
25658 2006-12-25  Bruno Haible  <bruno@clisp.org>
25659
25660         * modules/utf8-ucs4-safe: New file.
25661         * lib/utf8-ucs4-safe.h: New file.
25662         * lib/unistr/utf8-ucs4-safe.c: New file.
25663
25664         * modules/utf16-ucs4-safe: New file.
25665         * lib/utf16-ucs4-safe.h: New file.
25666         * lib/unistr/utf16-ucs4-safe.c: New file.
25667
25668         * MODULES.html.sh (Unicode string functions): Add the new modules.
25669
25670 2007-01-08  Bruno Haible  <bruno@clisp.org>
25671
25672         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25673         (Depends-on): Add unitypes.
25674         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25675         (u8_mbtouc_aux): Move out to separate file.
25676         (u8_mbtouc): Use ucs4_t, uint8_t types.
25677         * lib/unistr/utf8-ucs4.c: New file.
25678
25679         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25680         (Depends-on): Add unitypes.
25681         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25682         (u16_mbtouc_aux): Move out to separate file.
25683         (u16_mbtouc): Use ucs4_t, uint16_t types.
25684         * lib/unistr/utf16-ucs4.c: New file.
25685
25686         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25687         (Depends-on): Add unitypes.
25688         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25689         (u8_uctomb_aux): Move out to separate file.
25690         (u8_uctomb): Use ucs4_t, uint8_t types.
25691         * lib/unistr/ucs4-utf8.c: New file.
25692
25693         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25694         (Depends-on): Add unitypes.
25695         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25696         (u16_uctomb_aux): Move out to separate file.
25697         (u16_uctomb): Use ucs4_t, uint16_t types.
25698         * lib/unistr/ucs4-utf16.c: New file.
25699
25700 2006-12-25  Bruno Haible  <bruno@clisp.org>
25701
25702         * modules/unitypes: New file.
25703         * lib/unitypes.h: New file.
25704         * MODULES.html.sh (func_all_modules): New section "Unicode string
25705         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25706         this section. Add unitypes.
25707
25708 2007-01-08  Bruno Haible  <bruno@clisp.org>
25709
25710         Avoid variable names that conflict with those from libtool.
25711         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25712         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25713         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25714         library_names_spec to acl_library_names_spec, hardcode_* to
25715         acl_hardcode_*.
25716         Reported by Ralf Wildenhues.
25717
25718 2007-01-08  Bruno Haible  <bruno@clisp.org>
25719
25720         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25721         definition.
25722         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25723         definition.
25724         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25725         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25726         definition.
25727         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25728         definition.
25729         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25730         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25731         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25732         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25733         definition.
25734         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25735         definition.
25736         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25737         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25738         GC_USE_<algorithm>.
25739         * lib/gc-libgcrypt.c: Likewise.
25740         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25741         * modules/gc-arctwo (configure.ac): Likewise.
25742         * modules/gc-des (configure.ac): Likewise.
25743         * modules/gc-hmac-md5 (configure.ac): Likewise.
25744         * modules/gc-hmac-sha1 (configure.ac): Likewise.
25745         * modules/gc-md2 (configure.ac): Likewise.
25746         * modules/gc-md4 (configure.ac): Likewise.
25747         * modules/gc-md5 (configure.ac): Likewise.
25748         * modules/gc-random (configure.ac): Likewise.
25749         * modules/gc-rijndael (configure.ac): Likewise.
25750         * modules/gc-sha1 (configure.ac): Likewise.
25751
25752 2007-01-08  Bruno Haible  <bruno@clisp.org>
25753
25754         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
25755         macro definition.
25756         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
25757         definition.
25758         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
25759         definition.
25760         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
25761         * modules/fcntl-safer (configure.ac): Likewise.
25762         * modules/fopen-safer (configure.ac): Likewise.
25763         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
25764         GNULIB_FWRITEERROR macro definition.
25765
25766 2007-01-08  Bruno Haible  <bruno@clisp.org>
25767
25768         * m4/gnulib-common.m4: New file.
25769         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
25770         (func_get_filelist): Add m4/gnulib-common.m4.
25771
25772 2007-01-08  Bruno Haible  <bruno@clisp.org>
25773
25774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
25775         command.
25776
25777 2007-01-08  Jim Meyering  <jim@meyering.net>
25778
25779         Use a more robust test for a "can't happen" condition.
25780         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
25781         narrowed the st_size value.  Presuming the "can't happen" condition
25782         is true, that narrowing could conceivably convert an invalid st_size
25783         value into a valid one.  Instead, use a change based on Matthew
25784         Woehlke's original patch.
25785
25786         Slight readability improvement: use an assert-like macro
25787         in place of literal "abort ()" uses.
25788         * lib/fts.c (fts_assert): Define.
25789         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
25790         Use this macro instead of a bare 'abort'.
25791
25792 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25793
25794         Don't worry about using IRIX 5.3's wctype.h broken definitions;
25795         simply work around them.
25796         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
25797         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
25798         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
25799         declaring.
25800         Don't bother to define as macros, since the standard doesn't require it.
25801         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
25802         longer worry about IRIX 5.3.
25803         (HAVE_WCTYPE_CTMP_BUG): Remove.
25804
25805 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25806
25807         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
25808         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
25809         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25810         Problems reported by Georg Schwarz for IRIX 5.3.
25811
25812         * gnulib-tool (autoconf_minversion): Take the maximum version number
25813         found, not the minimum.  Problem reported by James Youngman.
25814
25815 2007-01-03  Karl Berry  <karl@gnu.org>
25816
25817         * doc/error.texi: new file, explaining interaction with progname.
25818         * doc/gnulib.texi: include it.  Update copyright.
25819
25820 2007-01-03  Simon Josefsson  <simon@josefsson.org>
25821
25822         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
25823         AC_CANONICAL_HOST, to improve autobuild outputs.
25824
25825 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
25826             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25827
25828         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
25829         sockets, server sockets, and other file descriptors.  Count errors
25830         to compute the return value.  Reorder the code a bit to be easier
25831         to follow.  Don't set event bits that were not requested (except
25832         POLLERR and POLLHUP).
25833
25834 2007-01-01  Bruno Haible  <bruno@clisp.org>
25835
25836         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
25837
25838 2007-01-03  Jim Meyering  <jim@meyering.net>
25839
25840         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
25841
25842 2007-01-02  Bruno Haible  <bruno@clisp.org>
25843
25844         * modules/settime (Include): Require timespec.h.
25845         * modules/nanosleep (Include): Likewise.
25846
25847 2007-01-01  Bruno Haible  <bruno@clisp.org>
25848
25849         * gnulib-tool (func_emit_copyright_notice): Bump year.
25850         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
25851
25852 2007-01-01  Bruno Haible  <bruno@clisp.org>
25853
25854         Improve support for OpenBSD.
25855         * build-aux/config.rpath (libname_spec): Export.
25856         (library_names_spec): New variable. Export.
25857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
25858         library_names_spec from the config.rpath output. Locate shared library
25859         through the name pattern in library_names_spec.
25860
25861 2007-01-01  Eric Blake  <ebb9@byu.net>
25862
25863         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
25864
25865 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25866
25867         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
25868         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
25869         assume the C locale, and avoid an "eval" that could cause trouble.
25870         Problem with SORT reported by Bob Proulx.
25871
25872         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
25873         Define.  Trivial patch from Henning Nielsen Lund, originally
25874         sent to bug-grep@gnu.org today.
25875
25876 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25877
25878         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
25879         struct stat.  Problem reported by Henning Nielsen Lund.
25880         * lib/acl.c: Include acl.h first, to check interface.  Don't
25881         bother to include sys/types.h and sys/stat.h again.
25882
25883 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25884
25885         Import the following change from libc; problem reported by
25886         Sven Verdoolaege.
25887
25888         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
25889
25890         [BZ #1373]
25891         * lib/argp.h: Remove __NTH for __argp_usage inline function.
25892
25893 2006-12-28  Jim Meyering  <jim@meyering.net>
25894
25895         * build-aux/announce-gen: Do not assume that the package
25896         builds any of tar.gz, tar.bz2, and .xdelta files.
25897         Suggestion from Simon Josefsson.
25898
25899 2006-12-28  Simon Josefsson  <simon@josefsson.org>
25900
25901         * modules/announce-gen: New file.
25902
25903 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25904
25905         * lib/mbchar.h: Just include <wctype.h>; the wctype module
25906         handles its gotchas now.
25907         * lib/mbswidth.c: Likewise.
25908         * lib/wcwidth.h: Likewise.
25909         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
25910         and iswcntrl; the wctype module does this stuff now.
25911         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25913         * modules/mbchar (Depends-on): Add wctype.
25914         * modules/mbswidth (Depends-on): Likewise.
25915         * modules/wcwidth (Depends-on): Likewise.
25916
25917 2006-12-27  Eric Blake  <ebb9@byu.net>
25918
25919         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
25920         module uses more than what <wctype.h> is required to provide.
25921
25922 2006-12-26  Eric Blake  <ebb9@byu.net>
25923
25924         * gnulib-tool (sed_extract_prog): Avoid space-tab.
25925
25926 2006-12-26  Eric Blake  <ebb9@byu.net>
25927
25928         * modules/absolute-header: New module.
25929         * modules/fcntl (Depends-on): Depend on it.
25930         * modules/inttypes (Depends-on): Likewise.
25931         * modules/stdint (Depends-on): Likewise.
25932         * modules/sys_stat (Depends-on): Likewise.
25933         * modules/wctype (Depends-on): Likewise.
25934         * MODULES.html.sh (Support for building libraries and
25935         executables): Document it.
25936
25937 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25938
25939         * gnulib-tool (SED): Remove, undoing previous change.
25940         The problem was that it broke coreutils on Solaris, because
25941         "sed --posix" leaked into a makefile.
25942         (sed): New alias, if 'alias' and GNU sed.
25943
25944 2006-12-24  Jim Meyering  <jim@meyering.net>
25945
25946         Work around an fchownat bug in glibc-2.4:
25947         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
25948         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
25949         in spite of the -P option.
25950         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
25951         New macros.
25952         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
25953         * modules/openat (Files): Add lib/fchownat.c.
25954         * lib/openat.c (fchownat): Don't define here.  Move to...
25955         * lib/fchownat.c: ...this new file.
25956
25957 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25958
25959         Fix bug reported by Bruno Haible in
25960         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
25961         where quotearg.c didn't compile on Mac OS X 10.2 because it
25962         lacks <wchar.h> and wint_t.
25963         * lib/wctype_.h (__wctype_wint_t): New type.
25964         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
25965         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
25966         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
25967         Arg is now of type __wctype_wint_t, not wint_t.
25968         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
25969         substitute HAVE_WINT_T.
25970         * modules/wctype (Files): Add m4/wint_t.m4.
25971         (wctype.h): Substitute HAVE_WINT_T.
25972
25973 2006-12-23  Bruno Haible  <bruno@clisp.org>
25974
25975         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
25976
25977 2006-12-23  Bruno Haible  <bruno@clisp.org>
25978
25979         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
25980         S_ISLNK.
25981         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
25982         mingw.
25983
25984 2006-12-22  Bruno Haible  <bruno@clisp.org>
25985
25986         * lib/copy-file.c: Include acl.h.
25987         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
25988         Close the file descriptors only after being done with copy_acl.
25989         * modules/copy-file (Depends-on): Add acl.
25990
25991 2006-12-22  Bruno Haible  <bruno@clisp.org>
25992
25993         * gnulib-tool (SED): New variable.
25994         Use $SED instead of sed everywhere.
25995
25996 2006-12-22  Bruno Haible  <bruno@clisp.org>
25997
25998         * modules/no-c++: New file.
25999         * m4/no-c++.m4: New file.
26000         * MODULES.html.sh (Support for building libraries and executables):
26001         Add no-c++.
26002
26003 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26004
26005         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26006         Include <limits.h>, and use its INT_MAX to rewrite the
26007         j loop so that it does not overflow 'int'.  Problem reported by
26008         Ralf Wildenhues in
26009         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26010         Play it safe by shifting left by 1 rather than multiplying by 2,
26011         as GCC is less likely to optimize this away when the value
26012         is signed (when it assumes overflow leads to undefined behavior).
26013         Also, don't assume time_t uses two's complement.
26014
26015 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26016
26017         * MODULES.html.sh: New module wctype.
26018         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26019         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26020         <wctype.h>, since the new wctype module should fix this.
26021         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26022         the wctype module should arrange for it.
26023         * lib/regex_internal.h: Likewise.
26024         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26025         since the wctype module should handle this now.
26026         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26027         * modules/fnmatch (Depends-on): Add wctype.
26028         * modules/quotearg (Depends-on): Likewise.
26029         * modules/regex (Depends-on): Likewise.
26030
26031 2006-12-19  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26034         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26035
26036 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26037
26038         * modules/savewd (Depends-on): Fix dependency on fcntl.
26039
26040 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26041
26042         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26043         conforms to C99, rather than relying on the user's environment
26044         setting of STDINT_H.
26045
26046 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26047         and Eric Blake  <ebb9@byu.net>
26048
26049         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26050         This is more consistent with the other defines here.
26051         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26052         Port to z/OS.  Problem reported by Paul Gilmartin.
26053         Change local vars to use gl_ prefix rather than ac_.
26054         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26055         with other defines.
26056         * modules/double-slash-root: New module.
26057         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26058         (Depends-on): Add double-slash-root.
26059         * MODULES.html.sh (File system functions): Mention new module.
26060
26061 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26062
26063         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26064         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26065         This is for the benefit of gzip, which doesn't do i18n.
26066
26067 2006-12-12  Jim Meyering  <jim@meyering.net>
26068
26069         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26070         Reported by Andreas Schwab <schwab@suse.de>.
26071
26072 2006-12-12  Bruno Haible  <bruno@clisp.org>
26073
26074         Merge these changes.
26075         2006-09-05  Bruno Haible  <bruno@clisp.org>
26076         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26077         iconv_alloc succeeded.
26078         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26079         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26080         test for " && dest " at the end - dest is always != NULL there. Call
26081         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26082         with 2xNULL arguments, also to flush the state storage. Handle the
26083         IRIX iconv behaviour. Realloc the final result, to throw away unused
26084         memory.
26085
26086 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26087
26088         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26089         and fchmodat unconditionally, since glibc 2.4 has them.
26090         Problem reported by Arkadiusz Miskiewicz.
26091
26092 2006-12-10  Bruno Haible  <bruno@clisp.org>
26093
26094         * gnulib-tool (func_import): Show the include files only for those
26095         modules that are copied and specified.
26096         Reported by Karl Berry.
26097
26098 2006-12-08  Jim Meyering  <jim@meyering.net>
26099
26100         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26101         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26102
26103         * build-aux/announce-gen: Add two new options, both optional:
26104         --bootstrap-tools=TOOL_LIST
26105               a comma-separated list of tools, e.g.,
26106               autoconf,automake,bison,gnulib
26107         --gnulib-snapshot-date=DATE
26108               if gnulib is in the bootstrap tool list,
26109               then report this as the snapshot date.
26110               If not specified, use the current date/time.
26111               If you specify a date here, be sure it's UTC.
26112
26113 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26114
26115         * tests/test-argp-2.sh: Fix test to match actual output.
26116         (func_compare): Fix sed script to be portable.
26117
26118 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26119
26120         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26121         workaround for this case.  It is not autoconfigured now; offhand
26122         it's hard to see how to autoconfigure it.
26123
26124 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26125
26126         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26127         a directory that is about to be chowned.  Such a directory's
26128         initial file permissions should permit the owner only and this
26129         should not be changed until after the chown, since the group and
26130         other bits would be incorrect if they granted permission before
26131         the chown.
26132
26133         Fix porting problem for iswctype reported by Georg Schwarz in:
26134         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26135         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26136         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26139
26140 2006-12-03  Jim Meyering  <jim@meyering.net>
26141
26142         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26143         p->fts_statp may not yet be defined.
26144         (fts_read): Instead, set it in the caller, once p->fts_statp is
26145         sure to be defined, and corresponds to a top-level directory.
26146         This bug made du -x fail.  Here's the coreutils test case:
26147         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26148         Reported by Mike Frysinger.
26149
26150 2006-12-01  Jim Meyering  <jim@meyering.net>
26151
26152         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26153         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26154         Reported by Simon Josefsson.
26155
26156 2006-11-30  Jim Meyering  <jim@meyering.net>
26157
26158         * m4/warning.m4: Use the all-permissive copyright notice
26159         recommended by RMS (rather than LGPL).
26160         * m4/vararrays.m4: Likewise.
26161         * m4/flexmember.m4: Likewise.
26162
26163 2006-11-29  Bruno Haible  <bruno@clisp.org>
26164
26165         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26166         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26167         using +=.
26168         Reported by Simon Josefsson <simon@josefsson.org>.
26169
26170 2006-11-28  James Youngman <jay@gnu.org>
26171
26172         * README: Advise users that they might find the bug-gnulib@gnu.org
26173         and autotools-announce@gnu.org mailing lists useful.
26174
26175 2006-11-28  Bruno Haible  <bruno@clisp.org>
26176
26177         * m4/ptrdiff_max.m4: Remove file.
26178
26179 2006-11-21  Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26182         _AC_COMPUTE_INT.
26183         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26184         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26185         _AC_COMPUTE_INT.
26186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26187         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26188         _AC_COMPUTE_INT.
26189         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26190
26191 2006-11-28  Jim Meyering  <jim@meyering.net>
26192
26193         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26194         warning from "gcc -Wshadow" about shadowing the builtin.
26195
26196 2006-11-27  Bruno Haible  <bruno@clisp.org>
26197
26198         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26199         _AC_COMPUTE_INT.
26200         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26201
26202 2006-11-27  Bruno Haible  <bruno@clisp.org>
26203             Paul Eggert  <eggert@cs.ucla.edu>
26204
26205         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26206
26207 2006-11-26  Bruno Haible  <bruno@clisp.org>
26208
26209         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26210         noinst_LTLIBRARIES.
26211
26212 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26213             Bruno Haible  <bruno@clisp.org>
26214
26215         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26216         if compiling with "gcc -ansi".
26217
26218 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26219
26220         Fix some incompatibilities with gcc -ansi -pedantic.
26221         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26222         if compiling pedantically with GCC, unless it's C99 or later.
26223         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26224         it mishandles gcc -ansi -pedantic as well.
26225         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26226         if gcc -pedantic.
26227         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26228         initializers for struct if -pedantic, unless it's C99 or later.
26229
26230 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26231
26232         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26233         Don't close an fd more than once. Identical atimes indicate
26234         success, not failure.
26235
26236 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26237
26238         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26239
26240 2006-11-23  Jim Meyering  <jim@meyering.net>
26241
26242         * build-aux/announce-gen: New file.  From coreutils.
26243
26244 2006-11-22  Jim Meyering  <jim@meyering.net>
26245
26246         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26247         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26248         (fts_read): Use a temporary to narrow the overused st_size member
26249         before using it in a switch statement.  Reported by Matthew Woehlke.
26250
26251         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26252         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26253
26254 2006-11-20  Bruno Haible  <bruno@clisp.org>
26255
26256         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26257         changequote instead of pairs of brackets.
26258         Reported by Andreas Schwab <schwab@suse.de>.
26259
26260 2006-11-21  Jim Meyering  <jim@meyering.net>
26261
26262         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26263         so as to remain compatible with older compilers.
26264         Patch from Michael Deutschmann.
26265
26266 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26267
26268         * MODULES.html.sh (File system functions): Add openat.
26269
26270         * lib/openat.h (rpl_fstatat): New macro, if
26271         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26272         (fstatat): Define to rpl_fstatat under the same conditions,
26273         unless COMPILING_FSTATAT.
26274         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26275         seems to have the bug.
26276         * lib/fstatat.c: New file.
26277         * modules/openat (Files): Add it.
26278
26279 2006-11-20  Bruno Haible  <bruno@clisp.org>
26280
26281         * Makefile: New file.
26282
26283 2006-11-20  Jim Meyering  <jim@meyering.net>
26284
26285         The beginnings of syntax-related checks for gnulib.
26286         * lib/Makefile: New file.
26287         * lib/t-idcache: New script.  Ensure that the two halves of
26288         idcache.c stay in sync.
26289
26290         * lib/idcache.c: Adjust comments in user- and group- portions to
26291         be more accurate, and to be consistent with one another.
26292
26293 2006-11-20  Jim Meyering  <jim@meyering.net>
26294
26295         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26296         continue using the flexible array member (thus, this module performs
26297         half as many malloc calls), with the addition that...
26298         (getgroup, getuser): Consistently record a non-match via an empty
26299         "name" string, and map an empty string match to a NULL return value.
26300         * modules/idcache (Depends-on): Re-add flexmember.
26301
26302         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26303         (getuidbyname, getgroup, getgidbyname): Likewise.
26304
26305         Use cleaner syntax: NULL rather than 0.
26306         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26307
26308 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26309
26310         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26311         It mishandled the case where the group was missing.
26312         Problem reported by Greg Schafer.
26313         * modules/idcache: Likewise.
26314
26315 2006-11-18  Jim Meyering  <jim@meyering.net>
26316
26317         * check-module (%exempt_header): Add exception for some
26318         conditionally-included headers.
26319
26320         * modules/i-ring (Depends-on): Add verify.
26321         (License): Change to LGPL.
26322
26323 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26324
26325         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26326         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26327         and inttostr.h.  Use snprintf rather than uinttostr, so that
26328         LGPLed code doesn't depend on GPLed.
26329
26330 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26331
26332         * modules/inline (License): Change from GPL to LGPL.
26333
26334 2006-11-17  Jim Meyering  <jim@meyering.net>
26335
26336         * modules/d-type (License): Switch to LGPL.
26337
26338 2006-11-15  Bruno Haible  <bruno@clisp.org>
26339
26340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26341
26342 2006-11-15  Eric Blake  <ebb9@byu.net>
26343
26344         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26345         the module dependency.
26346
26347 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26348             Bruno Haible  <bruno@clisp.org>
26349
26350         * gnulib-tool (func_create_testdir): Add license consistency check.
26351
26352 2006-11-15  Eric Blake  <ebb9@byu.net>
26353
26354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26355         random "(cached)" in configure output.
26356
26357 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26358
26359         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26360         test for conforming inttypes.h is both announced and cached.
26361
26362         * MODULES.html.sh (seen_modules, seen_files): New variables.
26363         (func_module): Rewrite to use a few less gnulib-tool and sed
26364         invocations.  Avoid a couple of quadratic algorithms for ...
26365         (missed_modules, missed_files): ... these, with ...
26366         (func_append, func_tmpdir): ... these new functions, from
26367         gnulib-tool.  Analogously, install traps for cleanup.
26368
26369         * tests/test-gc.c (main): Remove unused variables.
26370         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26371
26372 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26373
26374         * modules/inttostr (License): Change to LGPL.
26375
26376 2006-11-14  Eric Blake  <ebb9@byu.net>
26377
26378         * modules/tempname (License): Change to LGPL.
26379
26380 2006-11-14  Eric Blake  <ebb9@byu.net>
26381
26382         * doc/functions.texi (Function Portability): *printf functions on
26383         Cygwin now understand all POSIX size specifiers.
26384
26385 2006-11-14  Bruno Haible  <bruno@clisp.org>
26386
26387         * modules/c-ctype (License): Change to LGPL.
26388
26389 2006-11-12  Bruno Haible  <bruno@clisp.org>
26390
26391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26392         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26393         for GNOME libraries, for which the include files are installed in
26394         subdirectories of $prefix/include.
26395
26396 2006-11-12  Bruno Haible  <bruno@clisp.org>
26397
26398         * m4/lib-link.m4: Require at least autoconf-2.54.
26399         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26400         name to underscores for the --with option.
26401
26402 2006-11-13  Bruno Haible  <bruno@clisp.org>
26403
26404         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26405         the tests directory.
26406         Reported by Ralf Wildenhues.
26407
26408 2006-11-13  Bruno Haible  <bruno@clisp.org>
26409
26410         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26411         (func_emit_initmacro_end): Undo the override here.
26412         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26413         Works around the famous automake error in coreutils.
26414
26415 2006-11-13  Eric Blake  <ebb9@byu.net>
26416
26417         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26418         element, not its node.
26419
26420 2006-11-12  Bruno Haible  <bruno@clisp.org>
26421
26422         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26423         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26424
26425 2006-11-12  Bruno Haible  <bruno@clisp.org>
26426
26427         * gnulib-tool: New option --local-symlink.
26428         (func_usage): Document it.
26429         (lsymbolic): New variable.
26430         (func_import, func_create_testdir): If --symlink was not specified,
26431         test whether --local-symlink was specified and the file comes from
26432         the local_gnulib_dir.
26433
26434 2006-11-12  Bruno Haible  <bruno@clisp.org>
26435
26436         * gnulib-tool (func_ln): New function.
26437         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26438
26439 2006-11-12  Bruno Haible  <bruno@clisp.org>
26440
26441         Finish support for source files in subdirectories.
26442         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26443         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26444         AUTOMAKE_OPTIONS.
26445         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26446
26447 2006-11-12  Bruno Haible  <bruno@clisp.org>
26448
26449         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26450         EXTRA_lib_SOURCES augmentation.
26451         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26452
26453 2006-11-12  Jim Meyering  <jim@meyering.net>
26454
26455         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26456         file descriptors.  This also averts a failure on systems with
26457         native openat support when a traversed directory lacks "x" access.
26458         * lib/fts_.h: Include "i-ring.h"
26459         (struct FTS) [fts_fd_ring]: New member.
26460         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26461         (FCHDIR): Add parentheses.
26462         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26463         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26464         When descending, rather than simply closing the previous
26465         fts_cwd_fd value, push that file descriptor onto the ring.
26466         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26467         (fts_open): Initialize the new fd_ring member.
26468         (fts_close): Clear the ring.
26469         (fts_safe_changedir): When possible, use our new fd_ring to skip
26470         the diropen and fstat and dev/ino comparison that would normally
26471         accompany a virtual `chdir ("..")'.
26472
26473         * modules/fts (Depends-on): Add i-ring.
26474         * modules/i-ring: New module.
26475         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26476         * m4/i-ring.m4: New file.
26477
26478 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26479
26480         * gnulib-tool (func_create_testdir): Fix replacement of
26481         `build-aux' in configure.ac.  Run autotools in gltests
26482         subdirectory.
26483         (func_create_testdir, func_create_megatestdir, test): There is
26484         no need for '--force' in most autotool invocations in a new
26485         tree.  Actually fail the whole test if any of the tools, or the
26486         configure or make stages fail.
26487
26488         Sync from Automake.
26489         * build-aux/gnupload: Revert last change.  Add pointer to upload
26490         instructions of the GNU Maintenance Instructions.
26491         Suggestion by Karl Berry.
26492
26493 2006-11-10  Jim Meyering  <jim@meyering.net>
26494
26495         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26496
26497 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26498
26499         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26500         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26501         (bind_textdomain_codeset) [! ENABLE_NLS]:
26502         Evaluate all the arguments.  That way, callers get compatible behavior
26503         if the arguments have side effects.  Also, it avoids some GCC
26504         diagnostics in some cases; Joel E. Denny reported problems when Bison
26505         was configured with --enable-gcc-warnigs.
26506
26507 2006-11-10  Jim Meyering  <jim@meyering.net>
26508
26509         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26510         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26511         account.
26512
26513 2006-11-10  Jim Meyering  <jim@meyering.net>
26514
26515         * modules/inline: New file/module.
26516         * modules/xalloc (Files): Remove m4/inline.m4.
26517         (Depends-on): Add inline, instead.
26518         * modules/oset: Likewise.
26519         * modules/list: Likewise.
26520
26521 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26524         Problem reported by Matthew Woehlke.
26525
26526 2006-11-09  Bruno Haible  <bruno@clisp.org>
26527
26528         * lib/tempname.c (gen_tempname): Remove variant that invokes
26529         __gen_tempname.
26530         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26531         __gen_tempname.
26532
26533 2006-11-08  Bruno Haible  <bruno@clisp.org>
26534
26535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26536         to 'yes' instead of 'cross-compiling'.
26537
26538 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26539
26540         * lib/quotearg.h (quotearg_free): New decl.
26541         * lib/quotearg.c (quotearg_free): New function.
26542         (slot0, nslots, slotvec0, slotvec):
26543         Now file-scope so that quotearg_free can get at them.
26544
26545 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26546
26547         Sync from Automake.
26548         * build-aux/gnupload: Add missing 'gnu' to example URL.
26549         Report by Karl Berry.
26550
26551 2006-11-08  Bruno Haible  <bruno@clisp.org>
26552
26553         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26554         Suggested by Paul Eggert.
26555
26556 2006-11-08  Jim Meyering  <jim@meyering.net>
26557
26558         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26559         It's already included if !_LIBC.
26560         (fts_safe_changedir): Add a comment.
26561
26562 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26563
26564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26565         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26566         Matthew Woehlke.
26567
26568         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26569         definitions up, to avoid colliding with change below.
26570         (static_inline) [HAVE_INLINE]: New macro.
26571         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26572         Provide extern decls when !HAVE_INLINE.  Do not define unless
26573         static_inline is defined, either by us or by xmalloc.c.  Use
26574         static_inline rather than static inline.
26575         (XCALLOC): Optimize sizeof(T) = 1 case.
26576         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26577
26578 2006-11-07  Bruno Haible  <bruno@clisp.org>
26579
26580         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26581         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26582         AC_C_INLINE.
26583         * modules/xalloc (Files): Add m4/inline.m4.
26584
26585 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26586
26587         * README: Fix typo.
26588         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26589         (Miscellanous Notes): ...from this.
26590
26591 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26592
26593         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26594         Mention that offsetof should be used instead of sizeof.
26595         From Bruno Haible.
26596
26597 2006-11-07  Bruno Haible  <bruno@clisp.org>
26598
26599         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26600
26601 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26602
26603         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26604         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26605         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26606         (gl_tree_add_before, gl_tree_add_after):
26607         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26608         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26609         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26610         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26611         (gl_linked_add_after, gl_linked_add_at): Likewise.
26612         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26613         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26614         (gl_tree_add_before, gl_tree_add_after): Likewise.
26615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26616         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26617         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26618
26619 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26620
26621         * lib/gl_oset.h: Use C comment style, not C++ comment style.
26622
26623 2006-11-06  Bruno Haible  <bruno@clisp.org>
26624
26625         * m4/inline.m4: New file.
26626         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26627         * modules/list (Files): Add m4/inline.m4.
26628         * modules/oset (Files): Likewise.
26629
26630 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26631
26632         * lib/idcache.c: Include <stddef.h>, for offsetof.
26633         (struct userid.name): Change from char * to a flexible array member.
26634         All uses changed.
26635         * modules/idcache (Depends-on): Add flexmember.
26636
26637         * MODULES.html.sh (Core language properties): New module flexmember.
26638         * modules/flexmember, m4/flexmember.m4: New files.
26639
26640         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26641         inline functions that are identical with the old xnmalloc_inline,
26642         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
26643         that we can avoid some unnecessary integer multiplications and
26644         divisions in the common case where the element size is known at
26645         compile time.
26646         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26647         needed.
26648         (xnboundedmalloc): Remove.
26649         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26650         arguments, for consistency with rest of this header.
26651         (xcharalloc): Rewrite using XNMALLOC.
26652         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26653         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
26654         versions have been moved to lib/xalloc.h and renamed to be the
26655         non-*_inline versions.
26656         (xmalloc, xrealloc): Implement without reference to the xnmalloc
26657         and xnrealloc functions, since those functions are now inline and
26658         now call us.
26659         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26660         renaming described above.
26661         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26662         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
26663         captures the dependency in AC_C_INLINE.
26664
26665         New module canonicalize-lgpl, proposed by Charles Wilson in
26666         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26667         with a few small changes afterwards.
26668         * MODULES.html.sh (File system functions): New module
26669         canonicalize-lgpl.
26670         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26671         and canonicalize_file_name.
26672         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26673         * modules/canonicalize-lgpl: New files.
26674
26675 2006-11-05  Bruno Haible  <bruno@clisp.org>
26676
26677         * gnulib-tool (func_import, func_create_testdir): Create directories
26678         also for files in subdirectories of lib/.
26679
26680 2006-11-05  Bruno Haible  <bruno@clisp.org>
26681
26682         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26683         ANSI C compliant.
26684
26685 2006-11-03  Bruno Haible  <bruno@clisp.org>
26686
26687         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26688         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26689         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26690         (xnboundedmalloc): New inline function.
26691         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26692         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26693         xmalloc.
26694         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26695         xmalloc.
26696         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26697         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26698         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26699         xmalloc.
26700         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26701         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26702         xmalloc.
26703         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26704         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26705         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26706         xmalloc.
26707         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26708         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26709         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26710         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26711         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26712         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26713         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26714
26715 2006-11-03  Bruno Haible  <bruno@clisp.org>
26716
26717         * lib/c-ctype.h [C++]: Define functions without name mangling.
26718         * lib/fwriteerror.h [C++]: Likewise.
26719         * lib/gcd.h [C++]: Likewise.
26720         * lib/linebreak.h [C++]: Likewise.
26721
26722 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26723
26724         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26725         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26726         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26727         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26728         Check for functions and headers just once.
26729         Check for declaration of canonicalize_file_name.
26730         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26731
26732 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26733
26734         * gnulib-tool (func_import): Fix typo in actioncmd.
26735
26736 2006-11-02  Bruno Haible  <bruno@clisp.org>
26737
26738         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26739         newline sequence in the Makefile.am snippet as a space, like "make"
26740         does.
26741         Reported by Roger Persson <perrog@gmail.com>.
26742
26743 2006-11-01  Bruno Haible  <bruno@clisp.org>
26744
26745         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
26746         already declared in <string.h>.
26747         * lib/strcase.h (strncasecmp): Don't declare it if yes.
26748
26749 2006-11-01  Bruno Haible  <bruno@clisp.org>
26750
26751         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
26752         * lib/strcase.h: Include <string.h>.
26753         (strcasecmp): Define to rpl_strcasecmp here.
26754
26755 2006-11-01  Bruno Haible  <bruno@clisp.org>
26756
26757         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
26758
26759 2006-11-01  Eric Blake  <ebb9@byu.net>
26760
26761         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
26762
26763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
26764
26765 2006-10-29  Bruno Haible  <bruno@clisp.org>
26766
26767         Make it compile in C++ mode.
26768         * lib/full-write.c (full_rw): Add a cast.
26769
26770 2006-11-01  Bruno Haible  <bruno@clisp.org>
26771
26772         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
26773         be POSIX compliant.
26774         Reported by Roger Persson <perrog@gmail.com>.
26775
26776 2006-11-01  Eric Blake  <ebb9@byu.net>
26777
26778         * lib/getopt_.h: Fix comments.
26779
26780 2006-10-31  Eric Blake  <ebb9@byu.net>
26781
26782         * modules/tmpdir (Depends-on): Add sys_stat.
26783         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26784         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
26785         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
26786         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
26787         tempname.
26788
26789 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26790
26791         Avoid some C++ diagnostics reported by Bruno Haible.
26792         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
26793         xmalloc.
26794         (quotearg_alloc): Use xcharalloc rather than xmalloc.
26795         (struct slotvec): Move to top level.
26796         (quotearg_n_options): Rewrite to avoid xmalloc.
26797         * lib/xalloc.h (xcharalloc): New function.
26798         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
26799         [defined __cplusplus]: Add function template that provides result
26800         type propagation.  This part of the change is from Bruno Haible.
26801
26802 2006-10-29  Bruno Haible  <bruno@clisp.org>
26803
26804         Make it compile in C++ mode.
26805         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
26806         * lib/strnlen1.c (strnlen1): Cast memchr result.
26807         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
26808         * lib/clean-temp.c (string_equals, string_hash): Add casts.
26809         (create_temp_dir): Rename local variable 'template'.
26810         (compile_csharp_using_sscli): Add cast.
26811         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
26812         * lib/findprog.c (find_in_path): Likewise.
26813         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
26814         * lib/wait-process.c (register_slave_subprocess): Likewise.
26815
26816 2006-10-22  Bruno Haible  <bruno@clisp.org>
26817
26818         * modules/tsearch: New file.
26819         * lib/tsearch.h: New file.
26820         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
26821         * m4/tsearch.m4: New file.
26822         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
26823
26824 2006-10-29  Eric Blake  <ebb9@byu.net>
26825
26826         * lib/arcfour.c: Assume config.h.
26827         * lib/arctwo.c: Likewise.
26828         * lib/base64.c: Likewise.
26829         * lib/check-version.c: Likewise.
26830         * lib/crc.c: Likewise.
26831         * lib/des.c: Likewise.
26832         * lib/gc-gnulib.c: Likewise.
26833         * lib/gc-libgcrypt.c: Likewise.
26834         * lib/gc-pbkdf2-sha1.c: Likewise.
26835         * lib/getaddrinfo.c: Likewise.
26836         * lib/getdelim.c: Likewise.
26837         * lib/getline.c: Likewise.
26838         * lib/hmac-md5.c: Likewise.
26839         * lib/hmac-sha1.c: Likewise.
26840         * lib/iconvme.c: Likewise.
26841         * lib/md2.c: Likewise.
26842         * lib/md4.c: Likewise.
26843         * lib/memxor.c: Likewise.
26844         * lib/read-file.c: Likewise.
26845         * lib/readline.c: Likewise.
26846         * lib/rijndael-alg-fst.c: Likewise.
26847         * lib/rijndael-api-fst.c: Likewise.
26848         * lib/xgetdomainname.c: Likewise.
26849
26850 2006-10-28  Eric Blake  <ebb9@byu.net>
26851
26852         * lib/xstrndup.c: Assume config.h.
26853
26854 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26855
26856         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
26857         stat-macros.h is now for our own macros, whereas stat_h is for
26858         macros in the <sys/stat.h> name space.
26859         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
26860         (STAT_MACROS_H): Remove.
26861         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
26862         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
26863         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
26864         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
26865         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
26866         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
26867         Move these macros to ...
26868         * lib/stat_.h: here.  Don't include stat-macros.h.
26869         * lib/canonicalize.c: Don't include stat-macros.h.
26870         * lib/chown.c: Likewise.
26871         * lib/euidaccess.c: Likewise.
26872         * lib/file-type.c: Likewise.
26873         * lib/filemode.c: Likewise.
26874         * lib/glob.c: Likewise.
26875         * lib/isapipe.c: Likewise.
26876         * lib/lchown.c: Likewise.
26877         * lib/lstat.c: Likewise.
26878         * lib/mkdir-p.c: Likewise.
26879         * lib/rmdir.c: Likewise.
26880         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
26881         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
26882         unless mkdir isn't declared, to speed up 'configure'.
26883         Always create sys/stat.h, since it's unlikely any real sys/stat.h
26884         would define all the S_* symbols.
26885         * modules/canonicalize (Depends-on):
26886         Depend on sys_stat, not stat-macros.
26887         * modules/chown: Likewise.
26888         * modules/euidaccess: Likewise.
26889         * modules/filemode: Likewise.
26890         * modules/file-type: Likewise.
26891         * modules/glob: Likewise.
26892         * modules/isapipe: Likewise.
26893         * modules/lchown: Likewise.
26894         * modules/lstat: Likewise.
26895         * modules/mkancesdirs: Likewise.
26896         * modules/rmdir: Likewise.
26897         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
26898         * modules/modechange: Likewise.
26899         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
26900         (configure.ac): Remove gl_STAT_MACROS.
26901         * modules/sys_stat (Depends-on): Remove stat-macros.
26902
26903 2006-10-27  Bruno Haible  <bruno@clisp.org>
26904
26905         * m4/signed.m4: Remove file.
26906         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
26907         invocation.
26908         * modules/vasnprintf (Files): Remove m4/signed.m4.
26909
26910 2006-10-27  Bruno Haible  <bruno@clisp.org>
26911
26912         Update to GNU gettext 0.16.
26913         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
26914         m4/inttypes-h.m4, m4/signed.m4.
26915         * m4/gettext.m4: Update to GNU gettext 0.16.
26916         * m4/intl.m4: New file, from GNU gettext.
26917         * m4/intldir.m4: New file, from GNU gettext.
26918         * config/srclist.txt: Update
26919
26920 2006-10-27  Eric Blake  <ebb9@byu.net>
26921
26922         * MODULES.html.sh: Document tempname.
26923         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
26924         dependencies.
26925         (Files): Move lib/tempname.c...
26926         * modules/tempname: ...to this new module.
26927         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
26928         (gl_PREREQ_TEMPNAME): Move...
26929         * m4/tempname.m4: ...to this new file.
26930         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
26931         * modules/sys_stat (Depends-on): Add stat-macros.
26932         * lib/stat_.h (includes): Pick up stat macros.
26933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
26934         if stat macros are broken.
26935         * lib/tempname.c (includes): No need to include "stat-macros.h".
26936         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
26937         (direxists, __path_search) [!_LIBC]: Don't compile these in
26938         gnulib; the tmpdir module covers that.
26939         * lib/tempname.h: New file.
26940
26941 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26942
26943         * COPYING: Explain how gnulib-tool converts licence headers.
26944         Almost all wording by Eric Blake.
26945
26946 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26947
26948         * lib/mbchar.h (is_basic_table): Make read-only.
26949         * lib/mbchar.c (is_basic_table): Likewise.
26950         Reported by John Darrington.
26951
26952 2006-10-25  Bruno Haible  <bruno@clisp.org>
26953
26954         * lib/progname.h (set_program_name): Undefine before defining.
26955
26956 2006-10-25  Bruno Haible  <bruno@clisp.org>
26957
26958         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
26959         false for non-gcc C++ compilers.
26960         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26961
26962 2006-10-24  Bruno Haible  <bruno@clisp.org>
26963
26964         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
26965         iconv implementations like Irix iconv.
26966
26967 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26968
26969         * modules/vararrays: New file.
26970         * m4/vararrays.m4: New file, taken from diffutils.
26971         * MODULES.html.sh: New module vararrays.
26972
26973 2006-10-24  Karl Berry  <karl@gnu.org>
26974
26975         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
26976         Don't call GNU Unix.
26977
26978 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26979
26980         * users.txt: Add Libtool.
26981
26982         Sync from Libtool:
26983
26984         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26985
26986         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
26987         to gnulib's policy of including config.h unconditionally.
26988
26989 2006-10-24  Bruno Haible  <bruno@clisp.org>
26990
26991         * modules/wcwidth (Files): Add m4/wint_t.m4.
26992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
26993         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
26994
26995 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26996
26997         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
26998         to pacify GCC with some -W flags enabled.  Problem reported by
26999         Bruno Haible.
27000
27001 2006-10-24  Jim Meyering  <jim@meyering.net>
27002
27003         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27004         Reported by Karl Berry.
27005
27006 2006-10-23  Bruno Haible  <bruno@clisp.org>
27007
27008         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27009
27010 2006-10-24  Bruno Haible  <bruno@clisp.org>
27011
27012         * lib/gl_list.h: Use C comment style, not C++ comment style.
27013
27014 2006-10-23  Eric Blake  <ebb9@byu.net>
27015
27016         * lib/getaddrinfo.c (includes): Add missing include.
27017
27018 2006-10-23  Bruno Haible  <bruno@clisp.org>
27019             Paul Eggert  <eggert@cs.ucla.edu>
27020
27021         Ability to rename obstack_free.
27022         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27023         obstack_free.
27024         (obstack_free): Invoke the __obstack_free macro.
27025         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27026
27027 2006-10-23  Bruno Haible  <bruno@clisp.org>
27028             Paul Eggert  <eggert@cs.ucla.edu>
27029
27030         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27031         __argc, __argv from the declaration. (They are defined as macros on
27032         mingw.)
27033
27034 2006-10-22  Bruno Haible  <bruno@clisp.org>
27035
27036         * doc/gnulib-intro.texi: New file.
27037         * doc/gnulib.texi: Include it.
27038
27039 2006-10-21  Bruno Haible  <bruno@clisp.org>
27040
27041         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27042         "Introduction", "Miscellanous Notes", "Particular Modules".
27043
27044 2006-10-21  Bruno Haible  <bruno@clisp.org>
27045
27046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27047         Change mostlyclean-local rule to avoid sh syntax error from bash
27048         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27049
27050 2006-10-23  Jim Meyering  <jim@meyering.net>
27051
27052         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27053         in place of snprintf.
27054
27055         * modules/inttostr (Files): Add lib/uinttostr.c.
27056         * lib/uinttostr.c (inttostr): New file/function.
27057         * lib/inttostr.h (uinttostr): Declare.
27058         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27059         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27060         Add uinttostr.
27061         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27062
27063 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27064
27065         * lib/canonicalize.c (ELOOP): Define if not already defined.
27066         Problem reported by Bruno Haible in
27067         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27068
27069 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27070
27071         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27072         Problem reported by Perry Smith and Ville Laurikari.
27073
27074         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27075         uses.
27076
27077 2006-10-19  Bruno Haible  <bruno@clisp.org>
27078
27079         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27080         for mingw.
27081
27082 2006-10-19  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27085         Needed for mingw.
27086
27087 2006-10-19  Bruno Haible  <bruno@clisp.org>
27088
27089         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27090
27091 2006-10-19  Bruno Haible  <bruno@clisp.org>
27092
27093         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27094         it.
27095
27096 2006-10-19  Bruno Haible  <bruno@clisp.org>
27097
27098         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27099         invocation.
27100
27101 2006-10-19  Bruno Haible  <bruno@clisp.org>
27102
27103         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27104         mountlist by default.
27105
27106 2006-10-16  Bruno Haible  <bruno@clisp.org>
27107
27108         * lib/c-strstr.c: Include c-strstr.h.
27109
27110 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27111
27112         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27113         in a slash.
27114
27115 2006-10-18  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/lock.h [C++]: Wrap definitions in extern "C".
27118
27119 2006-10-18  Bruno Haible  <bruno@clisp.org>
27120
27121         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27122         gl_LIBOBJS list.
27123
27124 2006-10-18  Bruno Haible  <bruno@clisp.org>
27125
27126         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27127
27128 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27129
27130         * lib/xstrtol.h: Include gettext.h.
27131         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27132         Problem reported by Eric Blake.
27133         * modules/xstrtol (Depends-on): Add gettext-h.
27134
27135 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27136
27137         * lib/strftime.c (advance): New macro.
27138         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27139         incomplete type, so you can't add 0 to it.  Problem and patch
27140         reported by Eelco Dolstra for dietlibc.
27141
27142 2006-10-18  Jim Meyering  <jim@meyering.net>
27143
27144         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27145         type for a local, and rename it: s/up/user_proc/.
27146
27147 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27148
27149         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27150         READ_UTMP_USER_PROCESS.
27151         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27152
27153 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27154
27155         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27156         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27157
27158 2006-10-17  Eric Blake  <ebb9@byu.net>
27159
27160         * lib/sigprocmask.c (sigprocmask): Fix typo.
27161
27162         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27163
27164         * modules/clean-temp (Makefile.am): Don't add to make output...
27165         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27166         config.h.
27167
27168 2006-10-17  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27171         differently if DEFAULT_TEXT_DOMAIN is set.
27172
27173 2006-10-16  Bruno Haible  <bruno@clisp.org>
27174
27175         * lib/clean-temp.c: Include fwriteerror.h.
27176
27177 2006-10-16  Bruno Haible  <bruno@clisp.org>
27178
27179         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27180
27181 2006-10-16  Bruno Haible  <bruno@clisp.org>
27182
27183         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27184         * lib/sigprocmask.h: Include <sys/types.h>.
27185         (sigset_t): Use the system's definition if present.
27186
27187 2006-10-17  Eric Blake  <ebb9@byu.net>
27188
27189         * lib/xvasprintf.c (includes): Assume config.h.
27190         * lib/xasprintf.c (includes): Likewise.
27191
27192 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27193
27194         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27195         at least as wide as intmax_t.
27196
27197 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27198
27199         (Imported from Automake.)
27200         * build-aux/gnupload: Update to version 1.1 of directive file.
27201
27202 2006-10-16  Eric Blake  <ebb9@byu.net>
27203
27204         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27205         match Automake 1.10a.
27206
27207 2006-10-14  Bruno Haible  <bruno@clisp.org>
27208
27209         * modules/sigprocmask: New file.
27210         * lib/sigprocmask.h: New file.
27211         * lib/sigprocmask.c: New file.
27212         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27213         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27214         request sigprocmask.o.
27215         (gl_PREREQ_SIGPROCMASK): New macro.
27216         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27217         (Depends-on): Add sigprocmask.
27218         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27219         gt_SIGNALBLOCKING. Test for 'raise' only once.
27220         * lib/fatal-signal.c: Include sigprocmask.h.
27221         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27222         unblock_fatal_signals): Define always.
27223         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27224         sigprocmask.
27225
27226 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27227
27228         Sync from Automake.
27229         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27230         which incorrectly sets the mode of an existing destination
27231         directory.  In some cases the unpatched install-sh could do the
27232         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27233         system.  We hope this is rare in practice, but it's clearly worth
27234         fixing.  Problem reported by Alex Unleashed in
27235         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27236         Also, don't bother to check for -m bugs unless we're using -m;
27237         suggested by Stepan Kasal.
27238
27239 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27240
27241         Sync from Automake.
27242         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27243         `-c' flag, so they appear at the same position as in %FASTDEP%
27244         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27245         which ignores unknown options only after the first non-option.
27246         Bug report against M4 by Nelson H. F. Beebe.
27247
27248 2006-10-13  Jim Meyering  <jim@meyering.net>
27249
27250         Fix a bug in yesterday's change.
27251         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27252         p->fts_statp->st_dev would be used uninitialized.
27253         Ensures that we always call fts_stat on the very first entry.
27254         Miklos Szeredi reported that find -xdev stopped working.
27255
27256 2006-10-12  Bruno Haible  <bruno@clisp.org>
27257
27258         * gnulib-tool (func_get_automake_snippet): Append an automatically
27259         computed EXTRA_DIST augmentation.
27260         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27261         * modules/alloca-opt (Makefile.am): Likewise.
27262         * modules/allocsa (Makefile.am): Likewise.
27263         * modules/arcfour (Makefile.am): Likewise.
27264         * modules/arctwo (Makefile.am): Likewise.
27265         * modules/argmatch (Makefile.am): Likewise.
27266         * modules/argz (Makefile.am): Likewise.
27267         * modules/atexit (Makefile.am): Likewise.
27268         * modules/backupfile (Makefile.am): Likewise.
27269         * modules/byteswap (Makefile.am): Likewise.
27270         * modules/c-strtod (Makefile.am): Likewise.
27271         * modules/c-strtold (Makefile.am): Likewise.
27272         * modules/calloc (Makefile.am): Likewise.
27273         * modules/canon-host (Makefile.am): Likewise.
27274         * modules/canonicalize (Makefile.am): Likewise.
27275         * modules/chdir-long (Makefile.am): Likewise.
27276         * modules/chdir-safer (Makefile.am): Likewise.
27277         * modules/check-version (Makefile.am): Likewise.
27278         * modules/chown (Makefile.am): Likewise.
27279         * modules/cloexec (Makefile.am): Likewise.
27280         * modules/close-stream (Makefile.am): Likewise.
27281         * modules/closeout (Makefile.am): Likewise.
27282         * modules/crc (Makefile.am): Likewise.
27283         * modules/csharpexec (Makefile.am): Likewise.
27284         * modules/cycle-check (Makefile.am): Likewise.
27285         * modules/des (Makefile.am): Likewise.
27286         * modules/dev-ino (Makefile.am): Likewise.
27287         * modules/dirfd (Makefile.am): Likewise.
27288         * modules/dirname (Makefile.am): Likewise.
27289         * modules/dup2 (Makefile.am): Likewise.
27290         * modules/eealloc (Makefile.am): Likewise.
27291         * modules/error (Makefile.am): Likewise.
27292         * modules/euidaccess (Makefile.am): Likewise.
27293         * modules/exclude (Makefile.am): Likewise.
27294         * modules/exitfail (Makefile.am): Likewise.
27295         * modules/fcntl-safer (Makefile.am): Likewise.
27296         * modules/fcntl (Makefile.am): Likewise.
27297         * modules/file-type (Makefile.am): Likewise.
27298         * modules/fileblocks (Makefile.am): Likewise.
27299         * modules/filemode (Makefile.am): Likewise.
27300         * modules/filenamecat (Makefile.am): Likewise.
27301         * modules/fnmatch (Makefile.am): Likewise.
27302         * modules/fopen-safer (Makefile.am): Likewise.
27303         * modules/fpending (Makefile.am): Likewise.
27304         * modules/fprintftime (Makefile.am): Likewise.
27305         * modules/free (Makefile.am): Likewise.
27306         * modules/fsusage (Makefile.am): Likewise.
27307         * modules/ftruncate (Makefile.am): Likewise.
27308         * modules/fts (Makefile.am): Likewise.
27309         * modules/gc-arcfour (Makefile.am): Likewise.
27310         * modules/gc-des (Makefile.am): Likewise.
27311         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27312         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27313         * modules/gc-md4 (Makefile.am): Likewise.
27314         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27315         * modules/gc-sha1 (Makefile.am): Likewise.
27316         * modules/gc (Makefile.am): Likewise.
27317         * modules/getaddrinfo (Makefile.am): Likewise.
27318         * modules/getcwd (Makefile.am): Likewise.
27319         * modules/getdelim (Makefile.am): Likewise.
27320         * modules/getdomainname (Makefile.am): Likewise.
27321         * modules/getgroups (Makefile.am): Likewise.
27322         * modules/gethostname (Makefile.am): Likewise.
27323         * modules/gethrxtime (Makefile.am): Likewise.
27324         * modules/getline (Makefile.am): Likewise.
27325         * modules/getloadavg (Makefile.am): Likewise.
27326         * modules/getlogin_r (Makefile.am): Likewise.
27327         * modules/getndelim2 (Makefile.am): Likewise.
27328         * modules/getopt (Makefile.am): Likewise.
27329         * modules/getpagesize (Makefile.am): Likewise.
27330         * modules/getpass-gnu (Makefile.am): Likewise.
27331         * modules/getpass (Makefile.am): Likewise.
27332         * modules/getsubopt (Makefile.am): Likewise.
27333         * modules/gettime (Makefile.am): Likewise.
27334         * modules/gettimeofday (Makefile.am): Likewise.
27335         * modules/getugroups (Makefile.am): Likewise.
27336         * modules/getusershell (Makefile.am): Likewise.
27337         * modules/glob (Makefile.am): Likewise.
27338         * modules/group-member (Makefile.am): Likewise.
27339         * modules/hard-locale (Makefile.am): Likewise.
27340         * modules/hash (Makefile.am): Likewise.
27341         * modules/hmac-md5 (Makefile.am): Likewise.
27342         * modules/hmac-sha1 (Makefile.am): Likewise.
27343         * modules/human (Makefile.am): Likewise.
27344         * modules/idcache (Makefile.am): Likewise.
27345         * modules/imaxabs (Makefile.am): Likewise.
27346         * modules/imaxdiv (Makefile.am): Likewise.
27347         * modules/inet_ntop (Makefile.am): Likewise.
27348         * modules/inet_pton (Makefile.am): Likewise.
27349         * modules/intprops (Makefile.am): Likewise.
27350         * modules/inttostr (Makefile.am): Likewise.
27351         * modules/inttypes (Makefile.am): Likewise.
27352         * modules/isapipe (Makefile.am): Likewise.
27353         * modules/javaversion (Makefile.am): Likewise.
27354         * modules/lchmod (Makefile.am): Likewise.
27355         * modules/lchown (Makefile.am): Likewise.
27356         * modules/localcharset (Makefile.am): Likewise.
27357         * modules/long-options (Makefile.am): Likewise.
27358         * modules/lstat (Makefile.am): Likewise.
27359         * modules/malloc (Makefile.am): Likewise.
27360         * modules/mathl (Makefile.am): Likewise.
27361         * modules/mbchar (Makefile.am): Likewise.
27362         * modules/md2 (Makefile.am): Likewise.
27363         * modules/md4 (Makefile.am): Likewise.
27364         * modules/md5 (Makefile.am): Likewise.
27365         * modules/memcasecmp (Makefile.am): Likewise.
27366         * modules/memchr (Makefile.am): Likewise.
27367         * modules/memcmp (Makefile.am): Likewise.
27368         * modules/memcoll (Makefile.am): Likewise.
27369         * modules/memcpy (Makefile.am): Likewise.
27370         * modules/memmem (Makefile.am): Likewise.
27371         * modules/memmove (Makefile.am): Likewise.
27372         * modules/mempcpy (Makefile.am): Likewise.
27373         * modules/memrchr (Makefile.am): Likewise.
27374         * modules/memset (Makefile.am): Likewise.
27375         * modules/memxor (Makefile.am): Likewise.
27376         * modules/mkancesdirs (Makefile.am): Likewise.
27377         * modules/mkdir-p (Makefile.am): Likewise.
27378         * modules/mkdir (Makefile.am): Likewise.
27379         * modules/mkdtemp (Makefile.am): Likewise.
27380         * modules/mkstemp (Makefile.am): Likewise.
27381         * modules/mktime (Makefile.am): Likewise.
27382         * modules/modechange (Makefile.am): Likewise.
27383         * modules/mountlist (Makefile.am): Likewise.
27384         * modules/nanosleep (Makefile.am): Likewise.
27385         * modules/obstack (Makefile.am): Likewise.
27386         * modules/openat (Makefile.am): Likewise.
27387         * modules/pagealign_alloc (Makefile.am): Likewise.
27388         * modules/pathmax (Makefile.am): Likewise.
27389         * modules/physmem (Makefile.am): Likewise.
27390         * modules/poll (Makefile.am): Likewise.
27391         * modules/posixtm (Makefile.am): Likewise.
27392         * modules/posixver (Makefile.am): Likewise.
27393         * modules/putenv (Makefile.am): Likewise.
27394         * modules/quote (Makefile.am): Likewise.
27395         * modules/quotearg (Makefile.am): Likewise.
27396         * modules/raise (Makefile.am): Likewise.
27397         * modules/read-file (Makefile.am): Likewise.
27398         * modules/readline (Makefile.am): Likewise.
27399         * modules/readlink (Makefile.am): Likewise.
27400         * modules/readtokens (Makefile.am): Likewise.
27401         * modules/readutmp (Makefile.am): Likewise.
27402         * modules/realloc (Makefile.am): Likewise.
27403         * modules/regex (Makefile.am): Likewise.
27404         * modules/rename-dest-slash (Makefile.am): Likewise.
27405         * modules/rename (Makefile.am): Likewise.
27406         * modules/rijndael (Makefile.am): Likewise.
27407         * modules/rmdir (Makefile.am): Likewise.
27408         * modules/rpmatch (Makefile.am): Likewise.
27409         * modules/safe-read (Makefile.am): Likewise.
27410         * modules/safe-write (Makefile.am): Likewise.
27411         * modules/same-inode (Makefile.am): Likewise.
27412         * modules/same (Makefile.am): Likewise.
27413         * modules/save-cwd (Makefile.am): Likewise.
27414         * modules/savedir (Makefile.am): Likewise.
27415         * modules/setenv (Makefile.am): Likewise.
27416         * modules/settime (Makefile.am): Likewise.
27417         * modules/sha1 (Makefile.am): Likewise.
27418         * modules/sig2str (Makefile.am): Likewise.
27419         * modules/snprintf (Makefile.am): Likewise.
27420         * modules/stat-macros (Makefile.am): Likewise.
27421         * modules/stat-time (Makefile.am): Likewise.
27422         * modules/stdbool (Makefile.am): Likewise.
27423         * modules/stdint (Makefile.am): Likewise.
27424         * modules/stdlib-safer (Makefile.am): Likewise.
27425         * modules/stpcpy (Makefile.am): Likewise.
27426         * modules/stpncpy (Makefile.am): Likewise.
27427         * modules/strcase (Makefile.am): Likewise.
27428         * modules/strcasestr (Makefile.am): Likewise.
27429         * modules/strchrnul (Makefile.am): Likewise.
27430         * modules/strcspn (Makefile.am): Likewise.
27431         * modules/strdup (Makefile.am): Likewise.
27432         * modules/strerror (Makefile.am): Likewise.
27433         * modules/strftime (Makefile.am): Likewise.
27434         * modules/strndup (Makefile.am): Likewise.
27435         * modules/strnlen (Makefile.am): Likewise.
27436         * modules/strpbrk (Makefile.am): Likewise.
27437         * modules/strsep (Makefile.am): Likewise.
27438         * modules/strstr (Makefile.am): Likewise.
27439         * modules/strtod (Makefile.am): Likewise.
27440         * modules/strtoimax (Makefile.am): Likewise.
27441         * modules/strtok_r (Makefile.am): Likewise.
27442         * modules/strtol (Makefile.am): Likewise.
27443         * modules/strtoll (Makefile.am): Likewise.
27444         * modules/strtoul (Makefile.am): Likewise.
27445         * modules/strtoull (Makefile.am): Likewise.
27446         * modules/strtoumax (Makefile.am): Likewise.
27447         * modules/strverscmp (Makefile.am): Likewise.
27448         * modules/sys_socket (Makefile.am): Likewise.
27449         * modules/sys_stat (Makefile.am): Likewise.
27450         * modules/sysexits (Makefile.am): Likewise.
27451         * modules/time_r (Makefile.am): Likewise.
27452         * modules/timegm (Makefile.am): Likewise.
27453         * modules/timespec (Makefile.am): Likewise.
27454         * modules/tmpfile-safer (Makefile.am): Likewise.
27455         * modules/trim (Makefile.am): Likewise.
27456         * modules/unistd-safer (Makefile.am): Likewise.
27457         * modules/unlinkdir (Makefile.am): Likewise.
27458         * modules/unlocked-io (Makefile.am): Likewise.
27459         * modules/userspec (Makefile.am): Likewise.
27460         * modules/utime (Makefile.am): Likewise.
27461         * modules/utimecmp (Makefile.am): Likewise.
27462         * modules/utimens (Makefile.am): Likewise.
27463         * modules/vasnprintf (Makefile.am): Likewise.
27464         * modules/vasprintf (Makefile.am): Likewise.
27465         * modules/vsnprintf (Makefile.am): Likewise.
27466         * modules/xalloc (Makefile.am): Likewise.
27467         * modules/xgetcwd (Makefile.am): Likewise.
27468         * modules/xnanosleep (Makefile.am): Likewise.
27469         * modules/xreadlink (Makefile.am): Likewise.
27470         * modules/xstrtod (Makefile.am): Likewise.
27471         * modules/xstrtol (Makefile.am): Likewise.
27472         * modules/xstrtold (Makefile.am): Likewise.
27473         * modules/yesno (Makefile.am): Likewise.
27474         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27475
27476 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27477
27478         * modules/error (Makefile.am): Distribute files through
27479         EXTRA_DIST, not lib_SOURCES.
27480
27481 2006-10-12  Eric Blake  <ebb9@byu.net>
27482
27483         * modules/error (Makefile.am): Distribute files in /lib.
27484         * modules/obstack (Makefile.am): Likewise.
27485
27486 2006-10-12  Bruno Haible  <bruno@clisp.org>
27487
27488         * modules/acl (Makefile.am): Distribute all files in lib/ through
27489         EXTRA_DIST.
27490         * modules/arcfour (Makefile.am): Likewise.
27491         * modules/arctwo (Makefile.am): Likewise.
27492         * modules/argmatch (Makefile.am): Likewise.
27493         * modules/argz (Makefile.am): Likewise.
27494         * modules/atexit (Makefile.am): Likewise.
27495         * modules/backupfile (Makefile.am): Likewise.
27496         * modules/c-strtod (Makefile.am): Likewise.
27497         * modules/c-strtold (Makefile.am): Likewise.
27498         * modules/calloc (Makefile.am): Likewise.
27499         * modules/canon-host (Makefile.am): Likewise.
27500         * modules/canonicalize (Makefile.am): Likewise.
27501         * modules/chdir-long (Makefile.am): Likewise.
27502         * modules/chdir-safer (Makefile.am): Likewise.
27503         * modules/check-version (Makefile.am): Likewise.
27504         * modules/chown (Makefile.am): Likewise.
27505         * modules/cloexec (Makefile.am): Likewise.
27506         * modules/close-stream (Makefile.am): Likewise.
27507         * modules/closeout (Makefile.am): Likewise.
27508         * modules/crc (Makefile.am): Likewise.
27509         * modules/cycle-check (Makefile.am): Likewise.
27510         * modules/des (Makefile.am): Likewise.
27511         * modules/dirfd (Makefile.am): Likewise.
27512         * modules/dirname (Makefile.am): Likewise.
27513         * modules/dup2 (Makefile.am): Likewise.
27514         * modules/euidaccess (Makefile.am): Likewise.
27515         * modules/exclude (Makefile.am): Likewise.
27516         * modules/exitfail (Makefile.am): Likewise.
27517         * modules/fcntl-safer (Makefile.am): Likewise.
27518         * modules/file-type (Makefile.am): Likewise.
27519         * modules/fileblocks (Makefile.am): Likewise.
27520         * modules/filemode (Makefile.am): Likewise.
27521         * modules/filenamecat (Makefile.am): Likewise.
27522         * modules/fnmatch (Makefile.am): Likewise.
27523         * modules/fopen-safer (Makefile.am): Likewise.
27524         * modules/fpending (Makefile.am): Likewise.
27525         * modules/fprintftime (Makefile.am): Likewise.
27526         * modules/free (Makefile.am): Likewise.
27527         * modules/fsusage (Makefile.am): Likewise.
27528         * modules/ftruncate (Makefile.am): Likewise.
27529         * modules/fts (Makefile.am): Likewise.
27530         * modules/gc (Makefile.am): Likewise.
27531         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27532         * modules/getaddrinfo (Makefile.am): Likewise.
27533         * modules/getcwd (Makefile.am): Likewise.
27534         * modules/getdelim (Makefile.am): Likewise.
27535         * modules/getdomainname (Makefile.am): Likewise.
27536         * modules/getgroups (Makefile.am): Likewise.
27537         * modules/gethostname (Makefile.am): Likewise.
27538         * modules/gethrxtime (Makefile.am): Likewise.
27539         * modules/getline (Makefile.am): Likewise.
27540         * modules/getloadavg (Makefile.am): Likewise.
27541         * modules/getlogin_r (Makefile.am): Likewise.
27542         * modules/getopt (Makefile.am): Likewise.
27543         * modules/getpass (Makefile.am): Likewise.
27544         * modules/getpass-gnu (Makefile.am): Likewise.
27545         * modules/getsubopt (Makefile.am): Likewise.
27546         * modules/gettime (Makefile.am): Likewise.
27547         * modules/gettimeofday (Makefile.am): Likewise.
27548         * modules/getugroups (Makefile.am): Likewise.
27549         * modules/getusershell (Makefile.am): Likewise.
27550         * modules/glob (Makefile.am): Likewise.
27551         * modules/group-member (Makefile.am): Likewise.
27552         * modules/hard-locale (Makefile.am): Likewise.
27553         * modules/hash (Makefile.am): Likewise.
27554         * modules/hmac-md5 (Makefile.am): Likewise.
27555         * modules/hmac-sha1 (Makefile.am): Likewise.
27556         * modules/human (Makefile.am): Likewise.
27557         * modules/idcache (Makefile.am): Likewise.
27558         * modules/imaxabs (Makefile.am): Likewise.
27559         * modules/imaxdiv (Makefile.am): Likewise.
27560         * modules/inet_ntop (Makefile.am): Likewise.
27561         * modules/inet_pton (Makefile.am): Likewise.
27562         * modules/inttostr (Makefile.am): Likewise.
27563         * modules/isapipe (Makefile.am): Likewise.
27564         * modules/lchown (Makefile.am): Likewise.
27565         * modules/long-options (Makefile.am): Likewise.
27566         * modules/lstat (Makefile.am): Likewise.
27567         * modules/malloc (Makefile.am): Likewise.
27568         * modules/mathl (Makefile.am): Likewise.
27569         * modules/mbchar (Makefile.am): Likewise.
27570         * modules/md2 (Makefile.am): Likewise.
27571         * modules/md4 (Makefile.am): Likewise.
27572         * modules/md5 (Makefile.am): Likewise.
27573         * modules/memcasecmp (Makefile.am): Likewise.
27574         * modules/memchr (Makefile.am): Likewise.
27575         * modules/memcmp (Makefile.am): Likewise.
27576         * modules/memcoll (Makefile.am): Likewise.
27577         * modules/memcpy (Makefile.am): Likewise.
27578         * modules/memmem (Makefile.am): Likewise.
27579         * modules/memmove (Makefile.am): Likewise.
27580         * modules/mempcpy (Makefile.am): Likewise.
27581         * modules/memrchr (Makefile.am): Likewise.
27582         * modules/memset (Makefile.am): Likewise.
27583         * modules/memxor (Makefile.am): Likewise.
27584         * modules/mkancesdirs (Makefile.am): Likewise.
27585         * modules/mkdir (Makefile.am): Likewise.
27586         * modules/mkdir-p (Makefile.am): Likewise.
27587         * modules/mkdtemp (Makefile.am): Likewise.
27588         * modules/mkstemp (Makefile.am): Likewise.
27589         * modules/mktime (Makefile.am): Likewise.
27590         * modules/modechange (Makefile.am): Likewise.
27591         * modules/mountlist (Makefile.am): Likewise.
27592         * modules/nanosleep (Makefile.am): Likewise.
27593         * modules/openat (Makefile.am): Likewise.
27594         * modules/pagealign_alloc (Makefile.am): Likewise.
27595         * modules/physmem (Makefile.am): Likewise.
27596         * modules/poll (Makefile.am): Likewise.
27597         * modules/posixtm (Makefile.am): Likewise.
27598         * modules/posixver (Makefile.am): Likewise.
27599         * modules/putenv (Makefile.am): Likewise.
27600         * modules/quote (Makefile.am): Likewise.
27601         * modules/quotearg (Makefile.am): Likewise.
27602         * modules/raise (Makefile.am): Likewise.
27603         * modules/read-file (Makefile.am): Likewise.
27604         * modules/readline (Makefile.am): Likewise.
27605         * modules/readlink (Makefile.am): Likewise.
27606         * modules/readtokens (Makefile.am): Likewise.
27607         * modules/readutmp (Makefile.am): Likewise.
27608         * modules/realloc (Makefile.am): Likewise.
27609         * modules/regex (Makefile.am): Likewise.
27610         * modules/rename (Makefile.am): Likewise.
27611         * modules/rename-dest-slash (Makefile.am): Likewise.
27612         * modules/rijndael (Makefile.am): Likewise.
27613         * modules/rmdir (Makefile.am): Likewise.
27614         * modules/rpmatch (Makefile.am): Likewise.
27615         * modules/safe-read (Makefile.am): Likewise.
27616         * modules/safe-write (Makefile.am): Likewise.
27617         * modules/same (Makefile.am): Likewise.
27618         * modules/save-cwd (Makefile.am): Likewise.
27619         * modules/savedir (Makefile.am): Likewise.
27620         * modules/setenv (Makefile.am): Likewise.
27621         * modules/settime (Makefile.am): Likewise.
27622         * modules/sha1 (Makefile.am): Likewise.
27623         * modules/sig2str (Makefile.am): Likewise.
27624         * modules/snprintf (Makefile.am): Likewise.
27625         * modules/stdlib-safer (Makefile.am): Likewise.
27626         * modules/stpcpy (Makefile.am): Likewise.
27627         * modules/stpncpy (Makefile.am): Likewise.
27628         * modules/strcase (Makefile.am): Likewise.
27629         * modules/strcasestr (Makefile.am): Likewise.
27630         * modules/strchrnul (Makefile.am): Likewise.
27631         * modules/strcspn (Makefile.am): Likewise.
27632         * modules/strdup (Makefile.am): Likewise.
27633         * modules/strerror (Makefile.am): Likewise.
27634         * modules/strftime (Makefile.am): Likewise.
27635         * modules/strndup (Makefile.am): Likewise.
27636         * modules/strnlen (Makefile.am): Likewise.
27637         * modules/strpbrk (Makefile.am): Likewise.
27638         * modules/strsep (Makefile.am): Likewise.
27639         * modules/strstr (Makefile.am): Likewise.
27640         * modules/strtod (Makefile.am): Likewise.
27641         * modules/strtoimax (Makefile.am): Likewise.
27642         * modules/strtok_r (Makefile.am): Likewise.
27643         * modules/strtol (Makefile.am): Likewise.
27644         * modules/strtoll (Makefile.am): Likewise.
27645         * modules/strtoul (Makefile.am): Likewise.
27646         * modules/strtoull (Makefile.am): Likewise.
27647         * modules/strtoumax (Makefile.am): Likewise.
27648         * modules/strverscmp (Makefile.am): Likewise.
27649         * modules/time_r (Makefile.am): Likewise.
27650         * modules/timegm (Makefile.am): Likewise.
27651         * modules/tmpfile-safer (Makefile.am): Likewise.
27652         * modules/unistd-safer (Makefile.am): Likewise.
27653         * modules/unlinkdir (Makefile.am): Likewise.
27654         * modules/userspec (Makefile.am): Likewise.
27655         * modules/utime (Makefile.am): Likewise.
27656         * modules/utimecmp (Makefile.am): Likewise.
27657         * modules/utimens (Makefile.am): Likewise.
27658         * modules/vasnprintf (Makefile.am): Likewise.
27659         * modules/vasprintf (Makefile.am): Likewise.
27660         * modules/vsnprintf (Makefile.am): Likewise.
27661         * modules/xalloc (Makefile.am): Likewise.
27662         * modules/xgetcwd (Makefile.am): Likewise.
27663         * modules/xnanosleep (Makefile.am): Likewise.
27664         * modules/xreadlink (Makefile.am): Likewise.
27665         * modules/xstrtod (Makefile.am): Likewise.
27666         * modules/xstrtol (Makefile.am): Likewise.
27667         * modules/xstrtold (Makefile.am): Likewise.
27668         * modules/yesno (Makefile.am): Likewise.
27669
27670 2006-10-12  Jim Meyering  <jim@meyering.net>
27671
27672         * m4/getloadavg.m4: Revert the change below.
27673
27674         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27675         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
27676         fail with a symlink, which is what coreutils' ./bootstrap now
27677         creates by default.
27678
27679 2006-10-12  Bruno Haible  <bruno@clisp.org>
27680
27681         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27682         mingw.
27683         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27684         MSVC and mingw explicitly.
27685
27686 2006-10-11  Simon Josefsson  <jas@extundo.com>
27687             Bruno Haible  <bruno@clisp.org>
27688
27689         Add support for multiple gnulib-tool invocations in the scope of a
27690         single configure.ac file.
27691         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27692         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27693         with the same contents as the _LIBADD variable.
27694         (func_emit_initmacro_start, func_emit_initmacro_end,
27695         func_emit_initmacro_done): New functions.
27696         (func_import, func_create_testdir): Invoke them. Allow the identifiers
27697         gl_LIBOBJS and gl_LTLIBOBJS.
27698
27699 2006-10-11  Bruno Haible  <bruno@clisp.org>
27700
27701         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27702         (func_create_testdir): Don't create po/Makefile.am, don't invoke
27703         autoreconf. Instead, invoke autopoint explicitly but move back the
27704         *.m4 files from gnulib.
27705
27706 2006-10-11  Bruno Haible  <bruno@clisp.org>
27707
27708         * gnulib-tool (func_usage): Make module names after --create-testdir
27709         optional.
27710         (func_create_testdir): If no module was specified, use nearly all
27711         modules.
27712
27713 2006-10-12  Jim Meyering  <jim@meyering.net>
27714
27715         Big performance improvement for fts-based tools that use FTS_NOSTAT.
27716         Avoid spurious inode-mismatch problems on non-POSIX file systems.
27717         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27718         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27719         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27720         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27721         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27722         (fts_set_stat_required): New function.
27723         (fts_open): Defer the calls to fts_stat, if possible or requested.
27724         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27725         into fts_stat itself.
27726         (fts_read): Perform any required (deferred) fts_stat call.
27727         (fts_build): Likewise, for the directory we're about to open and read.
27728         In the readdir loop, carefully decide whether each entry will require
27729         an eventual call to fts_stat, using dirent.d_type info if available.
27730         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27731         a command line argument into this function.  Update all callers.
27732         Map a return value of FTS_DOT to FTS_D for a command line argument.
27733         * modules/fts (Depends-on): Add d-type.  Alphabetize.
27734         Thanks to Miklos Szeredi for his tenacity and for the initial
27735         bug report about "find" failing on a FUSE-based file system.
27736
27737         * lib/fts.c (fts_open): Use consistent indentation.
27738
27739 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27742         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27743         reported by Jim Meyering.  All uses of cache variables renamed
27744         to match Autoconf's.
27745         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
27746         the other one.
27747
27748         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27749         Fix misspelling in diagnostic.
27750
27751 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27752
27753         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
27754         defined.  Problem reported by Matthew Woehlke.
27755
27756         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
27757         Add support for Tandem NonStop R series.
27758         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
27759         Use new macro.
27760
27761         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
27762         (has_trailing_slash): Omit size arg; all callers changed.
27763         Omit 'inline', since it doesn't help performance and we'd
27764         need to configure it.
27765         Don't count //, ///, etc. as having a trailing slash.
27766         As a side effect, this removes a C99ism reported by Matthew Woehlke.
27767         (rpl_rename_dest_slash): On failure, use rename's errno rather
27768         than (in some cases) an incorrect or junk errno.
27769         Simplify code by removing need to compute length; this does
27770         cause it to make two passes instead of one over the file name,
27771         but it's worth it.
27772
27773         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
27774         change, since Autoconf's version may no longer be appropriate now
27775         that we are using CVS Autoconf's version.  Add support for Tandem.
27776
27777 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27778             Bruno Haible  <bruno@clisp.org>
27779
27780         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
27781         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
27782         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
27783         gl_AC_TYPE_LONG_LONG.
27784
27785         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
27786         instead of HAVE_LONG_LONG.
27787         * lib/printf-args.c (printf_fetchargs): Likewise.
27788         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27789         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27790         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
27791         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
27792         gl_AC_TYPE_LONG_LONG.
27793
27794 2006-10-11  Bruno Haible  <bruno@clisp.org>
27795
27796         * m4/longlong.m4: Add comments.
27797         * m4/ulonglong.m4: Likewise.
27798
27799 2006-10-10  Bruno Haible  <bruno@clisp.org>
27800
27801         Make it possible to #define stpcpy, strdup to aliases.
27802         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
27803         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
27804
27805 2006-10-10  Bruno Haible  <bruno@clisp.org>
27806
27807         Make it possible to #define gcd to an alias.
27808         * lib/gcd.c: Include config.h.
27809
27810 2006-10-10  Bruno Haible  <bruno@clisp.org>
27811
27812         Make it possible to #define c_isascii to an alias.
27813         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
27814         defined. Undefine the macros before defining them, to avoid gcc
27815         warnings.
27816         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
27817         define NO_C_CTYPE_MACROS early.
27818
27819 2006-10-10  Bruno Haible  <bruno@clisp.org>
27820
27821         Make it possible to #define set_program_name to an alias.
27822         * lib/progname.c: Don't undefine set_program_name; instead, undefine
27823         ENABLE_RELOCATABLE early.
27824
27825 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27826
27827         Port to Tandem NSK OSS, which has 64-bit signed int but at most
27828         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
27829         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
27830         More generally, don't assume that 64-bit signed int is available
27831         if unsigned int is, and vice versa.
27832         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
27833         unsigned symbols, not on their signed counterparts.
27834         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
27835         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27836         (UINT64_C, UINTMAX_C):
27837         Likewise.
27838         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
27839         unsigned counterparts.
27840         (Have_long_long, Unsigned): New macros.
27841         (Int): Renamed from INT.
27842         (strtoimax): Use the new macros.
27843         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
27844         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
27845         * modules/inttypes (inttypes.h): Substitute
27846         HAVE_UNSIGNED_LONG_LONG_INT.
27847         * modules/stdint (stdint.h): Likewise.
27848         (Files): Add m4/ulonglong.m4.
27849
27850 2006-10-10  Bruno Haible  <bruno@clisp.org>
27851
27852         Fix a gcc -Wshadow warning.
27853         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
27854         to 'bucket'.
27855         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
27856         gl_linked_indexof_from_to): Likewise.
27857         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
27858         Likewise.
27859         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
27860         Likewise.
27861         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
27862         Reported by Eric Blake.
27863
27864 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
27865
27866         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
27867         for NetBSD.  Problem reported by Bruno Haible.
27868
27869 2006-10-09  Jim Meyering  <jim@meyering.net>
27870
27871         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
27872         Patch from Bruno Haible.
27873
27874 2006-10-09  Jim Meyering  <jim@meyering.net>
27875
27876         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
27877         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
27878         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
27879
27880 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27881
27882         Don't include <config.h> twice; this doesn't work in some cases,
27883         e.g., when config.h has "#define intmax_t long long int" and
27884         we include <config.h>, <inttypes.h>, <config.h> in that order.
27885         Problem reported by Matthew Woehlke in:
27886         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
27887         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
27888         * lib/fts-cycle.c: Don't include config.h.
27889         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27890         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
27891         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
27892         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
27893         inttypes.h.
27894         * lib/xstrtoumax.c: Likewise.
27895         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
27896         __strtol and the like, so that this module is more like its siblings.
27897         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
27898         Remove; no longer needed now that we assume gnulib inttypes.h.
27899
27900 2006-10-08  Bruno Haible  <bruno@clisp.org>
27901
27902         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
27903         option.
27904
27905 2006-10-07  Jim Meyering  <jim@meyering.net>
27906
27907         * modules/inttypes (inttypes.h): Revert what seems to have been
27908         an inadvertent part of today's change: use "|", not "/" in the
27909         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
27910
27911 2006-10-07  Bruno Haible  <bruno@clisp.org>
27912
27913         * modules/sublist: New file.
27914
27915 2006-10-07  Bruno Haible  <bruno@clisp.org>
27916
27917         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
27918         * modules/argz (argz.h): Likewise.
27919         * modules/arpa_inet (arpa/inet.h): Likewise.
27920         * modules/byteswap (byteswap.h): Likewise.
27921         * modules/configmake (configmake.h): Likewise.
27922         * modules/fcntl (fcntl.h): Likewise.
27923         * modules/fnmatch (fnmatch.h): Likewise.
27924         * modules/getopt (getopt.h): Likewise.
27925         * modules/glob (glob.h): Likewise.
27926         * modules/inttypes (inttypes.h): Likewise.
27927         * modules/netinet_in (netinet/in.h): Likewise.
27928         * modules/poll (poll.h): Likewise.
27929         * modules/stdbool (stdbool.h): Likewise.
27930         * modules/stdint (stdint.h): Likewise.
27931         * modules/sys_select (sys/select.h): Likewise.
27932         * modules/sys_socket (sys/socket.h): Likewise.
27933         * modules/sys_stat (sys/stat.h): Likewise.
27934         * modules/sysexits (sysexits.h): Likewise.
27935         * modules/unistd (unistd.h): Likewise.
27936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27937         Add a "DO NOT EDIT" comment to the generated file.
27938         (func_import): Likewise for gnulib-comp.m4.
27939
27940 2006-10-07  Bruno Haible  <bruno@clisp.org>
27941
27942         * lib/gl_sublist.h: New file.
27943         * lib/gl_sublist.c: New file.
27944
27945 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27946
27947         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
27948         name (relative to the original working directory) and the file
27949         name component (relative to the temporary working directory).  All
27950         callers changed.
27951         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
27952         * lib/mkdir-p.c (make_dir_parents): Likewise.
27953         * lib/mkdir-p.h (make_dir_parents): Likewise.
27954
27955 2006-10-06  Eric Blake  <ebb9@byu.net>
27956
27957         Define several macros for use by the clean-temp module.
27958         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
27959         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
27960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
27961
27962         * lib/clean-temp.h (close_stream_temp): New declaration.
27963         * lib/clean-temp.c (includes): Pull in headers according to what
27964         other modules are in use.
27965         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
27966
27967 2006-10-06  Bruno Haible  <bruno@clisp.org>
27968
27969         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
27970         instead of fopen, fwriteerror.
27971
27972 2006-10-06  Bruno Haible  <bruno@clisp.org>
27973
27974         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
27975         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
27976         int.
27977         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
27978         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
27979         Return an error indicator.
27980         Suggested by Eric Blake.
27981
27982 2006-10-06  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
27985         Reported by Eric Blake.
27986
27987 2006-10-06  Bruno Haible  <bruno@clisp.org>
27988
27989         * modules/closeout (Description): Mention stderr too.
27990
27991 2006-10-06  Bruno Haible  <bruno@clisp.org>
27992         and Paul Eggert  <eggert@cs.ucla.edu>
27993
27994         * lib/closeout.c (close_stdout): Also close stderr.
27995         * lib/closeout.h: Update comment.
27996
27997 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27998
27999         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28000         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28001         * lib/dirchownmod.c: Include lchown.h.
28002         * lib/lchown.c: Don't include files that lchown.h now includes.
28003         Don't declare chown, since lchown.h now does that.
28004         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28005         (lchown): Define to rpl_chown if lchown is declared but
28006         does not exist.  Declare using a prototype if lchown is not
28007         declared.  Add a copyright notice.
28008         * lib/mkstemp.h: Include <unistd.h>.
28009         * lib/openat.c: Include lchown.h.
28010
28011         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28012         we now test for that separately.
28013         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28014         rather than O_NOFOLLOW, when testing whether it's possible to
28015         avoid a race condition reliably.
28016         * lib/savewd.c (savewd_chdir): Likewise.
28017
28018         Remove macros that are no longer needed now that stdint.h is
28019         reliable.
28020         * lib/fsusage.c (UINTMAX_MAX): Remove.
28021         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28022         * lib/utimecmp.c (SIZE_MAX): Remove.
28023
28024         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28025
28026         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28027         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28028         O_NOATIME works.
28029
28030 2006-10-05  Bruno Haible  <bruno@clisp.org>
28031
28032         * lib/gl_list.h (gl_sortedlist_search_from_to,
28033         gl_sortedlist_indexof_from_to): New declarations.
28034         (gl_list_implementation): New fields sortedlist_search_from_to,
28035         sortedlist_indexof_from_to.
28036         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28037         inline functions.
28038         * lib/gl_list.c (gl_sortedlist_search_from_to,
28039         gl_sortedlist_indexof_from_to): New functions.
28040         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28041         function.
28042         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28043         (gl_array_sortedlist_search_from_to): New function.
28044         (gl_array_list_implementation): Update.
28045         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28046         function.
28047         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28048         (gl_carray_sortedlist_search_from_to): New function.
28049         (gl_carray_list_implementation): Update.
28050         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28051         gl_linked_sortedlist_indexof_from_to): New functions.
28052         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28053         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28054         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28055         gl_tree_sortedlist_indexof_from_to): New functions.
28056         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28057         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28058         Update.
28059         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28060         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28061         Update.
28062
28063 2006-10-05  Bruno Haible  <bruno@clisp.org>
28064
28065         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28066         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28067         (struct gl_list_implementation): Add fields search_from_to,
28068         indexof_from_to. Remove fields search, indexof.
28069         (gl_list_search): Use the search_from_to method.
28070         (gl_list_search_from, gl_list_search_from_to): New functions.
28071         (gl_list_indexof): Use the indexof_from_to method.
28072         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28073         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28074         (gl_list_search_from, gl_list_search_from_to): New functions.
28075         (gl_list_indexof): Use the indexof_from_to method.
28076         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28077         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28078         gl_array_indexof. Add start_index, end_index arguments.
28079         (gl_array_search_from_to): Renamed from gl_array_search. Add
28080         start_index, end_index arguments.
28081         (gl_array_remove, gl_array_list_implementation): Update.
28082         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28083         gl_carray_indexof. Add start_index, end_index arguments.
28084         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28085         start_index, end_index arguments.
28086         (gl_carray_remove, gl_carray_list_implementation): Update.
28087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28088         gl_linked_search. Add start_index, end_index arguments.
28089         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28090         start_index, end_index arguments.
28091         (gl_linked_remove): Update.
28092         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28093         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28094         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28095         field to 'size_t'.
28096         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28097         gl_tree_search. Add start_index, end_index arguments.
28098         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28099         start_index, end_index arguments.
28100         (gl_tree_remove): Update.
28101         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28102         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28103         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28104         function.
28105         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28106         gl_tree_search. Add start_index, end_index arguments.
28107         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28108         start_index, end_index arguments.
28109         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28110         Update.
28111         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28112
28113 2006-10-05  Bruno Haible  <bruno@clisp.org>
28114
28115         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28116
28117         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28118         fwriteerror_temp): New declarations.
28119         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28120         (descriptors): New variable.
28121         (cleanup): First, close the descriptors.
28122         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28123         fclose_temp, fwriteerror_temp): New functions.
28124
28125 2006-10-04  Jim Meyering  <jim@meyering.net>
28126
28127         * lib/fts.c (fts_open): Tiny comment change.
28128
28129 2006-10-04  Bruno Haible  <bruno@clisp.org>
28130
28131         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28132         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28133         gl_LOCK_BODY.
28134         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28135         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28136         gl_LOCK_EARLY_BODY.
28137         (gl_LOCK): Require gl_LOCK_BODY.
28138
28139 2006-10-04  Bruno Haible  <bruno@clisp.org>
28140
28141         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28142         (gl_oset_search_atleast): New declaration.
28143         (struct gl_oset_implementation): Add field 'search_atleast'.
28144         (gl_oset_search_atleast): New inline function.
28145         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28146         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28147         (gl_array_oset_implementation): Update.
28148         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28149         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28150         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28151
28152 2006-10-04  Bruno Haible  <bruno@clisp.org>
28153
28154         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28155
28156 2006-10-03  Bruno Haible  <bruno@clisp.org>
28157
28158         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28159         from gl_avltreehash_list_implementation.
28160
28161 2006-10-03  Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/gl_oset.c (gl_oset_add): Fix return type.
28164
28165 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28166
28167         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28168
28169 2006-10-02  Eric Blake  <ebb9@byu.net>
28170
28171         * modules/strnlen (Depends-on): Add extensions.
28172
28173 2006-10-02  Eric Blake  <ebb9@byu.net>
28174
28175         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28176         definition in 2.60+.
28177
28178 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28179
28180         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28181         checks.
28182
28183 2006-10-02  Bruno Haible  <bruno@clisp.org>
28184
28185         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28186         to the AUTOMAKE_OPTIONS.
28187         Reported by Jim Meyering.
28188
28189 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28190
28191         Work around bug in Solaris 10 /proc file system:
28192         /proc/self/fd/NNN/.. isn't the parent directory of
28193         the directory whose file descriptor is NNN.  This needs to
28194         be worked around at run time, not compile time, since a
28195         program might be built on Solaris 8, where things work, and
28196         run on Solaris 10.
28197         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28198         to use the following interface instead:
28199         (OPENAT_BUFFER_SIZE): New macro.
28200         (openat_proc_name): New function.
28201         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28202         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28203         Likewise.
28204         * lib/openat-proc.c: New file.
28205         * modules/openat (Files): Add lib/openat-proc.c.
28206         (Depends-on): Add same-inode, stdbool.
28207         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28208
28209 2006-09-29  Bruno Haible  <bruno@clisp.org>
28210
28211         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28212         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28213         argument. Set stdout_closed before testing for ferror, not after.
28214         (fwriteerror, fwriteerror_no_ebadf): New functions.
28215
28216 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28217
28218         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28219
28220 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28221
28222         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28223         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28224
28225 2006-09-28  Jim Meyering  <jim@meyering.net>
28226
28227         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28228         Include <unistd.h>.
28229
28230 2006-09-28  Bruno Haible  <bruno@clisp.org>
28231
28232         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28233         * modules/linkedhash-list (Depends-on): Likewise.
28234         * modules/rbtreehash-list (Depends-on): Likewise.
28235
28236 2006-09-28  Bruno Haible  <bruno@clisp.org>
28237
28238         * lib/strndup.h: Simplify the redefinition of strndup.
28239         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28241
28242 2006-09-28  Bruno Haible  <bruno@clisp.org>
28243
28244         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28245         * lib/gl_linkedhash_list.c: Likewise.
28246         * lib/gl_rbtreehash_list.c: Likewise.
28247
28248 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28249
28250         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28251         getaddrinfo.
28252
28253         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28254         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28255         it causes <stdio_ext.h> to cause a compile-time error.
28256         Problem reported by Nelson H. F. Beebe.
28257         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28258         of HAVE_DECL___PENDING.
28259
28260         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28261         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28262         declaration.
28263
28264 2006-09-27  Jim Meyering  <jim@meyering.net>
28265
28266         This file could end up with a definition for a function
28267         named __strndup, rather than rpl_strndup on a system with
28268         incomplete weak_alias support.
28269         * lib/strndup.c (strndup): Rename from __strndup.
28270         Remove #defines that used to map __strndup to strndup.
28271         Don't use K&R prototypes.
28272         Remove LIBC-related code, since this file is not sync'd with glibc.
28273         * lib/strndup.h: Revamp, accordingly.
28274         * m4/strndup.m4: Modernize.
28275
28276 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28277
28278         * modules/savewd (Depends-on): Add 'raise'.
28279         * lib/savewd.c: Include <signal.h>, for 'raise'.
28280
28281 2006-09-26  Jim Meyering  <jim@meyering.net>
28282
28283         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28284         when we detect Darwin 8.7.0's acl_get_file bug.
28285         Rearrange to perform the new (below) run-test while $LIBS
28286         contains any acl-related library.  Set USE_ACL at the end.
28287         (gl_ACL_GET_FILE): New function.
28288
28289 2006-09-26  Eric Blake  <ebb9@byu.net>
28290
28291         * lib/verror.c: Include <config.h> unconditionally.
28292
28293 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28294
28295         * modules/clock-time (Maintainer): Add self.
28296         * modules/getlogin_r (Depends-on): Add extensions.
28297
28298 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28299
28300         * modules/clock-time: New module.
28301         * modules/nanosleep (Depends-on): Add clock-time.
28302         * modules/gethrxtime (Depends-on): Likewise.
28303         * modules/gettime (Depends-on): Likewise.
28304         * modules/settime (Depends-on): Likewise.
28305
28306         * modules/fts-lgpl: Depend on openat.
28307         * modules/mkancesdirs: Depend on savewd.
28308         * modules/mkdir-p: Likewise.
28309
28310 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28311
28312         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28313
28314         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28315         `gl_have_arbitrary_file_name_length_limit' to
28316         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28317         actually works between configure runs.
28318
28319 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28320             Bruno Haible  <bruno@clisp.org>
28321
28322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28323
28324 2006-09-25  Jim Meyering  <jim@meyering.net>
28325
28326         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28327         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28328
28329 2006-09-25  Eric Blake  <ebb9@byu.net>
28330
28331         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28332         exec's in 2006-09-18 patch when shuffling fds.
28333
28334 2006-09-25  Bruno Haible  <bruno@clisp.org>
28335
28336         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28337         Reported by Jim Meyering.
28338
28339 2006-09-24  Jim Meyering  <jim@meyering.net>
28340
28341         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28342         compare a pointer against a literal "0".  That caused failures with
28343         at least HP-UX's hpcc.
28344
28345 2006-09-22  Simon Josefsson  <jas@extundo.com>
28346
28347         * modules/gc-sha1:
28348         * modules/gc-md4:
28349         * modules/gc-hmac-sha1:
28350         * modules/gc-hmac-md5:
28351         * modules/gc-des:
28352         * modules/gc-arcfour: Distribute more files.
28353
28354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28355
28356         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28357         (gl_linked_iterator_from_to): Initialize struct completely.
28358         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28359         (gl_tree_iterator_from_to): Likewise
28360         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28361         * lib/gl_array_list.c [lint] (gl_array_iterator)
28362         (gl_array_iterator_from_to): Likewise.
28363         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28364         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28365         (gl_carray_iterator_from_to): Likewise.
28366
28367         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28368         * lib/md4.c (md4_process_block): Remove unused variable.
28369         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28370         parentheses for clarity.
28371
28372 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28373
28374         * modules/bison-i18n (Depends-on): Add gettext.
28375
28376 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28377
28378         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28379         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28380         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28381         also add missing comma that caused broken test.
28382         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28383         stdlib.h, for `abort'.
28384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28385         variables.
28386         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28387         include unistd.h if present, for `rmdir'.
28388         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28389         variables.
28390         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28391         in the process include standard headers for prototypes.
28392         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28393         gets declared on GNU/Linux.
28394         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28395         unistd.h, for `rmdir'.
28396         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28397
28398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28399         always true.
28400         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28401
28402         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28403
28404 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28405
28406         * gnulib-tool (func_version): Create output all at once.  This
28407         may help avoid triggering unnecessary SIGPIPEs, and at any
28408         rate it doesn't hurt.
28409
28410 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28411             Bruno Haible  <bruno@clisp.org>
28412
28413         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28414         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28415         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28416
28417         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28418         (gl_FUNC_VASPRINTF): Invoke it.
28419
28420 2006-09-22  Bruno Haible  <bruno@clisp.org>
28421
28422         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28423         getloadavg.c as first argument.
28424
28425 2006-09-22  Bruno Haible  <bruno@clisp.org>
28426
28427         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28428         at the beginning of the gl_INIT macro.
28429         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28430         gl_GETLOADAVG.
28431
28432 2006-09-22  Bruno Haible  <bruno@clisp.org>
28433
28434         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28435         module.
28436         Suggested by Ralf Wildenhues.
28437
28438 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28439
28440         Import this patch from libc:
28441
28442         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28443
28444         * lib/regex_internal.c (re_string_reconstruct): Handle
28445         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28446         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28447         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28448         re_string_context_at.
28449
28450         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28451         now requires it.
28452         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28453         gl_REGEX now does it for us.
28454         (gl_REGEX): Add test taken from
28455         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28456
28457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28458         Check that large offsets work.  Modernize Autoconf usages.
28459         Prefer "yes" to mean a good thing rather than a bad.
28460         Don't put "#define mkstemp" in config.h, as this might interfere
28461         with standard system headers that "#define mkstemp mkstemp64".
28462
28463         * modules/mkstemp (Depends-on): Add extensions, so that
28464         mkstemp is visible on some platforms.
28465         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28466         (Include): Change to "mkstemp.h" from <stdlib.h>.
28467         (Files): Add mkstemp.h.
28468
28469         * lib/mkstemp.h: New file, since some standard headers
28470         #define mkstemp.
28471         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28472         Include "mkstemp.h".
28473         Make the _LIBC code resemble glibc original more,
28474         e.g., use K&R style.
28475         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28476         (mkstemp): Remove, since mkstemp.h does this for us.
28477         * lib/stdlib--.h: Include mkstemp.h.
28478
28479         Import this patch from libc:
28480
28481         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28482
28483         * lib/tempname.c (__gen_tempname): Change attempts_min
28484         into a macro.  Use preprocessor to decide how to initialize
28485         attempts [Coverity CID 67].
28486
28487 2006-09-20  Bruno Haible  <bruno@clisp.org>
28488
28489         * lib/mkdtemp.c: Import from libc.
28490         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28491                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28492                 attempts_min into a macro.  Use preprocessor to decide how to
28493                 initialize attempts [Coverity CID 67].
28494         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28495                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28496                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28497
28498 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28499
28500         * gnulib-tool (func_exit): New function, to allow to pass the
28501         exit status portably through the trap.  Use everywhere.
28502         (--help, --version): Signal a write error.
28503         (trap): catch SIGPIPE, for write errors.
28504         Exit at the end of the trap, with the correct exit status.
28505
28506 2006-09-19  Karl Berry  <karl@gnu.org>
28507
28508         * doc/gnulib.texi: note about the license texinfo files.
28509
28510 2006-09-19  Eric Blake  <ebb9@byu.net>
28511
28512         * gnulib-tool: Avoid space-tab.
28513
28514 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28515
28516         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28517         that prevented coreutils 6.1 from building.  Problem reported
28518         by Petter Reinholdtsen.
28519
28520 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28521
28522         * gnulib-tool (avoidlist): Fix typo that broke options like
28523         --avoid=lock that are used by coreutils bootstrap.
28524
28525 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28526
28527         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28528         more systematically.
28529
28530 2006-09-18  Jim Meyering  <jim@meyering.net>
28531
28532         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28533
28534 2006-09-18  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28537
28538 2006-09-18  Bruno Haible  <bruno@clisp.org>
28539
28540         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28541         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28542         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28543         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28544         * m4/gettext.m4: Require autoconf >= 2.52.
28545         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28546         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28547         of gl_cv_header_inttypes_h.
28548
28549 2006-09-18  Bruno Haible  <bruno@clisp.org>
28550
28551         * lib/javaversion.c: Include configmake.h.
28552
28553 2006-09-18  Bruno Haible  <bruno@clisp.org>
28554
28555         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28556         avoid that the while loops be executed in a subshell.
28557
28558 2006-09-18  Bruno Haible  <bruno@clisp.org>
28559
28560         * MODULES.html.sh (func_module): Break long lines.
28561         Suggested by Bruce Korb <bkorb@gnu.org>.
28562
28563 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28564
28565         Speed up by a factor of 1.12.
28566         * gnulib-tool (nl): New variable.
28567         (func_import): Rewrite include directive extraction to only read each
28568         directive once.
28569
28570 2006-09-17  Bruno Haible  <bruno@clisp.org>
28571
28572         * modules/javaversion (Makefile.am): Remove DEFS setting.
28573         (Depends-on): Add configmake, for PKGDATADIR definition.
28574
28575 2006-09-17  Bruno Haible  <bruno@clisp.org>
28576
28577         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28578
28579 2006-09-17  Bruno Haible  <bruno@clisp.org>
28580
28581         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28582         (func_modules_transitive_closure, func_modules_add_dummy,
28583         func_modules_to_filelist, func_import, func_create_testdir,
28584         func_create_megatestdir, ...): Use it wherever possible.
28585         Suggested by Ralf Wildenhues.
28586
28587 2006-09-16  Karl Berry  <karl@gnu.org>
28588
28589         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28590         to avoid sectioning errors.
28591         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28592         [ifinfo]: blank line after @center-ed titles.
28593         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28594         Spell FSF address consistently with others.
28595         (These changes approved by rms.)
28596
28597 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28598
28599         Speed up by a factor of 1.61.
28600         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28601         already checked module names again.
28602
28603 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28604
28605         Speed up by a factor of 1.13.
28606         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28607         for new_files, and the input to func_add_or_update.
28608
28609 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28610
28611         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28612         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28613
28614 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28615
28616         * modules/mkancesdirs (Depends-on): Add fcntl.
28617         * modules/savewd: New file.
28618         * MODULES.html.sh (File system functions): Add savewd.
28619
28620         * modules/configmake (Makefile.am): Add support for the
28621         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28622
28623 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28624
28625         * m4/savewd.m4: New file.
28626
28627 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28628
28629         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28630         (dirchownmod): New arg FD.  All callers changed.
28631         Use FD rather than opening the directory ourself, as opening is
28632         now the caller's responsibility.
28633         * lib/dirchownmod.h: Likewise.
28634         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28635         hosts that require <sys/types.h> before <sys/stat.h>.  Include
28636         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28637         (test_dir): Remove.
28638         (mkancesdirs): Return length of prefix of FILE that has already
28639         been made, or -2 if there is a child doing the work.  Redo
28640         algorithm so that it is O(N) rather than O(N**2).  Optimize away
28641         ".", and treat ".." specially since it might stray back into
28642         already-created areas.  Use a subprocess if necessary.  New arg
28643         WD; all users changed.  MAKE_DIR function should now return 1
28644         if it creates a directory that is not readable.  Return -2 if
28645         a child process is spun off.
28646         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28647         Adjust signature to match code.
28648         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28649         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
28650         all users changed.
28651         * lib/savewd.c, lib/savewd.h: New files.
28652
28653 2006-09-15  Jim Meyering  <jim@meyering.net>
28654
28655         * modules/rename-dest-slash: New module.
28656         * MODULES.html.sh (posix_compat): Add it here.
28657
28658         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28659
28660 2006-09-15  Jim Meyering  <jim@meyering.net>
28661
28662         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28663         file.
28664
28665         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28666
28667 2006-09-15  Jim Meyering  <jim@meyering.net>
28668
28669         * lib/rename-dest-slash.c (has_trailing_slash): Use
28670         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28671         (rpl_rename_dest_slash): Perform the cheaper trailing slash
28672         test before testing whether SRC is a directory.
28673         Suggestions from Bruno Haible.
28674
28675         Avoid a warning about an unused variable.
28676         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28677         into the #ifdef block where it's used.
28678
28679         * lib/rename-dest-slash.c: New file.
28680
28681 2006-09-14  Bruno Haible  <bruno@clisp.org>
28682
28683         * lib/allocsa.c: Include <config.h> unconditionally.
28684         * lib/asnprintf.c: Likewise.
28685         * lib/asprintf.c: Likewise.
28686         * lib/c-strcasecmp.c: Likewise.
28687         * lib/c-strcasestr.c: Likewise.
28688         * lib/c-strncasecmp.c: Likewise.
28689         * lib/c-strstr.c: Likewise.
28690         * lib/classpath.c: Likewise.
28691         * lib/clean-temp.c: Likewise.
28692         * lib/concatpath.c: Likewise.
28693         * lib/copy-file.c: Likewise.
28694         * lib/csharpcomp.c: Likewise.
28695         * lib/csharpexec.c: Likewise.
28696         * lib/execute.c: Likewise.
28697         * lib/fatal-signal.c: Likewise.
28698         * lib/findprog.c: Likewise.
28699         * lib/fwriteerror.c: Likewise.
28700         * lib/gl_array_list.c: Likewise.
28701         * lib/gl_array_oset.c: Likewise.
28702         * lib/gl_avltree_list.c: Likewise.
28703         * lib/gl_avltree_oset.c: Likewise.
28704         * lib/gl_avltreehash_list.c: Likewise.
28705         * lib/gl_carray_list.c: Likewise.
28706         * lib/gl_linked_list.c: Likewise.
28707         * lib/gl_linkedhash_list.c: Likewise.
28708         * lib/gl_list.c: Likewise.
28709         * lib/gl_oset.c: Likewise.
28710         * lib/gl_rbtree_list.c: Likewise.
28711         * lib/gl_rbtree_oset.c: Likewise.
28712         * lib/gl_rbtreehash_list.c: Likewise.
28713         * lib/imaxabs.c: Likewise.
28714         * lib/imaxdiv.c: Likewise.
28715         * lib/javacomp.c: Likewise.
28716         * lib/javaexec.c: Likewise.
28717         * lib/javaversion.c: Likewise.
28718         * lib/linebreak.c: Likewise.
28719         * lib/localcharset.c: Likewise.
28720         * lib/lock.c: Likewise.
28721         * lib/mbchar.c: Likewise.
28722         * lib/mbswidth.c: Likewise.
28723         * lib/mkdtemp.c: Likewise.
28724         * lib/pipe.c: Likewise.
28725         * lib/printf-args.c: Likewise.
28726         * lib/printf-parse.c: Likewise.
28727         * lib/progname.c: Likewise.
28728         * lib/progreloc.c: Likewise.
28729         * lib/readlink.c: Likewise.
28730         * lib/sh-quote.c: Likewise.
28731         * lib/stpcpy.c: Likewise.
28732         * lib/stpncpy.c: Likewise.
28733         * lib/strcasecmp.c: Likewise.
28734         * lib/strcasestr.c: Likewise.
28735         * lib/strcspn.c: Likewise.
28736         * lib/striconv.c: Likewise.
28737         * lib/strncasecmp.c: Likewise.
28738         * lib/strnlen1.c: Likewise.
28739         * lib/strstr.c: Likewise.
28740         * lib/strtok_r.c: Likewise.
28741         * lib/tls.c: Likewise.
28742         * lib/tmpdir.c: Likewise.
28743         * lib/unicodeio.c: Likewise.
28744         * lib/unsetenv.c: Likewise.
28745         * lib/vasnprintf.c: Likewise.
28746         * lib/vasprintf.c: Likewise.
28747         * lib/wait-process.c: Likewise.
28748         * lib/xallocsa.c: Likewise.
28749         * lib/xsetenv.c: Likewise.
28750         * lib/xstriconv.c: Likewise.
28751
28752 2006-09-13  Simon Josefsson  <jas@extundo.com>
28753
28754         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
28755         that internally, suggested by Ralf Wildenhues
28756         <Ralf.Wildenhues@gmx.de>.
28757
28758 2006-09-13  Simon Josefsson  <jas@extundo.com>
28759
28760         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
28761         @LIBOBJS@.
28762         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28763
28764 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28765
28766         * lib/_fpending.c: Include <config.h> unconditionally, since we no
28767         longer worry about uses that don't define HAVE_CONFIG_H.
28768         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
28769         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
28770         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
28771         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
28772         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
28773         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
28774         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
28775         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
28776         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
28777         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
28778         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
28779         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
28780         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
28781         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
28782         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
28783         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
28784         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
28785         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
28786         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
28787         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
28788         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
28789         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
28790         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
28791         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
28792         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
28793         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
28794         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
28795         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
28796         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
28797         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
28798         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
28799         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
28800         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
28801         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
28802         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
28803         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
28804         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
28805         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
28806         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
28807         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
28808         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
28809         Likewise.
28810
28811 2006-09-13  Eric Blake  <ebb9@byu.net>
28812
28813         * lib/getopt.c: Fix typo in last commit.
28814
28815 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28816
28817         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
28818         dgettext.
28819
28820 2006-09-12  Jim Meyering  <jim@meyering.net>
28821
28822         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
28823         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
28824         Reported by Nelson H. F. Beebe.
28825
28826 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28827
28828         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
28829         program_invocation_name and program_invocation_short_name are
28830         initialized.
28831         * lib/argp-namefrob.h: Move declarations of program_invocation_name
28832         and program_invocation_short_name to argp.h, so they are visible
28833         to user programs.
28834         * lib/argp.h: Likewise
28835
28836 2006-09-10  Bruno Haible  <bruno@clisp.org>
28837
28838         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28839         m4/inttypes_h.m4, m4/uintmax_t.m4.
28840
28841 2006-09-10  Bruno Haible  <bruno@clisp.org>
28842
28843         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
28844         gl_AC_TYPE_UINTMAX_T.
28845
28846 2006-09-10  Bruno Haible  <bruno@clisp.org>
28847
28848         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
28849
28850 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28851
28852         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
28853         convention.  Text proposed by Bruno Haible.
28854         (struct argp_option): Document the use of N_() wrappers.
28855
28856         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
28857         '\v', and translate the two parts separately, instead of feeding
28858         the whole string to gettext.  This allows to exclude
28859         '\v' from the strings visible to the translator by writing doc
28860         strings as N_("..") "\v" N_("..").
28861
28862 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
28863
28864         * config/srclist.txt: Undo latest change; the bug was fixed.
28865
28866 2006-09-09  Bruno Haible  <bruno@clisp.org>
28867
28868         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
28869         assignments if building a library without libtool.
28870         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
28871         in func_emit_lib_Makefile_am.
28872         (func_import): When building a static library libfoo.a, arrange to
28873         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
28874         (func_create_testdir): Likewise.
28875         * modules/gc (configure.ac, Makefile.am): If building statically,
28876         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
28877         * modules/iconvme (configure.ac, Makefile.am): Likewise.
28878         * modules/striconv (configure.ac, Makefile.am): Likewise.
28879         Based on a suggestion by Ralf Wildenhues.
28880
28881 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28884         Check for unistd.h too, since Autoconf doesn't assume POSIX.
28885         Also:
28886
28887         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28888         Add year_2050_test to catch glibc bug 2821
28889         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28890
28891         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28892         Prefer #ifdef to #if.
28893
28894         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28895         Return from 'main' instead of calling 'exit'.
28896
28897 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28898
28899         * lib/mktime.c (guess_time_tm): Fix bug where mktime
28900         returned the maximum time_t value rather than (time_t) -1.
28901         Problem originally reported by William Bardwell
28902         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28903
28904         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28905         Moved to here ...
28906         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28907         ... from here.
28908
28909 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28910
28911         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
28912         2821 is fixed.
28913
28914 2006-09-08  Jim Meyering  <jim@meyering.net>
28915
28916         Don't make generated files read-only.  That would bother too many
28917         people.  However, do retain the ability to work when targets are
28918         read-only: remove the destination and temporary files before writing
28919         them (when generated via sed or echo), or by using the -f option for
28920         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
28921         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28922         * modules/byteswap, modules/configmake, modules/fcntl:
28923         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28924         * modules/localcharset, modules/netinet_in, modules/poll:
28925         * modules/stdbool, modules/stdint, modules/sys_select:
28926         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28927
28928 2006-09-08  Jim Meyering  <jim@meyering.net>
28929
28930         Avoid new build failure on FreeBSD 6.0.
28931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
28932         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
28933         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
28934
28935 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28936
28937         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
28938
28939 2006-09-07  Jim Meyering  <jim@meyering.net>
28940
28941         Fix global typo in last change: use chmod u-w, not chmod u-x.
28942         Spotted by Paul Eggert and Bruce Korb.
28943         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28944         * modules/byteswap, modules/configmake, modules/fcntl:
28945         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28946         * modules/localcharset, modules/netinet_in, modules/poll:
28947         * modules/stdbool, modules/stdint, modules/sys_select:
28948         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28949
28950 2006-09-06  Jim Meyering  <jim@meyering.net>
28951
28952         Make generated files be read-only.
28953         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
28954         Ensure that each generated file is now read-only.
28955         * modules/argz: Likewise.
28956         * modules/arpa_inet: Likewise.
28957         * modules/byteswap: Likewise.
28958         * modules/configmake: Likewise.
28959         * modules/fcntl: Likewise.
28960         * modules/fnmatch: Likewise.
28961         * modules/getopt: Likewise.
28962         * modules/glob: Likewise.
28963         * modules/inttypes: Likewise.
28964         * modules/netinet_in: Likewise.
28965         * modules/poll: Likewise.
28966         * modules/stdbool: Likewise.
28967         * modules/stdint: Likewise.
28968         * modules/sys_select: Likewise.
28969         * modules/sys_socket: Likewise.
28970         * modules/sys_stat: Likewise.
28971         * modules/sysexits: Likewise.
28972         * modules/localcharset: Same as above, but continue using temporary
28973         file named "t-$@" (why different?) rather than the "$@-t" used
28974         everywhere else.
28975
28976         * modules/sysexits (Makefile.am): Replace literal occurrences
28977         of "sysexit.h" more readable, and more consistent, "$@".
28978
28979 2006-09-06  Bruno Haible  <bruno@clisp.org>
28980
28981         * modules/striconv: New file.
28982         * modules/xstriconv: New file.
28983         * MODULES.html.sh (Internationalization functions): Add striconv,
28984         xstriconv.
28985
28986 2006-09-06  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
28989         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
28990         not using libtool correctly.
28991
28992 2006-09-06  Bruno Haible  <bruno@clisp.org>
28993
28994         * lib/striconv.h: New file.
28995         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
28996         iconvstring.c.
28997         * lib/xstriconv.h: New file.
28998         * lib/xstriconv.c: New file.
28999
29000 2006-09-06  Bruno Haible  <bruno@clisp.org>
29001
29002         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29003         lib_..._LDFLAGS.
29004
29005 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29006
29007         * lib/argz_.h: Sync from Libtool.
29008
29009         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29010                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29011
29012         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29013
29014 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29015
29016         * modules/trim: New file.
29017
29018 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29019
29020         * lib/trim.h: New file.
29021         * lib/trim.c: New file.
29022
29023 2006-09-05  Bruno Haible  <bruno@clisp.org>
29024
29025         * MODULES.html.sh (String handling): Add trim.
29026
29027 2006-09-04  Karl Berry  <karl@gnu.org>
29028
29029         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29030         until next release.
29031
29032 2006-09-03  Bruno Haible  <bruno@clisp.org>
29033
29034         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29035         correctly.
29036
29037 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29038
29039         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29040         not gl_GETLOADAVG.  Omit unneeded semicolons.
29041         Problems reported by Ralf Wildenhues in
29042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29043         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29044         at the end, which is the usual gnulib style.
29045
29046         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29047         of doing all the work ourselves.
29048         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29049         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29050
29051 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29052
29053         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29054         Problem reported by Ralf Wildenhues in
29055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29056
29057         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29058         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29059
29060 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29061
29062         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29063         yesterday's patch by changing test -n to test -z.
29064
29065 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29066
29067         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29068         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29069         the former is now obsolescent.
29070
29071         * modules/chdir-long (Depends-on): Add fcntl.
29072
29073 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29074
29075         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29076         obsolescent, and programs should use gnulib instead.
29077         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29078         but with prefixes changed.
29079
29080 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29081
29082         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29083         or stdbool.h, because they might not exist while configuring.
29084
29085         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29086         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29087         does that for us.
29088         (O_DIRECTORY): Remove.
29089
29090 2006-08-31  Eric Blake  <ebb9@byu.net>
29091
29092         * gnulib-tool: Don't let emacs change spaces to TAB.
29093
29094 2006-08-31  Bruno Haible  <bruno@clisp.org>
29095
29096         * gnulib-tool: When calling func_import more than once, do it in a
29097         subshell.
29098         Reported by Eric Blake <ebb9@byu.net>.
29099
29100 2006-08-31  Bruno Haible  <bruno@clisp.org>
29101
29102         * gnulib-tool (nl): Remove variable.
29103         (sed_transform_lib_file): Use more robust test for config-h module.
29104         (func_import): Fix typo in 2006-08-25 patch.
29105
29106 2006-08-31  Bruno Haible  <bruno@clisp.org>
29107
29108         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29109         specified, augment Makefile.am variables instead of assigning them.
29110
29111 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29112
29113         Work around a bug in both the Linux and SunOS 64-bit kernels:
29114         nanosleep mishandles sleeps for longer than 2**31 seconds.
29115         Problem reported by Frank v Waveren in
29116         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29118         Check for nanosleep bug.
29119         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29120
29121 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29122
29123         Work around a bug in both the Linux and SunOS 64-bit kernels:
29124         nanosleep mishandles sleeps for longer than 2**31 seconds.
29125         Problem reported by Frank v Waveren in
29126         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29127         * lib/nanosleep.c (BILLION): New constant.
29128         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29129         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29130         implementation.
29131
29132 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29133
29134         * modules/nanosleep (Depends-on): Add gettime.
29135
29136 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29137         and Simon Josefsson  <jas@extundo.com>
29138         and Oskar Liljeblad  <oskar@osk.mine.nu>
29139
29140         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29141         * gnulib-tool (func_import): New license type 'unmodifiable license
29142         text'.
29143         * modules/fdl: Use it.  Longer description.
29144         * module/gpl, module/lgpl: New files.
29145
29146 2006-08-30  Jim Meyering  <jim@meyering.net>
29147
29148         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29149         shadowing the parameter.
29150
29151 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29152
29153         Sync from Libtool:
29154
29155         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29156
29157         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29158         sharing with gnulib.  Report by Eric Blake.
29159
29160 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29161
29162         * modules/isapipe: New file.
29163         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29164
29165 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29166
29167         * modules/configmake (Makefile.am): Add a comment, and omit
29168         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29169         by Bruno Haible.
29170
29171 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29172
29173         * m4/isapipe.m4: New file.
29174
29175 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29176
29177         * lib/isapipe.c, lib/isapipe.h: New files.
29178
29179 2006-08-29  Jim Meyering  <jim@meyering.net>
29180
29181         * modules/configmake (Makefile.am): Make configmake.h depend on
29182         Makefile.  Otherwise, a stale configmake.h could hang around.
29183
29184 2006-08-29  Eric Blake  <ebb9@byu.net>
29185
29186         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29187         resolution of upstream bug 3044.
29188
29189 2006-08-29  Bruno Haible  <bruno@clisp.org>
29190
29191         * modules/localcharset (Depends-on): Add configmake.
29192         (Makefile.am): Remove setting of LIBDIR through DEFS.
29193
29194 2006-08-29  Bruno Haible  <bruno@clisp.org>
29195
29196         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29197         defined.
29198
29199 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29200
29201         * modules/fcntl: New file.
29202         * modules/chdir-safer (Depends-on): Add fcntl.
29203         * modules/fts: Likewise.
29204         * modules/mkdir-p: Likewise.
29205
29206         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29207         This undoes the most recent change, since we're now addressing the
29208         problem in a different way.
29209
29210         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29211         into output, since the output might be called Makefile.am even
29212         if $makefile_name is something different.
29213         (func_import): Use $makefile_am rather than
29214         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29215         empty.
29216
29217         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29218
29219 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29220
29221         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29222         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29223         recent change to stdint.m4, since we're now addressing the problem in a
29224         different way.
29225
29226 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29227
29228         * m4/fcntl_h.m4: New file.
29229
29230 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29231
29232         * lib/fcntl_.h: New file.
29233         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29234         the fcntl module.
29235         * lib/dirchownmod.c: Likewise.
29236         * lib/fts.c: Likewise.
29237
29238         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29239         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29240         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29241         just before including <inttypes.h>, to avoid circular inclusion.
29242
29243 2006-08-28  Jim Meyering  <jim@meyering.net>
29244
29245         * doc/visibility.texi: Actually read and correct the grammar of the
29246         sentence affected by yesterday's change.
29247
29248 2006-08-28  Eric Blake  <ebb9@byu.net>
29249
29250         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29251         needs wrapper.
29252
29253 2006-08-28  Eric Blake  <ebb9@byu.net>
29254
29255         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29256
29257 2006-08-28  Eric Blake  <ebb9@byu.net>
29258
29259         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29260
29261 2006-08-28  Bruno Haible  <bruno@clisp.org>
29262
29263         * modules/c-strstr: New file, from GNU gettext.
29264         * MODULES.html.sh (String handling): Add c-strstr.
29265
29266 2006-08-28  Bruno Haible  <bruno@clisp.org>
29267
29268         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29269         macros.
29270         Reported by Eric Blake.
29271
29272 2006-08-28  Bruno Haible  <bruno@clisp.org>
29273
29274         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29275         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29276         * lib/vasprintf.c: Include errno.h, limits.h.
29277         (EOVERFLOW): New fallback definition.
29278         (vasprintf): Test here whether the string length is > INT_MAX.
29279         * lib/vsnprintf.c: Include errno.h, limits.h.
29280         (EOVERFLOW): New fallback definition.
29281         (vsnprintf): Fix bug when generated string was too long for the buffer.
29282         Test here whether the string length is > INT_MAX.
29283
29284 2006-08-28  Bruno Haible  <bruno@clisp.org>
29285
29286         * lib/inttypes_.h (SCNX*): Remove definitions.
29287         Reported by Eric Blake.
29288
29289 2006-08-28  Bruno Haible  <bruno@clisp.org>
29290
29291         * lib/c-strstr.h: New file, from GNU gettext.
29292         * lib/c-strstr.c: New file, from GNU gettext.
29293
29294 2006-08-28  Bruno Haible  <bruno@clisp.org>
29295
29296         * gnulib-tool: Reorder some statements.
29297
29298 2006-08-28  Bruno Haible  <bruno@clisp.org>
29299
29300         * gnulib-tool: New option --makefile-name.
29301         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29302         $makefile_name.
29303         (func_import): Write $makefile_name to the cache file, and read it from
29304         there unless explicitly specified. Use $makefile_name as file name
29305         instead of Makefile.am. Adjust the recommendations accordingly.
29306
29307 2006-08-28  Bruno Haible  <bruno@clisp.org>
29308
29309         * gnulib-tool (func_verify_module): Check against misapplying patch.
29310
29311 2006-08-28  Bruno Haible  <bruno@clisp.org>
29312
29313         * gnulib-tool (func_relativize, func_relconcat): New functions.
29314         Give an error if --local-dir is given with --update.
29315         Remove trailing slashes from $local_gnulib_dir.
29316         (func_import): Store the relativized $local_gnulib_dir in
29317         gnulib-cache.m4, and read it from there if not specified explicitly.
29318
29319 2006-08-28  Bruno Haible  <bruno@clisp.org>
29320
29321         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29322         is the current directory. Respect also $local_gnulib_dir.
29323
29324 2006-08-28  Bruno Haible  <bruno@clisp.org>
29325             Simon Josefsson  <jas@extundo.com>
29326
29327         BeOS portability.
29328         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29329
29330 2006-08-27  Jim Meyering  <jim@meyering.net>
29331
29332         * doc/visibility.texi: Remove duplicate word: "pointer".
29333
29334 2006-08-26  Bruno Haible  <bruno@clisp.org>
29335
29336         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29337         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29338         (Makefile.am): Create inttypes.h from inttypes_.h.
29339         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29340
29341         * modules/imaxabs: New file.
29342
29343         * modules/imaxdiv: New file.
29344
29345 2006-08-26  Bruno Haible  <bruno@clisp.org>
29346
29347         * m4/inttypes.m4: New file.
29348         * m4/_inttypes_h.m4: Remove file.
29349         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29350         PRI_MACROS_BROKEN.
29351         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29352
29353         * m4/imaxabs.m4: New file.
29354
29355         * m4/imaxdiv.m4: New file.
29356
29357 2006-08-26  Bruno Haible  <bruno@clisp.org>
29358
29359         * lib/inttypes_.h: New file.
29360         * lib/inttypes.h: Remove file.
29361         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29362
29363         * lib/imaxabs.c: New file.
29364
29365         * lib/imaxdiv.c: New file.
29366
29367 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29368
29369         New config-h module, so that "make" output needn't be cluttered
29370         by -DHAVE_CONFIG_H.
29371         * MODULES.html.sh (Support for building libraries and executables):
29372         Add config-h.
29373         * modules/config-h: New file.
29374         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29375         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29376         the config-h module is used.
29377
29378         New configmake module, so that "make" output needn't be cluttered
29379         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29380         * MODULES.html.sh (Support for building libraries and executables):
29381         Add configmake.
29382         * modules/configmake: New file.
29383
29384 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29385
29386         * m4/config-h.m4: New file.
29387
29388 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29389
29390         * config/srclist.txt: Add elisp-comp.
29391
29392 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29393
29394         * MODULES.html.sh (Support for building libraries and executables):
29395         Add elisp-comp.
29396         * build-aux/elisp-comp: New file.
29397         * modules/elisp-comp: New file.
29398
29399 2006-08-24  Bruno Haible  <bruno@clisp.org>
29400
29401         * gnulib-tool (func_create_testdir): Use non-default values of
29402         sourcebase and m4base.
29403
29404 2006-08-24  Bruno Haible  <bruno@clisp.org>
29405
29406         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29407         HTML structure.
29408
29409 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29410
29411         * modules/openat (Depends-on): Add lchown.
29412
29413 2006-08-23  Bruno Haible  <bruno@clisp.org>
29414
29415         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29416         of gl_LOCK_EARLY instead of gl_LOCK.
29417
29418 2006-08-23  Bruno Haible  <bruno@clisp.org>
29419
29420         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29421         on OSF/1 to no.
29422         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29423
29424 2006-08-23  Bruno Haible  <bruno@clisp.org>
29425
29426         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29427         as unusable.
29428
29429         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29430         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29431         (gl_LOCK): New macro.
29432
29433 2006-08-22  Simon Josefsson  <jas@extundo.com>
29434
29435         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29436         to md5 module.
29437
29438 2006-08-22  Simon Josefsson  <jas@extundo.com>
29439
29440         * MODULES.html.sh: Add "Support for maintaining and release
29441         projects".
29442
29443         * build-aux/gnupload: New file, from coreutils.
29444
29445 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29446
29447         Avoid the need for AC_LIBSOURCES in m4 macros.
29448         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29449         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29450         * modules/check-version (EXTRA_DIST): Add check-version.h.
29451         * modules/crc (EXTRA_DIST): Add crc.h.
29452         * modules/des (EXTRA_DIST): Add des.h.
29453         * modules/gc (EXTRA_DIST): Add gc.h.
29454         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29455         * modules/getline (EXTRA_DIST): Add getline.h.
29456         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29457         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29458         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29459         * modules/md2 (EXTRA_DIST): Add md2.h.
29460         * modules/md4 (EXTRA_DIST): Add md4.h.
29461         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29462         * modules/read-file (EXTRA_DIST): Add read-file.h.
29463         * modules/readline (EXTRA_DIST): Add readline.h.
29464         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29465         rijndael-api-fst.h.
29466
29467 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29468
29469         * m4/rijndael.m4 (gl_ARCFOUR):
29470         * m4/arctwo.m4 (gl_ARCTWO):
29471         * m4/check-version.m4 (gl_CHECK_VERSION):
29472         * m4/crc.m4 (gl_CRC):
29473         * m4/des.m4 (gl_DES):
29474         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29475         * m4/gc.m4 (gl_GC):
29476         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29477         * m4/getline.m4 (gl_FUNC_GETLINE):
29478         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29479         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29480         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29481         * m4/md2.m4 (gl_MD2):
29482         * m4/md4.m4 (gl_MD4):
29483         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29484         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29485         * m4/readline.m4 (gl_FUNC_READLINE):
29486         * m4/rijndael.m4 (gl_RIJNDAEL):
29487         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29488         to get the necessary .h files and whatnot.
29489
29490 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29491
29492         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29493         gnulib rather than the other way around.
29494         * config/srclistvars.sh (COREUTILS): Remove.
29495
29496 2006-08-22  Jim Meyering  <jim@meyering.net>
29497
29498         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29499
29500         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29501
29502 2006-08-22  Eric Blake  <ebb9@byu.net>
29503
29504         * modules/regexprops-generic: New file.
29505         * MODULES.html.sh (Support for building documentation): List it.
29506
29507 2006-08-22  Eric Blake  <ebb9@byu.net>
29508
29509         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29510         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29511         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29512         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29513
29514 2006-08-22  Bruno Haible  <bruno@clisp.org>
29515
29516         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29517         and lib_LTLIBRARIES like the other lib_* variables.
29518
29519 2006-08-22  Bruno Haible  <bruno@clisp.org>
29520
29521         * build-aux/x-to-1.in: New file, from GNU gettext.
29522
29523 2006-08-22  Bruno Haible  <bruno@clisp.org>
29524
29525         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29526         <utmpx.h> exists.
29527
29528 2006-08-22  Bruno Haible  <bruno@clisp.org>
29529
29530         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29531         <utmpx.h> exists.
29532
29533 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29534
29535         BeOS portability.
29536         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29537         exist.
29538         Problem reported by Bruno Haible.
29539
29540 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29541
29542         Avoid the need for AC_LIBSOURCES in m4 macros.
29543         * modules/acl (EXTRA_DIST): Add acl.h.
29544         * modules/argmatch (Files): Add m4/argmatch.m4.
29545         (configure.ac): Add gl_ARGMATCH.
29546         (EXTRA_DIST): Renamed from lib_SOURCES, for
29547         consistency with the other modules.  Remove argmatch.c.
29548         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29549         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29550         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29551         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29552         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29553         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29554         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29555         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29556         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29557         * modules/closeout (EXTRA_DIST): Add closeout.h.
29558         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29559         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29560         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29561         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29562         dirname.h; remove basename.c and stripslash.c.
29563         * modules/exclude (EXTRA_DIST): Add exclude.h.
29564         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29565         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29566         * modules/file-type (EXTRA_DIST): Add file-type.h.
29567         * modules/filemode (EXTRA_DIST): Add filemode.h.
29568         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29569         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29570         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29571         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29572         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29573         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29574         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29575         * modules/getdate (EXTRA_DIST): Add getdate.c.
29576         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29577         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29578         * modules/getpass (EXTRA_DIST): Add getpass.h.
29579         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29580         * modules/group-member (EXTRA_DIST): Add group-member.h.
29581         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29582         * modules/hash (EXTRA_DIST): Add hash.h.
29583         * modules/human (EXTRA_DIST): Add human.h.
29584         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29585         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29586         * modules/lchown (EXTRA_DIST): Add lchown.h.
29587         * modules/long-options (EXTRA_DIST): Add long-options.h.
29588         * modules/lstat (EXTRA_DIST): Add lstat.h.
29589         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29590         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29591         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29592         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29593         * modules/memxor (EXTRA_DIST): Add memxor.h.
29594         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29595         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29596         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29597         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29598         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29599         * modules/physmem (EXTRA_DIST): Add physmem.h.
29600         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29601         * modules/posixver (EXTRA_DIST): Add posixver.h.
29602         * modules/quote (EXTRA_DIST): Add quote.h.
29603         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29604         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29605         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29606         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29607         regex_internal.h regexec.c.
29608         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29609         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29610         * modules/same (EXTRA_DIST): Add same.h.
29611         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29612         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29613         * modules/savedir (EXTRA_DIST): Add savedir.h.
29614         * modules/sha1 (EXTRA_DIST): Add sha1.h.
29615         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29616         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29617         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29618         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29619         * modules/strdup (EXTRA_DIST): Add strdup.h.
29620         * modules/strftime (EXTRA_DIST): Add strftime.h.
29621         * modules/strndup (EXTRA_DIST): Add strndup.h.
29622         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29623         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29624         * modules/time_r (EXTRA_DIST): Add time_r.h.
29625         * modules/timespec (EXTRA_DIST): Add timespec.h.
29626         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29627         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29628         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29629         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29630         * modules/userspec (EXTRA_DIST): Add userspec.h.
29631         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29632         * modules/utimens (EXTRA_DIST): Add utimens.h.
29633         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29634         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29635         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29636         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29637         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29638         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29639         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29640         * modules/yesno (EXTRA_DIST): Add yesno.h.
29641
29642 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29643
29644         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29645
29646         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29647         * m4/dev-ino.m4, same-inode.m4: Remove.
29648
29649         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29650         * m4/acl.m4 (AC_FUNC_ACL):
29651         * m4/backupfile.m4 (gl_BACKUPFILE):
29652         * m4/c-strtod.m4 (gl_C99_STRTOLD):
29653         * m4/canon-host.m4 (gl_CANON_HOST):
29654         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29655         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29656         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29657         * m4/cloexec.m4 (gl_CLOEXEC):
29658         * m4/close-stream.m4 (gl_CLOSE_STREAM):
29659         * m4/closeout.m4 (gl_CLOSEOUT):
29660         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29661         * m4/dirname.m4 (gl_DIRNAME):
29662         * m4/exclude.m4 (gl_EXCLUDE):
29663         * m4/exitfail.m4 (gl_EXITFAIL):
29664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29665         * m4/file-type.m4 (gl_FILE_TYPE):
29666         * m4/filemode.m4 (gl_FILEMODE):
29667         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29668         * m4/fpending.m4 (gl_FUNC_FPENDING):
29669         * m4/fprintftime.m4 (gl_FPRINTFTIME):
29670         * m4/fts.m4 (gl_FUNC_FTS):
29671         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29672         * m4/getdate.m4 (gl_GETDATE):
29673         * m4/gethrxtime.m4 (gl_GETHRXTIME):
29674         * m4/getpagesize.m4 (gl_GETPAGESIZE):
29675         * m4/getpass.m4 (gl_FUNC_GETPASS):
29676         * m4/gettime.m4 (gl_GETTIME):
29677         * m4/getugroups.m4 (gl_GETUGROUPS):
29678         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29679         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29680         * m4/hard-locale.m4 (gl_HARD_LOCALE):
29681         * m4/hash.m4 (gl_HASH):
29682         * m4/idcache.m4 (gl_IDCACHE):
29683         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29684         * m4/lchown.m4 (gl_FUNC_LCHOWN):
29685         * m4/long-options.m4 (gl_LONG_OPTIONS):
29686         * m4/lstat.m4 (gl_FUNC_LSTAT):
29687         * m4/md5.m4 (gl_MD5):
29688         * m4/memcasecmp.m4 (gl_MEMCASECMP):
29689         * m4/memcoll.m4 (gl_MEMCOLL):
29690         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29691         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29692         * m4/memxor.m4 (gl_MEMXOR):
29693         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29694         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29695         * m4/modechange.m4 (gl_MODECHANGE):
29696         * m4/mountlist.m4 (gl_MOUNTLIST):
29697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29698         * m4/openat.m4 (gl_FUNC_OPENAT):
29699         * m4/pathmax.m4 (gl_PATHMAX):
29700         * m4/physmem.m4 (gl_PHYSMEM):
29701         * m4/posixtm.m4 (gl_POSIXTM):
29702         * m4/posixver.m4 (gl_POSIXVER):
29703         * m4/quote.m4 (gl_QUOTE):
29704         * m4/quotearg.m4 (gl_QUOTEARG):
29705         * m4/readtokens.m4 (gl_READTOKENS):
29706         * m4/readutmp.m4 (gl_READUTMP):
29707         * m4/regex.m4 (gl_REGEX):
29708         * m4/safe-read.m4 (gl_SAFE_READ):
29709         * m4/safe-write.m4 (gl_SAFE_WRITE):
29710         * m4/same.m4 (gl_SAME):
29711         * m4/save-cwd.m4 (gl_SAVE_CWD):
29712         * m4/savedir.m4 (gl_SAVEDIR):
29713         * m4/settime.m4 (gl_SETTIME):
29714         * m4/sha1.m4 (gl_SHA1):
29715         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29716         * m4/stat-macros.m4 (gl_STAT_MACROS):
29717         * m4/stat-time.m4 (gl_STAT_TIME):
29718         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29719         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29720         * m4/strdup.m4 (gl_FUNC_STRDUP):
29721         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29722         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29723         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29724         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29725         * m4/time_r.m4 (gl_TIME_R):
29726         * m4/timespec.m4 (gl_TIMESPEC):
29727         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29728         * m4/unlinkdir.m4 (gl_UNLINKDIR):
29729         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29730         * m4/userspec.m4 (gl_USERSPEC):
29731         * m4/utimecmp.m4 (gl_UTIMECMP):
29732         * m4/utimens.m4 (gl_UTIMENS):
29733         * m4/xalloc.m4 (gl_XALLOC):
29734         * m4/xgetcwd.m4 (gl_XGETCWD):
29735         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29736         * m4/xreadlink.m4 (gl_XREADLINK):
29737         * m4/xstrtod.m4 (gl_XSTRTOD):
29738         * m4/yesno.m4 (gl_YESNO):
29739         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29740         to get the necessary .h files and whatnot.
29741
29742 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
29743             Bruno Haible  <bruno@clisp.org>
29744
29745         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
29746         /bin/sh understanding of '!' conditional negation.
29747
29748 2006-08-21  Jim Meyering  <jim@meyering.net>
29749
29750         * modules/openat (Depends-on): Really alphabetize.
29751
29752         * modules/acl (Depends-on): Add error and quote.
29753
29754         * check-module (find_included_lib_files): Add at-func.c to the
29755         ok-to-include-more-than-once white list.
29756
29757         * modules/openat (Depends-on): Add lstat.  Alphabetize.
29758
29759 2006-08-21  Bruno Haible  <bruno@clisp.org>
29760
29761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29762         Emit a pkgdata_DATA variable only if some snippets add contents to it.
29763         Reported by Martin Lambers <marlam@marlam.de>.
29764
29765 2006-08-21  Bruno Haible  <bruno@clisp.org>
29766
29767         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
29768         specify an installation location, don't emit a noinst_LIBRARIES or
29769         noinst_LTLIBRARIES assignment.
29770
29771 2006-08-21  Bruno Haible  <bruno@clisp.org>
29772
29773         BeOS portability.
29774         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
29775         BeOS has mbrtowc() but no <wctype.h>.
29776
29777 2006-08-21  Bruno Haible  <bruno@clisp.org>
29778
29779         BeOS portability.
29780         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
29781         exist.
29782
29783 2006-08-21  Bruno Haible  <bruno@clisp.org>
29784
29785         BeOS portability.
29786         * lib/mbchar.h: Include <wctype.h> only if it exists.
29787
29788 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29789
29790         Remove files that are no longer needed by their respective modules.
29791         * m4/obstack.m4: Remove.
29792         * m4/strerror_r.m4: Remove.
29793         * m4/uint32_t.m4: Remove.
29794         * m4/uintptr_t.m4: Remove.
29795         * m4/ullong_max.m4: Remove.
29796         * m4/xstrtoimax.m4: Remove.
29797         * m4/xstrtoumax.m4: Remove.
29798
29799         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
29800         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
29801         dependencies now capture this.
29802
29803         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
29804         Do not use AC_LIBSOURCES, since gnulib modules now do this.
29805         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
29806         * m4/human.m4 (gl_HUMAN): Likewise.
29807         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
29808         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
29809
29810         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
29811
29812         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
29813         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
29814         stdint.
29815         * m4/human.m4 (gl_HUMAN): Likewise.
29816         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
29817         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
29818         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29819         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29820         * m4/xstrtol (gl_XSTRTOL): Likewise.
29821
29822         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
29823         AC_TYPE_LONG_LONG_INT.
29824         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29825         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
29826         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
29827         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29828
29829         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
29830         on stdbool.
29831
29832         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
29833         (gl_PREREQ_XSTRTOUL): Remove.
29834
29835         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
29836
29837         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
29838         mode.
29839
29840 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29841
29842         Add and change modules to make it easier for coreutils to use
29843         gnulib-tool.
29844         * modules/backupfile (Files): Remove m4/d-ino.m4.
29845         (Depends-on): Add d-ino.
29846         * modules/cycle-check (Depends-on): Add stdint.
29847         (lib_SOURCES): Add cycle-check.h.
29848         * modules/d-ino: New module.
29849         * modules/d-type: New module.
29850         * modules/error (Files): Remove m4/strerror_r.m4.
29851         * modules/filemode (Files): Add m4/st_dm_mode.m4.
29852         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29853         m4/inttypes_h.m4, m4/uintmax_t.m4.
29854         (Depends-on): Add stdint.
29855         (lib_SOURCES): Add fsusage.h.
29856         * modules/getcwd (Files): Remove d-ino.m4.
29857         (Depends-on): Add d-ino.
29858         * modules/getndelim2 (Depends-on): Add stdint.
29859         * modules/glob (Files): Remove m4/d-type.m4.
29860         (Depends-on): Add d-type.
29861         * modules/host-os: New module.
29862         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
29863         m4/inttypes_h.m4, m4/uintmax_t.m4.
29864         * Depends-on: Add stdint.
29865         (lib_SOURCES): Add human.h.
29866         * modules/inttostr (Files): Remove m4/intmax_t.m4,
29867         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
29868         m4/uintmax_t.m4, m4/ulonglong.m4.
29869         (Depends-on): Add stdint.
29870         (EXTRA_DIST): Add inttostr.h.
29871         * modules/lchmod: New module.
29872         * modules/link-follow: New module.
29873         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
29874         (Depends-on): Add lchmod.
29875         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
29876         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
29877         (Depends-on): Add stdint.
29878         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
29879         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
29880         (Depends-on): Add stdint.
29881         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
29882         * modules/perl: New module.
29883         * modules/regex (Depends-on): Add stdint.
29884         * modules/rmdir-errno: New module.
29885         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29886         m4/intmax_t.m4.
29887         (Depends-on): Add stdint.
29888         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29889         m4/uintmax_t.m4.
29890         (Depends-on): Add stdint.
29891         * modules/unlink-busy: New module.
29892         * modules/utimecmp (Depends-on): Add stdint.
29893         * modules/uptime: New module.
29894         * modules/winsz-ioctl: New module.
29895         * modules/winsz-termios: New module.
29896         * modules/xnanosleep (Depends-on): Add nanosleep.
29897         * modules/ullong_max: Remove.
29898         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
29899         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
29900         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
29901         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
29902         (Depends-on): Add inttypes.
29903         (lib_SOURCES): Add xstrtol.h.
29904         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
29905         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
29906         * MODULES.html.sh: Move 'assert' into the assert section.
29907         Move 'dummy' into the linking section.
29908         Remove ullong_max.
29909         Add section for compatibility checks for POSIX:2001 functions,
29910         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
29911         winsz-ioctl, and winsz-termios into it.
29912         Add lchmod.
29913         Add top-level Misc section and put host-os, perl, and uptime
29914         into it.
29915
29916 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29917
29918         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
29919         now assume the stdint module.  Do not include inttypes.h.
29920         * lib/fsusage.h: Likewise.
29921         * lib/getndelim2.c: Likewise.
29922         * lib/human.h: Likewise.
29923         * lib/inttostr.h: Likewise.
29924         * lib/obstack.c: Likewise.
29925         * lib/regex_internal.h: Likewise.
29926         * lib/tempname.c: Likewise.
29927         * lib/utimecmp.c: Likewise.
29928         * lib/xstrtol.h: Likewise.
29929
29930         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
29931
29932         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
29933         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
29934         * lib/xtime.h: Likewise.
29935
29936 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29937
29938         * modules/openat (Files): Add lib/fchmodat.c.
29939         Fixes problem reported by Jay Youngman.
29940
29941 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29942
29943         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
29944         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
29945
29946 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29947             Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
29950         and is a script that invokes bison. Tighten the code. Add comments.
29951
29952 2006-08-18  Jim Meyering  <jim@meyering.net>
29953
29954         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
29955         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
29956         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
29957         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
29958
29959 2006-08-18  Bruno Haible  <bruno@clisp.org>
29960
29961         * modules/bison-i18n: New file.
29962         * MODULES.html.sh (Internationalization functions): Add it.
29963
29964 2006-08-18  Bruno Haible  <bruno@clisp.org>
29965
29966         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
29967         sys/statvfs.h. When getmntinfo was found, check its declaration and
29968         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
29969
29970 2006-08-18  Bruno Haible  <bruno@clisp.org>
29971
29972         * m4/bison-i18n.m4: New file, from bison.
29973
29974 2006-08-18  Bruno Haible  <bruno@clisp.org>
29975
29976         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
29977         (ME_DUMMY): Treat "kernfs" as a dummy.
29978         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
29979
29980 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29981
29982         Update from coreutils.
29983
29984         2006-08-15  Jim Meyering  <jim@meyering.net>
29985
29986         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
29987
29988         2006-01-17  Jim Meyering  <jim@meyering.net>
29989
29990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
29991
29992         2006-01-11  Jim Meyering  <jim@meyering.net>
29993
29994         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
29995         Check for the lchmod function.
29996
29997 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29998
29999         Update from coreutils.
30000
30001         * lib/__fpending.h: Add copyright notice.
30002         * lib/fprintftime.h: Likewise.
30003         * lib/savedir.c: Use (C) in copyright notice.
30004         * lib/savedir.h: Likewise.
30005
30006         2006-08-15  Jim Meyering  <jim@meyering.net>
30007
30008         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30009         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30010         in support of the EXPECTED_ERRNO macro.
30011         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30012         definitions.  Instead, define the appropriate symbols and include
30013         "at-func.c".
30014         * lib/mkdirat.c (mkdirat): Likewise.
30015         * lib/fchmodat.c (fchmodat): Likewise.
30016         (ENOSYS): Remove definition.
30017         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30018         it.  Don't include "unistd--.h" -- it wasn't ever used.
30019
30020         2006-01-17  Jim Meyering  <jim@meyering.net>
30021
30022         Rewrite fts.c not to change the current working directory,
30023         by using openat, fstatat, fdopendir, etc..
30024
30025         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30026         (HAVE_OPENAT_SUPPORT): Define.
30027         [_LIBC] (fchdir): Don't undef or define; no longer used.
30028         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30029         Now, this `function' always succeeds, and consumes its file descriptor
30030         parameter -- so callers must not close such FDs.  Update callers.
30031         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30032         (diropen): Add parameter, SP.  Adjust all callers.
30033         Implement using diropen_fd, rather than open.
30034         (fts_open): Initialize new member, fts_cwd_fd.
30035         Remove fts_rft-setting code.
30036         (fts_close): Close fts_cwd_fd, if necessary.
30037         (__opendir2): Define in terms of opendir or opendirat,
30038         depending on whether the FST_NOCHDIR flag is set.
30039         (fts_build): Since fts_safe_changedir consumes its FD, and since
30040         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30041         and close the dup'd file descriptor upon failure.
30042         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30043         (fts_safe_changedir): Tweak semantics to reflect that this function
30044         now calls cwd_advance_fd and hence consumes its FD argument.
30045         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30046         [struct FTS] (fts_rft): Remove now-unused member.
30047         [struct FTS] (fts_cycle.state): Improve comment.
30048
30049         * lib/openat.c (openat_needs_fchdir): New function.
30050         * lib/openat.h (openat_needs_fchdir): Declare it.
30051
30052 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30053
30054         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30055         Problem and fix reported by Pádraig Brady in
30056         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30057
30058 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30059
30060         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30061
30062 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30063
30064         * lib/memcoll.c (memcoll): Optimize for the common case where the
30065         arguments are bytewise equal.
30066
30067 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30068
30069         * doc/regexprops-generic.texi: Add a copyright notice.
30070
30071 2006-08-15  Bruno Haible  <bruno@clisp.org>
30072
30073         * modules/tmpdir (License): Change to LGPL.
30074
30075 2006-08-15  Bruno Haible  <bruno@clisp.org>
30076
30077         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30078         module.
30079
30080 2006-08-14  Simon Josefsson  <jas@extundo.com>
30081
30082         * config/srclist.txt: Add gnupload.
30083
30084 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30085
30086         Change copyright notice from LGPL 2 to GPL 2, since that's the
30087         standard form used in the gnulib repository.
30088         * tests/test-lock.c: Likewise.
30089         * tests/test-stdint.c: Likewise.
30090         * tests/test-tls.c: Likewise.
30091
30092         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30093         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30094         Add copyright notice.
30095
30096         * check-module: Add copyright notice.  Output a copyright
30097         notice if "--version" is specified.
30098         * modules/COPYING: New file.
30099         * tests/test-getaddrinfo.c: Add copyright notice.
30100         * tests/test-verify.c: Likewise.
30101
30102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         Change copyright notice from LGPL 2 to GPL 2, since that's the
30105         standard form used in the gnulib repository.
30106         * lib/lock.c: LGPL -> GPL.
30107         * lib/lock.h: Likewise.
30108         * lib/strnlen1.c: Likewise.
30109         * lib/strnlen1.h: Likewise.
30110         * lib/tls.c: Likewise.
30111         * lib/tls.h: Likewise.
30112         * lib/tmpdir.c: Likewise.
30113
30114         * lib/TODO: Remove; this belongs only in coreutils.
30115
30116 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30117
30118         Add copyright notices to long-enough files that lack them, since
30119         otherwise the files aren't clearly free.  Use the same notice that
30120         getdate.texi already uses.
30121         * doc/alloca-opt.texi: Add copyright notice.
30122         * doc/alloca.texi: Likewise.
30123         * doc/ctime.texi: Likewise.
30124         * doc/functions.texi: Likewise.
30125         * doc/gcd.texi: Likewise.
30126         * doc/gnulib-tool.texi: Likewise.
30127         * doc/inet_ntoa.texi: Likewise.
30128         * doc/visibility.texi: Likewise.
30129
30130         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30131         * doc/quote.texi: Add copyright notice.
30132
30133         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30134         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30135         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30136         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30137         is now obsolete, and give a pointer to the Sun list.
30138         Add copyright notice.
30139
30140 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30141
30142         * config/srclistvars.sh: Add copyright notice.
30143
30144 2006-08-14  Eric Blake  <ebb9@byu.net>
30145
30146         Import the following change from libc:
30147
30148         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30149
30150         Upstream bug 2997.
30151         * lib/misc/error.c: Add space between program name and message if file
30152         name is missing.
30153
30154 2006-08-12  Karl Berry  <karl@gnu.org>
30155
30156         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30157         remove, these originate in gnulib now.
30158
30159 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30160
30161         * doc/Makefile (standards.info standards.html standards.dvi):
30162         Also depend on make-stds.texi.
30163
30164 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30165
30166         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30167         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30168
30169         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30170         in wchar_t.  Problem reported by Eric Blake.
30171
30172         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30173         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30174         Also, help the compiler to keep LEN in a register.
30175
30176 2006-08-11  Eric Blake  <ebb9@byu.net>
30177
30178         * users.txt: Sort.  Add tar.
30179
30180 2006-08-11  Bruno Haible  <bruno@clisp.org>
30181
30182         * users.txt: New file.
30183
30184 2006-08-11  Bruno Haible  <bruno@clisp.org>
30185
30186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30187         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30188
30189 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30190
30191         * modules/snprintf (Depends-on): Remove minmax.
30192         (Maintainer): Add self and Bruno.
30193
30194 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30195
30196         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30197         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30198         (EOVERFLOW): Define if the system does not.
30199         Do not include "minmax.h"; it wasn't used.
30200         (snprintf): Don't assume size_t promotes to an unsigned type.
30201         Fix bug when generated string was too long for the buffer: the
30202         buffer's contents are supposed to be the initial prefix of the
30203         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30204         exceeds INT_MAX; do the check ourselves.
30205
30206         Import the following changes from libc:
30207
30208         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30209
30210         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30211         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30212         set wc to the byte which couldn't be converted.
30213         (re_string_reconstruct): Don't clear valid_raw_len before calling
30214         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30215         tip_context using re_string_context_at.
30216
30217         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30218
30219         * lib/posix/regex.h: g++ still cannot handled [restrict].
30220
30221         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30222
30223         * lib/posix/regex.h: Remove special handling for VMS.
30224
30225 2006-08-10  Jim Meyering  <jim@meyering.net>
30226
30227         * modules/same-inode: New module.
30228         * modules/dev-ino: New module.
30229         * modules/cycle-check: Depend on these modules, rather than simply
30230         including their .h files.
30231         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30232         required via m4/cycle-check.m4.
30233         * modules/same: Depend on new same-inode module, rather than
30234         including same-inode.h.
30235         * modules/chdir-safer: New file.
30236
30237         * modules/chown (Depends-on): Add stat-macros.
30238
30239 2006-08-10  Jim Meyering  <jim@meyering.net>
30240
30241         * m4/cycle-check.m4: New file.
30242         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30243         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30244
30245 2006-08-10  Eric Blake  <ebb9@byu.net>
30246
30247         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30248         in from original proposal.
30249
30250 2006-08-10  Eric Blake  <ebb9@byu.net>
30251         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30252
30253         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30254         namespace.
30255
30256 2006-08-10  Bruno Haible  <bruno@clisp.org>
30257
30258         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30259         as well.
30260
30261 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30262
30263         Sync from coreutils.
30264
30265         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30266
30267         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30268         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30269
30270 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30271
30272         * modules/restrict: Remove; no longer needed now that we assume
30273         Autoconf 2.59 or later.
30274         * MODULES.html.sh: Remove 'restrict'.
30275         * modules/argp (Depends-on): Remove 'restrict'.
30276         * modules/base64 (Depends-on): Likewise.
30277         * modules/gc (Depends-on): Likewise.
30278         * modules/getaddrinfo (Depends-on): Likewise.
30279         * modules/glob (Depends-on): Likewise.
30280         * modules/inet_ntop (Depends-on): Likewise.
30281         * modules/inet_pton (Depends-on): Likewise.
30282         * modules/memxor (Depends-on): Likewise.
30283         * modules/regex (Depends-on): Likewise.
30284         * modules/strtok_r (Depends-on): Likewise.
30285         * modules/time_r (Depends-on): Likewise.
30286
30287 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30288
30289         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30290         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30291         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30292         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30293         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30294         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30295         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30296         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30297
30298         Merge from coreutils.
30299         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30300         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30302         * m4/time_r.m4 (gl_TIME_R): Likewise.
30303
30304 2006-08-09  Karl Berry  <karl@gnu.org>
30305
30306         * config/srclist.txt: no more gettext-tools, per Bruno.
30307
30308 2006-08-08  Eric Blake  <ebb9@byu.net>
30309
30310         * modules/verror: New module.
30311         * MODULES.html.sh: Document it.
30312
30313 2006-08-08  Eric Blake  <ebb9@byu.net>
30314
30315         * lib/verror.h, lib/verror.c: New files.
30316
30317 2006-08-08  Eric Blake  <ebb9@byu.net>
30318
30319         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30320         verror_at_line output complies with GNU Coding Standards even when
30321         file is NULL.
30322
30323 2006-08-07  Bruno Haible  <bruno@clisp.org>
30324
30325         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30326         versions of AIX.
30327         Reported by Ralf Wildenhues.
30328
30329 2006-08-07  Bruno Haible  <bruno@clisp.org>
30330
30331         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30332         in an AC_DEFUN. Needed so that the autoconf snippets can use
30333         AC_REQUIRE.
30334
30335 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30336
30337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30338         Initialize pkgdata_DATA.
30339         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30340         overriding it.
30341
30342 2006-08-06  Eric Blake  <ebb9@byu.net>
30343
30344         * lib/error.h: Fold in some upstream changes from glibc.
30345         * lib/error.c: Likewise.
30346
30347 2006-08-04  Bruno Haible  <bruno@clisp.org>
30348
30349         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30350         Make the mostlyclean-local rule depend on mostlyclean-generic.
30351         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30352
30353 2006-07-31  Bruno Haible  <bruno@clisp.org>
30354
30355         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30356         <stdlib.h>, <string.h>.
30357
30358 2006-07-30  Bruno Haible  <bruno@clisp.org>
30359
30360         * modules/readlink (License): Change to LGPL.
30361
30362 2006-07-30  Bruno Haible  <bruno@clisp.org>
30363
30364         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30365         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30366         set PKGDATADIR to point to it.
30367
30368 2006-07-30  Bruno Haible  <bruno@clisp.org>
30369
30370         * modules/csharpexec (configure.ac): Comment out macro invocation.
30371         * modules/javaexec (configure.ac): Likewise.
30372         * modules/javacomp-script (configure.ac): Likewise.
30373
30374         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30375
30376 2006-07-30  Bruno Haible  <bruno@clisp.org>
30377
30378         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30379         linked-list.
30380
30381 2006-07-30  Bruno Haible  <bruno@clisp.org>
30382
30383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30384
30385 2006-07-30  Bruno Haible  <bruno@clisp.org>
30386
30387         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30388         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30389         get removed.
30390
30391 2006-07-29  Bruno Haible  <bruno@clisp.org>
30392
30393         Make it possible for gnulib-tool to work with locally modified or
30394         augmented gnulib repositories.
30395         * gnulib-tool (func_usage): Document --local-dir option.
30396         (local_gnulib_dir): New variable.
30397         Handle --local-dir option.
30398         (func_lookup_file): New function.
30399         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30400         (func_get_description, func_get_filelist, func_get_description,
30401         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30402         func_get_automake_snippet, func_get_include_directive,
30403         func_get_license, func_get_maintainer): Use func_lookup_file.
30404         (func_import, func_create_testdir): Use func_lookup_file.
30405
30406 2006-07-29  Bruno Haible  <bruno@clisp.org>
30407
30408         * modules/setenv (Depends-on): Add unistd.
30409
30410 2006-07-29  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30413
30414 2006-07-29  Bruno Haible  <bruno@clisp.org>
30415
30416         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30417
30418 2006-07-29  Bruno Haible  <bruno@clisp.org>
30419
30420         * gnulib-tool (import, update): If there is no Makefile.am, look at
30421         aclocal.m4, instead of bailing out.
30422
30423 2006-07-29  Bruno Haible  <bruno@clisp.org>
30424
30425         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30426         Categorize the options by when they are useful.
30427
30428 2006-07-29  Bruno Haible  <bruno@clisp.org>
30429
30430         * gnulib-tool (func_usage): Document option --no-libtool.
30431         Handle option --no-libtool.
30432         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30433         for changed semantics of $libtool variable.
30434         (func_import): Likewise. If libtool is not used, show this through
30435         an option --no-libtool.
30436         (func_create_testdir): Update.
30437
30438 2006-07-29  Bruno Haible  <bruno@clisp.org>
30439
30440         * gnulib-tool (func_import): Extend error message about missing
30441         --doc-base.
30442
30443 2006-07-29  Bruno Haible  <bruno@clisp.org>
30444
30445         * gnulib-tool (func_import): Don't create the $docbase directory if
30446         there is no file to store there.
30447
30448 2006-07-29  Bruno Haible  <bruno@clisp.org>
30449
30450         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30451         relevant, look for configure.ac there, not in the current directory.
30452         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30453
30454 2006-07-29  Bruno Haible  <bruno@clisp.org>
30455
30456         * gnulib-tool (SORT): New variable.
30457         (func_usage): Undocument --assume-autoconf option.
30458         Remove --assume-autoconf option handling.
30459         (autoconf_minversion): Determine from the contents of configure.ac.
30460         (func_import): Remove autoconf_minversion handling.
30461         Suggested by Eric Blake.
30462
30463 2006-07-29  Bruno Haible  <bruno@clisp.org>
30464
30465         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30466
30467 2006-07-29  Bruno Haible  <bruno@clisp.org>
30468
30469         * config/srclist.txt (*setenv.[ch]): Remove rules.
30470
30471 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30472
30473         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30474
30475 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30476
30477         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30478         arpa/inet.h.
30479
30480 2006-07-28  Simon Josefsson  <jas@extundo.com>
30481
30482         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30483         * modules/inet_pton (Depends-on): Likewise.
30484
30485 2006-07-28  Simon Josefsson  <jas@extundo.com>
30486
30487         * m4/netinet_in_h.m4: New file.
30488
30489 2006-07-28  Simon Josefsson  <jas@extundo.com>
30490
30491         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30492         #include's.
30493
30494 2006-07-28  Simon Josefsson  <jas@extundo.com>
30495
30496         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30497         #include's.
30498
30499 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30500
30501         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30502         setgid on directories only if they set these bits.
30503         * lib/modechange.h: Remove obsolete comment about masks.
30504
30505 2006-07-28  Eric Blake  <ebb9@byu.net>
30506
30507         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30508         macro expansion.
30509
30510 2006-07-28  Bruno Haible  <bruno@clisp.org>
30511
30512         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30513
30514 2006-07-28  Bruno Haible  <bruno@clisp.org>
30515
30516         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30517
30518 2006-07-28  Bruno Haible  <bruno@clisp.org>
30519
30520         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30521         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30522         Define fallbacks.
30523         Avoids link error on FreeBSD 4.x.
30524         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30525
30526         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30527         encoding.
30528         * lib/mbswidth.c (iswcntrl): Likewise.
30529
30530 2006-07-27  Bruno Haible  <bruno@clisp.org>
30531
30532         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30533         test.
30534
30535 2006-07-27  Bruno Haible  <bruno@clisp.org>
30536
30537         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30538         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30539         defined.
30540
30541 2006-07-26  Eric Blake  <ebb9@byu.net>
30542
30543         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30544
30545 2006-07-26  Eric Blake  <ebb9@byu.net>
30546
30547         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30548         like mingw that lack mkstemp.
30549         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30550         avoid compilation warning on mingw.
30551
30552 2006-07-26  Bruno Haible  <bruno@clisp.org>
30553
30554         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30555         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30556         INT_FAST*_MIN, INTPTR_MIN.
30557
30558 2006-07-25  Bruno Haible  <bruno@clisp.org>
30559
30560         * modules/version-etc (Depends-on): Add stdarg.
30561
30562 2006-07-25  Bruno Haible  <bruno@clisp.org>
30563
30564         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30565         complex commands.
30566
30567 2006-07-25  Bruno Haible  <bruno@clisp.org>
30568
30569         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30570         defined in <stdarg.h> or config.h.
30571
30572 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30573
30574         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30575         (gl_STDIO_SAFER): Remove.
30576
30577 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30578
30579         * MODULES.html.sh (File stream based Input/Output):
30580         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30581         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30582         * modules/fopen-safer, modules/tmpfile-safer: New files.
30583         * modules/stdio-safer: Remove.
30584
30585 2006-07-24  Bruno Haible  <bruno@clisp.org>
30586
30587         * modules/tmpdir: New file.
30588         * MODULES.html.sh (File system functions): Add it.
30589
30590 2006-07-24  Bruno Haible  <bruno@clisp.org>
30591
30592         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30593         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30594
30595 2006-07-24  Bruno Haible  <bruno@clisp.org>
30596
30597         * modules/clean-temp: New file.
30598
30599 2006-07-24  Bruno Haible  <bruno@clisp.org>
30600
30601         * m4/tmpdir.m4: New file, from GNU gettext.
30602
30603 2006-07-24  Bruno Haible  <bruno@clisp.org>
30604
30605         * lib/tmpdir.h: New file, from GNU gettext.
30606         * lib/tmpdir.c: New file, from GNU gettext.
30607
30608 2006-07-24  Bruno Haible  <bruno@clisp.org>
30609
30610         * lib/clean-temp.h: New file, from GNU gettext.
30611         * lib/clean-temp.c: New file, from GNU gettext.
30612
30613 2006-07-23  Eric Blake  <ebb9@byu.net>
30614
30615         * modules/stdio-safer (Files): Add tmpfile-safer.c.
30616         (Depends-on): Add binary-io.
30617
30618 2006-07-23  Eric Blake  <ebb9@byu.net>
30619
30620         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30621
30622 2006-07-23  Eric Blake  <ebb9@byu.net>
30623
30624         * lib/tmpfile-safer.c: New file.
30625         * lib/stdio-safer.h (fopen_safer): Add prototype.
30626         * lib/stdio--.h (tmpfile): Make safer.
30627
30628 2006-07-23  Bruno Haible  <bruno@clisp.org>
30629
30630         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30631         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30632         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30633         gl_linked_remove_at): Use it.
30634
30635 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30636         and Simon Josefsson <jas@extundo.com>
30637
30638         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30639
30640         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30641
30642 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30643
30644         * modules/close-stream: New file.
30645         * modules/closeout (Description): Make it clear that it exits
30646         with a diagnostic on error.
30647         (Depends-on): Add close-stream.  Remove fpending, stdbool.
30648         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30649
30650 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30651
30652         * m4/close-stream.m4: New file.
30653
30654 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30655
30656         * lib/close-stream.c, lib/close-stream.h: New files.
30657
30658 2006-07-22  Bruno Haible  <bruno@clisp.org>
30659
30660         Merge from GNU gettext 0.15.
30661
30662         2006-05-01  Bruno Haible  <bruno@clisp.org>
30663
30664                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30665
30666         2006-07-22  Bruno Haible  <bruno@clisp.org>
30667
30668                 * modules/javaversion: New file.
30669                 * MODULES.html.sh (Java): Add javaversion.
30670
30671         2006-03-12  Bruno Haible  <bruno@clisp.org>
30672
30673                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30674
30675         2005-12-04  Bruno Haible  <bruno@clisp.org>
30676
30677                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30678                 (untested).
30679
30680         2006-06-21  Bruno Haible  <bruno@clisp.org>
30681
30682                 Avoid warnings from recent versions of mcs.
30683                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30684                 -o, -L, -r any more. Use options documented since mcs-1.0
30685                 instead. Similarly for -g.
30686
30687         2005-12-04  Bruno Haible  <bruno@clisp.org>
30688
30689                 * build-aux/csharpcomp.sh.in: Suffix for resources is
30690                 .resources, not .resource.
30691
30692         2005-07-09  Bruno Haible  <bruno@clisp.org>
30693
30694                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30695                 add a .dll suffix.
30696                 Reported by Mark Junker <mjscod@gmx.de>.
30697
30698         2006-07-22  Bruno Haible  <bruno@clisp.org>
30699
30700                 * modules/gettext: Upgrade to gettext-0.15.
30701                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30702                 m4/visibility.m4.
30703                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30704
30705 2006-07-22  Bruno Haible  <bruno@clisp.org>
30706
30707         Merge from GNU gettext 0.15.
30708
30709         2006-03-25  Bruno Haible  <bruno@clisp.org>
30710
30711                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30712
30713         2006-07-21  Bruno Haible  <bruno@clisp.org>
30714
30715                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30716                 "1.1".
30717
30718         2006-05-09  Bruno Haible  <bruno@clisp.org>
30719
30720                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30721                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30722                 for the conftestver execution.
30723
30724         2006-05-01  Bruno Haible  <bruno@clisp.org>
30725
30726                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30727                 optional target-version argument. Verify that the compiler
30728                 groks source of the specified source-version, or add -source
30729                 option as necessary. Verify that the compiler produces
30730                 bytecode in the specified target-version, or add -target and
30731                 -source options as necessary. Make the result of the test
30732                 available as variable CONF_JAVAC. Also log error output in
30733                 config.log.
30734
30735         2006-03-11  Bruno Haible  <bruno@clisp.org>
30736
30737                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30738
30739         2006-05-09  Bruno Haible  <bruno@clisp.org>
30740
30741                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30742                 CLASSPATH_SEPARATOR to a semicolon.
30743
30744         2006-03-12  Bruno Haible  <bruno@clisp.org>
30745
30746                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
30747                 available as variable CONF_JAVA, for subsequent autoconf
30748                 tests. Also log error output in config.log.
30749
30750         2006-07-19  Bruno Haible  <bruno@clisp.org>
30751
30752                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
30753                 that getline works on glibc2 systems. Needed to avoid trouble
30754                 in relocatable.c.
30755                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
30756
30757         2005-12-04  Bruno Haible  <bruno@clisp.org>
30758
30759                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
30760                 launcher (untested).
30761
30762         2005-12-04  Bruno Haible  <bruno@clisp.org>
30763
30764                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
30765
30766         2006-07-22  Bruno Haible  <bruno@clisp.org>
30767
30768                 * gettext.m4: Update from GNU gettext-0.15.
30769                 * nls.m4: Likewise.
30770                 * po.m4: Likewise.
30771                 * inttypes-pri.m4: Likewise.
30772                 * inttypes-h.m4: Renamed from inttypes.m4.
30773                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
30774
30775 2006-07-22  Bruno Haible  <bruno@clisp.org>
30776
30777         Merge from GNU gettext 0.15.
30778
30779         2005-07-05  Bruno Haible  <bruno@clisp.org>
30780
30781                 * printf-args.c (printf_fetchargs): Work around broken
30782                 definition of wint_t on mingw.
30783
30784         2005-02-12  Bruno Haible  <bruno@clisp.org>
30785
30786                 * xallocsa.h: Add extern "C" for C++.
30787
30788         2006-05-17  Bruno Haible  <bruno@clisp.org>
30789
30790                 Cygwin portability.
30791                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
30792
30793         2006-04-30  Bruno Haible  <bruno@clisp.org>
30794
30795                 * progreloc.c: Include <mach-o/dyld.h> if available.
30796                 (find_executable): Use _NSGetExecutablePath when possible.
30797
30798         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30799
30800                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
30801                 function.
30802
30803         2005-12-29  Bruno Haible  <bruno@clisp.org>
30804
30805                 * progreloc.c (set_program_name_and_installdir): Fix
30806                 compilation error.
30807
30808         2005-12-04  Bruno Haible  <bruno@clisp.org>
30809
30810                 Cygwin portability.
30811                 * progreloc.c: Include <windows.h> also on Cygwin.
30812                 (find_executable): Add support for Cygwin.
30813                 (set_program_name_and_installdir): Handle also platforms with
30814                 nonempty EXEEXT.
30815
30816         2006-07-11  Bruno Haible  <bruno@clisp.org>
30817
30818                 * javacomp.c: Fix a comment.
30819                 Reported by Jim Meyering.
30820
30821         2006-04-30  Bruno Haible  <bruno@clisp.org>
30822
30823                 * javacomp.h (compile_java_class): Add source_version,
30824                 target_version arguments.
30825                 * javacomp.c: Rewritten to choose only a compiler that
30826                 respects the specified source_version and target_version.
30827
30828         2006-06-27  Bruno Haible  <bruno@clisp.org>
30829
30830                 Assume correct S_ISDIR macro.
30831                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
30832
30833         2006-07-22  Bruno Haible  <bruno@clisp.org>
30834
30835                 * javaversion.h: New file, from GNU gettext.
30836                 * javaversion.c: New file, from GNU gettext.
30837                 * javaversion.java: New file, from GNU gettext.
30838                 * javaversion.class: New file, from GNU gettext.
30839
30840         2006-05-17  Bruno Haible  <bruno@clisp.org>
30841
30842                 Cygwin portability.
30843                 * javaexec.c (execute_java_class): Test for jview program
30844                 also on Cygwin.
30845
30846         2006-04-09  Bruno Haible  <bruno@clisp.org>
30847
30848                 * fatal-signal.c: Don't include string.h.
30849                 (at_fatal_signal): Use a copying loop instead of memcpy.
30850
30851         2005-12-04  Bruno Haible  <bruno@clisp.org>
30852
30853                 * csharpexec.c: Add support for 'clix' launcher (untested).
30854                 (execute_csharp_using_sscli): New function.
30855                 (execute_csharp_program): Call it.
30856
30857         2006-06-21  Bruno Haible  <bruno@clisp.org>
30858
30859                 Avoid warnings from recent versions of mcs.
30860                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
30861                 -o, -L, -r any more. Use options documented since mcs-1.0
30862                 instead. Similarly for -g.
30863
30864         2005-07-09  Bruno Haible  <bruno@clisp.org>
30865
30866                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
30867                 add a .dll suffix.
30868                 Reported by Mark Junker <mjscod@gmx.de>.
30869
30870         2006-06-17  Bruno Haible  <bruno@clisp.org>
30871
30872                 * config.charset: Update for NetBSD 3.0.
30873
30874         2006-05-17  Bruno Haible  <bruno@clisp.org>
30875
30876                 Cygwin portability.
30877                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
30878
30879         2006-05-16  Bruno Haible  <bruno@clisp.org>
30880
30881                 * localcharset.c [CYGWIN]: Include <windows.h>.
30882                 (get_charset_aliases): For Cygwin, return the same CPxxx
30883                 aliases list as under WIN32.
30884                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
30885                 the environment variables. Fall back to GetACP().
30886
30887         2006-04-05  Bruno Haible  <bruno@clisp.org>
30888
30889                 * config.charset: Update Juan Manuel Guerrero's address.
30890
30891         2005-02-12  Bruno Haible  <bruno@clisp.org>
30892
30893                 * allocsa.h: Add extern "C" for C++.
30894
30895         2005-02-10  Bruno Haible  <bruno@clisp.org>
30896
30897                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
30898                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
30899
30900         2006-07-22  Bruno Haible  <bruno@clisp.org>
30901
30902                 * gettext.h: Update to GNU gettext-0.15.
30903
30904 2006-07-22  Bruno Haible  <bruno@clisp.org>
30905
30906         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
30907         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
30908         lib-prefix.m4, longdouble.m4, ssize_t.m4.
30909
30910 2006-07-21  Eric Blake  <ebb9@byu.net>
30911
30912         * modules/stdlib-safer: New file.
30913         * MODULES.html.sh (File stream based Input/Output): Add
30914         stdlib-safer.
30915
30916 2006-07-21  Eric Blake  <ebb9@byu.net>
30917
30918         * lib/stdlib-safer.h: New file from coreutils, required by
30919         stdlib--.h.
30920
30921 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
30922
30923         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
30924
30925 2006-07-20  Bruno Haible  <bruno@clisp.org>
30926
30927         * gnulib-tool: Recognize new option --assume-autoconf.
30928         (autoconf_minversion): New variable.
30929         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
30930
30931 2006-07-20  Bruno Haible  <bruno@clisp.org>
30932
30933         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
30934
30935 2006-07-19  Derek R. Price  <derek@ximbiot.com>
30936
30937         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
30938         Reindent and repaginate.
30939
30940 2006-07-19  Derek Price  <derek@ximbiot.com>
30941
30942         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
30943         Correct grammar.
30944
30945 2006-07-17  Bruno Haible  <bruno@clisp.org>
30946
30947         * modules/list: New file.
30948         * modules/array-list: New file.
30949         * modules/carray-list, modules/carray-list-tests: New files.
30950         * modules/linked-list, modules/linked-list-tests: New files.
30951         * modules/avltree-list, modules/avltree-list-tests: New files.
30952         * modules/rbtree-list, modules/rbtree-list-tests: New files.
30953         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
30954         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
30955         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
30956         * modules/oset: New file.
30957         * modules/array-oset: New file.
30958         * modules/avltree-oset, modules/avltree-oset-tests: New files.
30959         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
30960         * tests/test-carray_list.c: New file.
30961         * tests/test-linked_list.c: New file.
30962         * tests/test-avltree_list.c: New file.
30963         * tests/test-rbtree_list.c: New file.
30964         * tests/test-linkedhash_list.c: New file.
30965         * tests/test-avltreehash_list.c: New file.
30966         * tests/test-rbtreehash_list.c: New file.
30967         * tests/test-avltree_oset.c: New file.
30968         * tests/test-rbtree_oset.c: New file.
30969         * MODULES.html.sh (Container data structures): New section.
30970
30971 2006-07-17  Bruno Haible  <bruno@clisp.org>
30972
30973         * m4/gl_list.m4: New file.
30974
30975 2006-07-17  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/gl_list.h: New file.
30978         * lib/gl_list.c: New file.
30979         * lib/gl_array_list.h: New file.
30980         * lib/gl_array_list.c: New file.
30981         * lib/gl_carray_list.h: New file.
30982         * lib/gl_carray_list.c: New file.
30983         * lib/gl_linked_list.h: New file.
30984         * lib/gl_linked_list.c: New file.
30985         * lib/gl_anylinked_list1.h: New file.
30986         * lib/gl_anylinked_list2.h: New file.
30987         * lib/gl_avltree_list.h: New file.
30988         * lib/gl_avltree_list.c: New file.
30989         * lib/gl_anyavltree_list1.h: New file.
30990         * lib/gl_anyavltree_list2.h: New file.
30991         * lib/gl_rbtree_list.h: New file.
30992         * lib/gl_rbtree_list.c: New file.
30993         * lib/gl_anyrbtree_list1.h: New file.
30994         * lib/gl_anyrbtree_list2.h: New file.
30995         * lib/gl_anytree_list1.h: New file.
30996         * lib/gl_anytree_list2.h: New file.
30997         * lib/gl_linkedhash_list.h: New file.
30998         * lib/gl_linkedhash_list.c: New file.
30999         * lib/gl_anyhash_list1.h: New file.
31000         * lib/gl_anyhash_list2.h: New file.
31001         * lib/gl_avltreehash_list.h: New file.
31002         * lib/gl_avltreehash_list.c: New file.
31003         * lib/gl_rbtreehash_list.h: New file.
31004         * lib/gl_rbtreehash_list.c: New file.
31005         * lib/gl_anytreehash_list1.h: New file.
31006         * lib/gl_anytreehash_list2.h: New file.
31007
31008         * lib/gl_oset.h: New file.
31009         * lib/gl_oset.c: New file.
31010         * lib/gl_array_oset.h: New file.
31011         * lib/gl_array_oset.c: New file.
31012         * lib/gl_avltree_oset.h: New file.
31013         * lib/gl_avltree_oset.c: New file.
31014         * lib/gl_rbtree_oset.h: New file.
31015         * lib/gl_rbtree_oset.c: New file.
31016         * lib/gl_anytree_oset.h: New file.
31017
31018 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31019
31020         * m4/mkancesdirs.m4: New file.
31021         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31022         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31023         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31024         it.
31025
31026 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31027
31028         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31029         * lib/mkancesdirs.h: New files.
31030         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31031         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31032         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31033         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31034         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31035         callers changed.  Revamp internals significantly, by not
31036         attempting to create directories that are temporarily more
31037         permissive than the final results.  Do not attempt to use
31038         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31039         This removes some race conditions, fixes some bugs, and simplifies
31040         things.  Use new dirchownmod function to do owner and mode changes.
31041         * lib/mkdir-p.h: Likewise.
31042         * lib/modechange.c (octal_to_mode): New function.
31043         (struct mode_change): New member mentioned.
31044         (make_node_op_equals): New arg mentioned.  All callers changed.
31045         (mode_compile): Keep track of which mode bits the user has explicitly
31046         mentioned.
31047         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31048         New arg PMODE_BITS, to keep track of which mode bits the user
31049         mentioned; it treats S_ISUID and S_ISGID speciall.
31050         All callers changed.
31051         * lib/modechange.h: Likewise.
31052
31053 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31054
31055         * MODULES.html.sh: Add mkancestors.
31056         * modules/mkancesdirs: New module.
31057         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31058         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31059         The chdir-safer and afs files are now orphans; I'll remove them
31060         unless someone speaks up.
31061         Add lib/dirchownmod.c, lib/dirchownmod.h.
31062         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31063         Add lchown, mkancesdirs.
31064         (Maintainer): Add self.
31065
31066 2006-07-15  Karl Berry  <karl@gnu.org>
31067
31068         * gnulib-tool: help message wording/arrangement.
31069
31070 2006-07-14  Simon Josefsson  <jas@extundo.com>
31071
31072         * doc/gnulib.texi (Libtool and Windows): New section.
31073
31074 2006-07-12  Simon Josefsson  <jas@extundo.com>
31075
31076         * modules/gendocs (License): Fix license, approved by Karl.
31077
31078 2006-07-12  Eric Blake  <ebb9@byu.net>
31079
31080         * MODULES.html.sh: Add gendocs.
31081
31082 2006-07-11  Eric Blake  <ebb9@byu.net>
31083
31084         * modules/fdl: New module, to install doc/fdl.texi.
31085         * MODULES.html.sh: Add new section for documentation modules.
31086         * gnulib-tool: Avoid space-tab.
31087         (--doc-base): New option, to manage files from doc.
31088
31089 2006-07-11  Eric Blake  <ebb9@byu.net>
31090
31091         * m4/absolute-header.m4: Fix comments to match recent change.
31092
31093 2006-07-11  Eric Blake  <ebb9@byu.net>
31094
31095         * gnulib-tool: List --doc-base before --tests-base.
31096
31097 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31098
31099         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31100
31101 2006-07-11  Bruno Haible  <bruno@clisp.org>
31102
31103         * README: Mention where to put documentation.
31104
31105 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31106
31107         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31108
31109 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31110
31111         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31112         to stdint.m4.
31113
31114 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31115
31116         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31117         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31118         "no/such/file/stdint.h" when there is no such file, so that
31119         the resulting C code can be parsed by dodgy compilers.
31120         Problems reported by Bob Proulx.
31121
31122 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31123
31124         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31125         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31126         macros into the GNU _D_EXACT_NAMLEN.
31127         * lib/savedir.c:  Likewise.
31128         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31129
31130 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31131         and Paul Eggert  <eggert@cs.ucla.edu>
31132
31133         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31134         * m4/savedir.m4:
31135         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31136         macros into the GNU _D_EXACT_NAMLEN.
31137
31138 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31139
31140         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31141         around the absolute name, to work around a problem with the HP-UX
31142         11.23 native C compiler, reported by Bob Proulx.
31143
31144 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31145
31146         * doc/maintain.texi, make-stds.texi: Sync from
31147         <http://savannah.gnu.org/projects/gnustandards>.
31148
31149 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31150
31151         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31152
31153 2006-07-09  Jim Meyering  <jim@meyering.net>
31154
31155         * m4/glob.m4: Remove a doubled word in a comment.
31156
31157 2006-07-09  Jim Meyering  <jim@meyering.net>
31158
31159         * lib/argp-pv.c: Remove a doubled word in a comment.
31160         * lib/check-version.c (check_version): Likewise.
31161         * lib/javacomp.c (compile_java_class): Likewise.
31162
31163 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31164
31165         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31166         for the benefit of people using Autoconf 2.60.  If you want to
31167         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31168         (or m4/onceonly.m4, if pre-2.57) manually.
31169
31170 2006-07-08  Jim Meyering  <jim@meyering.net>
31171
31172         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31173         comment.
31174         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31175         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31176         comment.
31177
31178 2006-07-08  Jim Meyering  <jim@meyering.net>
31179
31180         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31181
31182 2006-07-07  Simon Josefsson  <jas@extundo.com>
31183
31184         * tests/test-crc.c: Change expected crc value, the test vector
31185         were probably computed using the old broken crc.c?
31186
31187 2006-07-06  Simon Josefsson  <jas@extundo.com>
31188
31189         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31190         now the canonical place for the M4 file).
31191
31192         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31193         from the sys_socket dependency now.
31194
31195         * modules/inet_pton (Files): Ditto.
31196
31197         * modules/inet_ntop (Files): Ditto.
31198
31199 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31200
31201         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31202         not gl_PREREQ_GETUSERSHELL.
31203
31204 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31205
31206         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31207         with only one argument, for Autoconf 2.60.
31208         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31209         expand to nothing, so add a shell command to avoid syntax error.
31210         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31211
31212 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31213
31214         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31215
31216 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31219         no longer needed.  Check for isblank decl.
31220         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31221         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31222         of existence.
31223
31224 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31225
31226         * lib/getloadavg.c: Use __VMS, not VMS.
31227         * lib/getopt.c: Likewise.
31228         * lib/getpagesize.h: Likewise.
31229         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31230         and probably does not work.
31231
31232 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31233
31234         * lib/.cppi-disable: Add wcwidth.
31235         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31236         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31237         (ISGRAPH): Remove.  All uses changed to isgraph.
31238         (FOLD) [!defined _LIBC]: Remove special case.
31239         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31240         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31241         HAVE_ISBLANK.
31242         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31243         case.
31244
31245 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31246
31247         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31248         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31249         brackets.  Other minor changes to suppress some compiler
31250         warnings.
31251
31252 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31253         and Paul Eggert  <eggert@cs.ucla.edu>
31254
31255         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31256         of invoking obsolescent AC_HEADER_DIRENT macro.
31257         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31258         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31260         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31261         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31262         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31263         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31264         * m4/readdir.m4: Remove; no longer needed.
31265
31266 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31267         and Paul Eggert  <eggert@cs.ucla.edu>
31268
31269         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31270         Don't worry about this obsolete case any more.
31271         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31272         directories.
31273         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31274         worry about this obsolete case any more.
31275         * lib/fts.c: Likewise.
31276         * lib/getcwd.c: Likewise.
31277         * lib/glob.h: Likewise.
31278         * lib/savedir.c: Likewise.
31279
31280 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31281
31282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31283         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31284         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31285         needed.
31286         All uses removed.
31287         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31288         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31289         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31290         needed.
31291         * m4/getdate.m4 (gl_GETDATE): Likewise.
31292         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31293         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31294         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31295         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31296         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31297         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31298         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31299         needed.
31300
31301 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31302
31303         * lib/memcasecmp.c: Include <limits.h>.
31304         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31305         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31306         Don't assume isdigit succeeds only on '0' through '9'.
31307
31308 2006-07-05  Eric Blake  <ebb9@byu.net>
31309
31310         * modules/getaddrinfo (Depends-on): Add snprintf.
31311
31312 2006-07-05  Eric Blake  <ebb9@byu.net>
31313
31314         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31315         to avoid 'header present but could not be compiled' on cygwin.
31316
31317 2006-07-05  Eric Blake  <ebb9@byu.net>
31318
31319         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31320         missing from netdb.h.
31321         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31322
31323 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31324
31325         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31326         no longer needed.
31327         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31328         * m4/getdate.m4 (gl_GETDATE): Likewise.
31329         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31330         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31331         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31332         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31333         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31334
31335 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31336
31337         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31338         All uses of is_space replaced by isspace.
31339         * lib/exit.h: Don't talk about STDC_HEADERS.
31340         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31341         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31342         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31343         replaced by isprint etc.
31344         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31345         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31346         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31347         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31348         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31349         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31350
31351 2006-07-05  Bruno Haible  <bruno@clisp.org>
31352
31353         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31354         the function exists, before testing against AIX.
31355         Reported by Martin Lambers <marlam@marlam.de>.
31356
31357 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31360         From Mark D. Baushke.
31361
31362 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31363
31364         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31365         to the absolute name, not just one, to bypass Sun C 5.8's
31366         "warning: #include of /usr/include/... may be non-portable".
31367
31368 2006-07-04  Eric Blake  <ebb9@byu.net>
31369
31370         * modules/dirname-tests: New test module.
31371         * tests/test-dirname.c: New file, replacing dirname.c
31372         TEST_DIRNAME section that was recently deleted.
31373
31374 2006-07-04  Bruno Haible  <bruno@clisp.org>
31375
31376         Assume ANSI C header files and <ctype.h> functions.
31377         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31378         (mbsnwidth): Use isprint, iscntrl instead.
31379
31380 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31381
31382         Merge from coreutils.
31383         * MODULES.html.sh: Add xstrtold.
31384         * modules/xstrtold: New file.
31385         * modules/cycle-check (Files): Add lib/same-inode.h.
31386         * modules/dirname (Files): Add m4/double-slash-root.m4.
31387         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31388         * modules/mkdir-p (Files): Add lib/same-inode.h.
31389         * modules/same (Files): Add lib/same-inode.h.
31390
31391 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31392
31393         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31394         This is to keep the terminology clean; POSIX talks about
31395         "absolute pathnames", not "full pathnames", but the GNU
31396         Coding Standards say to use "path" for something else;
31397         so use "absolute" to keep both sides happy.
31398         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31399         Set gl_absolute_header, not gl_full_header_path.
31400         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31401         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31402         All uses changed.
31403
31404         Merge from coreutils.
31405
31406         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31407
31408         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31409         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31410         want to require the building of c-strtod.o.
31411         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31412         needs -lm directly.
31413         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31414
31415         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31416
31417         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31418         --as-needed option if available.  Problem reported by Albert Chin in
31419         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31420         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31421         cc merely issues a bunch of annoying warnings for --as-needed
31422         (this problem was reported by Bob Proulx).  Also, try linking with
31423         -lm to detect a bug in binutils 2.16 (this problem was reported
31424         by Ralf Wildenhues).
31425
31426         2006-06-18  Jim Meyering  <jim@meyering.net>
31427
31428         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31429         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31430         macro.
31431         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31432         also check for glibc-2.4's abort-inducing bug.
31433
31434         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31435         Low-probability clean-up should be to use rmdir to get rid of
31436         the just-created directory, not unlink.
31437
31438         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31439         configure fail, and request a bug report to inform us about it.
31440         Add a comment that, barring reports to the contrary, in 2007 we'll
31441         assume ftruncate is universally available.
31442
31443         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31444
31445         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31446
31447         2006-03-12  Jim Meyering  <jim@meyering.net>
31448
31449         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31450         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31451         * m4/same.m4 (gl_SAME): Likewise.
31452         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31453
31454         2006-03-11  Eric Blake  <ebb9@byu.net>
31455
31456         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31457         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31458         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31459         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31460
31461 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31462
31463         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31464         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31465         reported by Mark D. Baushke, one in
31466         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31467
31468         Merge from coreutils.
31469
31470         * lib/.cppi-disable: Add stdint_.h.
31471         * lib/.cvsignore: Add stdint.h.
31472
31473         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31474
31475         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31476         both double and long double versions.
31477         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31478         * lib/xstrtold.c: New file.
31479         * lib/xstrtod.h (xstrtold): New decl.
31480
31481         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31482
31483         * lib/filemode.c (setst): Remove.
31484         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31485         (arguably) clearer, and the generated code is a bit smaller on my
31486         Debian GNU/Linux stable x86 host.
31487
31488         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31489
31490         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31491         Assume that filemode.h includes sys/types.h and sys/stat.h.
31492         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31493         (ftypelet): Reorder to put common cases first, for efficiency.
31494         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31495         to do 'M'.
31496         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31497         of 10, for compatibility with FreeBSD.  All callers changed.
31498         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31499         types that can't be deduced solely from st_mode.  First arg is now a
31500         const pointer.
31501         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31502         (strmode): Renamed from mode_string.
31503         (filemodestring): New decl.
31504         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31505         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31506         needed.
31507         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31508
31509         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31510
31511         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31512         fsusage.h now does that.  Include fsusage.h first, to test interface.
31513         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31514         at most one method (the old code could have generated decls that
31515         didn't conform to C89, not that this was ever exercised).
31516         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31517
31518         2006-03-19  Jim Meyering  <jim@meyering.net>
31519
31520         Work even in a chroot where d_ino values for entries in "/"
31521         don't match the stat.st_ino values for the same names.
31522         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31523         number, iterate through all entries again, using lstat instead.
31524         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31525         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31526
31527         * lib/getcwd.c (__getcwd): Clarify a comment.
31528         Use memcpy in place of a call to strcpy.
31529
31530         2006-03-12  Jim Meyering  <jim@meyering.net>
31531
31532         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31533         matches that of the current directory (which we're about to chdir ".."
31534         out of), then save the dev-ino of the parent, instead.
31535
31536         * lib/same-inode.h (SAME_INODE): New file/macro.
31537         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31538         Include "same-inode.h", instead.
31539         * lib/same.c: Likewise.
31540         * lib/cycle-check.h: Include "same-inode.h".
31541         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31542         * lib/cycle-check.c (SAME_INODE): Remove definition.
31543         * lib/root-dev-ino.h: Include "same-inode.h".
31544
31545         2006-03-11  Eric Blake  <ebb9@byu.net>
31546
31547         * lib/same.c (same_name): s/base_name/last_component/
31548         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31549         * lib/filenamecat.c (file_name_concat): Likewise.
31550
31551         2006-03-11  Eric Blake  <ebb9@byu.net>,
31552                     Paul Eggert  <eggert@cs.ucla.edu>
31553
31554         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31555         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31556         drive prefix.
31557         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31558         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31559         (last_component): New method.
31560         * lib/dirname.c (dir_len): Determine when drive letters need a
31561         subsequent slash.  Preserve // when it is special.
31562         (dir_name): Don't append dot when drive letter is absolute.
31563         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31564         * lib/basename.c (base_name): New semantics - malloc the result.
31565         Preserve // when it is special.  Preserve relative files that look
31566         like drive letters.
31567         (base_len): Preserve // when it is special.
31568         (last_component): New method, similar to old base_name semantics.
31569         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31570         base_name.  Strip redundant slashes from ///.
31571
31572 2006-07-03  Jim Meyering  <jim@meyering.net>
31573
31574         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31575         macro is used before the first cycle_check call.
31576
31577 2006-07-03  Eric Blake  <ebb9@byu.net>
31578
31579         * modules/dirname (Depends-on): Add xstrndup.
31580
31581 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31582
31583         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31584         test cases, so that config.log is a bit easier to follow.
31585
31586 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31587
31588         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31589         both are 64 bits, since this seems to be the tradition, and this
31590         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31591         we ever run into a host that prefers long long to long in this
31592         case, we'll need another configure-time test.  Problem reported by
31593         Jim Meyering.
31594
31595 2006-07-02  Eric Blake  <ebb9@byu.net>
31596
31597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31598
31599 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31600
31601         * modules/inttypes (Depends-on): No longer depends on stdint.
31602         * modules/stdint (Description): Say more about assumptions.
31603         Say that the fast types might differ.  Say macros are used.
31604         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
31605         (Makefile.am): Revise list of substituted symbols to match
31606         new stdint.m4.
31607         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31608         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31609         * tests/test-stdint.c (verify_same_types)
31610         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31611         the code conforms to C99/C89.
31612         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31613         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31614
31615 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31616
31617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31618         but fix a bug, by requiring at least 64 bits.
31619         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31620         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31621         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
31622         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31623
31624         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31625         changes.  Make 2.59 a prerequisite.  Check and substitute for
31626         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
31627         inttypes.h.  Do not use special include files; just use the
31628         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
31629         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
31630         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31631         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31632         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31633         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31634         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31635         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31636         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31637         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31638         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31639         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31640         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31641         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31642         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31643         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31644         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31645         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31646         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31647         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31648         WINT_MAX.  Check for C99 conformance more strictly, by detecting
31649         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
31650         not check for things that C99 does not require, e.g., int8_t.  If
31651         a test isn't needed unless <stdint.h> isn't working, and is
31652         unlikely to be needed for any other reason, then don't do it
31653         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
31654         size_t, since we assume C89 freestanding at least.  Do not check
31655         for sig_atomic_t, wchar_t, or wint_t, since the code now does
31656         the right thing even if the types are not defined.  Instead use:
31657         (gl_STDINT_TYPE_PROPERTIES): New macro.
31658         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
31659         testing whether <sys/types.h> clashes, as Autoconf does this for
31660         us now.  All uses removed.
31661         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31662         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31663         (gl_CHECK_TYPE_SAME):
31664         Remove; no longer needed.
31665         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31666         exists, since we'll return 0 anyway in that case.
31667         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31668
31669 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31670
31671         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31672         possible collision with system files.
31673         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31674         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31675         WCHAR_MIN and WCHAR_MAX in this case.
31676         (<stddef.h>): Do not include; no longer needed.
31677         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31678         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31679         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31680         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31681         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31682         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31683         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31684         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31685         !defined(__c99))]: Include in this case too, since it's harmless
31686         now.
31687         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31688         dangerous to do so.
31689         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31690         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31691         (_STDINT_MIN, _STDINT_MAX): New macros.
31692         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31693         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31694         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31695         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31696         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31697         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31698         macros, not typedefs; this simplifies things quite a bit.
31699         Use long int for all types narrower than int64_t.
31700         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31701         Define in terms of long long int or int64_t or long int,
31702         not int64_t or int32_t.  This saves some compile-time testing.
31703         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31704         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31705         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31706         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31707         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31708         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31709         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31710         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31711         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31712         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31713         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31714         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31715         undef any previous version and define our own version, for
31716         simplicity and consistency with the new macros for types.
31717         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31718         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31719         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31720         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
31721         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31722         @WINT_T_SUFFIX@ to keep things simple here.
31723         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31724         Simplify by assuming typical 8/16/32/64 host, since we're
31725         already doing that elsewhere anyway.
31726         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31727         and assume long long int is 64 bits if available.  This
31728         speeds up 'configure'.
31729
31730 2006-07-01  Eric Blake  <ebb9@byu.net>
31731
31732         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31733         Reported by Andreas Buening.
31734
31735 2006-07-01  Eric Blake  <ebb9@byu.net>
31736
31737         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31738
31739 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31740
31741         * lib/getaddrinfo.c: fixed typo
31742
31743 2006-06-29  Jim Meyering  <jim@meyering.net>
31744
31745         * modules/strftime (Maintainer): Add my name, since with the
31746         FPRINTFTIME changes strftime.c has forked from glibc.
31747
31748 2006-06-29  Eric Blake  <ebb9@byu.net>
31749
31750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
31751
31752 2006-06-29  Eric Blake  <ebb9@byu.net>
31753
31754         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
31755
31756 2006-06-29  Eric Blake  <ebb9@byu.net>
31757
31758         * lib/stat_.h: New file.
31759
31760 2006-06-29  Eric Blake  <ebb9@byu.net>
31761
31762         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
31763         unused static function.
31764
31765 2006-06-29  Eric Blake  <ebb9@byu.net>
31766
31767         * doc/functions.texi (Function Portability): Document missing lstat
31768         on mingw.
31769
31770 2006-06-29  Eric Blake  <ebb9@byu.net>
31771
31772         * MODULES.html.sh: Add sys_stat.
31773         * modules/sys_stat: New module.
31774         * modules/mkstemp (Depends-on): Add sys_stat.
31775
31776 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31777
31778         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
31779
31780 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31781
31782         * m4/c-bs-a.m4: Removed.
31783
31784 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31785
31786         * lib/strftime.c: Assume strftime() exists.
31787
31788 2006-06-29  Derek Price  <derek@ximbiot.com>
31789
31790         * modules/c-bs-a: Removed - \a is C89.
31791         * MODULES.html.sh: Remove c-bs-a.
31792
31793 2006-06-29  Bruno Haible  <bruno@clisp.org>
31794
31795         * modules/wcwidth (License): Change to LGPL.
31796
31797 2006-06-28  Simon Josefsson  <jas@extundo.com>
31798
31799         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
31800         on _WIN32.
31801
31802         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
31803         getnameinfo.
31804
31805 2006-06-28  Simon Josefsson  <jas@extundo.com>
31806
31807         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
31808
31809 2006-06-28  Simon Josefsson  <jas@extundo.com>
31810
31811         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
31812         functions there.  It will succeed on Windows XP, but on Windows
31813         2000 and (presumably) earlier, it will fail, and use the internal
31814         re-implementation.
31815         (use_win32_p): New function.
31816         (getaddrinfo): Use strtoul on servname, to support numeric ports.
31817         Support AI_NUMERICSERV to disable getservbyname.
31818         (getnameinfo): New function, only supports
31819         NI_NUMERICHOST|NI_NUMERICSERV for now.
31820
31821         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
31822         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
31823         getnameinfo.
31824
31825 2006-06-28  Eric Blake  <ebb9@byu.net>
31826
31827         * modules/wcwidth: New file.
31828         * modules/mbchar (Depends-on): Add wcwidth.
31829         * modules/mbswidth (Depends-on): Add wcwidth.
31830         * MODULES.html.sh: Add wcwidth.
31831
31832 2006-06-28  Eric Blake  <ebb9@byu.net>
31833
31834         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
31835         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
31836
31837 2006-06-28  Eric Blake  <ebb9@byu.net>
31838
31839         * lib/xvasprintf.h: Fix comments.
31840
31841 2006-06-28  Eric Blake  <ebb9@byu.net>
31842
31843         * lib/mbchar.h (wcwidth): Include wcwidth.h.
31844         * lib/mbswidth.c (wcwidth): Move from here...
31845         * lib/wcwidth.h: ...to this new file.
31846
31847 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31848
31849         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
31850
31851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
31852         it's obsolete.
31853         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
31854
31855 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31856
31857         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
31858         Autoconf 2.60 says this stuff was obsolete.
31859
31860 2006-06-28  Bruno Haible  <bruno@clisp.org>
31861
31862         * modules/wcwidth (Files): Add m4/wchar_t.m4.
31863
31864 2006-06-28  Bruno Haible  <bruno@clisp.org>
31865
31866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
31867         gt_TYPE_WCHAR_T.
31868
31869 2006-06-28  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
31872         declaration for wcwidth.
31873         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
31874
31875 2006-06-28  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/mkdtemp.c [MINGW]: Include <io.h>.
31878         (mkdir): Define using _mkdir.
31879
31880 2006-06-28  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/getaddrinfo.h: Fix POSIX URL.
31883         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
31884         _WIN32.
31885         (use_win32_p): Make static.
31886         (getaddrinfo): Reject service name if it is empty or does not consist
31887         solely of decimal digits, or if its value is > 65535.
31888         (getnameinfo): Remove useless casts.
31889
31890 2006-06-27  Simon Josefsson  <jas@extundo.com>
31891
31892         * modules/sys_select: New file, suggested by Bruno Haible, Paul
31893         Eggert and Martin Lambers.
31894
31895 2006-06-27  Simon Josefsson  <jas@extundo.com>
31896
31897         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
31898         Eggert and Martin Lambers.
31899
31900 2006-06-27  Bruno Haible  <bruno@clisp.org>
31901
31902         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
31903         result to 0, not to empty.
31904         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
31905
31906 2006-06-27  Bruno Haible  <bruno@clisp.org>
31907
31908         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
31909
31910 2006-06-26  Simon Josefsson  <jas@extundo.com>
31911
31912         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
31913         present.
31914
31915 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
31916
31917         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
31918         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
31919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
31920
31921 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
31922
31923         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
31924
31925 2006-06-26  Bruno Haible  <bruno@clisp.org>
31926
31927         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
31928
31929 2006-06-26  Bruno Haible  <bruno@clisp.org>
31930
31931         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
31932
31933 2006-06-26  Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
31936         SGI C compiler in pre-C99 mode.
31937         Suggested by Mark D. Baushke and Larry Jones.
31938
31939 2006-06-26  Bruno Haible  <bruno@clisp.org>
31940
31941         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
31942         WCHAR_MAX.
31943         Reported by Mark D. Baushke and Larry Jones.
31944
31945 2006-06-26  Bruno Haible  <bruno@clisp.org>
31946
31947         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
31948         in pre-C99 mode.
31949         Suggested by Mark D. Baushke and Larry Jones.
31950
31951 2006-06-23  Simon Josefsson  <jas@extundo.com>
31952             Bruno Haible  <bruno@clisp.org>
31953
31954         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
31955         Emit mostlyclean-local rule.
31956         (func_emit_tests_Makefile_am): Likewise.
31957         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
31958
31959 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
31960
31961         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
31962
31963 2006-06-23  Bruno Haible  <bruno@clisp.org>
31964
31965         * tests/test-stdint.c: Update to match ISO C 99 Technical
31966         Corrigendum 1.
31967
31968 2006-06-23  Bruno Haible  <bruno@clisp.org>
31969
31970         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
31971
31972 2006-06-23  Bruno Haible  <bruno@clisp.org>
31973
31974         * lib/stdint_.h: Treat IRIX like OpenBSD.
31975
31976 2006-06-23  Bruno Haible  <bruno@clisp.org>
31977
31978         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
31979         ISO C 99 Technical Corrigendum 1.
31980
31981 2006-06-22  Simon Josefsson  <jas@extundo.com>
31982
31983         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
31984         MinGW.
31985
31986 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
31987
31988         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
31989         needed.  Some compiler complained about some of them.  Problem reported
31990         by Larry Jones in
31991         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
31992
31993 2006-06-21  Simon Josefsson  <jas@extundo.com>
31994
31995         * tests/test-getaddrinfo.c: New file.
31996
31997         * modules/getaddrinfo-tests: New file.
31998
31999         * MODULES.html.sh: Add inet_pton.
32000
32001         * modules/inet_pton: New file.
32002
32003 2006-06-21  Simon Josefsson  <jas@extundo.com>
32004
32005         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32006         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32007         of using the (limited) gnulib implementation on Windows XP.
32008
32009         * m4/inet_pton.m4: New file.
32010
32011 2006-06-21  Simon Josefsson  <jas@extundo.com>
32012
32013         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32014         variable.
32015
32016         * lib/socket_.h: Don't define WINVER.
32017
32018         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32019         slightly modified to work in gnulib.
32020
32021 2006-06-21  Simon Josefsson  <jas@extundo.com>
32022
32023         * doc/gnulib.texi (Windows sockets): Add.
32024
32025 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32026
32027         * lib/read-file.c (fread_file): Start with buffer allocation of
32028         0 bytes rather than 1 byte; this simplifies the code.
32029         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32030         code to free buffer and save/restore errno.
32031         (internal_read_file): Remove unused local.
32032
32033 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32034
32035         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32036         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32037         Problem reported by Denis Excoffier in
32038         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32039
32040 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32041
32042         * modules/sys_socket, modules/socklen: Include sys/types since
32043         FreeBSD 4.x's sys/socket.h needs it.
32044
32045 2006-06-19  Simon Josefsson  <jas@extundo.com>
32046
32047         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32048
32049 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32050
32051         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32052
32053 2006-06-19  Bruno Haible  <bruno@clisp.org>
32054
32055         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32056         and FULL_PATH_INTTYPES_H in angle brackets.
32057         Reported by Mark D. Baushke <mdb@gnu.org>.
32058
32059 2006-06-17  Eric Blake  <ebb9@byu.net>
32060
32061         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32062         errno.
32063
32064 2006-06-17  Bruno Haible  <bruno@clisp.org>
32065
32066         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32067         <sys/inttypes.h>.
32068
32069 2006-06-17  Bruno Haible  <bruno@clisp.org>
32070
32071         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32072         whether errno is declared. Assume <errno.h> declares errno.
32073
32074 2006-06-17  Bruno Haible  <bruno@clisp.org>
32075
32076         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32077
32078 2006-06-17  Bruno Haible  <bruno@clisp.org>
32079
32080         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32081         problem on Solaris 2.5.1.
32082
32083 2006-06-16  Eric Blake  <ebb9@byu.net>
32084
32085         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32086         * lib/unicodeio.c [!defined errno]: Likewise.
32087         * lib/strtol.c [!defined errno]: Likewise.
32088         * lib/strtod.c [!defined errno]: Likewise.
32089
32090 2006-06-15  Eric Blake  <ebb9@byu.net>
32091
32092         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32093
32094 2006-06-15  Eric Blake  <ebb9@byu.net>
32095
32096         * config/srclist.txt (ssize_t.m4): Lose sync.
32097
32098 2006-06-15  Bruno Haible  <bruno@clisp.org>
32099
32100         * modules/stdint (Files): Include m4/full-header-path.m4,
32101         m4/size_max.m4, m4/wchar_t.m4.
32102         (Makefile.am): Many more substitutions.
32103         * modules/stdint-tests: New file.
32104         * tests/test-stdint.c: New file.
32105
32106 2006-06-15  Bruno Haible  <bruno@clisp.org>
32107
32108         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32109         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32110         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32111         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32112         gl_CHECK_TYPE_SAME): New macros.
32113
32114 2006-06-15  Bruno Haible  <bruno@clisp.org>
32115
32116         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32117
32118 2006-06-15  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/stdint_.h: Rewritten to be fully auto-configured.
32121         Fixes bug on HP-UX/IA64.
32122
32123 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32124
32125         * lib/getdate.y (__attribute__): Don't define if already defined.
32126         Problem reported by Larry Jones.
32127         * lib/utimens.c (__attribute__): Likewise.
32128
32129 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32130
32131         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32132         reported by Andreas Schwab.
32133
32134 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32135             Bruno Haible  <bruno@clisp.org>
32136
32137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32138         check for the declaration of strnlen and a run test that exposes the
32139         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32140         rpl_strndup.
32141
32142 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32143             Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32146
32147 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32148
32149         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32150         compile test, for Tru64 4.0D.
32151
32152 2006-05-28  Karl Berry  <karl@gnu.org>
32153
32154         * config/srclist.txt (printf-args.c): lose sync.
32155
32156 2006-05-26  Martin Lambers  <marlam@marlam.de>
32157
32158         * lib/getpass.c: Updates the test for the native W32 API, and adds
32159         missing includes, thus fixing compilation warnings.
32160
32161 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32162
32163         * lib/exclude.c (exclude_fnmatch): New function.
32164         (excluded_file_name): Call exclude_fnmatch.
32165         * lib/exclude.h (excluded_file_name): New prototype
32166
32167 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32168
32169         * lib/tempname.c (small_open, large_open): New macros.
32170         (__open, __open64) [!_LIBC]: Remove.
32171         (__gen_tempname): Use small_open and large_open instead of __open
32172         and __open64.  This fixes a portability bug on HP-UX 11.11i
32173         reported by Simon Wing-Tang in
32174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32175
32176 2006-05-24  Bruno Haible  <bruno@clisp.org>
32177
32178         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32179         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32180         Reported by Thorsten Maerz <torte@netztorte.de> via
32181         Aaron Stone <aaron@serendipity.cx>.
32182
32183 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32184
32185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32186         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32187         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32188         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32189         not really conditional on the cache.
32190         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32191
32192 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32193
32194         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32195         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32196         (my_usleep): Don't mishandle maximum value.
32197
32198 2006-05-19  Jim Meyering  <jim@meyering.net>
32199
32200         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32201
32202 2006-05-17  Bruno Haible  <bruno@clisp.org>
32203
32204         Cygwin portability.
32205         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32206
32207 2006-05-17  Bruno Haible  <bruno@clisp.org>
32208
32209         * lib/stdint_.h: Fix recognition of Cygwin.
32210
32211 2006-05-15  Bruno Haible  <bruno@clisp.org>
32212
32213         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32214         on libtool patch by Ralf Wildenhues.
32215
32216 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32217
32218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32219         test for C99 conformance; (bool) 0.5 is an integer constant
32220         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32221         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32222
32223 2006-05-11  Simon Josefsson  <jas@extundo.com>
32224
32225         * m4/xvasprintf.m4: Fix obvious typo.
32226
32227 2006-05-11  Jim Meyering  <jim@meyering.net>
32228
32229         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32230         James Lemley.
32231
32232 2006-05-10  Simon Josefsson  <jas@extundo.com>
32233
32234         * lib/md4.c: Typo fix, update copyright years.
32235         (K1, K2): Don't use L because it turn computations into 64-bit on
32236         64-bit platforms.
32237
32238 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32239
32240         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32241         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32242         unwanted sign propagation, e.g., on hosts with 64-bit int.
32243         There still are some problems with reeelly weird theoretical hosts
32244         (e.g., 33-bit int) but it's not worth worrying about now.
32245         * lib/sha1.c (rol): Likewise.
32246         (K1, K2, K3, K4): Remove unnecessary L suffix.
32247
32248 2006-05-10  Bruno Haible  <bruno@clisp.org>
32249
32250         * lib/des.c: Cast to avoid warnings.
32251
32252 2006-05-09  Bruno Haible  <bruno@clisp.org>
32253
32254         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32255         (Depends-on): Depend also on xsize, stdarg.
32256         (configure.ac): Add gl_XVASPRINTF.
32257
32258 2006-05-09  Bruno Haible  <bruno@clisp.org>
32259
32260         * m4/xvasprintf.m4: New file.
32261
32262 2006-05-09  Bruno Haible  <bruno@clisp.org>
32263
32264         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32265         (EOVERFLOW): Define fallback value.
32266         (xstrcat): New function.
32267         (xvasprintf): Recognize the special case of a string concatenation.
32268
32269 2006-05-08  Eric Blake  <ebb9@byu.net>
32270
32271         * gnulib-tool (func_version): Base copyright year on CVS date.
32272         (func_emit_copyright_notice): New function.
32273         (func_emit_lib_Makefile_am): Use it.
32274         (func_emit_tests_Makefile_am): Likewise.
32275         (func_import): Likewise.
32276
32277 2006-05-08  Bruno Haible  <bruno@clisp.org>
32278
32279         * modules/stdarg: New file.
32280         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32281
32282 2006-05-08  Bruno Haible  <bruno@clisp.org>
32283
32284         * m4/stdarg.m4: New file, from GNU gettext.
32285
32286 2006-05-08  Bruno Haible  <bruno@clisp.org>
32287
32288         * config/srclist.txt (build-aux/config.rpath): different from latest
32289         release.
32290
32291 2006-05-08  Bruno Haible  <bruno@clisp.org>
32292
32293         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32294
32295 2006-05-05  Jim Meyering  <jim@meyering.net>
32296
32297         * m4/warning.m4: New file, derived from bison's file by the same name.
32298
32299 2006-05-03  Bruno Haible  <bruno@clisp.org>
32300
32301         * lib/stdint_.h: Shorter URL.
32302         * lib/inttypes.h: Likewise.
32303
32304 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32305
32306         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32307
32308 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32309
32310         * lib/verify.h: Document the internals better.  Most of this change
32311         was written by Bruno Haible.
32312
32313 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32314
32315         * doc/verify.texi: New file, partly based on a proposal by
32316         Bruno Haible.
32317
32318 2006-05-02  Bruno Haible  <bruno@clisp.org>
32319
32320         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32321         test from here...
32322         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32323
32324 2006-04-29  Bruno Haible  <bruno@clisp.org>
32325
32326         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32327         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32328
32329 2006-04-29  Bruno Haible  <bruno@clisp.org>
32330
32331         * gnulib-tool: Make --update option actually work.
32332
32333 2006-04-29  Bruno Haible  <bruno@clisp.org>
32334
32335         * doc/gcd.texi: New file.
32336         * doc/gnulib.texi: Include it.
32337
32338 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32339
32340         * lib/getdate.y (get_date): When adding relative date, start with the
32341         initial time, not with the result of the first mktime call.
32342
32343 2006-04-25  Bruno Haible  <bruno@clisp.org>
32344
32345         * gnulib-tool (func_import): Output the include directives in three
32346         blocks, sorted separately.
32347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32348
32349 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32350
32351         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32352         to define main with arguments, for C++.  Reported by Eric Blake.
32353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32354         Prefer 'int main ()' to 'int main (void)', for C++.
32355         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32356         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32357         for 'main', for C99 and C++.
32358
32359 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32360
32361         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32362         Don't assume that exit status -1 is valid.
32363         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32364         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32365         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32366         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32367         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32368         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32369         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32370         functions can be used without declaring them, or that you can
32371         exit with status -1.
32372         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32373
32374 2006-04-24  Karl Berry  <karl@gnu.org>
32375
32376         * config/srclist.txt (longdouble.m4): sync lost.
32377
32378 2006-04-24  Eric Blake  <ebb9@byu.net>
32379
32380         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32381
32382 2006-04-24  Bruno Haible  <bruno@clisp.org>
32383
32384         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32385         poll() implementation in AIX.
32386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32387
32388 2006-04-24  Bruno Haible  <bruno@clisp.org>
32389
32390         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32391         assigned exactly once.
32392
32393 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32394             Bruno Haible  <bruno@clisp.org>
32395
32396         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32397         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32398         for AM_CPPFLAGS.
32399
32400 2006-04-23  Bruno Haible  <bruno@clisp.org>
32401
32402         * modules/copy-file: Depend on unistd.
32403         * modules/execute: Likewise.
32404         * modules/fatal-signal: Likewise.
32405         * modules/findprog: Likewise.
32406         * modules/mkdtemp : Likewise.
32407         * modules/pipe: Likewise.
32408         * modules/wait-process: Likewise.
32409
32410 2006-04-23  Bruno Haible  <bruno@clisp.org>
32411
32412         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32413         condition was already detected.
32414         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32415
32416 2006-04-23  Bruno Haible  <bruno@clisp.org>
32417
32418         * lib/copy-file.c: Include <unistd.h> unconditionally.
32419         * lib/execute.c: Likewise.
32420         * lib/fatal-signal.c: Likewise.
32421         * lib/findprog.c: Likewise.
32422         * lib/mkdtemp.c: Likewise.
32423         * lib/pipe.h: Likewise.
32424         * lib/pipe.c: Likewise.
32425         * lib/wait-process.h: Likewise.
32426
32427 2006-04-23  Bruno Haible  <bruno@clisp.org>
32428
32429         * gnulib-tool (func_usage): Fix --import description. Document
32430         --update.
32431         (func_import): Create temporary file in a temporary directory, if
32432         --dry-run is specified. Silence errors from 'grep' when there are no
32433         m4 files in $m4dir.
32434         (func_create_testdir): Silence errors from 'grep' when there are no
32435         m4 files in $m4dir.
32436         Reported by Karl Berry <karl@freefriends.org>.
32437
32438 2006-04-20  Bruno Haible  <bruno@clisp.org>
32439
32440         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32441         one argument, so that the code will be portable to Autoconf 2.60.
32442         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32443         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32444         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32445
32446 2006-04-19  Derek Price  <derek@ximbiot.com>
32447             Eric Blake  <ebb9@byu.net>
32448
32449         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32450         rather than "/full/path.h".  Update comment to match.  Shorten &
32451         generalize m4_translit call via AS_TR_CPP.
32452
32453 2006-04-19  Derek Price  <derek@ximbiot.com>
32454             Eric Blake  <ebb9@byu.net>
32455
32456         * lib/inttypes.h: Correct grammar in comment.
32457
32458 2006-04-18  Derek Price  <derek@ximbiot.com>
32459             Paul Eggert  <eggert@cs.ucla.edu>
32460
32461         * modules/inttypes: New file.
32462         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32463
32464 2006-04-18  Derek Price  <derek@ximbiot.com>
32465             Paul Eggert  <eggert@cs.ucla.edu>
32466
32467         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32468         New files.
32469
32470 2006-04-18  Derek Price  <derek@ximbiot.com>
32471             Paul Eggert  <eggert@cs.ucla.edu>
32472
32473         * lib/inttypes.h: New file.
32474         * lib/strtoimax.c: Assume <inttypes.h>.
32475
32476 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32479         isn't mounted.  Problem reported by Kir Kolyshkin.
32480
32481 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32482
32483         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32484         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32485         Derek R. Price.
32486         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32487         implementation.
32488
32489 2006-04-12  Eric Blake  <ebb9@byu.net>
32490
32491         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32492         is now done automatically by the corresponding Autoconf macro.
32493
32494 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32495
32496         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32497         time_r.h.
32498
32499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32500
32501         Merge regex changes from libc, removing some of our
32502         POSIX-conformance changes that were rejected and redoing them in a
32503         less-intrusive way.
32504
32505         * lib/regcomp.c (re_compile_internal, init_dfa):
32506         Length arg is now size_t, not Idx.  All uses changed.
32507         (peek_token): Forward decl now says internal_function.
32508         (__re_error_msgid, __re_error_msgid_idx):
32509         Now static rather than extern with attribute_hidden.
32510         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32511         For some reason libc prefers K&R style defns for external functions.
32512         (regerror) [!defined _LIBC]: Likewise.
32513         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32514         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32515         (build_range_exp, build_collating_symbol):
32516         Use K&R-style defn.
32517         (re_compile_fastmap): Use '\0' to memset, not 0.
32518         (utf8_sb_map): Make the calculations more obvious.
32519         (init_dfa, parse_bracket_exp, build_charclass_op):
32520         Call calloc and cast result, as glibc does.
32521         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32522         (build_range_exp, build_collating_symbol):
32523         Now internal functions.
32524
32525         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32526
32527         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32528         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32529         Don't depend on VMS; depend on __VMS instead, for POSIX
32530         namespace cleanness.
32531         (regoff_t): Define to ssize_t, not long int.
32532
32533         Remove the REG_ macros named below.  Instead, make the old names
32534         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32535         __USE_GNU_REGEX.
32536         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32537         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32538         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32539         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32540         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32541         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32542         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32543         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32544         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32545         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32546         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32547         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32548         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32549         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32550         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32551         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32552         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32553         (REG_NREGS):
32554         Remove.  All uses replaced by the old RE_* names.
32555         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32556         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32557         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32558         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32559         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32560         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32561         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32562         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32563         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32564         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32565         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32566         Don't bother having these macros be independent of each others'
32567         values, since they no longer exist in the POSIX name space.
32568
32569         Rename the following member names back to their old names,
32570         unless !__USE_GNU_REGEX.  All uses changed back.
32571         (buffer): Renamed from re_buffer.
32572         (allocated): Renamed from re_allocated.
32573         (used): Renamed from re_used.
32574         (syntax): Renamed from re_syntax.
32575         (fastmap): Renamed from re_fastmap.
32576         (translate): Renamed from re_translate.
32577         (can_be_null): Renamed from re_can_be_null.
32578         (regs_allocated): Renamed from re_regs_allocated.
32579         (fastmap_accurate): Renamed from re_fastmap_accurate.
32580         (no_sub): Renamed from re_no_sub.
32581         (not_bol): Renamed from re_not_bol.
32582         (not_eol): Renamed from re_not_eol.
32583         (newline_anchor): Renamed from re_newline_anchor.
32584         (num_regs): Renamed from rm_num_regs.
32585         (start): Renamed from rm_start.
32586         (end): Renamed from rm_end.
32587
32588         (free_state): Move up a bit.
32589
32590         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32591         #define to be empty.
32592         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32593         when that is what is intended.
32594         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32595         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32596         (MAX): New macro.
32597         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32598         All uses changed back to re_malloc, etc.  It's now the caller's
32599         responsibility to check for overflow; all callers changed.
32600         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32601         (re_x2nrealloc): Remove.
32602         (free_state): Remove decl.
32603
32604         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32605         (re_set_registers, re_exec):
32606         Use K&R-style defn.
32607
32608         2006-01-31  Roland McGrath  <roland@redhat.com>
32609
32610         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32611         Reported by Mike Frysinger <vapier@gentoo.org>.
32612
32613         2006-01-15  Andreas Jaeger  <aj@suse.de>
32614
32615         [BZ #1950]
32616         * lib/regex_internal.c (re_string_reconstruct): Adjust for
32617         build_wcs_upper_buffer change.
32618         (build_wcs_upper_buffer): Change return type.
32619
32620         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
32621
32622         * lib/regex_internal.h: Include <stdint.h> if available.
32623
32624         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
32625
32626         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32627
32628         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32629
32630         * lib/regcomp.c: Adjust for changed secondary hash function.
32631
32632         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
32633
32634         * lib/regex.h: Pretty printing.
32635         Clean up namespace a bit.
32636
32637         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
32638
32639         * lib/regexec.c (update_cur_sifted_state, check_arrival,
32640         check_arrival_add_next_nodes): Avoid using uninitialized variable.
32641
32642         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32643                     Ulrich Drepper  <drepper@redhat.com>
32644
32645         [BZ #1302]
32646         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
32647         changed.
32648         (bitset_word_t): Renamed from bitset_word.  All uses changed.
32649
32650         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
32651
32652         [BZ #281]
32653         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32654         * lib/regcomp.c: Remove unnecessary uses of
32655         unsigned RE_TRANSLATE_TYPE.
32656         * lib/regex_internal.h: Likewise.
32657         * lib/regex_internal.c: Likewise.
32658         * lib/regexec.c: Likewise.
32659         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32660
32661         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
32662
32663         * lib/regexec.c (find_recover_state): Remove unnecessary
32664         initialization.
32665         (transit_state_bkref): Make DFA a const pointer.
32666         (get_subexp): Likewise.
32667         (check_arrival): Likewise.
32668         (update_cur_sifted_state): Likewise.
32669         (re_search_internal): Likewise.
32670         (prune_impossible_nodes): Likewise.
32671         (acquire_init_state_context): Likewise.
32672         (proceed_next_node): Likewise.
32673         (set_regs): Likewise.
32674         (free_fail_stack_return): Likewise.
32675         (check_arrival_expand_ecl): Mark DFA parameter as const.
32676         (check_arrival_expand_ecl_sub): Likewise.
32677         (check_subexp_limits): Likewise.
32678         (sub_epsilon_src_nodes):  Likewise.
32679         (add_epsilon_src_nodes):  Likewise.
32680         (merge_state_array): Likewise.
32681         (update_regs): Likewise.
32682         (build_trtable): Likewise.
32683         (sift_states_backward): Mark MCTX parameter as const.
32684         (build_sifted_states): Likewise.
32685         (update_cur_sifted_state): Likewise.
32686         (sift_states_mkref): Likewise.
32687         (check_arrival_expand_ecl): Mark eclosure as const.
32688         (check_dst_limits_calc_pos_1): Likewise.
32689         * lib/regex_internal.h (re_match_context_t): Make dfa a const
32690         pointer.
32691
32692         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
32693
32694         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32695         (transit_state_sb): Likewise.
32696         (transit_state_mb): Likewise.
32697         (sift_states_iter_mb): Likewise.
32698         (check_arrival_add_next_nodes): Likewise.
32699         (check_node_accept_bytes): Change first parameter to pointer-to-const.
32700         [_LIBC] (re_search_2_stub): Use mempcpy.
32701
32702         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32703         mbrtowc for very simple UTF-8 case.
32704
32705         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32706         a pointer-to-const.
32707         (re_acquire_state_context): Likewise.
32708         * lib/regex_internal.h: Adjust prototypes.
32709
32710         * lib/regex.c: Prevent using C++ compilers.
32711
32712         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32713         (re_acquire_state_context): Likewise.
32714
32715 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32716
32717         * modules/regex (Depends-on): Add ssize_t.
32718
32719 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32720
32721         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32722         translation table.
32723
32724 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32725
32726         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32727
32728 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
32729             Bruno Haible  <bruno@clisp.org>
32730
32731         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32732         <sys/types.h> and <inttypes.h>.
32733
32734 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32735
32736         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32737         `__error_t_defined', so argp.h will not typedef the former.
32738
32739 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32740
32741         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32742         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
32743         glibc names.  Even if glibc is changed to conform to POSIX, the
32744         traditional names will be available anyway, since regex depends on
32745         the extensions module.  Also, fix a longstanding typo in the
32746         implementation of Spencer ERE test #75 from grep 2.3.  Problems
32747         reported by Emanuele Giaquinta.  Also, change sense of cached
32748         variable, so that the message makes sense.
32749
32750 2006-03-24  Simon Josefsson  <jas@extundo.com>
32751
32752         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
32753         including some doc fixes.
32754         (base64_encode_alloc): Fix +1 bug on allocation failures.
32755
32756 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32757
32758         * lib/base64.c (base64_encode): Do not read past end of array with
32759         unsanitized input on systems with CHAR_BIT > 8.
32760
32761 2006-03-24  Eric Blake  <ebb9@byu.net>
32762
32763         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
32764
32765 2006-03-22  Karl Berry  <karl@gnu.org>
32766
32767         * config/srclist.txt (*setenv.[ch]): get from coreutils.
32768         * config/srclistvars.sh (COREUTILS): new var.
32769
32770 2006-03-17  Jim Meyering  <jim@meyering.net>
32771
32772         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
32773         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
32774
32775 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32776
32777         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
32778         no longer needs it.  Instead, check that regoff_t is as least
32779         as wide as ptrdiff_t.
32780
32781         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
32782         so that our regex.h stays compatible with the installed regex.
32783         This is helpful for installers who configure --without-included-regex.
32784         Problem reported by Emanuele Giaquinta.
32785
32786 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32787
32788         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
32789         Typedef to long int, not to off_, as POSIX will likely change
32790         in that direction.
32791
32792 2006-03-15  Eric Blake  <ebb9@byu.net>
32793
32794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
32795
32796 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
32797
32798         * lib/argp-help.c (validate_uparams): Fix typo
32799         * lib/argp-parse.c (argp_default_options): Consistently begin help
32800         messages with a lowercase letter.
32801
32802 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
32803
32804         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
32805         overrun buffers and shouldn't be used (much as gets shouldn't be
32806         used).
32807         * lib/time_r.c (asctime_r, ctime_r): Likewise.
32808
32809 2006-03-08  Simon Josefsson  <jas@extundo.com>
32810
32811         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
32812         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32813
32814 2006-03-08  Simon Josefsson  <jas@extundo.com>
32815
32816         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
32817         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32818
32819 2006-03-08  Simon Josefsson  <jas@extundo.com>
32820
32821         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
32822         signal that configure disabled the device.
32823
32824 2006-03-08  Simon Josefsson  <jas@extundo.com>
32825
32826         * build-aux/maint.mk: Fix refresh-po, to handle no translated
32827         languages.
32828
32829 2006-03-07  Simon Josefsson  <jas@extundo.com>
32830
32831         * modules/getopt (Depends-on): Add unistd.
32832
32833         * modules/unistd: New file.
32834
32835 2006-03-07  Simon Josefsson  <jas@extundo.com>
32836
32837         * modules/gc-random: New file.
32838
32839 2006-03-07  Simon Josefsson  <jas@extundo.com>
32840
32841         * m4/unistd_h.m4: New file.
32842
32843 2006-03-07  Simon Josefsson  <jas@extundo.com>
32844
32845         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
32846         test to be side-effect free by storing the result in the cache
32847         variable gl_cv_lib_readline, and moving the assignment of
32848         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
32849         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32850
32851 2006-03-07  Simon Josefsson  <jas@extundo.com>
32852
32853         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
32854         error on missing devices (the functions will return an error).
32855
32856         * m4/gc.m4: Move random stuff to gc-random.m4
32857
32858 2006-03-07  Simon Josefsson  <jas@extundo.com>
32859
32860         * lib/unistd_.h: New file.
32861
32862 2006-03-07  Simon Josefsson  <jas@extundo.com>
32863
32864         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
32865
32866 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32867
32868         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
32869         Problem reported by Juan Manuel Guerrero.
32870
32871 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32872
32873         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
32874         the unistd module.
32875         * lib/getlogin_r.c: Likewise.
32876         * lib/getlogin_r.h: Likewise.
32877         * lib/glob.c: Likewise.
32878         * lib/pagealign_alloc.c: Likewise.
32879         * lib/unistd_.h: Remove; no longer needed.
32880
32881 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32882
32883         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32884         Add unistd.
32885         * modules/c-stack (Depends-on): Add unistd.
32886         * modules/getlogin_r: Likewise.
32887         * modules/glob: Likewise.
32888         * modules/pagealign_alloc: Likewise.
32889         * modules/unistd (Files): Remove lib/unistd_.h.
32890         (EXTRA_DIST): Remove.
32891         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
32892         need unistd_.h.
32893         (MOSTLYCLEANFILES): Remove unistd.h-t.
32894
32895 2006-03-03  Simon Josefsson  <jas@extundo.com>
32896
32897         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
32898
32899 2006-03-03  Simon Josefsson  <jas@extundo.com>
32900
32901         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
32902         libidn and bison.
32903
32904 2006-03-03  Simon Josefsson  <jas@extundo.com>
32905
32906         * build-aux/maint.mk: Add indent target.
32907
32908 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
32909
32910         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
32911         our replacement poll.h in any case, to avoid a differing
32912         declaration from a system header.  Seen on AIX.
32913
32914 2006-03-01  Simon Josefsson  <jas@extundo.com>
32915
32916         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
32917         <kasal@ucw.cz>.
32918
32919 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32920
32921         * modules/gettime (Depends-on): Add extensions module.
32922         * modules/nanosleep (Depends-on): Likewise.
32923         * modules/settime (Depends-on): Likewise.
32924
32925 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32926
32927         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
32928         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
32929         pedantically.
32930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32931         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
32932
32933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
32934         not "==".  Reported by Ralf Wildenhues.
32935
32936 2006-03-01  Karl Berry  <karl@gnu.org>
32937
32938         * doc/Copyright/request-*: new files, synced from gnuorg.
32939
32940 2006-03-01  Karl Berry  <karl@gnu.org>
32941
32942         * config/srclist.txt (Copyright/*): new entries.
32943
32944 2006-02-28  Simon Josefsson  <jas@extundo.com>
32945
32946         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
32947
32948 2006-02-27  Simon Josefsson  <jas@extundo.com>
32949
32950         * lib/base64.h: Indent #define's.  From Jim Meyering
32951         <jim@meyering.net>.
32952
32953 2006-02-27  Jim Meyering  <jim@meyering.net>
32954
32955         Revert the change of 2006-02-24, so these files can continue
32956         to be sync'd from gettext.
32957         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
32958         of `config.h'.
32959
32960 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32961
32962         * modules/intprops: New file.
32963         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32964         Add intprops.
32965         * modules/getloadavg (Files): Remove lib/intprops.h.
32966         (Depends-on): Add intprops.
32967         * modules/human: Likewise.
32968         * modules/inttostr: Likewise.
32969         * modules/openat: Likewise.
32970         * modules/sig2str: Likewise.
32971         * modules/userspec: Likewise.
32972         * modules/utimecmp: Likewise.
32973         * modules/xnanosleep: Likewise.
32974         * modules/xstrtol: Likewise.
32975
32976 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
32977
32978         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
32979         * modules/lock-tests (TESTS): Use $(EXEEXT).
32980         * modules/tls-tests: Likewise.
32981         * modules/argp-tests: Likewise.
32982         (check_PROGRAMS): New var, replacing...
32983         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
32984
32985 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32986
32987         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
32988         `config.h'.
32989
32990 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
32991
32992         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
32993
32994 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32995
32996         Sync from coreutils.
32997         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
32998         gl_CHDIR_SAFER.
32999
33000 2006-02-22  Jim Meyering  <jim@meyering.net>
33001
33002         Sync from coreutils.
33003         * m4/chdir-safer.m4: New file.
33004
33005 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33006
33007         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33008         AT_FDCWD exceeds INT_MAX.
33009         * lib/openat.h (AT_FDCWD): Likewise.
33010
33011 2006-02-17  Eric Blake  <address@hidden>
33012
33013         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33014
33015 2006-02-16  Simon Josefsson  <jas@extundo.com>
33016
33017         * modules/getaddrinfo (Depends-on): Add sys_socket.
33018
33019 2006-02-15  Simon Josefsson  <jas@extundo.com>
33020
33021         * build-aux/maint.mk: Add dsyntax-check rule.
33022
33023 2006-02-15  Eric Blake  <ebb9@byu.net>
33024
33025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33026         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33027         'present but cannot compile' warnings on cygwin.
33028         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33029         use ws2tcpip.h if sys/socket.h works.
33030         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33031         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33032
33033 2006-02-14  Simon Josefsson  <jas@extundo.com>
33034
33035         * modules/maintainer-makefile (Files): Rename.
33036
33037         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33038         and (the local) Makefile.cfg to maint-cfg.mk.
33039
33040         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33041         to the latter.
33042
33043         * modules/maintainer-makefile: New module.
33044
33045         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33046         severaly stripped to make it possible to build it up from scratch
33047         with reliable tests.
33048
33049         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33050         fixes to permit overriding the default actions when configure and
33051         makefile are not available.
33052
33053 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33054
33055         Sync from coreutils.
33056         * modules/lstat (Depends-on): Don't depend on xalloc.
33057         (License): Change from GPL to LGPL, since this is now simply a
33058         replacement for a libc function.
33059
33060 2006-02-14  Jim Meyering  <jim@meyering.net>
33061
33062         Sync from coreutils.
33063
33064         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33065         failure on deficient systems, and simplify gnulib lgpl dependencies.
33066         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33067         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33068
33069         * lib/xalloc-die.c: Remove unused definition of N_.
33070
33071 2006-02-14  Jim Meyering  <jim@meyering.net>
33072
33073         Sync from coreutils.
33074         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33075         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33076         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33077         double-quote uses of that variable, to accommodate the rare case in
33078         which getmntent is available in none of the libraries checked.  This
33079         happens at least on FreeBSD 5.0.
33080
33081 2006-02-13  Simon Josefsson  <jas@extundo.com>
33082
33083         * gnulib-tool (Usage): Fix --import, from
33084         karl@freefriends.org (Karl Berry).
33085
33086 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33087
33088         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33089
33090 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33091
33092         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33093         "autoupdate" on 2005-12-12.
33094
33095 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33096
33097         * modules/closeout (Depends-on): Remove atexit.
33098
33099 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33100
33101         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33102         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33103
33104 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33105
33106         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33107         __EXTENSIONS__ if this causes compilation to fail.  Problem
33108         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33109         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33110
33111 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33112
33113         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33114         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33116         All uses changed.
33117
33118 2006-01-26  Simon Josefsson  <jas@extundo.com>
33119
33120         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33121         prototype is visible on mingw32.
33122
33123         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33124         for mingw32.
33125
33126         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33127         mingw32).
33128
33129 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33130
33131         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33132         attempt to open for write; this always fails, at least on POSIX
33133         hosts.  This reinstates the 2006-01-09 change, which was
33134         inadvertently removed.
33135
33136 2006-01-26  Bruno Haible  <bruno@clisp.org>
33137
33138         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33139         Reported by Paul Eggert.
33140
33141 2006-01-26  Bruno Haible  <bruno@clisp.org>
33142             Paul Eggert  <eggert@cs.ucla.edu>
33143
33144         * lib/stdbool_.h (_Bool)
33145         [(! (defined __cplusplus || defined __BEOS__)
33146           && !defined __GNUC__
33147           && !(defined __HP_cc || defined __xlc__
33148                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33149                || defined __sgi))]:
33150         #define to signed char in these cases too; this simplifies
33151         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33152         etc., separately) and makes it more conservative.
33153
33154 2006-01-25  Simon Josefsson  <jas@extundo.com>
33155
33156         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33157         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33158         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33159
33160 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33161
33162         * lib/argp-namefrob.h: Bugfix. Remove stray #
33163
33164 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33165
33166         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33167         so that we test the test.
33168         Check for yet another HP-UX cc bug involving *bool |= bool.
33169
33170 2006-01-25  Karl Berry  <karl@gnu.org>
33171
33172         * config/srclist.txt (vasnprintf.c): sync lost.
33173
33174 2006-01-25  Jim Meyering  <jim@meyering.net>
33175
33176         Sync from the stable (b5) branch of coreutils:
33177
33178         * lib/fts.c (fts_children): Don't let close() clobber errno from
33179         failed fchdir().
33180
33181         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33182         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33183         a dangling symlink.  That can also happen at least for ELOOP.
33184         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33185         FYI, this bug predates the inclusion of fts.c in coreutils.
33186
33187         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33188         in their own block, so pre-c99 compilers don't object.
33189
33190         Avoid the double-free (first in fts_read, second in fts_close) that
33191         would occur when an `active' directory is made inaccessible (e.g.,
33192         via chmod a-x) during a traversal.
33193         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33194         before returning.  Reproduce this failure by
33195         mkdir -p a/b; cd a; chmod a-x . b
33196         Reported by Stavros Passas.
33197
33198 2006-01-25  Jim Meyering  <jim@meyering.net>
33199
33200         * lib/fileblocks.c: Remove more useless parentheses.
33201         * lib/readutmp.h: Likewise.
33202
33203 2006-01-25  Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33206         warnings.
33207         Reported by Paul Eggert.
33208
33209 2006-01-25  Bruno Haible  <bruno@clisp.org>
33210
33211         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33212         rid of a trap command. For Solaris sh.
33213         Reported by Mark D. Baushke <mdb@gnu.org>.
33214
33215 2006-01-24  Simon Josefsson  <jas@extundo.com>
33216
33217         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33218         Bruno.
33219
33220 2006-01-24  Karl Berry  <karl@gnu.org>
33221
33222         * config/srclist.txt (argp-namefrob.h): sync lost.
33223
33224 2006-01-24  Jim Meyering  <jim@meyering.net>
33225
33226         * modules/openat (Files): Add lib/intprops.h.
33227         From Mark D. Baushke.
33228
33229 2006-01-24  Jim Meyering  <jim@meyering.net>
33230
33231         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33232         Reported by Mark D. Baushke.
33233
33234 2006-01-24  Jim Meyering  <jim@meyering.net>
33235
33236         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33237
33238 2006-01-24  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/strnlen (Maintainer): Change from glibc to all.
33241
33242 2006-01-24  Bruno Haible  <bruno@clisp.org>
33243
33244         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33245         Patch by Paul Eggert.
33246
33247 2006-01-24  Bruno Haible  <bruno@clisp.org>
33248
33249         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33250         already has it.
33251         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33252         2005-11-26.
33253
33254         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33255         'signed char' to avoid problems with the built-in _Bool type.
33256         Reported by Paul Eggert on 2005-11-26.
33257
33258 2006-01-24  Bruno Haible  <bruno@clisp.org>
33259
33260         * gnulib-tool (func_import): Avoid constructing complicated sed
33261         expressions inside backquote.
33262         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33263
33264 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33265
33266         These changes imported from libc.
33267         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33268         test and two separate function calls.
33269         * lib/strndup.c (__strndup): Add libc_hidden_def.
33270
33271 2006-01-23  Simon Josefsson  <jas@extundo.com>
33272
33273         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33274         Remove the test_*_SOURCES variable: automake infers it by default.
33275         * modules/tls-tests: Likewise.
33276
33277 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33278
33279         Work around porting bugs reported by Dieter in
33280         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33281         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33282         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33283         Include "getopt.h" first, to check interface.
33284         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33285         !HAVE_DECL_GETENV.
33286         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33287         (__strndup): Revert to K&R-style function dfns, the glibc style.
33288         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33289         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33290         Include strnlen.h first, to get prototype properly.
33291         (strnlen): Renamed from __strnlen.
33292         Remove weak alias.
33293
33294 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33295
33296         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33297
33298 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33299
33300         * config/srclist.txt: Adjust to reflect glibc reorganization.
33301         This affects only comments.
33302
33303 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33304
33305          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33306          Reported by Bruce Korb <bkorb@gnu.org>.
33307
33308 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33309
33310         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33311         to pacify gcc -Wswitch-default.
33312
33313 2006-01-22  Bruno Haible  <bruno@clisp.org>
33314
33315         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33316         temporary buffer for sprintf, take into account the precision also
33317         for 'd', 'i', 'u', 'o', 'x', 'X'.
33318
33319 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33320
33321         * modules/argp-tests: New module
33322         * tests/test-argp.c: New file
33323         * tests/test-argp-2.sh: New file
33324
33325 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33326
33327         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33328         (__argp_base_name): Removed
33329         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33330         typo.
33331         (__argp_base_name): Provide macro definition or extern declaration
33332         depending on the configuration
33333
33334 2006-01-20  Simon Josefsson  <jas@extundo.com>
33335
33336         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33337
33338 2006-01-20  Simon Josefsson  <jas@extundo.com>
33339
33340         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33341
33342 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33343
33344         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33345         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33346         Suggested by Bruno Haible.
33347
33348 2006-01-20  Karl Berry  <karl@gnu.org>
33349
33350         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33351         until changes propagate, I guess.
33352
33353 2006-01-19  Simon Josefsson  <jas@extundo.com>
33354
33355         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33356
33357 2006-01-19  Simon Josefsson  <jas@extundo.com>
33358
33359         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33360
33361 2006-01-19  Simon Josefsson  <jas@extundo.com>
33362
33363         * gnulib-tool: Set check_PROGRAMS.
33364
33365         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33366         modules/des-tests, modules/gc-arcfour-tests,
33367         modules/gc-arctwo-tests, modules/gc-des-tests,
33368         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33369         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33370         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33371         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33372         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33373         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33374         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33375         test_*_SOURCES.
33376
33377 2006-01-18  Simon Josefsson  <jas@extundo.com>
33378
33379         * modules/socklen (Depends-on): Depend on sys_socket.
33380
33381 2006-01-18  Simon Josefsson  <jas@extundo.com>
33382
33383         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33384         modules/des-tests, modules/gc-arcfour-tests,
33385         modules/gc-arctwo-tests, modules/gc-des-tests,
33386         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33387         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33388         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33389         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33390         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33391         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33392         $(EXEEXT) to automake TESTS variable, for mingw32.
33393
33394 2006-01-17  Simon Josefsson  <jas@extundo.com>
33395
33396         * modules/socklen (Include): Need sys/socket.h.
33397
33398 2006-01-17  Bruno Haible  <bruno@clisp.org>
33399
33400         * modules/ssize_t (Include): Add <sys/types.h>.
33401
33402 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33403
33404         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33405         it's not portable and it doesn't work with cross-compiles.
33406         Problem reported by Bruno Haible.  Fix missing-$ typo in
33407         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33408         -zignore from being used with Sun's C compiler.
33409
33410 2006-01-12  Simon Josefsson  <jas@extundo.com>
33411
33412         * lib/base64.c: Fix warning, reported by Bruno Haible
33413         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33414
33415 2006-01-12  Bruno Haible  <bruno@clisp.org>
33416
33417         * modules/ldd: New file.
33418         * build-aux/ldd.sh.in: New file.
33419         * MODULES.html.sh (Support for building libraries and executables): Add
33420         ldd.
33421
33422 2006-01-12  Bruno Haible  <bruno@clisp.org>
33423
33424         * m4/ldd.m4: New file.
33425
33426 2006-01-12  Bruno Haible  <bruno@clisp.org>
33427
33428         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33429         endless loop while replacing $auxdir with build-aux.
33430
33431 2006-01-11  Simon Josefsson  <jas@extundo.com>
33432
33433         * lib/stdint_.h (SIZE_MAX): Add missing (.
33434
33435 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33436
33437         Sync from coreutils.
33438         * lib/md5.c: Fix commentary typos.
33439         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33440         * lib/md5.h (__attribute__): Remove; unused.
33441         * lib/sha1.c: Fix commentary to match md5 better.
33442         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33443         so that we don't need to worry about alignment.  All uses changed.
33444         This merges the 2005-10-28 md5 change into sha1.
33445
33446 2006-01-11  Jim Meyering  <jim@meyering.net>
33447
33448         Sync from coreutils.
33449         * lib/md5.c (OP): Fix spacing.
33450
33451 2006-01-11  Bruno Haible  <bruno@clisp.org>
33452
33453         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33454         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33455         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33456
33457 2006-01-11  Bruno Haible  <bruno@clisp.org>
33458
33459         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33460         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33461         the "early" section as well.
33462
33463 2006-01-11  Bruno Haible  <bruno@clisp.org>
33464
33465         Avoid "ar: no archive members specified" error on MacOS X.
33466         * gnulib-tool (func_modules_add_dummy): New function.
33467         (func_import, func_create_testdir): Invoke it.
33468
33469 2006-01-11  Bruno Haible  <bruno@clisp.org>
33470
33471         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33472         with $auxdir in AC_CONFIG_FILES statements.
33473
33474 2006-01-11  Bruno Haible  <bruno@clisp.org>
33475
33476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33477         Initialize also noinst_HEADERS to empty.
33478
33479 2006-01-11  Bruno Haible  <bruno@clisp.org>
33480
33481         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33482         variables.
33483         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33484         autoreconf.
33485
33486 2006-01-11  Bruno Haible  <bruno@clisp.org>
33487
33488         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33489         overridable by the user.
33490         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33491
33492 2006-01-10  Simon Josefsson  <jas@extundo.com>
33493
33494         * modules/sys_socket: New file.
33495
33496 2006-01-10  Simon Josefsson  <jas@extundo.com>
33497
33498         * m4/sys_socket_h.m4: New file.
33499
33500 2006-01-10  Simon Josefsson  <jas@extundo.com>
33501
33502         * lib/socket_.h: New file.
33503
33504 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33505
33506         * modules/readutmp (Maintainer): Add myself.
33507
33508 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33509
33510         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33511         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33512         People who are still concerned with buggy memcmp implementations
33513         can invoke gl_FUNC_MEMCMP themselves.
33514
33515 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33516
33517         * lib/regex_internal.h (BITSET_WORD_BITS):
33518         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33519         preprocessor mishandles large unsigned values as if they were signed.
33520         Problem reported by Claudio Fontana in
33521         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33522
33523 2006-01-10  Jim Meyering  <jim@meyering.net>
33524
33525         Avoid the double-free (first in fts_read, second in fts_close) that
33526         would occur when an `active' directory is made inaccessible (e.g.,
33527         via chmod a-x) during a traversal.
33528         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33529         before returning.  Reproduce this failure by
33530         mkdir -p a/b; cd a; chmod a-x . b
33531         Reported by Stavros Passas.
33532
33533         Sync from coreutils.
33534         * lib/sha1.c: Tweak grammar in a comment.
33535
33536 2006-01-10  Jim Meyering  <jim@meyering.net>
33537
33538         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33539         Patch by Joerg Sonnenberger.
33540
33541 2006-01-10  Bruno Haible  <bruno@clisp.org>
33542
33543         * modules/readutmp: Depend on module free.
33544         * modules/strtok_r: Depend on module restrict.
33545
33546 2006-01-10  Bruno Haible  <bruno@clisp.org>
33547
33548         * modules/gettext (configure.ac): Add an invocation of
33549         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33550
33551 2006-01-10  Bruno Haible  <bruno@clisp.org>
33552
33553         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33554         Reported by Werner Lemberg <wl@gnu.org>.
33555
33556 2006-01-10  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/localcharset.c: Update from GNU gettext.
33559
33560 2006-01-10  Bruno Haible  <bruno@clisp.org>
33561
33562         * lib/argp.h (__const): Remove macro. Use const instead.
33563         * lib/argp-fmtstream.h (__const): Likewise.
33564         * lib/glob_.h (__const): Remove macro.
33565         * lib/glob-libc.h: Use const instead of __const.
33566
33567 2006-01-10  Bruno Haible  <bruno@clisp.org>
33568
33569         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33570         variable.
33571         Needed to avoid an automake error regarding the 'gettext' module.
33572
33573 2006-01-09  Simon Josefsson  <jas@extundo.com>
33574
33575         * modules/inet_ntop (Depends-on): Add restrict.
33576
33577 2006-01-09  Simon Josefsson  <jas@extundo.com>
33578
33579         * modules/gc-rijndael-tests (License): Put under LGPL.
33580
33581         * modules/gc-des-tests (License): Likewise.
33582
33583         * modules/gc-arcfour-tests (License): Likewise.
33584
33585         * modules/gc-arctwo-tests (License): Likewise.
33586
33587         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33588
33589         * modules/gc-hmac-sha1-tests (Files): Likewise.
33590
33591         * modules/gc-hmac-md5-tests (License): Likewise.
33592
33593         * modules/gc-sha1-tests (License): Likewise.
33594
33595         * modules/gc-md5-tests (License): Likewise.
33596
33597         * modules/gc-md4-tests (License): Likewise.
33598
33599         * modules/gc-md2-tests (License): Likewise.
33600
33601         * modules/gc-tests (License): Likewise.
33602
33603         * modules/des-tests (License): Likewise.
33604
33605         * modules/md4-tests (License): Likewise.
33606
33607         * modules/md2-tests (License): Likewise.
33608
33609 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33610
33611         Sync from coreutils:
33612
33613         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33614         * modules/lib-ignore: New file.
33615         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33616         chdir-safer.m4, lchmod.m4.
33617         * modules/openat: Add mkdirat.c, openat-priv.h.
33618
33619 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33620
33621         Sync from coreutils.
33622         * m4/lib-ignore.m4: New file.
33623         * m4/lchmod.m4: New file.
33624
33625 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33626
33627         Sync from coreutils.
33628         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33629         for write access: POSIX says that must fail.
33630         * lib/fts.c (diropen): Likewise.
33631         * lib/save-cwd.c (save_cwd): Likewise.
33632         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33633         well, for minor improvements on hosts that lack O_DIRECTORY.
33634         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33635         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33636         Fall back on chown if open failed with EACCES.
33637
33638         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33639         Report an error at compile-time if only a 1-second nominal clock
33640         resolution is found.
33641
33642         * lib/lchmod.h: New file.
33643         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33644         (make_dir_parents): Use lchown rather than chown, and
33645         lchmod rather than chmod.
33646
33647         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33648         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
33649         "proc" reported by n0dalus.
33650
33651         * lib/mountlist.c: Include <limits.h>.
33652         (dev_from_mount_options)
33653         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33654         New function.  It no longer assumes "dev=" has the System V meaning
33655         on Linux (since it doesn't).  It also parses "dev=" more carefully.
33656         (read_file_system_list)
33657         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33658         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33659         dev= in that case.
33660
33661         * lib/posixtm.h (PDS_PRE_2000): New macro.
33662         * lib/posixtm.c (year): Arg is now syntax_bits rather than
33663         allow_century.  All usages changed.  Reject dates outside the range
33664         1969-1999 if PDS_PRE_2000 is used.
33665
33666 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33667
33668         Sync from coreutils.
33669         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33670         (Time of day items): Mention the possibility of leap seconds.
33671         Problem reported by Dr. David Alan Gilbert.
33672
33673 2006-01-09  Jim Meyering  <jim@meyering.net>
33674
33675         Sync from coreutils.
33676
33677         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33678
33679         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33680
33681         * lib/modechange.c (mode_compile): Reject an invalid mode string
33682         that starts with an octal digit.  From Andreas Gruenbacher.
33683
33684         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33685         and dup to open_safer and dup_safer, respectively.
33686         (openat_permissive): Fix typo in comment.
33687
33688         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33689         "gettext.h"; either no longer needed or are guaranteed by openat.h.
33690         (_): Remove; no longer needed.
33691         (openat): Renamed from rpl_openat; no need for rpl_openat
33692         since openat.h renames openat for us.
33693         Replace most of the body with a call to openat_permissive,
33694         to avoid duplicate code.
33695         Port to (probably hypothetical) environments were mode_t is
33696         wider than int.
33697         (openat_permissive): Require mode arg, so that we can check
33698         types better.  Put it just after flags.  Change cwd failure
33699         indicator from pointer-to-bool to pointer-to-errno-value.
33700         All callers changed.
33701         Invoke openat_save_fail and/or openat_restore_fail if
33702         cwd_errno is null, so that openat can call us.
33703         (openat_permissive, fdopendir, fstatat, unlinkat):
33704         Simplify errno handling to avoid some duplicate code,
33705         as it's OK to set errno on success.
33706         * lib/openat.h: Revamp code so that function macros depend on
33707         __OPENAT_PREFIX only, not also on AT_FDCWD.
33708         (openat_ro): Remove.  Caller changed to use openat_permissive.
33709         (openat_permissive): Now a macro, if not a function.
33710         (openat_restore_fail, openat_save_fail): Now always functions,
33711         since mkdirat needs them even if __OPENAT_PREFIX is defined.
33712
33713         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33714         and openat.c.
33715         * lib/mkdirat.c: Include openat-priv.h.
33716         Remove definitions of macros defined therein.
33717         * lib/openat.c: Likewise.
33718
33719         * lib/mkdirat.c (mkdirat): New file and function.
33720         * lib/openat.h (mkdirat): Declare.
33721
33722         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33723
33724         * lib/openat.h (openat_permissive): Declare.
33725         (openat_ro): Define.
33726
33727         * lib/openat.c (EXPECTED_ERRNO): New macro.
33728         (openat_permissive): New function -- used in remove.c rewrite.
33729         (all functions): Set errno just before returning, only if there
33730         was an actual failure.
33731         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33732
33733         Emulate openat-family functions using Linux's procfs, if possible.
33734         Idea and some code based on Ulrich Drepper's glibc changes.
33735
33736         * lib/openat.c: (BUILD_PROC_NAME): New macro.
33737         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33738         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33739         before falling back on save_cwd and restore_cwd.
33740         (fdopendir, fstatat, unlinkat): Likewise.
33741
33742         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33743         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33744
33745         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
33746         as second argument to va_arg.  Otherwise, some versions of gcc
33747         warn that `if this code is reached, the program will abort'.
33748
33749 2006-01-09  Jim Meyering  <jim@meyering.net>
33750
33751         Sync from coreutils.
33752         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
33753         Require openat-priv.h.
33754
33755 2006-01-09  Bruno Haible  <bruno@clisp.org>
33756
33757         * modules/strnlen (Include): Use strnlen.h.
33758
33759 2006-01-09  Bruno Haible  <bruno@clisp.org>
33760
33761         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
33762
33763 2006-01-09  Bruno Haible  <bruno@clisp.org>
33764
33765         * lib/sysexit_.h (EX_OK): New macro.
33766         Suggested by Martin Lambers <marlam@marlam.de>.
33767
33768 2006-01-09  Bruno Haible  <bruno@clisp.org>
33769
33770         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
33771         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
33772
33773 2006-01-09  Bruno Haible  <bruno@clisp.org>
33774
33775         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
33776         numbers.
33777
33778 2006-01-09  Bruno Haible  <bruno@clisp.org>
33779
33780         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
33781         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
33782         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
33783         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
33784
33785 2006-01-09  Bruno Haible  <bruno@clisp.org>
33786
33787         * build-aux/javacomp.sh.in: New file, moved from lib/.
33788         * modules/javacomp-script (Files): Update.
33789         (configure.ac): Add AC_CONFIG_FILES invocation.
33790         (EXTRA_DIST): Remove variable.
33791
33792         * build-aux/javaexec.sh.in: New file, moved from lib/.
33793         * modules/javaexec (Files): Update.
33794         (configure.ac): Add AC_CONFIG_FILES invocation.
33795         (EXTRA_DIST): Remove javaexec.sh.in.
33796
33797         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
33798         * modules/csharpcomp-script (Files): Update.
33799         (configure.ac): Add AC_CONFIG_FILES invocation.
33800         (EXTRA_DIST): Remove variable.
33801
33802         * build-aux/csharpexec.sh.in: New file, moved from lib/.
33803         * modules/csharpexec (Files): Update.
33804         (configure.ac): Add AC_CONFIG_FILES invocation.
33805         (EXTRA_DIST): Remove csharpexec.sh.in.
33806
33807 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33808
33809         Sync from coreutils.
33810
33811         Add POSIX ACL support
33812         * lib/acl.h (copy_acl, set_acl): Add declarations.
33813         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
33814         systems other than Linux.
33815         (chmod_or_fchmod): New function: use fchmod when possible,
33816         and chmod otherwise.
33817         (file_has_acl): Add a POSIX ACL implementation, with a
33818         Linux-specific subcase.
33819         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
33820         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
33821         acls are unsupported.
33822         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
33823         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
33824         are unsupported.
33825
33826 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33827
33828         Sync from coreutils.
33829         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
33830
33831 2006-01-07  Bruno Haible  <bruno@clisp.org>
33832
33833         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
33834         gl_EARLY.
33835
33836 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33837
33838         * lib/strftime.c (tzname): Don't declare if it is already #defined.
33839         Problem reported for Mingw by Mark Junker.
33840
33841 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33842
33843         * README: Gnulib normally doesn't generate a tarball.
33844
33845 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33846
33847         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
33848         long int, not int, for nanosecond counts, so that people who are
33849         used to POSIX struct timespec won't be surprised.  Reported by Jim
33850         Meyering.
33851
33852 2005-12-28  Bruno Haible  <bruno@clisp.org>
33853
33854         * build-aux/config.rpath: Update from GNU gettext.
33855
33856 2005-12-16  Jim Meyering  <jim@meyering.net>
33857
33858         * modules/fprintftime: New module.
33859         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
33860
33861 2005-12-16  Jim Meyering  <jim@meyering.net>
33862
33863         * m4/fprintftime.m4: New file.
33864
33865 2005-12-16  Jim Meyering  <jim@meyering.net>
33866
33867         * lib/fprintftime.c, lib/fprintftime.h: New files.
33868
33869 2005-12-15  Simon Josefsson  <jas@extundo.com>
33870
33871         * modules/socklen (configure.ac): Fix M4 macro name, to align with
33872         new m4/socklen.m4.
33873
33874 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33875
33876         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
33877         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
33878
33879 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33880
33881         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
33882         * lib/argp-help.c (fill_in_uparams): Check if the constructed
33883         struct uparams is valid. Fall back to the default values if it is
33884         not.
33885
33886 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33887
33888         * modules/argp (Files): Add argp-pin.c
33889         (Depends-on): dirname
33890         (lib_SOURCES): Add argp-pin.c
33891
33892 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33893
33894         * m4/argp.m4:  Check if program_invocation_name and
33895         program_invocation_short_name are declared and define appropriate
33896         macros if they are not.
33897
33898 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33899
33900         * lib/argp-help.c (__argp_base_name): New function
33901         (__argp_short_program_name): Rewrite using __argp_base_name
33902         * lib/argp-namefrob.h: Define program_invocation_name and
33903         program_invocation_short_name if requested
33904         (__argp_base_name): Add prototype
33905         * lib/argp-parse.c (argp_def): Use gettext wrappers
33906         (argp_default_parser): Use __argp_base_name
33907         * lib/argp-pin.c: New file. Defines program_invocation_name and
33908         program_invocation_short_name on systems that lack them.
33909
33910 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33911
33912         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
33913         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33914         porting problem reported by Georg Schwarz in
33915         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33916
33917 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33918
33919         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
33920         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33921         porting problem reported by Georg Schwarz in
33922         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33923
33924 2005-12-05  Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
33927         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
33928         Reported by Mark Junker <mjscod@gmx.de>.
33929
33930 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33931
33932         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
33933         Use implementation from Albert Chin, with some
33934         comments/corrections by Stepan Kasal and myself.
33935
33936 2005-12-02  Bruno Haible  <bruno@clisp.org>
33937
33938         * gnulib-tool (func_import): Accept GPLed build tool modules when
33939         --lgpl is given.
33940         * modules/csharpcomp-script: New file.
33941         * modules/csharpcomp: Depend on it.
33942         * modules/javacomp-script: New file.
33943         * modules/javacomp: Depend on it.
33944         Suggested by Simon Josefsson.
33945
33946 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
33947
33948         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
33949         statement, to work around an HP-UX 10.20 compiler bug reported by
33950         Peter O'Gorman.
33951
33952 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33953
33954         * modules/savedir (Depends-on): Add openat.
33955
33956 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33957
33958         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
33959         (uintmax_t) [defined uintmax_t]: Do not declare.
33960         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
33961         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
33962         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
33963         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
33964         sake of portability to weird hosts that C allows (though we don't
33965         know of any practical examples).
33966
33967         * lib/savedir.h (fdsavedir): New decl.
33968         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
33969         contains most of the former guts of savedir.
33970         (savedir): Use savedirstream.
33971         Include "openat.h".
33972
33973 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
33974
33975         * modules/obstack (Files): Add m4/ulonglong.m4.
33976         Problem reported by Davide Angelocola.
33977
33978 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33979
33980         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
33981         coreutils no longer futzes with rounding modes.
33982
33983 2005-11-14  Jim Meyering  <jim@meyering.net>
33984
33985         * lib/mkstemp-safer.c: Include <config.h>, required for possible
33986         replacement of mkstemp.
33987
33988 2005-11-10  Simon Josefsson  <jas@extundo.com>
33989
33990         * lib/readline.c: Remove EOL.
33991
33992 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33993
33994         * modules/gethrxtime (Depends-on): Add gettime.
33995
33996 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
33997
33998         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
33999         or gettimeofday; no longer needed.
34000
34001 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34002
34003         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34004         time business.
34005         (gethrxtime) [! (HAVE_NANOUPTIME
34006         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34007         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34008         our own approximation.
34009
34010 2005-11-08  Eric Blake  <ebb9@byu.net>
34011
34012         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34013
34014 2005-11-08  Eric Blake  <ebb9@byu.net>
34015
34016         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34017
34018 2005-11-04  Bruno Haible  <bruno@clisp.org>
34019
34020         * gnulib-tool: Implement --update mode.
34021
34022 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34023
34024         Fix porting problem reported by Theodoros V. Kalamatianos.
34025         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34026         Don't assume that futimes failing means we must fail.
34027
34028 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34029
34030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34031         variables to suggest the intended function of the PATH_MAX check.
34032
34033 2005-10-30  Kean Johnston  <jkj@sco.com>
34034
34035         Trivial changes to support SCO systems.
34036         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34037         as PATH_MAX.
34038         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34039         where __ptr is null when no I/O is pending.
34040
34041 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34042
34043         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34044         leave errno alone.  Problem reported by Dmitry V. Levin.
34045
34046 2005-10-28  Simon Josefsson  <jas@extundo.com>
34047
34048         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34049         Test more.
34050
34051         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34052
34053         * modules/md2, modules/md2-tests: New files.
34054
34055 2005-10-28  Simon Josefsson  <jas@extundo.com>
34056
34057         * m4/inet_ntop.m4: More tests.
34058
34059         * m4/gc-md2.m4, md2.m4: New file.
34060
34061 2005-10-28  Simon Josefsson  <jas@extundo.com>
34062
34063         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34064         "restrict" keywords, as per POSIX.  Protect the function
34065         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34066         Don't use K&R prototypes.  Check the sprintf return values.
34067         Re-define EAFNOSUPPORT if not present.  Indent.
34068
34069         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34070         suggested by Bruno Haible <bruno@clisp.org>.
34071
34072         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34073
34074         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34075
34076         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34077         libgcrypt).
34078
34079         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34080
34081         * lib/md2.h, lib/md2.c: New files.
34082
34083 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34084
34085         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34086         errno alone.  Problem reported by Frederic Jolliton.
34087
34088 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34089
34090         * modules/verify (License): Change from GPL to LGPL.  This is a
34091         tiny module and there are apparently near-equivalents that are
34092         under the BSD license.
34093
34094 2005-10-24  Simon Josefsson  <jas@extundo.com>
34095
34096         * modules/sha1: Relicense to LGPL.
34097
34098 2005-10-24  Simon Josefsson  <jas@extundo.com>
34099
34100         * lib/md4.h: Shrink buffer size, now that we changed the type.
34101
34102 2005-10-23  Simon Josefsson  <jas@extundo.com>
34103
34104         * gnulib-tool (func_import): Fix --tests-base.
34105
34106 2005-10-22  Simon Josefsson  <jas@extundo.com>
34107
34108         * modules/arcfour (Depends-on): Need stdint.
34109
34110 2005-10-22  Simon Josefsson  <jas@extundo.com>
34111
34112         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34113         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34114
34115 2005-10-22  Simon Josefsson  <jas@extundo.com>
34116
34117         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34118         suggested by Bruno Haible <bruno@clisp.org>.
34119
34120 2005-10-22  Simon Josefsson  <jas@extundo.com>
34121
34122         * lib/crc.h: Include stddef.h, for size_t.
34123
34124 2005-10-22  Simon Josefsson  <jas@extundo.com>
34125
34126         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34127         arcfour_context struct (simplify test vector testing in GNU
34128         Shishi).
34129
34130 2005-10-21  Simon Josefsson  <jas@extundo.com>
34131
34132         * modules/des, modules/des-tests: New files.
34133
34134         * modules/gc-des, modules/gc-des-tests: New files.
34135
34136         * tests/test-des.c, tests/test-gc-des.c: New file.
34137
34138 2005-10-21  Simon Josefsson  <jas@extundo.com>
34139
34140         * modules/arctwo, modules/arctwo-tests: New files.
34141
34142         * tests/test-arctwo.c: New file.
34143
34144         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34145
34146         * tests/test-gc-arctwo.c: New file.
34147
34148 2005-10-21  Simon Josefsson  <jas@extundo.com>
34149
34150         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34151         Bruno Haible <bruno@clisp.org>.
34152
34153         * m4/gc-des.m4: New file.
34154
34155 2005-10-21  Simon Josefsson  <jas@extundo.com>
34156
34157         * m4/arctwo.m4: New file.
34158
34159         * m4/gc-arctwo.m4: New file.
34160
34161 2005-10-21  Simon Josefsson  <jas@extundo.com>
34162
34163         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34164         block.
34165
34166 2005-10-21  Simon Josefsson  <jas@extundo.com>
34167
34168         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34169         <bruno@clisp.org>.
34170
34171         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34172
34173         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34174         Bruno Haible <bruno@clisp.org>.
34175
34176         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34177         <bruno@clisp.org>.
34178
34179 2005-10-21  Simon Josefsson  <jas@extundo.com>
34180
34181         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34182
34183 2005-10-21  Simon Josefsson  <jas@extundo.com>
34184
34185         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34186
34187 2005-10-21  Simon Josefsson  <jas@extundo.com>
34188
34189         * lib/des.h, lib/des.c: New files.
34190
34191         * lib/gc-gnulib.c: Support DES.c
34192
34193 2005-10-21  Simon Josefsson  <jas@extundo.com>
34194
34195         * lib/arctwo.h, lib/arctwo.c: New files.
34196
34197         * lib/gc-gnulib.c: Support ARCTWO.
34198
34199 2005-10-21  Simon Josefsson  <jas@extundo.com>
34200
34201         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34202         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34203
34204 2005-10-21  Simon Josefsson  <jas@extundo.com>
34205
34206         * gnulib-tool (func_import, func_create_testdir): Define automake
34207         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34208         Makefile.am snippet),
34209         suggested by Bruno Haible <bruno@clisp.org>.
34210
34211         * modules/gc (Makefile.am): Use it.
34212
34213 2005-10-21  Bruno Haible  <bruno@clisp.org>
34214
34215         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34216         patch.
34217
34218 2005-10-19  Simon Josefsson  <jas@extundo.com>
34219
34220         * tests/test-gc-rijndael.c: New file.
34221
34222         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34223
34224 2005-10-19  Simon Josefsson  <jas@extundo.com>
34225
34226         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34227         interface too.
34228
34229 2005-10-19  Simon Josefsson  <jas@extundo.com>
34230
34231         * tests/test-gc-arcfour.c: New file.
34232
34233         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34234
34235 2005-10-19  Simon Josefsson  <jas@extundo.com>
34236
34237         * modules/gc-md4, modules/gc-md4-tests: New file.
34238
34239         * tests/test-gc-md4.c: New file.
34240
34241 2005-10-19  Simon Josefsson  <jas@extundo.com>
34242
34243         * m4/gc-md4.m4: New file.
34244
34245 2005-10-19  Simon Josefsson  <jas@extundo.com>
34246
34247         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34248         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34249         <kasal@ucw.cz>.
34250
34251 2005-10-19  Simon Josefsson  <jas@extundo.com>
34252
34253         * m4/gc-arcfour.m4: New file.
34254
34255         * m4/gc-rijndael.m4: New file.
34256
34257 2005-10-19  Simon Josefsson  <jas@extundo.com>
34258
34259         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34260
34261 2005-10-19  Simon Josefsson  <jas@extundo.com>
34262
34263         * lib/gc-gnulib.c: Support ARCFOUR.
34264
34265 2005-10-19  Simon Josefsson  <jas@extundo.com>
34266
34267         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34268         support.
34269
34270         * lib/gc.h: Add ECB enum type.
34271
34272         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34273
34274 2005-10-18  Simon Josefsson  <jas@extundo.com>
34275
34276         * tests/test-md5.c: New file.
34277
34278         * modules/md5-tests: New file.
34279
34280 2005-10-18  Simon Josefsson  <jas@extundo.com>
34281
34282         * tests/test-md4.c: New file.
34283
34284         * modules/md4, modules/md4-tests: New files.
34285
34286 2005-10-18  Simon Josefsson  <jas@extundo.com>
34287
34288         * m4/md4.m4: New file.
34289
34290 2005-10-18  Simon Josefsson  <jas@extundo.com>
34291
34292         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34293
34294 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34295
34296         * gnulib-tool (func_create_testdir): Omit the second check whether
34297         BUILT_SOURCES in nonempty.
34298
34299 2005-10-17  Simon Josefsson  <jas@extundo.com>
34300
34301         * tests/test-rijndael.c: New file.
34302
34303 2005-10-17  Simon Josefsson  <jas@extundo.com>
34304
34305         * modules/sha1: Depend on stdint instead of md5.
34306
34307         * modules/md5: Depend on stdint, remove uint32_t.
34308
34309 2005-10-17  Simon Josefsson  <jas@extundo.com>
34310
34311         * modules/gc-sha1-tests: New file.
34312
34313         * tests/test-gc-sha1.c: New file.
34314
34315 2005-10-17  Simon Josefsson  <jas@extundo.com>
34316
34317         * m4/md5.m4: Remove call to uint32_t.m4.
34318
34319 2005-10-17  Simon Josefsson  <jas@extundo.com>
34320
34321         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34322
34323         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34324         md5.h.
34325
34326         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34327
34328         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34329
34330 2005-10-17  Simon Josefsson  <jas@extundo.com>
34331
34332         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34333
34334 2005-10-17  Simon Josefsson  <jas@extundo.com>
34335
34336         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34337
34338 2005-10-17  Simon Josefsson  <jas@extundo.com>
34339
34340         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34341
34342         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34343
34344 2005-10-17  Bruno Haible  <bruno@clisp.org>
34345
34346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34347         that it can also be used in a test.
34348
34349 2005-10-16  Bruno Haible  <bruno@clisp.org>
34350
34351         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34352         TESTS_ENVIRONMENT, so that individual tests can augment it.
34353
34354         * gnulib-tool (func_create_testdir): Use an intermediate target for
34355         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34356         macros, like $(ALLOCA_H), which cannot be passed through the command
34357         line.
34358
34359 2005-10-15  Simon Josefsson  <jas@extundo.com>
34360
34361         * modules/rijndael-tests: New file.
34362
34363         * modules/rijndael: New file.
34364
34365 2005-10-15  Simon Josefsson  <jas@extundo.com>
34366
34367         * m4/rijndael.m4: New file.
34368
34369 2005-10-15  Simon Josefsson  <jas@extundo.com>
34370
34371         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34372
34373         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34374
34375 2005-10-14  Simon Josefsson  <jas@extundo.com>
34376
34377         * tests/test-arcfour.c: New file.
34378
34379         * modules/arcfour, modules/arcfour-tests: New files.
34380
34381 2005-10-14  Simon Josefsson  <jas@extundo.com>
34382
34383         * m4/arcfour.m4: New file.
34384
34385 2005-10-14  Simon Josefsson  <jas@extundo.com>
34386
34387         * lib/arcfour.h, lib/arcfour.c: New files.
34388
34389 2005-10-14  Roland McGrath  <roland@redhat.com>
34390
34391         Import from libc.  [BZ #1331]
34392         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34393         macro argument.
34394         Reported by Matej Vela <vela@debian.org>.
34395
34396 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34397
34398         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34399         include <wchar.h>; no longer needed.
34400
34401 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34402
34403         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34404
34405 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34406         and  Ulrich Drepper  <drepper@redhat.com>
34407
34408         Import from libc.
34409         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34410         instead of inline stream orientation test and two separate
34411         function calls.  Pay no attention to USE_IN_LIBIO.
34412
34413 2005-10-13  Simon Josefsson  <jas@extundo.com>
34414
34415         * modules/gc-hmac-md5-tests: New file.
34416
34417         * tests/test-gc-hmac-sha1.c: New file.
34418
34419         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34420
34421         * modules/gc-hmac-md5-tests: New file.
34422
34423         * tests/test-gc-md5.c: New file.
34424
34425         * modules/gc-md5-tests: New file.
34426
34427 2005-10-13  Simon Josefsson  <jas@extundo.com>
34428
34429         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34430         Move memory allocation outside of loop.
34431
34432 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34433
34434         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34435         intermediate directory is in a read-only file system.  Problem
34436         reported by Eric Blake.
34437
34438 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34439
34440         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34441
34442 2005-10-12  Simon Josefsson  <jas@extundo.com>
34443
34444         * tests/test-hmac-sha1.c: New file.
34445
34446         * modules/hmac-sha1-tests: New file.
34447
34448         * modules/hmac-sha1: New file.
34449
34450 2005-10-12  Simon Josefsson  <jas@extundo.com>
34451
34452         * modules/gc-sha1: New file.
34453
34454 2005-10-12  Simon Josefsson  <jas@extundo.com>
34455
34456         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34457
34458         * tests/test-gc-pbkdf2-sha1.c: New file.
34459
34460 2005-10-12  Simon Josefsson  <jas@extundo.com>
34461
34462         * modules/gc-md5, modules/gc-hmac-md5: New files.
34463
34464         * modules/gc (Files): Remove md5, memxor and hmac files.
34465
34466 2005-10-12  Simon Josefsson  <jas@extundo.com>
34467
34468         * m4/gc-pbkdf2-sha1.m4: New file.
34469
34470         * m4/gc-hmac-sha1.m4: New file.
34471
34472         * m4/gc-sha1: New file.
34473
34474         * m4/hmac-sha1.m4: New file.
34475
34476 2005-10-12  Simon Josefsson  <jas@extundo.com>
34477
34478         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34479
34480         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34481
34482 2005-10-12  Simon Josefsson  <jas@extundo.com>
34483
34484         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34485         suggested by Bruno Haible <bruno@clisp.org>.
34486
34487 2005-10-12  Simon Josefsson  <jas@extundo.com>
34488
34489         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34490
34491 2005-10-12  Simon Josefsson  <jas@extundo.com>
34492
34493         * lib/gc-pbkdf2-sha1.c: New file.
34494
34495         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34496
34497 2005-10-12  Simon Josefsson  <jas@extundo.com>
34498
34499         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34500
34501         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34502
34503 2005-10-12  Simon Josefsson  <jas@extundo.com>
34504
34505         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34506         GC_USE_HMAC_MD5, respectively.
34507
34508         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34509         (gc_md5): Fix typo.
34510
34511         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34512
34513         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34514
34515         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34516
34517 2005-10-12  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34520         Reported by Stepan Kasal <kasal@ucw.cz>.
34521
34522 2005-10-11  Simon Josefsson  <jas@extundo.com>
34523
34524         * tests/test-crc.c: New file.
34525
34526         * modules/crc, modules/crc-tests: New files.
34527
34528 2005-10-11  Simon Josefsson  <jas@extundo.com>
34529
34530         * m4/crc.m4: New file.
34531
34532 2005-10-11  Simon Josefsson  <jas@extundo.com>
34533
34534         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34535
34536         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34537
34538         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34539
34540 2005-10-11  Simon Josefsson  <jas@extundo.com>
34541
34542         * lib/crc.h, lib/crc.c: New files.
34543
34544         * lib/gc.h (gc_hash_buffer): Add doc.
34545
34546 2005-10-11  Bruno Haible  <bruno@clisp.org>
34547
34548         * modules/c-strcasestr: New file.
34549         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34550
34551 2005-10-11  Bruno Haible  <bruno@clisp.org>
34552
34553         * modules/c-strcase: New file.
34554         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34555
34556 2005-10-11  Bruno Haible  <bruno@clisp.org>
34557
34558         * lib/strcasecmp.c: Include limits.h.
34559         (strcasecmp): Avoid integer overflow on exotic platforms.
34560         * lib/strncasecmp.c: Include limits.h.
34561         (strncasecmp): Avoid integer overflow on exotic platforms.
34562         Reported by Paul Eggert.
34563
34564 2005-10-11  Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/c-strcasestr.h: New file, from GNU gettext.
34567         * lib/c-strcasestr.c: New file, from GNU gettext.
34568
34569 2005-10-11  Bruno Haible  <bruno@clisp.org>
34570
34571         * lib/c-strcase.h: New file, from GNU gettext.
34572         * lib/c-strcasecmp.c: New file, from GNU gettext.
34573         * lib/c-strncasecmp.c: New file, from GNU gettext.
34574
34575 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34576
34577         * modules/mempcpy (License): GPL -> LGPL.
34578         * modules/strchrnul (License): Likewise.
34579         * modules/sysexits (License): Likewise.
34580
34581 2005-10-08  Simon Josefsson  <jas@extundo.com>
34582
34583         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34584
34585 2005-10-07  Simon Josefsson  <jas@extundo.com>
34586
34587         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34588
34589 2005-10-06  Simon Josefsson  <jas@extundo.com>
34590
34591         * tests/test-hmac-md5.c: New file.
34592
34593         * modules/hmac-md5-tests: New file.
34594
34595         * modules/hmac-md5: New file.
34596
34597 2005-10-06  Simon Josefsson  <jas@extundo.com>
34598
34599         * m4/hmac-md5.m4: New file.
34600
34601         * m4/memxor.m4: Require gl_C_RESTRICT.
34602
34603 2005-10-06  Simon Josefsson  <jas@extundo.com>
34604
34605         * lib/memxor.c (memxor): Avoid casts and warnings.
34606
34607 2005-10-06  Simon Josefsson  <jas@extundo.com>
34608
34609         * lib/hmac-md5.c: New file.
34610
34611         * lib/hmac.h: New file.
34612
34613 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34614
34615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34616         promotes to int, not unsigned int, to catch the AIX 5.3
34617         compiler bug.
34618
34619 2005-10-05  Simon Josefsson  <jas@extundo.com>
34620
34621         * modules/memxor: New file.
34622
34623         * modules/iconv (Files): Move config.rpath to havelib, it is used
34624         there.
34625
34626         * modules/havelib (Files): Add config.rpath.
34627
34628 2005-10-05  Simon Josefsson  <jas@extundo.com>
34629
34630         * m4/memxor.m4: New file.
34631
34632 2005-10-05  Simon Josefsson  <jas@extundo.com>
34633
34634         * lib/memxor.c (memxor): Fix compiler error.
34635
34636         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34637         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34638
34639         * lib/memxor.h, lib/memxor.c: New files.
34640
34641         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34642         we assume all systems have it, suggested by Jim Meyering
34643         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
34644         any systems lack sys/socket.h; mingw32 is known to lack it, but we
34645         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
34646         same reasons.
34647
34648 2005-10-05  Simon Josefsson  <jas@extundo.com>
34649
34650         * config/srclist.txt: Add glibc bug 1423 for md5.h.
34651
34652 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
34653
34654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34655         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34656         needed, since the source code now assumes these .h files.
34657
34658 2005-10-05  Derek Price  <derek@ximbiot.com>
34659
34660         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34661
34662 2005-10-05  Bruno Haible  <bruno@clisp.org>
34663
34664         * modules/stdint (License): Change to LGPL.
34665
34666 2005-10-04  Simon Josefsson  <jas@extundo.com>
34667
34668         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34669         D. Baushke" <mdb@gnu.org>.
34670
34671 2005-10-04  Bruno Haible  <bruno@clisp.org>
34672
34673         * lib/verify.h (verify_true): Provide alternative definition for C++.
34674
34675 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
34676
34677         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
34678         (SSIZE_MAX): New macro, if not already defined.
34679         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34680         than 2 GiB.
34681
34682 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34683
34684         Sync from coreutils.
34685         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34686         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34687         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
34688         ULLONG_MAX doesn't work with 2.7.2.1.
34689
34690 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34691
34692         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34693         From Ben Pfaff.
34694
34695         * modules/exclude (Depends-on): Depend on verify.
34696         * modules/strtoimax (Depends-on): Likewise.
34697         * modules/utimecmp (Depends-on): Likewise.
34698
34699 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34700
34701         * lib/exclude.c: Include verify.h.
34702         (verify): Remove.  All callers changed to use verify.h's version.
34703         * lib/strtoimax.c: Likewise.
34704         * lib/utimecmp.c: Likewis.e
34705
34706         Sync from coreutils.
34707         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34708         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34709         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34710         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
34711         bother returning ENOSYS if settimeofday or stime fails; just let
34712         them return whatever errno they want to return.
34713         * lib/utimens.c: Include unistd.h, for dup2.
34714         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34715         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34716
34717 2005-10-02  Jim Meyering  <jim@meyering.net>
34718
34719         Sync from coreutils.
34720         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34721         from glibc-2.2.5 that fails for read-only files.
34722
34723 2005-10-02  Jim Meyering  <jim@meyering.net>
34724
34725         Sync from coreutils.
34726         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34727         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34728         `#if HAVE_CONFIG_H'.
34729         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34730         Remove AT_FDCWD test.
34731         Do not consume the fd unless successful.
34732         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34733         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34734         block, so that we don't even try to compile it if settimeofday is
34735         available.  This works around a compilation failure on OSF1 V5.1,
34736         due to stime requiring a `long int*' while tv_sec is `int'.
34737
34738 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
34739
34740         Sync from coreutils.
34741         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34742         against `yes', rather than just testing for nonempty.
34743
34744 2005-10-01  Simon Josefsson  <jas@extundo.com>
34745
34746         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
34747         and Darwin.
34748
34749         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
34750         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
34751         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
34752         freeaddrinfo and gai_strerror are declared by the POSIX headers.
34753         Check if struct addrinfo is declared.
34754
34755 2005-10-01  Simon Josefsson  <jas@extundo.com>
34756
34757         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
34758         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
34759         AI_* and EAI_* definitions.  Protect function declarations.
34760
34761 2005-10-01  Jim Meyering  <jim@meyering.net>
34762
34763         Sync from coreutils.
34764
34765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
34766         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
34767         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
34768         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34769         in the inet and nsl libraries.  Required on Solaris 5.7.
34770
34771 2005-10-01  Jim Meyering  <jim@meyering.net>
34772
34773         Sync from coreutils.
34774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34775         in the inet and nsl libraries.  Required on Solaris 5.7.
34776
34777 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
34778
34779         * lib/getdelim.c (getdelim): Remove unused variables.
34780
34781 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34782
34783         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
34784         so that the code works even with ancient cpp.  Portability problem
34785         with GCC 2.7.2.1 reported by Thomas M.Ott.
34786
34787 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34788
34789         * modules/regex (Depends-on): Add strcase.
34790
34791         * modules/gethostname (Licence): Change from GPL to LGPL, since
34792         gethostname.c is a trivial implementation of a standard library
34793         function.
34794         * modules/poll (License): Change from GPL to LGPL, since it's
34795         derived from LGPL code.
34796
34797 2005-09-27  Jim Meyering  <jim@meyering.net>
34798
34799         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
34800         HAVE_CONFIG_H.
34801
34802         * lib/intprops.h (signed_type_or_expr__): Define.
34803         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
34804         for unsigned types.
34805
34806 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34807
34808         * lib/verify.h (verify_expr): Remove, replacing with:
34809         (verify_true): New macro that returns true instead of void.
34810         (verify_type__): Remove.
34811         (verify): Use verify_true rather than verify_type__.
34812
34813 2005-09-26  Bruno Haible  <bruno@clisp.org>
34814
34815         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
34816         is necessary.
34817         (lib_SOURCES): Remove mbchar.c.
34818         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
34819         (Files): Add m4/mbrtowc.m4.
34820         * modules/mbiter: Likewise.
34821         * modules/mbuiter: Likewise.
34822
34823 2005-09-26  Bruno Haible  <bruno@clisp.org>
34824
34825         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
34826         compile mbchar.c if they are not both present.
34827         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
34828         * m4/mbiter.m4 (gl_MBITER): Likewise.
34829         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
34830         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
34831         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
34832
34833 2005-09-25  Jim Meyering  <jim@meyering.net>
34834
34835         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
34836         also uses socklen_t.
34837
34838 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34839
34840         * lib/utimens.c (ENOSYS): Define if not already defined.
34841         (futimens): Support having a null PATH if the file descriptor
34842         is nonnegative.
34843
34844         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
34845         Remove.
34846         (__attribute): Define to empty unless GCC 3.1 or later.
34847         This works around a core dump on OpenBSD 3.4, which has GCC
34848         2.95.3, which dumps core when given __attribute__(()).  It also
34849         simplifies other tests, since we really don't want to bother with
34850         worrying about which ancient version of GCC supported what.
34851         Original problem reported by Yoann Vandoorselaere, with part of
34852         the fix suggested by Derek Price.
34853
34854 2005-09-24  Jim Meyering  <jim@meyering.net>
34855
34856         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
34857         so we can once again use a positive bitfield width of 1 -- now we
34858         don't have to explain why we were using a bitfield width of 2.
34859
34860 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34861
34862         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
34863         and similarly for the other external symbols.  Problem reported
34864         by James Gallager.
34865
34866         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
34867         bug reported by Jim Meyering.
34868
34869         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
34870         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
34871         not needed, since socklen is a prerequisite module.
34872
34873 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
34876         Problem reported by Eric Blake.
34877         (getaddrinfo): Initialize se so that it's not garbage.
34878         Redo internal storage allocation so that it doesn't make unportable
34879         assumptions about alignment.
34880         Fix a memory leak.
34881
34882         * lib/utimens.c (futimens): Use futimesat if available.
34883         Prefer it to futimes since it doesn't have the futimes bug.
34884
34885         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
34886         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
34887         Instead, declare a function that returns a pointer to an array,
34888         and use verify_type__ to declare the size of the array.
34889         Problem and germ of a solution reported by Bruno Haible.
34890         (verify_type__): Use 2, not 1, for bitfield size, to avoid
34891         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
34892
34893 2005-09-23  Jim Meyering  <jim@meyering.net>
34894
34895         Sync from coreutils.
34896         Correct build failure (socklen_t not defined) on at least
34897         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
34898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
34899
34900 2005-09-23  Jim Meyering  <jim@meyering.net>
34901
34902         * modules/getaddrinfo (Depends-on): Add socklen.
34903
34904 2005-09-23  Bruno Haible  <bruno@clisp.org>
34905
34906         * tests/test-verify.c: New file.
34907
34908 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34909
34910         Sync from coreutils.
34911
34912         * modules/argmatch (Depends-on): Add verify.
34913         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
34914         unistd-safer.
34915         * modules/save-cwd (Depends-on): Likewise.
34916
34917         * modules/openat (Files): Add lib/openat-die.c.
34918         (Depends-on): Remove error, exitfail.
34919         Add dirname.
34920
34921         * modules/verify: New file.
34922         * MODULES.html.sh (Diagnostics <assert.h>): New section,
34923         with "verify" module.
34924
34925 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34926
34927         Sync from coreutils.
34928
34929         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
34930         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
34931         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
34932         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
34933         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
34934         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
34935         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
34936         Don't bother checking for string.h, stdlib.h, unistd.h.
34937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
34938         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
34939         module's job.
34940         * m4/jm-macros.m4 (gl_MACROS): Likewise.
34941         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
34942
34943         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
34944         (gl_GETDATE): Use it.
34945
34946         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
34947
34948 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34949
34950         Sync from coreutils.
34951
34952         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
34953         stat-time.h.
34954         * lib/argmatch.h: Include verify.h
34955         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
34956         (ARGMATCH_ASSERT): Remove; unused.
34957         * lib/canonicalize.c: Assume STDC_HEADERS.
34958         * lib/exclude.c: Include "strcase.h".
34959         * lib/regex_internal.h [!defined _LIBC]: Likewise.
34960         * lib/getusershell.c: Include stdio--.h rather than stdio.h
34961         and stdio-safer.h.
34962         (getusershell): Call fopen, not fopen_safer.
34963         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
34964         Do not include unistd-safer.h.
34965         (save_cwd): Don't call fd_safer; no longer needed
34966         now that we include fcntl--.h.
34967
34968         * lib/getdate.y (relative_time): New type.
34969         (RELATIVE_TIME_0): New constant.
34970         (parser_control): Use relative_time instead of doing it ourselves.
34971         (%union): Add new relative_time rel member.
34972         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
34973         Now typeless.
34974         (relunit, relunit_snumber): Now of type rel.
34975         (zone, rel, relunit, get_date): Adjust to above changes.
34976
34977         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
34978         Do not include unistd-safer.h.
34979         (getloadavg): Don't call fd_safer; no longer needed
34980         now that we include fcntl--.h.
34981
34982         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
34983         (make_dir_parents): Treat ENOSYS like EEXIST.
34984
34985         Improve quality of diagnostics on restore_cwd failure.
34986         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
34987         (make_dir_parents): Last arg is now int * (for errno), not bool *.
34988         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
34989         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
34990         each time through the loop.  Do not diagnose restore_cwd failure;
34991         that is the caller's job (and perhaps the caller does not care).
34992
34993         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
34994         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
34995         If the file already exists but is not a directory, don't bother
34996         to try to make its parents.
34997         Close potential file descriptor leak if we can't chdir("/") (!).
34998         Don't always return true if chdir($PWD) fails; return true only
34999         if the requested action was done successfully (except for the
35000         chdir($PWD)).
35001         Don't log final directory unless we actually made it.
35002         Refactor to avoid duplicate code to fix up permissions.
35003         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35004
35005         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35006         to make it a bit faster and (I hope) clearer.
35007         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35008         Fix bug in formats like %2N.
35009
35010         * lib/verify.h: New file.
35011
35012 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35013
35014         Sync from coreutils.
35015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35016
35017 2005-09-22  Jim Meyering  <jim@meyering.net>
35018
35019         Sync from coreutils.
35020
35021         * m4/lstat.m4 (gl_FUNC_LSTAT):
35022         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35023         Remove obsolete comment.
35024         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35025         * m4/xstrtod.m4: Likewise.
35026
35027         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35028
35029 2005-09-22  Jim Meyering  <jim@meyering.net>
35030
35031         Sync from coreutils.
35032
35033         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35034
35035         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35036         the .tm_year member, since otherwise gcc-4.0 would now warn about
35037         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35038
35039         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35040         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35041
35042         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35043         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35044         when run in a time zone for which daylight savings time is in effect
35045         for the starting date.
35046
35047         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35048         stop us from restricting permissions of just-created absolute-named
35049         directories.
35050         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35051         to restore initial working directory.
35052         * lib/mkdir-p.c (make_dir_parents): New parameter:
35053         different_working_dir, to tell caller if/when we change the working
35054         directory and are unable to return to the initial one.
35055         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35056         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35057         `return false'.  This fixes a bug introduced on 2004-07-30.
35058
35059         * lib/openat.c (fdopendir): Be sure to close the supplied
35060         file descriptor before returning.  This makes our replacement
35061         implementation a little closer to Solaris's, where fdopendir
35062         ties the file descriptor to the returned DIR* pointer.
35063         * lib/openat.c (unlinkat): New function.
35064         * lib/openat.h (unlinkat): Add prototype.
35065         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35066         (openat_restore_fail): Rename from openat_restore_die.
35067         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35068
35069         Provide an alternative to exiting immediately upon save_cwd or
35070         restore_cwd failure.  Now, an application can arrange e.g.,
35071         to perform a longjump in that case.
35072         * lib/openat.c: Include dirname.h.
35073         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35074         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35075         and openat_restore_die rather than calling error directly.
35076         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35077
35078         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35079         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35080         define.
35081
35082         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35083         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35084                             int utc, int nanoseconds);
35085         Background:
35086         date should not have to allocate a megabyte of virtual memory to
35087         handle a format argument like +%1048575T.  When implemented with
35088         strftime, it must allocate such a buffer, use strftime to fill it
35089         in, print it, then free it.
35090         With fprintftime, it simply prints everything and exits.
35091         With no need for memory allocation, that's one fewer way to fail.
35092         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35093         optional field width, not before, so we accept %9:z, not %:9z.
35094         (my_strftime): Be sure to use L_('x') for literals.
35095
35096         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35097         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35098         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35099         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35100         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35101         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35102         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35103         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35104         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35105         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35106         * lib/xgethostname.c, lib/xreadlink.c:
35107         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35108
35109         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35110         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35111         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35112         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35113         and don't include <sys/file.h>).
35114
35115 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35116
35117         Sync from coreutils.
35118
35119         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35120         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35121         [!LDAV_DONE]: Avoid unused variable warning.
35122
35123 2005-09-21  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/unicodeio.h (unicode_to_mb): New declaration.
35126
35127 2005-09-20  Derek Price  <derek@ximbiot.com>
35128
35129         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35130         getaddrinfo.h.
35131
35132 2005-09-20  Bruno Haible  <bruno@clisp.org>
35133
35134         * gnulib-tool: Remove trailing slashes from the values specified for
35135         --source-base, --m4-base, --tests-base, --aux-dir.
35136         Suggested by Simon Josefsson <jas@extundo.com>.
35137
35138 2005-09-20  Bruno Haible  <bruno@clisp.org>
35139
35140         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35141         func_modules_to_filelist, func_import, func_create_testdir): Make all
35142         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35143         change when gnulib-tool is invoked in a different locale.
35144
35145 2005-09-19  Simon Josefsson  <jas@extundo.com>
35146
35147         * m4/socklen.m4: Fix typo.
35148
35149 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35150
35151         Use a consistent style for including <config.h>.
35152         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35153         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35154         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35155         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35156         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35157         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35158         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35159         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35160         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35161         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35162         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35163         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35164         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35165         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35166         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35167         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35168         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35169         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35170         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35171         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35172         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35173         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35174         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35175         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35176         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35177         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35178         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35179         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35180         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35181         lib/xstrtoumax.c, lib/yesno.c:
35182         Standardize inclusion of config.h.
35183         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35184         lib/inttostr.h:  Removed inclusion of config.h from header files.
35185         * lib/inttostr.c:  Adjusted in-tree users.
35186         * lib/timespec.h: Remove superfluous warning to include config.h.
35187         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35188         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35189         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35190         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35191         config.h with HAVE_CONFIG_H.
35192
35193 2005-09-19  Jim Meyering  <jim@meyering.net>
35194
35195         * modules/pathmax (License): Change to LGPL.
35196
35197 2005-09-19  Derek Price  <derek@ximbiot.com>
35198
35199         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35200
35201 2005-09-19  Bruno Haible  <bruno@clisp.org>
35202
35203         * gnulib-tool (import): Provide default for --tests-base.
35204
35205 2005-09-19  Bruno Haible  <bruno@clisp.org>
35206
35207         * doc/quote.texi: New file, extracted from gnulib.texi.
35208         * doc/ctime.texi: New file, extracted from gnulib.texi.
35209         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35210         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35211         * doc/gnulib.texi: Include them.
35212
35213 2005-09-18  Bruno Haible  <bruno@clisp.org>
35214
35215         Portability fix.
35216         * gnulib-tool (func_readlink): New function.
35217         (func_ln_if_changed): Use it.
35218
35219 2005-09-18  Bruno Haible  <bruno@clisp.org>
35220
35221         * gnulib-tool: Support --with-tests also with --import.
35222         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35223         (func_import): Use variables $testsbase and $inctests. Emit a
35224         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35225         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35226         SUBDIRS += $testsdir.
35227         (func_create_testdir): Update.
35228
35229 2005-09-18  Bruno Haible  <bruno@clisp.org>
35230
35231         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35232         instead of $dry_run.
35233         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35234         (func_ln_if_changed): Don't handle dry-run here.
35235         (func_import): In dry-run mode, detect more precisely which actions
35236         would be performed, and don't use "...ing" verbs.
35237
35238 2005-09-18  Bruno Haible  <bruno@clisp.org>
35239
35240         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35241         (func_import): Use join on two temporary files instead of three nested
35242         loops, in order to determine which files are new or old.
35243
35244 2005-09-18  Bruno Haible  <bruno@clisp.org>
35245
35246         * gnulib-tool (func_import): Comment out code that spits out the
35247         new files with --dry-run.
35248
35249 2005-09-18  Bruno Haible  <bruno@clisp.org>
35250
35251         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35252
35253 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35254
35255         * lib/stat-time.h: New file.
35256         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35257         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35258         in a different way.
35259         (timespec_cmp): New function.
35260         * lib/utimecmp.c: Include stat-time.h.
35261         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35262         members exist, not on the obsolescent ST_MTIM_NSEC.
35263         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35264
35265 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35266
35267         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35268
35269 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35270
35271         * MODULES.html.sh (File system functions): Add stat-time.
35272         * modules/stat-time: New file.
35273         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35274         is now done in a different way, by the stat-time module.
35275         * modules/utimecmp (Depends-on): Add stat-time.
35276
35277 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35278
35279         * m4/st_mtim.m4: Remove.  Superseded by...
35280         * m4/stat-time.m4: New file.
35281         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35282         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35283
35284 2005-09-15  Derek Price  <derek@ximbiot.com>
35285
35286         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35287
35288 2005-09-15  Derek Price  <derek@ximbiot.com>
35289
35290         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35291         * lib/regex_internal.c: Ditto, using this...
35292         (__GNUC_PREREQ): ...new macro.
35293         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35294         using...
35295         (__GNUC_PREREQ): ...this new macro.
35296
35297         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35298
35299 2005-09-15  Derek Price  <derek@ximbiot.com>
35300             Paul Eggert  <eggert@cs.ucla.edu>
35301
35302         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35303         changes, consolidating in...
35304         * lib/regex_internal.h: ...this file.
35305
35306 2005-09-13  Jim Meyering  <jim@meyering.net>
35307
35308         * lib/canon-host.c: Filter through gnu indent and reword comments
35309         slightly.
35310         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35311
35312 2005-09-13  Derek Price  <derek@ximbiot.com>
35313
35314         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35315         failure.
35316         Reported by Jim Meyering  <jim@meyering.net>.
35317
35318 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35319
35320         * lib/base64.c: Typo.
35321         (base64_encode): Put b64str in initialized data section.
35322
35323 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35324
35325         Merge glibc and coreutils changes into gnulib, plus a few
35326         extra fixes.
35327         * lib/md5.c: Use #error rather than a string.
35328         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35329         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35330         (__attribute__): Define to empty for non recent-GCC.
35331         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35332         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35333         Renamed from their non-__ counterparts, with new macros replacing
35334         them if not _LIBC.  Add __THROW attribute.
35335         (rol): Remove.
35336         (struct md5_ctx): Align buffer if using GCC.
35337         * lib/sha1.h (struct sha1_ctx): Likewise.
35338         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35339         The old name was backwards.
35340         (NOTSWAP): Remove; not used.
35341         (rol): New macro, moved here from md5.h.
35342         (sha1_process_block): Remove a FIXME that doesn't make sense.
35343
35344 2005-09-12  Derek Price  <derek@ximbiot.com>
35345
35346         Return usable errors from canon-host.
35347         * lib/canon-host.h: New file.
35348         * lib/canon-host.c (canon_host): Wrap...
35349         (canon_host_r): ...this new function, which now relies exclusively on
35350         getaddrinfo.
35351         (ch_strerror): New function.
35352         (last_cherror): New global.
35353         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35354         interface.
35355         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35356         void *.
35357         (freeaddrinfo): Free ai->ai_canonname when set.
35358
35359 2005-09-12  Derek Price  <derek@ximbiot.com>
35360
35361         Make canon-host require getaddrinfo.
35362         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35363         AC_LIBSOURCE canon-host.h.  Call...
35364         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35365         gl_GETADDRINFO.
35366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35367
35368 2005-09-12  Derek Price  <derek@ximbiot.com>
35369
35370         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35371         LGPL.
35372         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35373
35374 2005-09-12  Derek Price  <derek@ximbiot.com>
35375
35376         * lib/gai_strerror.c: Include config.h when available.  Include
35377         getaddrinfo.h before other headers to test interface.
35378         Reported by Larry Jones <lawrence.jones@ugs.com>.
35379
35380 2005-09-12  Derek Price  <derek@ximbiot.com>
35381             Paul Eggert  <eggert@cs.ucla.edu>
35382
35383         * modules/glob (Files): Add glob-libc.h.
35384
35385 2005-09-12  Derek Price  <derek@ximbiot.com>
35386             Paul Eggert  <eggert@cs.ucla.edu>
35387
35388         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35389         glob_.h, glob-libc.h.
35390         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35391
35392 2005-09-12  Derek Price  <derek@ximbiot.com>
35393             Paul Eggert  <eggert@cs.ucla.edu>
35394
35395         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35396         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35397         protecting things that should be done only in gnulib contexts.
35398         * lib/glob_.h: New file, containing only the glob things needed for
35399         gnulib.
35400         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35401         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35402         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35403         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35404         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35405         and to respect the namespace rules better.
35406
35407 2005-09-08  Simon Josefsson  <jas@extundo.com>
35408
35409         * modules/socklen: New file.
35410
35411 2005-09-08  Simon Josefsson  <jas@extundo.com>
35412
35413         * m4/socklen.m4: New file.
35414
35415 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35416
35417         * modules/utimens (Files): Add m4/utimbuf.m4, since
35418         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35419         Reported by Sergey Poznyakoff.
35420
35421 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35422
35423         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35424         definitions, since that's the preferred style in glibc.
35425         Fix a minor spacing issue, and update copyright notice to match
35426         glibc's.
35427
35428 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35429
35430         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35431
35432 2005-09-06  Simon Josefsson  <jas@extundo.com>
35433
35434         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35435         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35436
35437 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35438
35439         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35440         warning.
35441
35442 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35443
35444         * config/srclist.txt: Add glibc bug 1302.
35445
35446 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35447
35448         Change bitset word type from unsigned int to unsigned long int,
35449         as this has better performance on typical 64-bit hosts.
35450         Port bitset code to hosts with unusual word sizes.
35451         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35452         (build_collating_symbol):
35453         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35454         argument is a bitset.  This is merely a style issue, but it makes
35455         it clearer that an entire array is expected.
35456         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35457         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35458         Port to the case where bitset_word is not the same as unsigned int.
35459         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35460         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35461         Likewise.
35462         * lib/regexec.c (check_dst_limits_calc_pos_1,
35463         check_subexp_matching_top):
35464         (build_trtable, group_nodes_into_DFAstates):
35465         Likewise.
35466         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35467         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35468         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35469         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35470         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35471         * lib/regcomp.c (optimize_subexps, lower_subexp):
35472         Work even if bitset_word has holes in its bitwise representation.
35473         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35474         * lib/regexec.c (check_dst_limits_calc_pos_1,
35475         check_subexp_matching_top):
35476         Likewise.
35477         * lib/regex_internal.c (re_string_reconstruct):
35478         Don't assume UCHAR_MAX == 255.
35479         * lib/regex_internal.h (bitset_set_all): Likewise.
35480         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35481         All uses changed.
35482         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35483         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35484         All uses changed.
35485         (BITSET_WORD_MAX): New macro.
35486         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35487         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35488         (bitset_empty, bitset_copy):
35489         Prefer sizeof (bitset) to multiplying it out ourselves.
35490         (bitset_not_merge): Remove; unused.
35491         (bitset_contain): Return bool, not unsigned int with one bit on.
35492         All callers changed.
35493         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35494         alignment than re_node_set; do this by defining a new internal
35495         type struct dests_alloc and using it to allocate memory.
35496
35497 2005-09-05  Bruno Haible  <bruno@clisp.org>
35498
35499         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35500         links.
35501
35502 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35503
35504         * modules/size_max (Makefile.am): Add size_max.h
35505
35506 2005-09-04  Derek Price  <derek@ximbiot.com>
35507
35508         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35509
35510 2005-09-03  Simon Josefsson  <jas@extundo.com>
35511
35512         * gnulib-tool: Fix typo.
35513
35514 2005-09-03  Simon Josefsson  <jas@extundo.com>
35515
35516         * config/srclist.txt: Add glibc bug 1293.
35517
35518 2005-09-03  Derek Price  <derek@ximbiot.com>
35519
35520         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35521         From Larry Jones <lawrence.jones@ugs.com>.
35522
35523 2005-09-02  Simon Josefsson  <jas@extundo.com>
35524
35525         * modules/socklen: New file.
35526
35527 2005-09-02  Simon Josefsson  <jas@extundo.com>
35528
35529         * modules/havelib: New module.
35530
35531         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35532         Use havelib.
35533
35534 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35535
35536         Check for arithmetic overflow when calculating sizes, to prevent
35537         some buffer-overflow issues.  These patches are conservative, in the
35538         sense that when I couldn't determine whether an overflow was possible,
35539         I inserted a run-time check.
35540         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35541         macros.
35542         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35543         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35544         (re_xnrealloc, re_x2nrealloc): New inline functions.
35545         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35546         parse_bracket_exp):
35547         (build_equiv_class, build_charclass): Check for arithmetic overflow
35548         in size expression calculations.
35549         * lib/regex_internal.c (re_string_realloc_buffers):
35550         (build_wcs_upper_buffer, re_node_set_add_intersect):
35551         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35552         (re_dfa_add_node, register_state): Likewise.
35553         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35554         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35555         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35556         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35557
35558 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35559
35560         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35561         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35562
35563 2005-09-02  Bruno Haible  <bruno@clisp.org>
35564
35565         Support for lib vs. lib64 distinction on biarch platforms.
35566         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35567         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35569
35570 2005-09-02  Bruno Haible  <bruno@clisp.org>
35571
35572         * gnulib-tool (import): In the other first-use case, provide defaults
35573         as well.
35574
35575 2005-09-02  Bruno Haible  <bruno@clisp.org>
35576
35577         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35578         patches not yet found in the latest gettext release.
35579
35580 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35581
35582         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35583         to avoid a collision with bits/local_lim.h in glibc.
35584         All uses changed.  Problem reported by Dmitry V. Levin in
35585         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35586
35587         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35588         bugs in int versus size_t comparisons.
35589         (re_string_context_at): Fix bug where the code assumed that
35590         Idx is signed.
35591
35592         Use bool where appropriate.
35593         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35594         All callers changed.
35595         (calc_eclosure_iter): Likewise, for ROOT arg.
35596         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35597         (build_charclass_op): Likewise, for NON_MATCH arg.
35598         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35599         (re_string_construct_common): Likewise, for ICASE arg.
35600         * lib/regexec.c (re_search_2_stub, re_search_stub):
35601         Likewise, for RET_LEN arg.
35602         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35603         (set_regs): Likewise, for FL_BACKTRACK arg.
35604         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35605         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35606         (calc_eclosure_iter, parse_bracket_exp):
35607         Use bool for internal variables that are booleans.
35608         * lib/regexec.c (re_search_internal, check_matching,
35609         proceed_next_node):
35610         (set_regs, build_sifted_states, sift_states_bkref):
35611         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35612         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35613         (find_collation_sequence_value):
35614         Likewise.
35615         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35616         (re_node_set_compare):
35617         Return bool, not int. All callers changed.
35618         * lib/regexec.c (check_halt_node_context, check_dst_limits):
35619         (build_trtable, check_node_accept): Likewise.
35620         * lib/regex_internal.h: Include stdbool.h.
35621
35622         Fix bugs uncovered when converting to bool.
35623         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35624         failure instead of charging ahead blindly.
35625         * lib/regex_internal.c (register_state): Likewise.
35626         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35627         for freeing internal storage.
35628         (group_nodes_into_DFA_states): Use unsigned int, not int, for
35629         bitset pieces used as boolean, to avoid undefined behavior
35630         on hosts that do int overflow checking.
35631
35632 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35633
35634         * config/srclist.txt: Add glibc bugs 1285-1287.
35635
35636 2005-09-01  Jim Meyering  <jim@meyering.net>
35637
35638         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35639         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35640         Require gl_STAT_MACROS, too.
35641
35642 2005-09-01  Bruno Haible  <bruno@clisp.org>
35643
35644         * gnulib-tool (import): In the first-use case, provide defaults.
35645
35646 2005-09-01  Bruno Haible  <bruno@clisp.org>
35647
35648         * gnulib-tool (func_import): Remove the .tmp files.
35649
35650 2005-09-01  Bruno Haible  <bruno@clisp.org>
35651
35652         * gnulib-tool (func_import): Fix handling of symbolic links.
35653
35654 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35655
35656         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35657         old glibc regex code mishandles strings longer than 2**31 bytes.
35658         This patch fixes this when the regex code is used in gnulib
35659         (i.e., outside glibc).
35660
35661         This patch should not affect the use of the regex code inside
35662         glibc.  No doubt this problem also needs to be handled for glibc
35663         as well, but the result will be an incompatible change to the
35664         glibc ABI, and the old ABI will have to be supported too.  That
35665         can be the the subject for another patch.
35666
35667         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35668         governing whether the rest of this patch is active.  By default,
35669         the macro is disabled and the patch has no effect.
35670         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35671         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35672         (struct re_pattern_buffer, re_search, re_search_2, re_match):
35673         (re_match_2, re_set_registers): Use the new types.
35674         * lib/regex_internal.h (Idx, re_hashval_t): New types.
35675         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35676         New macros.
35677         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35678         (re_string_context_at, bin_tree_t, re_dfastate_t):
35679         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35680         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35681         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35682         (re_string_char_size_at, re_string_wchar_at):
35683         (re_string_elem_size_at):
35684         Use the new types and macros to port to 64-bit hosts.
35685         Use unsigned types for internal values, so that the code
35686         mostly works even for arrays larger than SSIZE_MAX.
35687         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35688         (search_duplicated_node, calc_eclosure_iter, fetch_number):
35689         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35690         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35691         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35692         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35693         (calc_inveclosure, parse_dup_op, build_range_exp):
35694         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35695         (fetch_number, create_token_tree, mark_opt_subexp):
35696         Likewise.
35697         * lib/regex_internal.c (re_string_construct_common,
35698         create_ci_newstate):
35699         (create_cd_newstate, re_string_allocate, re_string_construct):
35700         (re_string_realloc_buffers, build_wcs_upper_buffer):
35701         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35702         (re_string_reconstruct, re_string_peek_byte_case):
35703         (re_string_fetch_byte_case, re_string_context_at):
35704         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35705         (re_node_set_init_copy, re_node_set_add_intersect):
35706         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35707         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35708         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35709         (re_acquire_state, re_acquire_state_context, register_state):
35710         Likewise.
35711         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35712         search_cur_bkref_entry):
35713         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35714         (re_search_internal, re_search_2_stub, re_search_stub)
35715         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35716         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35717         (update_cur_sifted_state, check_dst_limits):
35718         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35719         (check_subexp_limits, sift_states_bkref, merge_state_array):
35720         (check_subexp_matching_top, get_subexp, get_subexp_sub):
35721         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35722         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35723         (expand_bkref_cache, check_node_accept_bytes):
35724         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35725         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35726         (acquire_init_state_context, check_halt_node_context):
35727         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35728         (sift_states_backward, clean_state_log_if_needed):
35729         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35730         (find_recover_state, transit_state_sb, transit_state_mb):
35731         (transit_state_bkref, build_trtable, match_ctx_clean):
35732         Likewise.
35733         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35734         to work around an assumption that REG_MISSING is negative.
35735
35736         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35737         (seek_collating_symbol_entry) [defined _LIBC]:
35738         (lookup_collation_sequence_value) [defined _LIBC]:
35739         (build_range_exp, build_collating_symbol) [defined _LIBC]:
35740         Use prototypes rather than old-style function definitions.
35741         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35742         (transit_state_sb) [0]:
35743         (find_collation_sequence_value) [defined _LIBC]: Likewise.
35744
35745         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
35746         rm_eo.
35747
35748         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
35749         (optimize_subexps, lower_subexp):
35750         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
35751         since the signed shift might overflow.  Use 1u<<31 instead.
35752         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35753         Likewise.
35754         * lib/regexec.c (check_dst_limits_calc_pos_1,
35755         check_subexp_matching_top): Likewise.
35756
35757         * lib/regcomp.c (optimize_subexps, lower_subexp):
35758         Use CHAR_BIT rather than 8, for clarity.
35759         * lib/regexec.c (check_dst_limits_calc_pos_1):
35760         (check_subexp_matching_top): Likewise.
35761         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
35762         have to worry about portability issues when shifting it left.
35763         Remove no-longer-needed test for table_size > 0.
35764         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
35765         in a word, as the resulting behavior is undefined.
35766         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
35767         in one case, a <= should have been an <, and in another case the
35768         whole test was missing.
35769         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
35770         the standard name CHAR_BIT.
35771         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
35772         this is not true on one's complement and signed-magnitude hosts.
35773
35774         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
35775         next_last_offset.
35776         (struct re_dfa_t): Remove unused member states_alloc.
35777         * lib/regcomp.c (init_dfa): Don't initialize unused members.
35778
35779 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35780
35781         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
35782         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
35783         and large-file glibc and in 32-bit large-file Solaris.
35784
35785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35786
35787         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
35788         lengths fit in regoff_t; this isn't true if regoff_t is the same
35789         width as size_t.
35790         * lib/regex.c (re_search_internal): 5th arg is LAST_START
35791         (= START + RANGE) instead of RANGE.  This avoids overflow
35792         problems when regoff_t is the same width as size_t.
35793         All callers changed.
35794         (re_search_2_stub): Check for overflow when adding the
35795         sizes of the two strings.
35796         (re_search_stub): Check for overflow when adding START
35797         to RANGE; if it occurs, substitute the extreme value.
35798
35799 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35800
35801         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
35802
35803 2005-08-31  Jim Meyering  <jim@meyering.net>
35804
35805         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
35806         a pointer-to-const.
35807         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
35808         (register_state): Likewise.
35809         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
35810         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35811         (group_nodes_into_DFAstates): Likewise.
35812
35813 2005-08-31  Jim Meyering  <jim@meyering.net>
35814
35815         * check-module: Add a FIXME comment.
35816
35817 2005-08-31  Eric Blake  <ebb9@byu.net>
35818
35819         * modules/unistd-safer (Files): Add unistd--.h.
35820         * modules/stdio-safer (Files): Add stdio--.h.
35821
35822 2005-08-31  Derek Price  <derek@ximbiot.com>
35823
35824         * lib/getdelim.c (getdelim): Return EOF on EOF.
35825         Reported by Larry Jones <lawrence.jones@ugs.com>.
35826
35827 2005-08-31  Bruno Haible  <bruno@clisp.org>
35828
35829         Avoid unnecessary diffs in the generated lib/Makefile.am.
35830         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
35831         the generated files.
35832         (func_import): Don't set cmd.
35833
35834 2005-08-31  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/strstr.c: Include <stddef.h>, for NULL.
35837         * lib/strcasestr.c: Likewise.
35838         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35839
35840 2005-08-31  Bruno Haible  <bruno@clisp.org>
35841
35842         * gnulib-tool: New option --macro-prefix.
35843         (func_import): Use macro_prefix.
35844         (import): Handle option --macro-prefix.
35845
35846 2005-08-31  Bruno Haible  <bruno@clisp.org>
35847
35848         * gnulib-tool (import): Rename most ac_* variables to cached_*.
35849         Also use new variables cached_lgpl, cached_libtool.
35850
35851 2005-08-31  Bruno Haible  <bruno@clisp.org>
35852
35853         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
35854         always instantiating them.
35855
35856 2005-08-31  Bruno Haible  <bruno@clisp.org>
35857
35858         * gnulib-tool (func_import): Read the previous cached settings
35859         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
35860         earlier added by gnulib but are now dropped. Warn when a gnulib file
35861         overwrites a non-gnulib file.
35862
35863 2005-08-31  Bruno Haible  <bruno@clisp.org>
35864
35865         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
35866         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
35867         projects that don't keep autogenerated files in CVS. Put into
35868         actioncmd only the specified modules, not the transitive closure.
35869
35870 2005-08-31  Bruno Haible  <bruno@clisp.org>
35871
35872         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
35873         Create directories that shall be filled.
35874         (import): Don't look for gl_* macros in configure.ac. Recurse across
35875         all directories containing a gnulib-cache.m4 files, if meaningful.
35876
35877 2005-08-31  Bruno Haible  <bruno@clisp.org>
35878
35879         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
35880         (import): Set seen_libtool when we see gl_LIBTOOL.
35881
35882 2005-08-31  Bruno Haible  <bruno@clisp.org>
35883
35884         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
35885         declaration macro definitions from generated gnulib.m4.
35886
35887 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
35888
35889         * lib/iconvme.h: Add prototype for iconv_alloc.
35890
35891 2005-08-29  Simon Josefsson  <jas@extundo.com>
35892
35893         * lib/iconvme.c: Fix errno.
35894
35895 2005-08-29  Bruno Haible  <bruno@clisp.org>
35896
35897         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
35898         that it works when the directory contains spaces.
35899
35900 2005-08-29  Bruno Haible  <bruno@clisp.org>
35901
35902         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
35903
35904 2005-08-29  Bruno Haible  <bruno@clisp.org>
35905
35906         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
35907         Emit more advice.
35908
35909 2005-08-29  Bruno Haible  <bruno@clisp.org>
35910         and Stepan Kasal  <kasal@ucw.cz>
35911
35912         * check-module: If more parameters are given, check each of them
35913         separately; add more exceptions, as noted by Jim Meyering.
35914         (check_module): New procedure.
35915         (%exempt_header): Now contains all exceptions.
35916
35917 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
35918
35919         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
35920
35921 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35922
35923         * lib/iconvme.c: Split iconv_string into iconv_alloc.
35924
35925 2005-08-28  Bruno Haible  <bruno@clisp.org>
35926
35927         * m4/gnulib-tool.m4: New file.
35928
35929 2005-08-27  Jim Meyering  <jim@meyering.net>
35930
35931         * modules/unistd-safer (Files): Add pipe-safer.c.
35932         * modules/fcntl-safer (Files): Add creat-safer.c.
35933
35934 2005-08-27  Jim Meyering  <jim@meyering.net>
35935
35936         * m4/stdlib-safer.m4: New file.  From coreutils.
35937         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
35938         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
35939         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
35940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
35941         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
35942
35943 2005-08-27  Jim Meyering  <jim@meyering.net>
35944
35945         * lib/fopen-safer.c: Merge minor changes from coreutils.
35946         * lib/dup-safer.c: Likewise.
35947         * lib/fd-safer.c: Likewise.
35948
35949         Merge from coreutils.
35950         * lib/stdio--.h: New file.
35951         * lib/stdlib--.h: New file.
35952         * lib/mkstemp-safer.c: New file.
35953
35954         GNU tar needs these.
35955         * lib/pipe-safer.c: New file.
35956         * lib/creat-safer.c: New file.
35957         * lib/fcntl--.h (creat): Define to creat_safer.
35958         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
35959         * lib/unistd--.h (pipe): Define to pipe_safer.
35960         * lib/unistd-safer.h: Declare pipe_safer.
35961
35962 2005-08-26  Simon Josefsson  <jas@extundo.com>
35963
35964         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
35965         Haible <bruno@clisp.org>.
35966
35967 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
35968
35969         * lib/regex_internal.h: Remove all references to
35970         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
35971         or better.
35972         (bitset_not, bitset_merge, bitset_not_merge):
35973         (bitset_mask, re_string_allocate, re_string_construct):
35974         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
35975         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
35976         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
35977         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
35978         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35979         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35980         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
35981         (re_acquire_state_context):
35982         Remove unnecessary forward decls.
35983         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
35984         Put __attribute at function definition,
35985         now that the function decl has been removed.
35986         * lib/regex_internal.c (re_string_peek_byte_case):
35987         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
35988         Likewise.
35989
35990 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
35991
35992         * m4/regex.m4: Add AC_PREREQ(2.50).
35993         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
35994
35995 2005-08-25  Simon Josefsson  <jas@extundo.com>
35996
35997         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
35998         __fsetlocking.
35999
36000 2005-08-25  Simon Josefsson  <jas@extundo.com>
36001
36002         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36003         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36004         GLIBC specific code.
36005
36006 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36007
36008         Make regex safe for g++.  This fixes one real bug (an "err"
36009         that should have been "*err").  g++ problem reported by
36010         Sam Steingold.
36011         * lib/regex_internal.h (re_calloc): New macro, consistent with
36012         re_malloc etc.  All callers of calloc changed to use re_calloc.
36013         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36014         not int.  All callers changed.
36015         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36016         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36017         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36018         (find_recover_state): Change "err" to "*err"; this fixes what
36019         appears to be a real bug.
36020         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36021         versus int.
36022
36023 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36024
36025         * modules/regex (Depends-on): Add malloc, since the code
36026         assumes that !malloc(0) means failure.
36027
36028 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36029
36030         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36031
36032         alloca modernization/simplification for regex.
36033         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36034         needs to be at the start of the file, and can be moved into
36035         regex_internal.h and simplified.
36036         * lib/regex_internal.h: Include <alloca.h>.
36037         (__libc_use_alloca) [!defined _LIBC]: New macro.
36038         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36039         now works outside glibc.
36040
36041 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36042
36043         * config/srclist.txt: Add glibc bugs 1241, 1245.
36044
36045 2005-08-25  Jim Meyering  <jim@meyering.net>
36046
36047         * lib/open-safer.c: Include <config.h>.
36048         Otherwise, we'd lose LARGEFILE support in any file using
36049         e.g. "fcntl--.h"
36050
36051 2005-08-25  Bruno Haible  <bruno@clisp.org>
36052
36053         * m4/minmax.m4: Require autoconf 2.52.
36054         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36055         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36056         alternatives of translit over the alphabet.
36057         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36058
36059 2005-08-24  Simon Josefsson  <jas@extundo.com>
36060
36061         * tests/test-getpass.c: New file.
36062
36063 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36064
36065         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36066         for GNU regex features.
36067
36068 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36069
36070         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36071         * lib/regex.h (regerror): Likewise.
36072
36073         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36074         requires this.  (The code never needed it.)
36075
36076         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36077         All uses of recently-renamed identifiers changed to use the new,
36078         POSIX-compliant names.  The code will build and run just fine
36079         without these changes, but it's better to eat our own dog food
36080         and use the standard-conforming names.
36081
36082         * lib/regex.h: Fix a multitude of POSIX name space violations.
36083         These changes have an effect only for programs that define
36084         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36085         do not change anything for programs compiled in the normal way.
36086         Also, there is no effect on the ABI.
36087
36088         (_REGEX_SOURCE): New macro.
36089         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36090         defined and _GNU_SOURCE is not; this fixes a name space violation.
36091
36092         Rename the following macros to obey POSIX requirements.
36093         The old names are still visible as macros if _REGEX_SOURCE is defined.
36094         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36095         RE_BACKSLASH_ESCAPE_IN_LISTS.
36096         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36097         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36098         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36099         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36100         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36101         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36102         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36103         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36104         (REG_INTERVALS): renamed from RE_INTERVALS.
36105         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36106         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36107         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36108         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36109         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36110         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36111         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36112         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36113         RE_UNMATCHED_RIGHT_PAREN_ORD.
36114         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36115         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36116         (REG_DEBUG): renamed from RE_DEBUG.
36117         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36118         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36119         unusual, since we can't clash with the POSIX REG_ICASE.
36120         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36121         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36122         (REG_NO_SUB): renamed from RE_NO_SUB.
36123         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36124         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36125         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36126         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36127         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36128         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36129         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36130         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36131         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36132         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36133         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36134         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36135         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36136         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36137         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36138         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36139         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36140         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36141         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36142         (REG_FIXED): Renamed from REGS_FIXED.
36143         (REG_NREGS): Renamed from RE_NREGS.
36144
36145         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36146         of other REG_* macros, since POSIX says the user is allowed to
36147         #undef these macros selectively.
36148
36149         (reg_errcode_t): Update comment stating what other tables need
36150         to be consistent.
36151
36152         Rename the following enum values to obey POSIX requirements.
36153         The old names are still visible as macros.
36154         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36155         is not defined, since GNU is supposed to be a superset of POSIX as
36156         much as possible, and since we want reg_errcode_t to be a signed
36157         type for implementation consistency.
36158         (_REG_NOERROR): Renamed from REG_NOERROR.
36159         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36160         (_REG_BADPAT): Renamed from REG_BADPAT.
36161         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36162         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36163         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36164         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36165         (_REG_EBRACK): Renamed from REG_EBRACK.
36166         (_REG_EPAREN): Renamed from REG_EPAREN.
36167         (_REG_EBRACE): Renamed from REG_EBRACE.
36168         (_REG_BADBR): Renamed from REG_BADBR.
36169         (_REG_ERANGE): Renamed from REG_ERANGE.
36170         (_REG_ESPACE): Renamed from REG_ESPACE.
36171         (_REG_BADRPT): Renamed from REG_BADRPT.
36172         (_REG_EEND): Renamed from REG_EEND.
36173         (_REG_ESIZE): Renamed from REG_ESIZE.
36174         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36175         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36176         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36177         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36178         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36179
36180         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36181         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36182         changed.  But support the old name if the new one is not defined
36183         and if _REGEX_SOURCE.
36184
36185         Change the following member names in struct re_pattern_buffer.
36186         The old names are still supported if !_REGEX_SOURCE.
36187         The new names are always supported, regardless of _REGEX_SOURCE.
36188         (re_buffer): Renamed from buffer.
36189         (re_allocated): Renamed from allocated.
36190         (re_used): Renamed from used.
36191         (re_syntax): Renamed from syntax.
36192         (re_fastmap): Renamed from fastmap.
36193         (re_translate): Renamed from translate.
36194         (re_can_be_null): Renamed from can_be_null.
36195         (re_regs_allocated): Renamed from regs_allocated.
36196         (re_fastmap_accurate): Renamed from fastmap_accurate.
36197         (re_no_sub): Renamed from no_sub.
36198         (re_not_bol): Renamed from not_bol.
36199         (re_not_eol): Renamed from not_eol.
36200         (re_newline_anchor): Renamed from newline_anchor.
36201
36202         Change the following member names in struct re_registers.
36203         The old names are still supported if !_REGEX_SOURCE.
36204         The new names are always supported, regardless of _REGEX_SOURCE.
36205         (rm_num_regs): Renamed from num_regs.
36206         (rm_start): Renamed from start.
36207         (rm_end): Renamed from end.
36208
36209         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36210         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36211         Prepend __ to parameter names.
36212
36213         Undo yesterday's changes.
36214
36215 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36216
36217         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36218         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36219         lib/regex.c.
36220
36221 2005-08-24  Jim Meyering  <jim@meyering.net>
36222
36223         Sync from coreutils.
36224         * m4/fcntl-safer.m4: New file.
36225
36226         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36227         and object files for this module.
36228
36229 2005-08-24  Jim Meyering  <jim@meyering.net>
36230
36231         Sync from coreutils.
36232         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36233
36234 2005-08-24  Jim Meyering  <jim@meyering.net>
36235
36236         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36237         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36238
36239 2005-08-24  Jim Meyering  <jim@meyering.net>
36240
36241         * modules/fcntl-safer: New module.
36242         * modules/fts (Depends-on): Add fcntl-safer.
36243         * MODULES.html.sh (File descriptor based Input/Output):
36244         Add fcntl-safer.
36245
36246 2005-08-24  Bruno Haible  <bruno@clisp.org>
36247
36248         Support for unit test modules.
36249         * modules/README: Mention tests modules.
36250         * modules/TEMPLATE-TESTS: New file.
36251         * gnulib-tool: New options --extract-tests-module, --with-tests and
36252         --tests-base (unused for the moment).
36253         (testsbase, inctests): New variables.
36254         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36255         (func_verify_module): Exclude TEMPLATE-TESTS.
36256         (func_verify_nontests_module, func_verify_tests_module): New functions.
36257         (func_get_dependencies): Add implicit dependency for tests modules.
36258         (func_get_tests_module): New function.
36259         (func_modules_transitive_closure): When --with-tests was specified,
36260         include the unit tests as well, unless explicitly avoided.
36261         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36262         (func_emit_tests_Makefile_am): New function.
36263         (func_create_testdir): When --with-tests was specified, emit a
36264         tests/ directory.
36265         * MODULES.html.sh (Future developments): Update.
36266
36267 2005-08-24  Bruno Haible  <bruno@clisp.org>
36268
36269         * modules/tls-tests: New file.
36270         * tests/test-tls.c: New file, from GNU gettext.
36271
36272 2005-08-24  Bruno Haible  <bruno@clisp.org>
36273
36274         * modules/lock-tests: New file.
36275         * tests/test-lock.c: New file, from GNU gettext.
36276
36277 2005-08-24  Bruno Haible  <bruno@clisp.org>
36278
36279         * lib/lock.h: Add multiple inclusion guard.
36280         * lib/tls.h: Add multiple inclusion guard.
36281
36282 2005-08-24  Bruno Haible  <bruno@clisp.org>
36283
36284         * gnulib-tool: Add support for the --aux-dir option to
36285         --create-testdir, --create-megatestdir, --test, --megatest.
36286         (func_create_testdir, func_create_megatestdir): Optionally emit a
36287         AC_CONFIG_AUX_DIR directive.
36288         (create-testdir, create-megatestdir, test, megatest): Provide a
36289         default value for $auxdir.
36290
36291 2005-08-24  Bruno Haible  <bruno@clisp.org>
36292
36293         * gnulib-tool (import): Use compound statement instead of subshell
36294         where possible.
36295
36296 2005-08-24  Bruno Haible  <bruno@clisp.org>
36297
36298         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36299
36300 2005-08-24  Bruno Haible  <bruno@clisp.org>
36301
36302         * gnulib-tool (func_version): Update.
36303
36304 2005-08-24  Bruno Haible  <bruno@clisp.org>
36305
36306         * gnulib-tool (func_import, func_create_testdir,
36307         func_create_megatestdir): Quote all autoconf macro arguments.
36308
36309 2005-08-24  Bruno Haible  <bruno@clisp.org>
36310
36311         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36312         option --force, because --force causes the aclocal.m4 of each
36313         subdirectory to be newer than the corresponding config.h.in.
36314
36315 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36316
36317         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36318         All contents moved to gl_REGEX.
36319         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36320         assume that it does.
36321
36322 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36323
36324         * lib/regex.h (REG_NOSYS)
36325         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36326         Define, since POSIX requires it as of 2001.
36327         (_REG_ENOSYS)
36328         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36329         New private symbol, used to keep the enum signed in all cases.
36330         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36331         Youngman in
36332         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36333
36334         * lib/regex_internal.c (re_string_skip_chars, register_state):
36335         (calc_state_hash):
36336         Remove forward decls; no longer needed now that we use prototypes.
36337         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36338         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36339         (clean_state_log_if_needed): Likewise.
36340
36341 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36342
36343         * config/srclist.txt: Add glibc bugs 1231-1233.
36344
36345 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36346
36347         Fix problems reported by Sam Steingold in
36348         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36349         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36350         assumed that reg_errcode_t is a signed type, which is not
36351         necessarily true if _XOPEN_SOURCE is not defined.
36352         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36353         since some compilers warn about it otherwise.
36354
36355 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36356
36357         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36358         (init_word_char, create_initial_state, duplicate_node_closure):
36359         (fetch_token, peek_token_bracket, build_range_exp):
36360         (build_collating_symbol): Remove forward decls; no longer needed
36361         now that we use prototypes.
36362
36363         * lib/regcomp.c:
36364         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36365         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36366         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36367         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36368         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36369         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36370         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36371         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36372         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36373         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36374         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36375         (build_charclass, build_charclass_op, fetch_number, create_tree):
36376         (create_token_tree, mark_opt_subexp, duplicate_tree):
36377         Use prototypes rather than old-style definitions.
36378
36379         * lib/regex_internal.c:
36380         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36381         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36382         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36383         (re_string_reconstruct, re_string_peek_byte_case):
36384         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36385         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36386         (re_node_set_init_copy, re_node_set_add_intersect):
36387         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36388         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36389         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36390         (re_acquire_state, re_acquire_state_context, register_state):
36391         (create_ci_newstate, create_cd_newstate, free_state):
36392         Likewise.
36393         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36394         re_search_2):
36395         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36396         (re_search_internal, prune_impossible_nodes):
36397         (acquire_init_state_context, check_matching, static):
36398         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36399         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36400         (update_regs, sift_states_backward, build_sifted_states):
36401         (clean_state_log_if_needed, merge_state_array):
36402         (update_cur_sifted_state, add_epsilon_src_nodes):
36403         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36404         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36405         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36406         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36407         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36408         (check_arrival, check_arrival_add_next_nodes):
36409         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36410         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36411         (check_node_accept_bytes, check_node_accept, extend_buffers):
36412         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36413         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36414         (sift_ctx_init):
36415         Likewise.
36416
36417         * lib/regex_internal.h:
36418         (re_string_allocate, re_string_construct, re_string_reconstruct):
36419         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36420         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36421         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36422         (re_string_context_at, re_string_peek_byte_case):
36423         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36424         is defined, since we now use prototypes always.
36425
36426         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36427         C89 or better.  All uses removed.
36428
36429 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36430
36431         * config/srclist.txt: Add glibc bugs 1220-1227.
36432
36433 2005-08-20  Jim Meyering  <jim@meyering.net>
36434
36435         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36436         of unused local, dfa.
36437
36438 2005-08-20  Bruno Haible  <bruno@clisp.org>
36439
36440         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36441
36442 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36443
36444         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36445         (re_node_set_insert_last, re_dfa_add_node):
36446         Rename local variables to avoid GCC shadowing warnings.
36447
36448 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36449
36450         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36451         [defined lint]: Suppress bogus uninitialized-variable warnings.
36452
36453         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36454         and let the caller return REG_ESPACE if out of space.  This
36455         removes an uninitialied-variable warning with GCC 4.0.1, and also
36456         avoids taking the address of a local variable.  All callers
36457         changed.
36458
36459 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36460
36461         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36462         $LIBCSRC/posix/regexec.c.
36463         Add glibc bug 1217 for regcomp.c.
36464
36465 2005-08-19  Jim Meyering  <jim@meyering.net>
36466
36467         * lib/regexec.c (proceed_next_node): Redo local variables to
36468         avoid GCC shadowing warnings.
36469
36470 2005-08-18  Bruno Haible  <bruno@clisp.org>
36471
36472         * lib/strstr.c (strstr): Fix return value in multibyte case.
36473         * lib/strcasestr.c (strcasestr): Likewise.
36474
36475 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36476
36477         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36478
36479 2005-08-17  Jim Meyering  <jim@meyering.net>
36480
36481         Make the %s format (seconds since the epoch) work for a negative
36482         number and when used with a zero-padded field width, e.g. %015s.
36483
36484         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36485         label so that it precedes the code to set `digits'.  Otherwise,
36486         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36487         print `00-22'.  Now, it prints `-0022', as it should.
36488
36489 2005-08-17  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/strstr (Files): Add m4/mbrtowc.m4.
36492         (Depends-on): Add mbuiter.
36493
36494 2005-08-17  Bruno Haible  <bruno@clisp.org>
36495
36496         * modules/strcasestr: New file.
36497         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36498         strcasestr.
36499
36500 2005-08-17  Bruno Haible  <bruno@clisp.org>
36501
36502         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36503
36504 2005-08-17  Bruno Haible  <bruno@clisp.org>
36505
36506         * modules/mbuiter: New file.
36507         * MODULES.html.sh (Extended multibyte and wide character utilities):
36508         Add mbuiter.
36509
36510 2005-08-17  Bruno Haible  <bruno@clisp.org>
36511
36512         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36513         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36514
36515 2005-08-17  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/strcasestr.m4: New file.
36518
36519 2005-08-17  Bruno Haible  <bruno@clisp.org>
36520
36521         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36522         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36523
36524 2005-08-17  Bruno Haible  <bruno@clisp.org>
36525
36526         * lib/strcasestr.h: New file.
36527         * lib/strcasestr.c: New file.
36528
36529 2005-08-17  Bruno Haible  <bruno@clisp.org>
36530
36531         * lib/strcasecmp.c: Use mbuiter.h.
36532
36533 2005-08-17  Bruno Haible  <bruno@clisp.org>
36534
36535         * lib/mbuiter.h: New file.
36536
36537 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36538
36539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36540         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36541         and gl_GETOPT are both invoked via different paths (as happens
36542         with GNU tar CVS because it uses both argp and getopt), the former
36543         wins.
36544
36545 2005-08-16  Bruno Haible  <bruno@clisp.org>
36546
36547         * modules/tls: New file.
36548         * MODULES.html.sh (Multithreading): Add tls.
36549
36550 2005-08-16  Bruno Haible  <bruno@clisp.org>
36551
36552         * modules/strnlen1: New file.
36553         * MODULES.html.sh (String handling): Add strnlen1.
36554
36555 2005-08-16  Bruno Haible  <bruno@clisp.org>
36556
36557         * modules/strcase (Files): Add m4/mbrtowc.m4.
36558         (Depends-on): Add strnlen1, mbchar.
36559
36560 2005-08-16  Bruno Haible  <bruno@clisp.org>
36561
36562         * modules/mbiter: New file.
36563         * MODULES.html.sh (Extended multibyte and wide character utilities):
36564         Add mbiter.
36565
36566 2005-08-16  Bruno Haible  <bruno@clisp.org>
36567
36568         * modules/mbfile: New file.
36569         * MODULES.html.sh (Extended multibyte and wide character utilities):
36570         Add mbfile.
36571
36572 2005-08-16  Bruno Haible  <bruno@clisp.org>
36573
36574         * modules/mbchar: New file.
36575         * MODULES.html.sh (Extended multibyte and wide character utilities):
36576         New section.
36577
36578 2005-08-16  Bruno Haible  <bruno@clisp.org>
36579
36580         * m4/tls.m4: New file, from GNU gettext.
36581
36582 2005-08-16  Bruno Haible  <bruno@clisp.org>
36583
36584         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36585         always.
36586         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36587
36588 2005-08-16  Bruno Haible  <bruno@clisp.org>
36589
36590         * m4/mbiter.m4: New file.
36591
36592 2005-08-16  Bruno Haible  <bruno@clisp.org>
36593
36594         * m4/mbfile.m4: New file.
36595
36596 2005-08-16  Bruno Haible  <bruno@clisp.org>
36597
36598         * m4/mbchar.m4: New file.
36599
36600 2005-08-16  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/tls.h: New file, from GNU gettext.
36603         * lib/tls.c: New file, from GNU gettext.
36604
36605 2005-08-16  Bruno Haible  <bruno@clisp.org>
36606
36607         * lib/strnlen1.h: New file.
36608         * lib/strnlen1.c: New file.
36609
36610 2005-08-16  Bruno Haible  <bruno@clisp.org>
36611
36612         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36613         (mbi_init): Update.
36614         (mbi_avail, mbi_advance): Let the iteration end before the terminating
36615         NUL byte, not after it.
36616
36617 2005-08-16  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/strcase.h (strcasecmp): Add note in comments.
36620         * lib/strncasecmp.c: Use code from strcasecmp.c.
36621         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36622         (strcasecmp): Work correctly in multibyte locales.
36623
36624 2005-08-16  Bruno Haible  <bruno@clisp.org>
36625
36626         * lib/mbiter.h: New file.
36627
36628 2005-08-16  Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/mbfile.h: New file.
36631
36632 2005-08-16  Bruno Haible  <bruno@clisp.org>
36633
36634         * lib/mbchar.h: New file.
36635         * lib/mbchar.c: New file.
36636
36637 2005-08-16  Bruno Haible  <bruno@clisp.org>
36638
36639         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36640         the valid ones. Makes the comparison operations transitive:
36641         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36642         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36643
36644 2005-08-15  Simon Josefsson  <jas@extundo.com>
36645
36646         * modules/ssize_t (License): Change to 'unlimited'.
36647
36648         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36649
36650 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36651
36652         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36653         Add comments for each pending glibc patch.
36654
36655 2005-08-15  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/regex.h (__restrict_arr): Don't define to __restrict if
36658         __cplusplus is defined.
36659
36660 2005-08-14  Jim Meyering  <jim@meyering.net>
36661
36662         Sync from coreutils.
36663
36664         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36665         Use the hash-table-based cycle-detection code not just when
36666         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36667         Reported by James Youngman in
36668         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36669         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36670         FTS_TIGHT_CYCLE_CHECK.
36671         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36672         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36673         once again.
36674         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36675         * lib/fts.c (fd_safer): Remove decl.
36676         Include fcntl--.h rather than unistd-safer.h
36677         (fts_safe_changedir): Don't call fd_safer; no longer needed
36678         now that we include fcntl--.h.
36679
36680 2005-08-12  Simon Josefsson  <jas@extundo.com>
36681
36682         * modules/getndelim2: Use ssize_t module.
36683         * modules/getnline: Likewise.
36684         * modules/safe-read: Likewise.
36685         * modules/xreadlink: Likewise.
36686
36687         * modules/ssize_t: New file.
36688
36689 2005-08-12  Simon Josefsson  <jas@extundo.com>
36690
36691         * m4/readline.m4: Look for termcap, curses or ncurses if required.
36692
36693 2005-08-12  Simon Josefsson  <jas@extundo.com>
36694
36695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36696         ssize_t.
36697
36698 2005-08-12  Simon Josefsson  <jas@extundo.com>
36699
36700         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36701         readline, getdelim and check_version.
36702         (Support for systems lacking ISO C 99: Sizes of integer types):
36703         Add size_max.
36704
36705 2005-08-12  Bruno Haible  <bruno@clisp.org>
36706
36707         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36708
36709 2005-08-11  Simon Josefsson  <jas@extundo.com>
36710
36711         * modules/readline: New file.
36712
36713         * modules/strnlen (Files): Add strnlen.h.
36714
36715 2005-08-11  Simon Josefsson  <jas@extundo.com>
36716
36717         * m4/readline.m4: New file.
36718
36719 2005-08-11  Simon Josefsson  <jas@extundo.com>
36720
36721         * lib/readline.h, readline.c: New file.
36722
36723 2005-08-11  Simon Josefsson  <jas@extundo.com>
36724
36725         * doc/gnulib.texi (Initial import, Finishing touches): Mention
36726         gl_AVOID.
36727
36728 2005-08-11  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/strnlen.h (strnlen): Change parameter name to match comment.
36731
36732 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
36733
36734         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36735
36736 2005-08-10  Simon Josefsson  <jas@extundo.com>
36737
36738         * tests/test-iconvme.c: New file.
36739
36740 2005-08-10  Simon Josefsson  <jas@extundo.com>
36741
36742         * m4/strnlen.m4: New file.
36743
36744         * m4/strndup.m4: Don't check for strnlen declaration, done in
36745         strnlen.m4.
36746
36747 2005-08-10  Simon Josefsson  <jas@extundo.com>
36748
36749         * lib/strndup.c: Use strnlen.h.
36750
36751         * lib/strnlen.h: New file.
36752
36753 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36754
36755         * README: Typos.
36756
36757 2005-08-02  Simon Josefsson  <jas@extundo.com>
36758
36759         * modules/readline: New file.
36760
36761 2005-08-02  Simon Josefsson  <jas@extundo.com>
36762
36763         * modules/getdelim: New file.
36764
36765         * modules/getline: Rewrite, don't use getndelim2.
36766
36767 2005-08-02  Simon Josefsson  <jas@extundo.com>
36768
36769         * m4/getline.m4: Separate out getdelim stuff into separate module.
36770
36771         * m4/getdelim.m4: New file.
36772
36773 2005-08-02  Simon Josefsson  <jas@extundo.com>
36774
36775         * lib/getline.h, getline.c: Rewrite.
36776
36777         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
36778
36779 2005-07-31  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/lock.h (gl_lock_initializer): New macro.
36782         (gl_lock_define_initialized): Use it.
36783         (gl_rwlock_initializer): New macro.
36784         (gl_rwlock_define_initialized): Use it.
36785         (gl_recursive_lock_initializer): New macro.
36786         (gl_recursive_lock_define_initialized): Use it.
36787
36788 2005-07-30  Karl Berry  <karl@gnu.org>
36789
36790         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
36791         Report from Ben Pfaff, regarding getopt.
36792
36793 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
36794
36795         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
36796         normal way.
36797         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
36798         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
36799         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
36800         (gl_GETOPT): Use the new macros.  Most of the implementation
36801         is moved to the new macros.  This is for programs like Emacs
36802         that don't want all the functionality of gl_GETOPT.
36803
36804 2005-07-26  Bruno Haible  <bruno@clisp.org>
36805
36806         * m4/lock.m4: Update from GNU gettext.
36807
36808 2005-07-26  Bruno Haible  <bruno@clisp.org>
36809
36810         * lib/lock.h: Update from GNU gettext.
36811         * lib/lock.c: Update from GNU gettext.
36812
36813 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
36814
36815         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
36816         obsolescent AC_TRY_RUN.  Include the default includes files, for
36817         'exit'.
36818
36819 2005-07-24  Bruno Haible  <bruno@clisp.org>
36820
36821         * modules/visibility: New file.
36822         * MODULES.html.sh (Misc): Add visibility.
36823
36824 2005-07-24  Bruno Haible  <bruno@clisp.org>
36825
36826         * m4/visibility.m4: New file.
36827
36828 2005-07-24  Bruno Haible  <bruno@clisp.org>
36829
36830         * doc/visibility.texi: New file.
36831
36832 2005-07-22  Bruno Haible  <bruno@clisp.org>
36833
36834         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
36835         $(ALLOCA_H), redundant through BUILT_SOURCES.
36836         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
36837         redundant through BUILT_SOURCES.
36838         * modules/byteswap (Makefile.am): Remove explicit dependency on
36839         $(BYTESWAP_H), redundant through BUILT_SOURCES.
36840         * modules/fnmatch (Makefile.am): Remove explicit dependency on
36841         $(FNMATCH_H), redundant through BUILT_SOURCES.
36842         * modules/getopt (Makefile.am): Remove explicit dependency on
36843         $(GETOPT_H), redundant through BUILT_SOURCES.
36844         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
36845         redundant through BUILT_SOURCES.
36846         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
36847         redundant through BUILT_SOURCES.
36848         * modules/stdbool (Makefile.am): Remove explicit dependency on
36849         $(STDBOOL_H), redundant through BUILT_SOURCES.
36850         * modules/stdint (Makefile.am): Remove explicit dependency on
36851         $(STDINT_H), redundant through BUILT_SOURCES.
36852         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
36853         Remove explicit dependency on $(SYSEXITS_H).
36854         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
36855
36856 2005-07-18  Simon Josefsson  <jas@extundo.com>
36857
36858         * lib/check-version.c (check_version): Accept identical versions too.
36859
36860 2005-07-18  Bruno Haible  <bruno@clisp.org>
36861
36862         * modules/lock: New file.
36863         * MODULES.html.sh (Multithreading): New section.
36864
36865 2005-07-18  Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/lock.m4: New file, from GNU gettext.
36868
36869 2005-07-18  Bruno Haible  <bruno@clisp.org>
36870
36871         * lib/lock.h: New file, from GNU gettext.
36872         * lib/lock.c: New file, from GNU gettext.
36873
36874 2005-07-18  Bruno Haible  <bruno@clisp.org>
36875
36876         * lib/lock.h (gl_once_t): New type.
36877         (gl_once_define, gl_once): New macros.
36878         * lib/lock.c (fresh_once): New variable.
36879         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
36880         functions.
36881
36882 2005-07-16  Simon Josefsson  <jas@extundo.com>
36883
36884         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
36885         workaround, suggested by Bruno.
36886
36887 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36888
36889         * modules/xalloc (Depends-on): Add xalloc-die.
36890         * modules/xvasprintf (Depends-on): Add xalloc-die.
36891
36892 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36893
36894         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
36895         with a minor change.
36896
36897 2005-07-15  Bruno Haible  <bruno@clisp.org>
36898
36899         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
36900         When using lib/poll.c, define poll as rpl_poll.
36901
36902 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
36903
36904         * modules/argp (Depends-on): Remove unlocked-io.
36905
36906 2005-07-14  Derek Price  <derek@ximbiot.com>
36907
36908         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
36909         for glob symlink bug.
36910
36911 2005-07-14  Bruno Haible  <bruno@clisp.org>
36912
36913         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
36914         Instead, test for *_unlocked function declarations directly.
36915
36916 2005-07-11  Simon Josefsson  <jas@extundo.com>
36917
36918         * modules/size_max: New file.
36919
36920         * modules/xsize: Depend on size_max module for size_max.m4.
36921
36922 2005-07-11  Simon Josefsson  <jas@extundo.com>
36923
36924         * lib/size_max.h: New file.
36925
36926 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36927
36928         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
36929         copyright symbol and the year.
36930         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
36931         (version_etc_va): Use parameterized copyright notice.
36932         Reword to conform to the current GNU coding standards.
36933
36934 2005-07-11  Karl Berry  <karl@gnu.org>
36935
36936         * doc/gnulib.texi (Quoting): new node.
36937         (Initial import): more info, from Patrice.
36938
36939 2005-07-11  Bruno Haible  <bruno@clisp.org>
36940
36941         * gnulib-tool (func_usage): Document option --avoid.
36942         (Command line options): Handle --avoid.
36943         (func_acceptable): New function.
36944         (func_modules_transitive_closure): Use it.
36945
36946 2005-07-11  Bruno Haible  <bruno@clisp.org>
36947
36948         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
36949         Reported by Jim Meyering.
36950
36951 2005-07-10  Bruno Haible  <bruno@clisp.org>
36952
36953         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
36954         Needed when size_t is smaller than 'unsigned int'.
36955         Reported by Paul Eggert.
36956
36957 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36958
36959         * modules/argp (Depends-on): Add unlocked-io
36960
36961 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
36962
36963         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
36964         block of defines.
36965
36966 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
36967
36968         * config/srclist.txt: Comment out regcomp.c, since we have a porting
36969         fix now.
36970
36971 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
36972         and Paul Eggert  <eggert@cs.ucla.edu>
36973
36974         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
36975         in wint_t, not wchar_t.  Remove now-unnecessary cast.
36976
36977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36978
36979         * modules/regex (Files): Add lib/regex_internal.c,
36980         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
36981         (Depends-on): Add extensions.
36982         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
36983
36984 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
36985
36986         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
36987         pathconf.
36988         * m4/same.m4 (gl_SAME): Likewise.
36989         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
36990
36991         * m4/regex.m4: Adjust to new libc regex implementation.
36992         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
36993         all the .c and .h parts of (the new) regex.
36994         Quote the m4 stuff better.
36995         Check for RE_ICASE bug of old gnulib.
36996         Check for REG_STARTEND of recent libc.
36997         Rename local variables from jm_* to gl_*.
36998         Quote operand of "test -f".
36999         Say "recent enough" version of libc, not "version 2".
37000         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37001         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37002         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37003         Remove check for btowc, isascii.
37004         Require AM_LANGINFO_CODESET.
37005
37006 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37007
37008         * lib/regex.c, regex.h: Sync from libc.
37009         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37010         * lib/regexec.c:
37011         New files, synced from libc, except that regex_internal.h
37012         currently has a small porting fix.
37013
37014 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37015
37016         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37017         regex_internal.c, regexec.c.
37018         Add regex_internal.h too, but as a comment, since the libc version
37019         is currently broken in gnulib mode.
37020
37021 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37022
37023         Support programs like Emacs that use gnulib but not gettext.
37024         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37025         * modules/gettext-h: New file.
37026         * modules/gettext (Files): Remove lib/gettext.h.
37027         (Depends-on): Add gettext-h.
37028         (Makefile.am): Remove lib_SOURCES.
37029         * modules/argmatch, modules/c-stack, modules/closeout:
37030         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37031         * modules/execute, modules/file-type, modules/getaddrinfo:
37032         * modules/getopt, modules/human, modules/javacomp:
37033         * modules/javaexec, modules/mkdir-p, modules/obstack:
37034         * modules/openat, modules/pagealign_alloc, modules/pipe:
37035         * modules/quotearg, modules/regex, modules/rpmatch:
37036         * modules/unicodeio, modules/userspec, modules/version-etc:
37037         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37038         * modules/xsetenv:
37039         Depend on gettext-h, not gettext.
37040
37041 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37042
37043         * gnulib-tool (func_import): Add support for 'public domain' license.
37044         * modules/alloca, modules/atexit, modules/memmove:
37045         Now public domain, not GPL.
37046         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37047         * modules/realloc, modules/strerror, modules/strtod:
37048         Now LGPL, not GPL.
37049
37050 2005-07-05  Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37053         autoconf CVS. Needed for mingw.
37054
37055 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37056
37057         Remove the dependency of the strftime module on the tzset module.
37058         * modules/strftime (Depends-on): Remove dependency on tzset.
37059
37060 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37061
37062         Remove the dependency of the strftime module on the tzset module.
37063         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37064         gl_FUNC_TZSET_CLOBBER.
37065
37066 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37067
37068         Remove the dependency of the strftime module on the tzset module.
37069         * lib/strftime.c (my_strftime)
37070         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37071         Copy the input structure, to work around some of the bug with
37072         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37073         Solaris releases, you should also use the tzset module, but we won't
37074         require it as a dependency any more since we don't want LGPLed code
37075         to depend on GPLed code.
37076
37077 2005-07-02  Jim Meyering  <jim@meyering.net>
37078
37079         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37080         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37081         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37082         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37083
37084 2005-07-02  Jim Meyering  <jim@meyering.net>
37085
37086         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37087
37088 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37089
37090         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37091         declares only 'struct timespec;' (!).
37092
37093 2005-07-01  Jim Meyering  <jim@meyering.net>
37094
37095         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37096         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37097         * lib/save-cwd.c, tempname.c:
37098         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37099         and don't include <sys/file.h>).
37100
37101 2005-06-29  Jim Meyering  <jim@meyering.net>
37102
37103         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37104         type name.  Use the variable name instead.
37105         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37106         Likewise.
37107
37108 2005-06-28  Simon Josefsson  <jas@extundo.com>
37109
37110         * modules/check-version (Files): Add check-version.m4.
37111
37112 2005-06-28  Simon Josefsson  <jas@extundo.com>
37113
37114         * m4/check-version.m4: New file, suggested by Jim Meyering
37115         <jim@meyering.net>.
37116
37117 2005-06-28  Simon Josefsson  <jas@extundo.com>
37118
37119         * lib/check-version.h, lib/check-version.c: New files.
37120
37121 2005-06-28  Simon Josefsson  <jas@extundo.com>
37122
37123         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37124         collision with global variable.  Better indentation.  Don't
37125         increment buffer pointer beyond buffer end.  Based on comments
37126         from Paul Eggert <eggert@cs.ucla.edu>.
37127
37128         * lib/base64.h: Indent.
37129
37130 2005-06-28  Simon Josefsson  <jas@extundo.com>
37131
37132         * doc/gnulib.texi (Library version handling): New section.
37133
37134 2005-06-28  Jim Meyering  <jim@meyering.net>
37135
37136         * check-module (find_included_lib_files): Hard-code another
37137         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37138         but modules/fts-lgpl (correctly) does not list those files.
37139
37140         * modules/canonicalize (Files): Add lib/pathmax.h.
37141
37142 2005-06-25  Simon Josefsson  <jas@extundo.com>
37143
37144         * modules/check-version: New file.
37145
37146 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37147
37148         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37149         initializer of struct addrinfo, as an indication that we don't
37150         care how many members the structure has.
37151
37152 2005-06-24  Derek Price  <derek@ximbiot.com>
37153         and Bruno Haible  <bruno@clisp.org>
37154
37155         Remove stat module & update lstat.
37156         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37157         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37158         * m4/stat.m4: Remove this file.
37159
37160 2005-06-24  Derek Price  <derek@ximbiot.com>
37161         and Bruno Haible  <bruno@clisp.org>
37162
37163         Remove stat module & update lstat.
37164         * lib/stat.c: Remove this file...
37165         (slash_aware_lstat): ...moving this content and its support...
37166         * lib/lstat.c (rpl_lstat): ...into here.
37167         * lib/lstat.h: New file.
37168
37169 2005-06-24  Derek Price  <derek@ximbiot.com>
37170         and Bruno Haible  <bruno@clisp.org>
37171
37172         Remove stat module & update lstat.
37173         * config/srclist.txt (libc sources): Remove stat.
37174
37175 2005-06-24  Derek Price  <derek@ximbiot.com>
37176         and Bruno Haible  <bruno@clisp.org>
37177
37178         Remove stat module & update lstat.
37179         * MODULES.html.sh (stat): Remove.
37180         * MODULES.html: Regenerated.
37181         * modules/lstat (Description): Correct function name.
37182         (Files): Add "lstat.h".
37183         (Depends-on): Remove stat, add xalloc, stat-macros.
37184         * modules/stat: Remove this file.
37185         (Include): Add "lstat.h", remove <sys/stat.h>.
37186
37187 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37188
37189         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37190         (ranged_convert): Don't save conversion in a temporary struct.
37191         This causes a warning with GCC 4.0.0, and anyway in the typical
37192         case it's not worth the extra 100 bytes or so of code.
37193         (ranged_convert, __mktime_internal): When calling a function via a
37194         pointer P, use P () rather than (*P) (), as we now assume C89 or
37195         better.
37196
37197 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37198
37199         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37200         "who -r" failed to give output.  Problem reported by Tim Waugh.
37201
37202         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37203         (xcalloc): Use it to avoid needless tests.
37204         Problem reported by Jim Meyering.
37205
37206 2005-06-20  Derek Price  <derek@ximbiot.com>
37207
37208         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37209         unnecessary for Autoconfs > 2.59c.
37210
37211 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37212
37213         * lib/argp.h (__option_is_short): Check upper limit of
37214         __key. Isprint() requires its argument to have the value
37215         of an unsigned char or EOF.
37216
37217 2005-06-16  Jim Meyering  <jim@meyering.net>
37218
37219         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37220         when either N or S is zero.
37221
37222 2005-06-16  Derek Price  <derek@ximbiot.com>
37223
37224         * m4/bison.m4: Declare YACC & YFLAGS precious.
37225
37226 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37227
37228         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37229         multibyte string or pattern, fall back on unibyte matching.
37230         Problem reported by James Youngman.
37231
37232 2005-06-08  Bruno Haible  <bruno@clisp.org>
37233
37234         * modules/csharpcomp: New file.
37235         * MODULES.html.sh (C#): Add csharpcomp.
37236
37237 2005-06-08  Bruno Haible  <bruno@clisp.org>
37238
37239         * m4/csharpcomp.m4: New file, from GNU gettext.
37240
37241 2005-06-08  Bruno Haible  <bruno@clisp.org>
37242
37243         * lib/csharpcomp.h: New file, from GNU gettext.
37244         * lib/csharpcomp.c: New file, from GNU gettext.
37245         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37246
37247 2005-06-08  Bruno Haible  <bruno@clisp.org>
37248
37249         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37250         warning on mingw.
37251
37252 2005-06-07  Derek Price  <derek@ximbiot.com>
37253
37254         Sync from CVS.
37255         * lib/glob_.h: Indent nested #ifdef.
37256
37257 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37258
37259         Sync from coreutils.
37260         Use "file name" when talking about file names, instead of "filename"
37261         or "path", as per the GNU coding standards.
37262         * lib/mkdir-p.c: Renamed from makepath.c.
37263         (make_dir_parents): Renamed from make_path.  All callers changed.
37264         * lib/mkdir-p.h: Likewise.  All includers changed.
37265         * lib/filenamecat.c: Renamed from path-concat.c.
37266         (file_name_concat): Renamed from path_concat.  All callers changed.
37267         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37268         * lib/filenamecat.h: Likewise.  All includers changed.
37269         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37270         in comments or local variable names.
37271         * lib/basename.c: Likewise.
37272         * lib/canonicalize.c, canonicalize.h: Likewise.
37273         * lib/dirname.c, dirname.h: Likewise.
37274         * lib/euidaccess.c: Likewise.
37275         * lib/exclude.c: Likewise
37276         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37277         * lib/fsusage.c, fsuage.h: Likewise.
37278         * lib/fts.c, fts_.h: Likewise.
37279         * lib/getcwd.c: Likewise.
37280         * lib/getloadavg.c: Likewise.
37281         * lib/mkstemp.c: Likewise.
37282         * lib/mountlist.c, mountlist.h: Likewise.
37283         * lib/openat.c, openat.h: Likewise.
37284         * lib/readlink-stub.c: Likewise.
37285         * lib/readutmp.c, readutmp.h: Likewise.
37286         * lib/rename.c: Likewise.
37287         * lib/rmdir.c: Likewise.
37288         * lib/same.c: Likewise.
37289         * lib/savedir.c: Likewise.
37290         * lib/stripslash.c: Likewise.
37291         * lib/tempname.c: Likewise.
37292         * lib/xreadlink.c: Likewise.
37293         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37294         All uses changed.
37295         * lib/exclude.h: Likewise.
37296
37297         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37298         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37299         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37300         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37301         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37302         files have been getting away with it for years (MORE/BSD 4.3
37303         is extinct now).
37304         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37305         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37306
37307         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37308         Define to 256, not 255, as per modern POSIX.
37309
37310 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37311
37312         Sync from coreutils.
37313         Use "file name" when talking about file names, instead of "filename"
37314         or "path", as per the GNU coding standards.
37315         * MODULES.html.sh: mkdir-p renamed from makepath.
37316         filenamecat renamed from path-concat.
37317         * modules/filenamecat: Renamed from modules/path-concat.
37318         (Files): filenamecat.h and filenamecat.c renamed from
37319         path-concat.h and path-concat.c.
37320         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37321         (Include): filenamecat.h, not path-concat.h.
37322         * modules/mkdir-p: Renamed from modules/makepath.
37323         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37324         makepath.c.
37325         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37326         (Include): mkdir-p.h, not makepath.h.
37327
37328 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37329
37330         Sync from coreutils.
37331         * m4/mkdir-p.m4: Renamed from makepath.m4.
37332         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37333         Rename files from makepath.c to mkdir-p.c, and from
37334         makepath.h to mkdir-p.h.
37335         * m4/filenamecat.m4: Renamed from path-concat.m4.
37336         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37337         Rename files from path-concat.c to filenamecat.c,
37338         and from path-concat.h to filenamecat.h.
37339         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37340         "file name" in local variables or comments.
37341         * m4/rename.m4: Likewise.
37342
37343 2005-06-01  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/csharpexec: New file.
37346         * MODULES.html.sh (C#): New section.
37347
37348 2005-06-01  Bruno Haible  <bruno@clisp.org>
37349
37350         * m4/csharp.m4: New file, from GNU gettext.
37351         * m4/csharpexec.m4: New file, from GNU gettext.
37352
37353 2005-06-01  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/csharpexec.h: New file, from GNU gettext.
37356         * lib/csharpexec.c: New file, from GNU gettext.
37357         * lib/csharpexec.sh.in: New file, from GNU gettext.
37358
37359 2005-05-31  Derek Price  <derek@ximbiot.com>
37360             Paul Eggert  <eggert@cs.ucla.edu>
37361
37362         Sync from cvs.
37363         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37364
37365 2005-05-31  Derek Price  <derek@ximbiot.com>
37366             Paul Eggert  <eggert@cs.ucla.edu>
37367
37368         Sync from cvs.
37369         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37370
37371 2005-05-29  Derek Price  <derek@ximbiot.com>
37372
37373         * config/srclist.txt (glob_.h, glob.c): Add these files.
37374
37375 2005-05-29  Derek Price  <derek@ximbiot.com>
37376
37377         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37378         * modules/glob: New file.
37379         * modules/getlogin_r: Add link to POSIX spec in description.
37380
37381 2005-05-29  Derek Price  <derek@ximbiot.com>
37382             Paul Eggert  <eggert@cs.ucla.edu>
37383
37384         * m4/glob.m4: New file.
37385
37386 2005-05-29  Derek Price  <derek@ximbiot.com>
37387             Paul Eggert  <eggert@cs.ucla.edu>
37388
37389         * lib/glob_.h, lib/glob.c: New files.
37390
37391 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37392
37393         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37394         * modules/fts-lgpl (Depends-on): Remove gettext.
37395
37396 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37397
37398         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37399         and don't require gt_INTTYPES_PRI.
37400
37401 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37402
37403         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37404
37405         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37406         the configuration hassle isn't worth it.
37407         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37408         (LONGEST_MODIFIER, PRIuMAX): Remove.
37409
37410 2005-05-27  Bruno Haible  <bruno@clisp.org>
37411
37412         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37413
37414 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37415
37416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37417         _POSIX_PTHREAD_SEMANTICS for Solaris.
37418
37419 2005-05-25  Derek Price  <derek@ximbiot.com>
37420
37421         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37422
37423 2005-05-25  Derek Price  <derek@ximbiot.com>
37424             Paul Eggert  <eggert@cs.ucla.edu>
37425
37426         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37427         * lib/getlogin_r.c, getlogin_r.h: New files.
37428
37429 2005-05-25  Bruno Haible  <bruno@clisp.org>
37430             Derek Price  <derek@ximbiot.com>
37431
37432         * lib/getlogin_r.h: Simplify API documentation.
37433
37434 2005-05-23  Derek Price  <derek@ximbiot.com>
37435
37436         * modules/minmax (Files): Add m4/minmax.m4.
37437         (configure.ac): Add gl_MINMAX.
37438
37439 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37440
37441         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37442         so that unistd-safer.h (GPL'ed code) need not be included.
37443
37444 2005-05-22  Bruno Haible  <bruno@clisp.org>
37445
37446         * m4/minmax.m4: New file.
37447         Based on a patch by Derek Price <derek@ximbiot.com>.
37448
37449 2005-05-22  Bruno Haible  <bruno@clisp.org>
37450
37451         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37452         (INT64_MIN): Fix definition.
37453         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37454
37455         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37456         NEED_SIGNED_INT_TYPES.
37457
37458         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37459         HAVE_SYSTEM_INTTYPES.
37460
37461 2005-05-22  Bruno Haible  <bruno@clisp.org>
37462
37463         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37464         Also include <sys/param.h> if it defines MIN, MAX.
37465         Based on a patch by Derek Price <derek@ximbiot.com>.
37466
37467 2005-05-21  Jim Meyering  <jim@meyering.net>
37468
37469         * modules/fts (Files): Add m4/inttypes-pri.m4.
37470         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37471
37472 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37473
37474         New fts module.
37475         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37476         (setup_dir, free_dir): New functions.
37477         (enter_dir, leave_dir): Define trivial
37478         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37479         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37480         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37481         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37482         Move to fts-cycle.c.
37483         (fts_open): Use setup_dir.
37484         (fts_close): Use free_dir.
37485         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37486         This adds a label and some gotos, but the alternatives were messier.
37487         Check for memory allocation failure when entering a dir.
37488         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37489         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37490         (FTS): New member fts_cycle, that is a union that contains the
37491         old active_dir_ht and cycle_state.  All uses changed to mention
37492         fts_cycle.ht and fts_cycle.state.
37493         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37494         fts.c, with the following changes:
37495         (setup_dir, free_dir): New functions.
37496         (enter_dir): Now returns bool.  Return true if successful, false
37497         if memory exhausted.  All callers changed.
37498         Do not bother partly cleaning up on
37499         memory allocation failure; that is free_dir's job.
37500         However, free ad if hash_insert fails, to avoid memory leak.
37501         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37502         fts->fts_options to see which union member to use.
37503
37504 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37505
37506         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37507         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37508
37509 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37510
37511         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37512
37513 2005-05-20  Jim Meyering  <jim@meyering.net>
37514
37515         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37516         Now a macro, to pacify GCC.
37517
37518 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37519
37520         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37521         of -1.
37522
37523 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37524
37525         * lib/chown.c (rpl_chown): Return -1 on failure.
37526
37527 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37528
37529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37530         Don't check for stddef.h.
37531         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37532         don't use its results.
37533         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37534         since we include them unconditionally.  Don't require
37535         AM_STDBOOL_H, since stdbool is a prerequisite.
37536         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37537         since we assume C89 or better.
37538         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37539         as we don't use their results.
37540         Don't check for fchdir, memmove, memset, strrchr, as we use
37541         them unconditionally.
37542         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37543         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37544
37545 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37546
37547         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37548         Include <stddef.h> unconditionally, since we assume C89 now.
37549         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37550         * lib/fts.c: Include fts_.h first, to check interface.
37551         Do not include intprops.h; no longer needed.
37552         Include cycle-check.h and hash.h, since fts_.h no longer does.
37553         Remove unnecessary casts of closedir to void.
37554         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37555         decide whether to decrement nlinks.
37556         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37557         (FTS): Use struct hash_table * instead of Hash_table, so that
37558         we no longer need to include hash.h here.
37559
37560 2005-05-18  Jim Meyering  <jim@meyering.net>
37561
37562         * modules/dirfd (License): Change to LGPL.  Most of the code
37563         is already in the public domain.
37564
37565 2005-05-18  Jim Meyering  <jim@meyering.net>
37566
37567         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37568         Reported by Yoann Vandoorselaere.
37569
37570 2005-05-17  Jim Meyering  <jim@meyering.net>
37571
37572         * m4/fts.m4: New file, from coreutils.
37573
37574 2005-05-17  Jim Meyering  <jim@meyering.net>
37575
37576         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37577
37578 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37579
37580         Sync from coreutils.
37581         * m4/unlinkdir.m4: New file.
37582
37583 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37584
37585         Sync from coreutils.
37586         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37587         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37588         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37589         White space changes only.
37590         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37591         special.
37592         * lib/yesno.c: Include getline.h, not ctype.h.
37593         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37594         Use getline to remove arbitrary restriction on response length.
37595
37596 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37597
37598         * config/srclist-update: Spell out "Street" in FSF postal
37599         mail address; this is the style the FSF seems to prefer.
37600
37601         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37602         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37603         this updates FSF postal mail address.
37604
37605         Sync from coreutils.
37606         * modules/unlinkdir: New file.
37607         * modules/yesno (Depends-on): Add getline.
37608         * MODULES.html.sh (File system functions): Add unlinkdir.
37609
37610 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37611
37612         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37613         lib/strsep.h:
37614         Change the initial comment to refer to GPL, not LGPL.
37615         gnulib-tool will change it to LGPL as needed.
37616
37617         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37618         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37619         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37620         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37621         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37622         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37623         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37624         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37625         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37626         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37627         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37628         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37629         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37630         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37631         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37632         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37633         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37634         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37635         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37636         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37637         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37638         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37639         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37640         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37641         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37642         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37643         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37644         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37645         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37646         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37647         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37648         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37649         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37650         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37651         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37652         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37653         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37654         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37655         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37656         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37657         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37658         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37659         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37660         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37661         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37662         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37663         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37664         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37665         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37666         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37667         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37668         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37669         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37670         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37671         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37672         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37673         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37674         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37675         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37676         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37677         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37678         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37679         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37680         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37681         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37682         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37683         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37684         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37685         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37686         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37687         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37688         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37689         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37690         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37691         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37692         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37693         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37694         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37695         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37696         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37697         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37698         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37699         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37700         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37701         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37702         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37703         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37704         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37705         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37706         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37707         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37708         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37709         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37710         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37711         lib/yesno.c, lib/yesno.h:
37712         Update FSF postal mail address.
37713
37714 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37715
37716         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37717         tests/test-memmem.c, tests/test-stpncpy.c:
37718         Update FSF postal mail address.
37719
37720 2005-05-13  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37723         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37724         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37725         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37726         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37727         Add support for 64-bit integers in the MSVC compiler.
37728
37729 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37730
37731         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37732
37733 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
37734
37735         * gnulib-tool (func_import): Sort and uniquify recommended includes.
37736
37737 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37738
37739         * doc/getdate.texi (General date syntax): Don't say that date
37740         date --iso-8601=ns generates acceptable dates; it doesn't yet.
37741         Problem reported by Nic Ferrier.
37742
37743 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37744
37745         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
37746         specified in ai_socktype. Fix invalid ai_protocol
37747         check. ai_protocol is usually set to 0 or depending on
37748         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
37749         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
37750         ai_socktype / ai_protocol in the returned addrinfo structure.
37751
37752 2005-05-10  Simon Josefsson  <jas@extundo.com>
37753
37754         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
37755         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37756
37757 2005-05-10  Karl Berry  <karl@gnu.org>
37758
37759         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
37760         (from http://www.gnu.org/licenses).
37761         * doc/COPYING.LIB: also rename to COPYING.LESSER.
37762         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
37763         fdl.texi suffices.
37764
37765 2005-05-10  Karl Berry  <karl@gnu.org>
37766
37767         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
37768         (COPYING.DOC): remove.
37769
37770         * config/srclist-update: new FSF address.
37771
37772 2005-05-10  Derek Price  <derek@ximbiot.com>
37773
37774         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
37775         possible.
37776
37777 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37778             Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/inet_ntop: New file.
37781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37782         inet_ntop.
37783
37784 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37785             Bruno Haible  <bruno@clisp.org>
37786
37787         * m4/inet_ntop.m4: New file.
37788
37789 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37790             Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/inet_ntop.h: New file.
37793         * lib/inet_ntop.c: New file, from glibc with modifications.
37794
37795 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
37796
37797         * modules/time_r (License): Change to LGPL.
37798         * modules/extensions (License): Change to LGPL.  Actually,
37799         the license is more permissive than that, but currently gnulib-tool
37800         doesn't know how to handle more-permissive licenses.
37801
37802         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
37803         Problem reported by Dave Love.
37804
37805 2005-05-08  Jim Meyering  <jim@meyering.net>
37806
37807         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
37808         blank.
37809
37810 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37811
37812         * modules/argmatch (Depends-on): Add stdbool.
37813         * modules/backupfile (Depends-on): Likewise.
37814         * modules/chdir-long (Depends-on): Likewise.
37815         * modules/closeout (Depends-on): Likewise.
37816         * modules/cycle-check (Depends-on): Likewise.
37817         * modules/dirname (Depends-on): Likewise.
37818         * modules/fnmatch (Depends-on): Likewise.
37819         * modules/fsusage (Depends-on): Likewise.
37820         * modules/fwriteerror (Depends-on): Likewise.
37821         * modules/getcwd (Depends-on): Likewise.
37822         * modules/getloadavg (Depends-on): Likewise.
37823         * modules/hard-locale (Depends-on): Likewise.
37824         * modules/makepath (Depends-on): Likewise.
37825         * modules/mountlist (Depends-on): Likewise.
37826         * modules/nanosleep (Depends-on): Likewise.
37827         * modules/posixtm (Depends-on): Likewise.
37828         * modules/quotearg (Depends-on): Likewise.
37829         * modules/readtokens (Depends-on): Likewise.
37830         * modules/readtokens0 (Depends-on): Likewise.
37831         * modules/readutmp (Depends-on): Likewise.
37832         * modules/save-cwd (Depends-on): Likewise.
37833         * modules/strftime (Depends-on): Likewise.
37834         * modules/userspec (Depends-on): Likewise.
37835         * modules/utimecmp (Depends-on): Likewise.
37836         * modules/xgetcwd (Depends-on): Likewise.
37837         * modules/xnanosleep (Depends-on): Likewise.
37838         * modules/xstrtod (Depends-on): Likewise.
37839         * modules/yesno (Depends-on): Likewise.
37840
37841 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37842
37843         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
37844         needless checks.
37845
37846 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37847
37848         Merge from coreutils.  Among other things,
37849         add bulletproofing for cases where stdin, stdout, or stderr are closed.
37850         * lib/fd-safer.c: New file.
37851         * lib/fcntl-safer.h, open-safer.c: Remove.
37852         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
37853         * lib/dup-safer.c: Include unistd-safer.h first.
37854         Don't include errno.h.
37855         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
37856         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
37857         * lib/file-type.c: Rely on file-type.h change.
37858         * lib/getloadavg.c: Include unistd-safer.h.
37859         (getloadavg): Use safer open.
37860         * lib/getusershell.c: Include "stdio-safer.h".
37861         (getusershell): Use safer fopen.
37862         * lib/long-options.c (long_options): Use NULL rather than 0.
37863         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
37864         'free'.
37865         * lib/modechange.c: Likewise.
37866         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
37867         (MODE_DONE): New constant.
37868         (struct mode_change): Remove 'next' member.
37869         (make_node_op_equals): New function; like the old one of the
37870         same name, except it allocates an array.
37871         (mode_compile, mode_create_from_ref): Use it.
37872         (mode_compile): Allocate result as an array, not a linked list.
37873         Parse octal string ourself, so that we catch mistakes like "+0".
37874         (mode_adjust): Arg is an array, not a linked list.
37875         * lib/modechange.c: Include stat-macros.h, xalloc.h.
37876         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
37877         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
37878         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
37879         Remove.  This is now stat-macros.h's job.
37880         (talloc): Remove.  All callers replaced by xalloc, so that
37881         our invokers don't have to worry about reporting memory failures.
37882         (make_node_op_equals): Remove.
37883         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37884         New constants.
37885         (struct mode_change): Moved here from modechange.h.
37886         (mode_append_entry): Remove.
37887         (mode_compile): Remove MASKED_OPS arg, since it encouraged
37888         apps to have incorrect behavior.  Use simpler algorithm for head
37889         and tail.  Don't futz with umask; that's now the job of mode_adjust.
37890         Detect more invalid usages rather than having somewhat-random behavior.
37891         Don't insert an "a=" action, as that leads to incorrect behavior.
37892         (mode_compile, mode_create_from_ref): Return NULL on error instead
37893         of an enum, since now there's only one way to have an error.  All
37894         callers changed.
37895         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
37896         at the correct time.  Simplify calculation of "+u" and its ilk.
37897         Don't mishandle "+X".
37898         (mode_free): Remove "register" and localize decls.
37899         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37900         (struct mode_change): Move to modechange.c; callers don't
37901         need to see this stuff.
37902         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
37903         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
37904         (mode_change, mode_adjust): Reflect the new signatures noted above.
37905         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
37906         that might redefine system include files.
37907         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
37908         (my_usleep): Use NULL rather than (void *) 0.
37909         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
37910         Use siginterrupt to specify that system calls should be interrupted.
37911         (rpl_nanosleep): Move initialization of suspended closer to call of
37912         my_usleep.
37913         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
37914         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
37915         (desirable_utmp_entry): New function.
37916         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
37917         using x2nrealloc, to simplify logic.
37918         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
37919         size calculation.  Do not assume utmp file is a regular file.
37920         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
37921         (READ_UTMP_CHECK_PIDS): New constant.
37922         * lib/save-cwd.c: Include unistd-safer.h.
37923         (save_cwd): Use fd_safer.
37924         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
37925         [!_LIBC] Include "stat-macros.h" instead.
37926         * lib/unistd-safer.h (fd_safer): New decl.
37927
37928 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37929
37930         * modules/getloadavg (Depends-on): Add unistd-safer.
37931         * modules/getusershell (Depends-on): Add stdio-safer.
37932         * modules/lstat (Depends-on): Remove xalloc.
37933         * modules/mkstemp (Depends-on): Add stat-macros.
37934         * modules/modechange (Depends-on): Remove xstrtol.
37935         Add stat-macros, xalloc.
37936         * modules/save-cwd (Depends-on): Add unistd-safer.
37937         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
37938         * modules/unistd-safer (Files): Add lib/fd-safer.c
37939         (Makefile.am): Remove lib_SOURCES.
37940
37941         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
37942         Remove fcntl-safer; unistd-safer supersedes it.
37943
37944 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37945
37946         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
37947         AC_HEADER_STAT.
37948         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
37949         (gl_PREREQ_CHOWN): Remove.
37950         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
37951         it.  Don't require AC_HEADER_STAT.
37952         (gl_PREREQ_LSTAT): Remove.
37953         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
37954         Don't require AC_HEADER_STAT.
37955         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
37956         (gl_PREREQ_RMDIR): Remove.
37957         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
37958         mention stat-macros.h or AC_HEADER_STAT, since we'll make
37959         the stat-macros module a prerequisite.
37960         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
37961         * m4/filemode.m4 (gl_FILEMODE): Likewise.
37962         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
37963         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
37964         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
37965         variable names.
37966         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
37967         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
37968         variable prefixes.
37969         * m4/fcntl-safer.m4: Remove.
37970         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
37971         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
37972         Invoke gl_PREREQ_FD_SAFER.
37973         (gl_PREREQ_FD_SAFER): New macro.
37974         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
37975         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
37976         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
37977         Remove duplicate call to AC_LIBOBJ(readutmp).
37978         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
37979
37980         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
37981         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
37982
37983 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37984
37985         * MODULES.html.sh (Misc): Add byteswap.
37986
37987 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37988
37989         * modules/getcwd (Depends-on): Add extensions.
37990         * modules/openat (Depends-on): Likewise.
37991
37992 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37993
37994         * modules/byteswap: New file.
37995
37996 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
37997
37998         * m4/byteswap.m4: New file.
37999
38000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38001
38002         * lib/byteswap_.h: New file.
38003
38004 2005-04-25  Karl Berry  <karl@gnu.org>
38005
38006         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38007
38008 2005-04-25  Albert Chin  <china@thewrittenword.com>
38009
38010         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38011         Toolkit C bug.
38012
38013 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38014
38015         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38016         (func_ln_if_changed) Remove forcibly for no error message
38017         in case file does not exist.
38018
38019 2005-04-19  Simon Josefsson  <jas@extundo.com>
38020
38021         * gnulib-tool (Options): Make --symlink mean --symbolic.
38022
38023 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38024
38025         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38026
38027 2005-04-16  Simon Josefsson  <jas@extundo.com>
38028
38029         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38030
38031 2005-04-15  Simon Josefsson  <jas@extundo.com>
38032
38033         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38034
38035 2005-04-15  Simon Josefsson  <jas@extundo.com>
38036
38037         * gnulib-tool: Rename --symlink to --symbolic.
38038
38039 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38040
38041         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38042         symbolic links to files instead of copying/moving.  Add --aux-dir,
38043         specifying directory relative --dir where auxiliary build tools
38044         are placed.
38045
38046 2005-04-14  Bruno Haible  <bruno@clisp.org>
38047
38048         * modules/allocsa (License): Change to LGPL.
38049         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38050
38051 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38052
38053         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38054         that "UTC +1 second" continues to work.  Problem reported
38055         by Dmitry V. Levin.
38056         (relunit_snumber): New rule.
38057         (relunit): Use it.
38058
38059 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38060
38061         * lib/getdate.y (universal_time_zone_table): New constant.
38062         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38063         universal_time_zone_table.
38064         (lookup_zone): Prefer universal_time_zone_table to
38065         local_time_zone_table, so that "GMT" time stamps are allowed in
38066         London during the summer.  Problem reported by Ian Abbott.
38067
38068 2005-04-12  Jim Meyering  <jim@meyering.net>
38069
38070         * lib/human.c (humblock): Set *options even when returning due to
38071         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38072         warning from gcc-4.
38073
38074 2005-04-09  Jim Meyering  <jim@meyering.net>
38075
38076         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38077         -Wuninitialized: initialize tm0.tm_year.
38078
38079 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38080
38081         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38082         count, since there's no maximum.  All uses changed.
38083         Add member dsts_seen.
38084         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38085         not being INT_MAX.
38086         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38087         Use pc_rels_seen to decide whther a date is absolute.
38088
38089         * lib/getdate.y (number): Don't overwrite year.
38090         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38091         check.
38092
38093 2005-04-02  Simon Josefsson  <jas@extundo.com>
38094
38095         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38096         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38097
38098 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38099
38100         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38101         where no absolute path name can be longer than PATH_MAX.
38102
38103 2005-03-27  Jim Meyering  <jim@meyering.net>
38104
38105         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38106
38107 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38108
38109         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38110         "one's complement" -> "ones' complement" in comment, as per Knuth.
38111         "value of type" -> "type or expression" in comment.
38112         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38113
38114 2005-03-26  Jim Meyering  <jim@meyering.net>
38115
38116         Comment nits.
38117         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38118         Correct typos: s/or/of/.
38119
38120 2005-03-26  Jim Meyering  <jim@meyering.net>
38121
38122         * modules/check-include-files: Move to ../ and rename to...
38123         * check-module: ...this.
38124
38125 2005-03-25  Jim Meyering  <jim@meyering.net>
38126
38127         * modules/xvasprintf (Files): Add xalloc.h.
38128
38129 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38130
38131         * modules/gettext (Files): config/config.rpath ->
38132         build-aux/config.rpath
38133         * modules/iconv (Files): Likewise.
38134         Problem reported by Oskar Liljeblad.
38135
38136 2005-03-23  Jim Meyering  <jim@meyering.net>
38137
38138         * modules/check-include-files: New script to check for
38139         missing dependencies, multiple includes, etc.
38140
38141         * modules/c-strtold (Depends-on): Add xalloc.
38142         * modules/c-strtod (Depends-on): Add xalloc.
38143         * modules/hash (Depends-on): Add xalloc.
38144         (Files): Remove lib/xalloc.h.
38145
38146         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38147         * modules/userspec (Files): Add lib/inttostr.h.
38148
38149 2005-03-23  Jim Meyering  <jim@meyering.net>
38150
38151         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38152
38153 2005-03-22  Jim Meyering  <jim@meyering.net>
38154
38155         * modules/stat-macros: New module.
38156         * modules/canonicalize, modules/euidaccess, modules/file-type,
38157         * modules/filemode, modules/lchown, modules/makepath,
38158         * modules/rmdir, modules/stat: Depend on new stat-macros module
38159         rather than listing lib/stat-macros.h manually.
38160         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38161
38162 2005-03-22  Jim Meyering  <jim@meyering.net>
38163
38164         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38165
38166 2005-03-22  Bruno Haible  <bruno@clisp.org>
38167
38168         * config/srclist.txt: Replace target directory 'config' with
38169         'build-aux'.
38170         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38171         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38172         ../build-aux/.
38173
38174 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38175
38176         * modules/chdir-long (Depends-on): Add mempcpy.
38177
38178         * modules/acl, modules/backupfile, modules/c-strtod,
38179         modules/c-strtold, modules/canon-host, modules/canonicalize,
38180         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38181         modules/exclude, modules/exitfail, modules/file-type,
38182         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38183         modules/getdate, modules/getline, modules/getpagesize,
38184         modules/getpass, modules/getugroups, modules/group-member,
38185         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38186         modules/inttostr, modules/long-options, modules/makepath,
38187         modules/md5, modules/memcasecmp, modules/memcoll,
38188         modules/modechange, modules/mountlist, modules/path-concat,
38189         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38190         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38191         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38192         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38193         modules/strftime, modules/strndup, modules/strverscmp,
38194         modules/timespec, modules/unlocked-io, modules/userspec,
38195         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38196         modules/yesno:
38197         Remove lib_SOURCES line from Makefile.am section, as this is now
38198         done automatically by the corresponding Autoconf macro.
38199
38200 2005-03-21  Jim Meyering  <jim@meyering.net>
38201
38202         Changes imported from coreutils.
38203
38204         * lib/cycle-check.c: Don't include xalloc.h.
38205
38206         * lib/path-concat.c: Don't include assert.h.
38207         (path_concat): Remove assertion that would have triggered
38208         for ABASE starting with more than one slash.
38209         Reported by Andreas Schwab.
38210
38211         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38212         properly when ABASE is an absolute file name.
38213         Correct the description of this function.
38214         Include <assert.h>.
38215         Add an assertion and a test driver.
38216         This fixes a bug introduced on 2004-07-02.
38217         Andreas Schwab reported the resulting failure of cp --parents:
38218         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38219
38220 2005-03-21  Jim Meyering  <jim@meyering.net>
38221
38222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38223         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38224
38225 2005-03-21  Jim Meyering  <jim@meyering.net>
38226         and  Paul Eggert  <eggert@cs.ucla.edu>
38227
38228         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38229         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38230         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38231         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38232         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38233         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38234         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38235         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38236         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38237         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38238         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38239         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38240         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38241         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38242         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38243         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38244         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38245         for these modules.
38246
38247 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38248
38249         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38250         (which shouldn't happen), generate nothing instead of returning 0
38251         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38252
38253 2005-03-16  Bruno Haible  <bruno@clisp.org>
38254
38255         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38256         HAVE_LONGLONG_64BIT.
38257
38258 2005-03-16  Bruno Haible  <bruno@clisp.org>
38259
38260         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38261         HAVE_LONGLONG_64BIT.
38262
38263 2005-03-16  Bruno Haible  <bruno@clisp.org>
38264
38265         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38266         HAVE_LONGLONG_64BIT.
38267
38268 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38269
38270         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38271         reliably distinguish strftime failure from empty output on POSIX
38272         hosts.
38273
38274 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38275
38276         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38277         (iconv_string): Don't guess a size-zero buffer, as that might cause
38278         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38279         result would be 'too large', where 'too large' is (heuristically)
38280         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38281         overflow concerns.  This will prevent some unwanted malloc failures
38282         when the inputs are very large.
38283
38284 2005-03-15  Karl Berry  <karl@gnu.org>
38285
38286         * config/srclist.txt (config.rpath): from gettext.
38287         * config/config.rpath: update.
38288
38289 2005-03-15  Bruno Haible  <bruno@clisp.org>
38290
38291         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38292         to 'negate'.
38293
38294         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38295         variable.
38296
38297         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38298         results.
38299
38300 2005-03-14  Simon Josefsson  <jas@extundo.com>
38301
38302         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38303         <fx@gnu.org>.
38304
38305 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38306
38307         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38308         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38309         intprops.h.
38310         * lib/strtol.c: Likewise.
38311
38312 2005-03-14  Jim Meyering  <jim@meyering.net>
38313
38314         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38315         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38316         to be nonzero so that we (and caller) can detect the difference
38317         between a valid zero-length expansion and an error return, even
38318         when the underlying strftime fails before writing anything into
38319         that location.
38320
38321 2005-03-14  Bruno Haible  <bruno@clisp.org>
38322
38323         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38324         Update from GNU gettext 0.14.3.
38325
38326 2005-03-10  Jim Meyering  <jim@meyering.net>
38327
38328         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38329
38330 2005-03-10  Jim Meyering  <jim@meyering.net>
38331
38332         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38333         so that this module works on systems without fchdir.
38334
38335 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38336
38337         Factor int-properties macros into a single file, except for
38338         glibc-related files.
38339         * lib/intprops.h: New file.
38340         * lib/getloadavg.c: Include it instead of limits.h.
38341         (INT_STRLEN_BOUND): Remove.
38342         * lib/human.c: Include intprops.h.
38343         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38344         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38345         302/1000.
38346         * lib/inttostr.h: Include intprops.h instead of limits.h.
38347         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38348         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38349         for consistency with intprops.h.
38350         (time_t_is_integer, twos_complement_arithmetic): Use them.
38351         * lib/sig2str.h: Include <signal.h>, intprops.h.
38352         (INT_STRLEN_BOUND): Remove.
38353         * lib/strftime.c (TYPE_SIGNED): Remove.
38354         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38355         * lib/strtol.c: Adjust comments to match intprops.h.
38356         * lib/userspec.c: Include intprops.h.
38357         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38358         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38359         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38360         instead of rolling our own expressions.
38361         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38362
38363         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38364         instead of int.
38365         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38366         the right thing even if adding 1900 would overflow.  Similarly
38367         for tm_mon + 1 and tm_yday + 1.
38368         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38369         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38370         (DO_SIGNED_NUMBER): New macro.
38371         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38372
38373 2005-03-07  Bruno Haible  <bruno@clisp.org>
38374
38375         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38376
38377 2005-03-07  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38380
38381 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38382
38383         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38384         (func_import): Only replace files via --import when they have actually
38385         changed.
38386
38387 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38388
38389         * m4/mmap-anon.m4: New file.
38390         * m4/pagealign_alloc.m4: New file.
38391
38392 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38393             Bruno Haible  <bruno@clisp.org>
38394
38395         * modules/pagealign_alloc: New file.
38396         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38397
38398 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38399             Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/pagealign_alloc.h: New file.
38402         * lib/pagealign_alloc.c: New file.
38403
38404 2005-03-03  Bruno Haible  <bruno@clisp.org>
38405
38406         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38407         Use an all-permissive copyright notice, recommended by RMS.
38408
38409 2005-03-02  Bruno Haible  <bruno@clisp.org>
38410
38411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38412         of AIX, the replacement has to be done only after <string.h> is
38413         included, therefore not in config.h. stpncpy.h does the replacement,
38414         and stpncpy.c uses it.
38415
38416 2005-03-02  Bruno Haible  <bruno@clisp.org>
38417
38418         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38419         stpncpy.c uses it.
38420
38421 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38422
38423         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38424         The workaround isn't strictly needed for POSIX conformance, and
38425         it's too much of a pain to configure and maintain.  We'll ask
38426         people to fix their kernels instead.
38427         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38428         (NANOSLEEP_BUG_WORKAROUND): Remove.
38429         (xnanosleep): Remove the workaround.
38430
38431 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38432
38433         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38434         Reported by Derek Price.
38435         (Include): Add "timespec.h".
38436
38437         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38438
38439 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38440
38441         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38442         to detect nanosleep bug.
38443
38444 2005-03-01  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38447
38448 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38449
38450         * modules/gethrxtime: New file.
38451         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38452         (Depends-on): Add gethrxtime.
38453         (configure.ac): Add gl_XNANOSLEEP.
38454         (Makefile.am): Remove lib_SOURCES line.
38455
38456 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38457
38458         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38459         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38460
38461 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38462
38463         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38464         * lib/timespec.h (gettime): Return void, since it always
38465         succeeds now.  All uses changed.
38466         * lib/gettime.c (gettime) Likewise.
38467         [HAVE_NANOTIME]: Prefer nanotime.
38468         Assume gettimeofday succeeds, as POSIX requires.
38469         Assime time () succeeds, since other code already does.
38470         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38471         (timespec_subtract): Remove.
38472         (NANOSLEEP_BUG_WORKAROUND): New constant.
38473         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38474         things considerably.  Use it only on GNU/Linux hosts, since the
38475         workaround shouldn't be needed elsewhere.
38476
38477 2005-02-24  Bruno Haible  <bruno@clisp.org>
38478
38479         * modules/gettext (Files): Add m4/glibc2.m4.
38480
38481 2005-02-24  Bruno Haible  <bruno@clisp.org>
38482
38483         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38484         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38485         * m4/progtest.m4:
38486         Update from GNU gettext 0.14.2.
38487         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38488
38489 2005-02-24  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38492         * lib/config.charset: Update from GNU gettext 0.14.2.
38493
38494 2005-02-24  Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/gettext.h: Update from GNU gettext 0.14.2.
38497
38498 2005-02-23  Simon Josefsson  <jas@extundo.com>
38499
38500         * m4/iconvme.m4: New file.
38501
38502 2005-02-23  Jim Meyering  <jim@meyering.net>
38503
38504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38505         change.
38506         Thanks to Bruno Haible for catching it.
38507
38508 2005-02-22  Simon Josefsson  <jas@extundo.com>
38509
38510         * modules/iconvme: New file.
38511
38512         * MODULES.html.sh: Add iconvme.
38513
38514 2005-02-22  Simon Josefsson  <jas@extundo.com>
38515
38516         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38517
38518 2005-02-22  Simon Josefsson  <jas@extundo.com>
38519
38520         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38521
38522 2005-02-22  Jim Meyering  <jim@meyering.net>
38523
38524         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38525         s/ifndef/ifdef/.
38526
38527 2005-02-20  Neil Conway  <neilc@samurai.com>
38528
38529         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38530         returned by OSX/Darwin if the specified buffer is not large
38531         enough for the hostname.
38532
38533 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38534
38535         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38536         pass it to _help, otherwise the latter coredumps trying to
38537         dereference state.root_argp.
38538
38539 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38540
38541         * modules/chdir-long (Depends-on): Add memrchr.
38542         * modules/memrchr (Files): Add lib/memrchr.h.
38543         (Include): "memrchr.h".
38544
38545 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38546
38547         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38548
38549 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38550
38551         * lib/memrchr.h: New file.
38552         * lib/chdir-long.c: Include it.
38553         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38554         Don't bother including stddef.h.
38555
38556 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38557
38558         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38559         inclusion.
38560         Include <sys/types.h>, for dev_t.
38561         (ME_DUMMY, ME_REMOTE): Move from here....
38562         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38563         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38564         Dmitry V. Levin.
38565         Include mountlist.h first, to test the interface.
38566
38567 2005-01-29  Bruno Haible  <bruno@clisp.org>
38568
38569         * lib/progname.c (program_name): Initialize.
38570         Needed when linking statically on MacOS X.
38571
38572 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38573
38574         Sync from coreutils.
38575         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38576         (Depends-on): Add c-strtod.
38577         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38578
38579 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38580
38581         Sync from coreutils.
38582         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38583
38584         Remove files that are specific to coreutils.
38585         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38586
38587 2005-01-28  Bruno Haible  <bruno@clisp.org>
38588
38589         * modules/javacomp: New file.
38590         * MODULES.html.sh (Java): Add javacomp.
38591
38592 2005-01-28  Bruno Haible  <bruno@clisp.org>
38593
38594         * m4/javacomp.m4: New file, from GNU gettext.
38595
38596 2005-01-28  Bruno Haible  <bruno@clisp.org>
38597
38598         * lib/javacomp.sh.in: New file, from GNU gettext.
38599         * lib/javacomp.h: New file, from GNU gettext.
38600         * lib/javacomp.c: New file, from GNU gettext.
38601
38602 2005-01-26  Simon Josefsson  <jas@extundo.com>
38603
38604         * lib/gai_strerror.c: Use GPL in header.
38605
38606 2005-01-26  Bruno Haible  <bruno@clisp.org>
38607
38608         * modules/javaexec: New file.
38609         * MODULES.html.sh (Java): Add javaexec.
38610
38611 2005-01-26  Bruno Haible  <bruno@clisp.org>
38612
38613         * m4/javaexec.m4: New file, from GNU gettext.
38614
38615 2005-01-26  Bruno Haible  <bruno@clisp.org>
38616
38617         * lib/javaexec.sh.in: New file, from GNU gettext.
38618         * lib/javaexec.h: New file, from GNU gettext.
38619         * lib/javaexec.c: New file, from GNU gettext.
38620
38621 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38622
38623         * modules/lchown (Depends-on): Remove lchown.h
38624
38625 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38626
38627         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38628         must be defined if the header file was not found, in order
38629         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38630
38631 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38632
38633         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38634         initializers for struct pentry_state.
38635         (__argp_error): Check return value of __asprintf
38636         (__argp_failure): Translate error message
38637
38638         * lib/argp-parse.c: Removed braces around the expansion of N_()
38639
38640 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38641
38642         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38643         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38644         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38645         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38646         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38647         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38648         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38649         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38650         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38651         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38652         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38653         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38654         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38655         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38656         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38657         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38658         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38659         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38660         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38661         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38662         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38663         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38664         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38665         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38666         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38667         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38668         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38669         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38670         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38671         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38672         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38673         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38674         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38675         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38676         xstrtol.m4, xstrtoumax.m4, yesno.m4:
38677         Use an all-permissive copyright notice, recommended by RMS.
38678
38679 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38680
38681         * modules/chdir-long (Depends-on): Remove mempcpy.
38682
38683 2005-01-21  Jim Meyering  <jim@meyering.net>
38684
38685         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38686         same value as for Solaris 9.
38687
38688         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38689         component length.  This included changing the parameter to be
38690         of type `char *' rather than `char const *'.
38691         * lib/chdir-long.h (chdir_long): Update prototype.
38692
38693         * lib/openat.c (fdopendir, fstatat): New functions.
38694         * lib/openat.h: Include headers required for use of DIR and struct
38695         stat.
38696         [AT_SYMLINK_NOFOLLOW]: Define.
38697         (fdopendir, fstatat): Add prototypes.
38698
38699 2005-01-21  Bruno Haible  <bruno@clisp.org>
38700
38701         * modules/classpath: New file.
38702         * MODULES.html.sh (Java): Add classpath.
38703
38704 2005-01-21  Bruno Haible  <bruno@clisp.org>
38705
38706         * lib/classpath.h: New file, from GNU gettext.
38707         * lib/classpath.c: New file, from GNU gettext.
38708
38709 2005-01-20  Simon Josefsson  <jas@extundo.com>
38710
38711         * modules/version-etc-fsf: New file.
38712
38713 2005-01-20  Simon Josefsson  <jas@extundo.com>
38714
38715         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38716         * lib/version-etc.c: Remove version_etc_copyright.
38717         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38718         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38719
38720 2005-01-20  Simon Josefsson  <jas@extundo.com>
38721
38722         * lib/base64.h (isbase64): Add.
38723
38724         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38725         using a unsigned prototype, don't inline.
38726         (base64_decode): Use it.
38727
38728 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38729
38730         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38731         it.
38732
38733 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38734
38735         * lib/save-cwd.c (save_cwd): Remove code to support the case
38736         where fchdir is missing or flaky.
38737
38738 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38739
38740         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38741
38742 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38743
38744         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
38745         AC_LIBSOURCES now does this.
38746         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
38747         with new ullong_max module.
38748
38749 2005-01-19  Bruno Haible  <bruno@clisp.org>
38750
38751         * modules/sh-quote: New file.
38752         * MODULES.html.sh (Executing programs): Add sh-quote.
38753
38754 2005-01-19  Bruno Haible  <bruno@clisp.org>
38755
38756         * lib/sh-quote.h: New file, from GNU gettext.
38757         * lib/sh-quote.c: New file, from GNU gettext.
38758
38759 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38760
38761         Merge from coreutils.
38762         * m4/ullong_max.m4: New file.
38763         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
38764         (gl_MACROS): Assume localeconv exists.
38765
38766 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38767
38768         Merge changes from coreutils, as described below in several
38769         changelogs dated today.
38770
38771         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
38772         (O_DIRECTORY): Remove; not needed here, since "." must be
38773         a directory.  All uses removed.
38774         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
38775         universal on Suns, and we also need to test for IRIX.
38776         Revamp code to use 'if' rather than '#if'.
38777         Avoid unnecessary comparison of cwd->desc to 0.
38778
38779         * lib/utimens.c (futimens): Robustify the previous patch, by checking
38780         for known valid error numbers rather than observed invalid ones.
38781
38782 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38783
38784         * modules/ullong_max: New file.
38785
38786         * modules/chdir-long, modules/openat: New files.
38787         * modules/save-cwd (Depends-on): Depend on chdir-long.
38788         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
38789
38790 2005-01-18  Jim Meyering  <jim@meyering.net>
38791
38792         Merge from coreutils.
38793         * m4/chdir-long.m4, m4/openat.m4: New files.
38794         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
38795         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
38796         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
38797         is sane and DOES follow symlinks.  Besides, testing 20 different
38798         systems found no broken chown implementations.
38799         Prompted by a change in rsync's copy of this macro.
38800         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
38801
38802         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
38803
38804         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
38805         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
38806         NULL-means-set-to-current-time semantics.
38807         Remove temporary file immediately, rather than waiting
38808         for configure's at-exit trap code to do it.
38809
38810 2005-01-18  Jim Meyering  <jim@meyering.net>
38811
38812         * lib/version-etc.c (version_etc_copyright): Update copyright date.
38813
38814         * lib/utimens.c (futimens): Account for the fact that futimes
38815         can also fail with errno == ENOSYS or errno == ENOENT.
38816         Patch from Dmitry V. Levin.
38817
38818         Change the name of the robust chdir function from chdir to chdir_long.
38819         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
38820         (restore_cwd): Use chdir_long, not chdir.
38821         * lib/chdir-long.c: Renamed from chdir.c.
38822         * lib/chdir-long.h: Renamed from chdir.h.
38823         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
38824         Hurd.
38825
38826 2005-01-18  Bruno Haible  <bruno@clisp.org>
38827
38828         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
38829         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
38830         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
38831         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
38832         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
38833         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
38834         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
38835         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
38836         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
38837         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
38838         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
38839         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
38840         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
38841         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
38842         Use an all-permissive copyright notice, recommended by RMS.
38843
38844 2005-01-18  Bob Proulx  <bob@proulx.com>
38845
38846         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
38847         simplify offsetof() macro construct to avoid compile failure with
38848         native HP-UX 11.0 ANSI C compiler.
38849
38850 2005-01-17  Bruno Haible  <bruno@clisp.org>
38851
38852         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
38853         redundant because stpncpy.m4 takes care of it.
38854
38855 2005-01-17  Bruno Haible  <bruno@clisp.org>
38856
38857         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
38858
38859 2005-01-17  Bruno Haible  <bruno@clisp.org>
38860
38861         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
38862         used.
38863
38864 2005-01-17  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/fwriteerror.h (fwriteerror): Change specification to include
38867         fclose.
38868         * lib/fwriteerror.c: Include <stdbool.h>.
38869         (fwriteerror): At the end, close the file stream. Record whether
38870         stdout was already closed.
38871
38872 2005-01-17  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/execute.c (environ): Declare if needed.
38875         * lib/pipe.c (environ): Likewise.
38876         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
38877
38878 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38879
38880         * modules/argp: Depend on vsnprintf
38881
38882 2005-01-10  Jim Meyering  <jim@meyering.net>
38883
38884         * modules/closeout (Depends-on): Add atexit.
38885
38886 2005-01-06  Bruno Haible  <bruno@clisp.org>
38887
38888         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
38889
38890 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38891
38892         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
38893         definitions to be after all include files, to avoid collisions.
38894         Problem reported by Bob Proulx.
38895
38896 2005-01-04  Jim Meyering  <jim@meyering.net>
38897
38898         Changes imported from coreutils.
38899         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
38900         as the mkstemp template, use a temporary directory and an
38901         8.3-friendly template to avoid trouble on systems like DJGPP.
38902         Reported by Juan M. Guerrero via Stepan Kasal.
38903         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
38904         close. Remove the temporary directory right away, rather than waiting
38905         for configure's at-exit trap code to do it.
38906         Suggestion from Stepan Kasal.
38907
38908 2005-01-01  Simon Josefsson  <jas@extundo.com>
38909
38910         * gnulib-tool: Print #include directives when --import'ing.
38911
38912 2004-12-28  Simon Josefsson  <jas@extundo.com>
38913
38914         * tests/test-base64.c: Include required header files.  Remove
38915         unused variables.
38916
38917 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38918
38919         * modules/error (Depends-on): Remove gettext.
38920
38921 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38922
38923         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
38924         not needed.  This removes a dependency on the gettext module.
38925         [defined _LIBC]: Do not include <libintl.h>; not needed.
38926
38927 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38928
38929         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
38930         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
38931
38932 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38933
38934         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
38935         HAVE_DECL_STRTOLD.
38936
38937 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38938
38939         * modules/getdate (Depends-on): Remove alloca-opt.
38940
38941 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38942
38943         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
38944
38945 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38946
38947         * lib/argp-parse.c: Include <stddef.h>.
38948         (alignof, alignto): New macros.
38949         (parser_init): Don't assume that void * is aligned sufficiently
38950         for struct option.
38951
38952         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
38953         need to extend the stack.
38954         (YYINITDEPTH): New macro, so that the initial stack isn't overly
38955         large.
38956
38957 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38958
38959         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
38960
38961 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38962
38963         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
38964         (2004-10-24) change.  Apparently this was a false alarm.
38965
38966         * modules/getdate: Depend on alloca-opt, not alloca.
38967
38968 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
38969
38970         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
38971         Remove now-obsolete comment about AIX.
38972         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
38973         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
38974         (YYMAXDEPTH): New macro.
38975
38976 2004-12-18  Simon Josefsson  <jas@extundo.com>
38977
38978         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
38979
38980 2004-12-18  Bruno Haible  <bruno@clisp.org>
38981
38982         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
38983
38984 2004-12-18  Bruno Haible  <bruno@clisp.org>
38985
38986         * lib/fatal-signal.c (fatal_signals): Make non-const.
38987         (init_fatal_signals): New function.
38988         (uninstall_handlers, install_handlers): Ignore signals that were set to
38989         SIG_IGN.
38990         (at_fatal_signal): Call init_fatal_signals.
38991         (init_fatal_signal_set): Likewise. Ignore signals that were set to
38992         SIG_IGN.
38993         Reported by Paul Eggert.
38994
38995 2004-12-18  Bruno Haible  <bruno@clisp.org>
38996
38997         * doc/alloca.texi: New file.
38998         * doc/alloca-opt.texi: New file.
38999
39000 2004-12-17  Jim Meyering  <jim@meyering.net>
39001
39002         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39003         Otherwise, install-sh could exit with improper exit status when
39004         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39005
39006 2004-12-16  Simon Josefsson  <jas@extundo.com>
39007
39008         * tests/test-base64.c: Add license.
39009
39010 2004-12-15  Stepan Kasal  <address@hidden>
39011
39012         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39013
39014 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39015
39016         * modules/getcwd (Files): Add m4/d-ino.m4.
39017         Suggested by Mark D. Baushke.
39018
39019 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39020
39021         * lib/getdate.y (textint): New member "negative".
39022         (time_zone_hhmm): New function.
39023         Expect 14 shift-reduce conflicts, not 13.
39024         (o_colon_minutes): New rule.
39025         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39026         (yylex): Set the "negative" member of signed numbers.
39027
39028 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39029
39030         * doc/getdate.texi (Time of day items, Time zone items):
39031         Describe new formats +00:00, UTC+00:00.
39032
39033 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39034
39035         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39036         spurious "-l"s.  Problem reported by Stepan Kasal.
39037
39038 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39039
39040         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39041         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39042
39043 2004-12-04  Simon Josefsson  <jas@extundo.com>
39044
39045         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39046         Vandoorselaere <yoann@prelude-ids.org>.
39047
39048 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39049
39050         Changes imported from coreutils.
39051         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39052         exist.
39053         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39054
39055 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         Changes imported from coreutils.
39058         * lib/hard-locale.c: Assume <locale.h> exists.
39059         Include "strdup.h".
39060         (GLIBC_VERSION): New macro.
39061         (hard_locale): Assume setlocale exists.
39062         Rewrite to avoid #ifdef.
39063         Use strdup rather than malloc + strcpy.
39064         * lib/human.c: Assume <locale.h> exists.
39065         (human_readable): Assume localeconv exists.
39066
39067 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39068
39069         * modules/hard-locale (Depends-on): Add strdup.
39070
39071 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39072
39073         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39074         convert T2, not T.  (Imported from libc.)
39075
39076 2004-11-30  Simon Josefsson  <jas@extundo.com>
39077
39078         * modules/restrict (License): Change to LGPL.
39079
39080 2004-11-30  Simon Josefsson  <jas@extundo.com>
39081
39082         * m4/restrict.m4: Add copyright and copying conditions.
39083
39084 2004-11-30  Simon Josefsson  <jas@extundo.com>
39085
39086         * m4/base64.m4: New file.
39087
39088 2004-11-30  Simon Josefsson  <jas@extundo.com>
39089
39090         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39091         base64.
39092
39093         * tests/test-base64.c: New file.
39094
39095         * modules/base64: New file.
39096
39097 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39098
39099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39100         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39101
39102         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39103
39104 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39105
39106         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39107         (__getcwd.c): Don't restore errno; glibc doesn't.
39108         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39109         first, falling back to our code only if its results look suspicious.
39110         Ensure that the resulting buffer is only as large as necessary.
39111
39112         * lib/readutmp.c: Include readutmp.h first.
39113         Include <errno.h>, since readutmp.h no longer does that.
39114         * lib/readutmp.h: Don't include <errno.h>,
39115         <sys/param.h>, <time.h>; not needed to establish interface.
39116         (errno): Remove decl.
39117         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39118         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39119         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39120
39121 2004-11-28  Simon Josefsson  <jas@extundo.com>
39122
39123         * lib/base64.h, base64.c: New file.
39124
39125 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39126
39127         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39128
39129 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39130
39131         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39132         (Depends-on): Remove pathmax, same.  Add mempcpy.
39133         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39134         (Makefile.am): Append getcwd.h to lib_SOURCES.
39135         (Include): Add getcwd.h.
39136         (Maintainer): Change from Jim Meyering to "all, glibc",
39137         since getdate now uses intended-for-glibc code.
39138         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39139         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39140
39141 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39142
39143         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39144         HP's ANSI C compiler.
39145         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39146         Declaring int functions causes warnings on some modern systems and
39147         shouldn't be needed to compile on ancient ones.
39148         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39149         defined.
39150
39151         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39152         with the following changes.
39153         (__set_errno): Parenthesize properly.
39154         Include <stdbool.h>.
39155         (MIN, MAX, MATCHING_INO): New macros.
39156         (__getcwd): Define with prototype, not K&R form.
39157         Use heuristics to allocate default buffer on stack if possible.
39158         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39159         behavior, and to avoid the PATH_MAX limit when computing
39160         ../../../../...
39161         Use MATCHING_INO to compare inode number to file.
39162         Check for arithmetic overflow in size calculations.
39163         Fix bug in reallocation of dot array that caused getcwd to fail
39164         on directories nested deeper than 75.
39165         Be more careful about saving errno on error.
39166         Do not use realloc; use only free+malloc, as this is a bit
39167         more flexible and avoids a needless copy operation.
39168         Do not inspect st_dev and st_ino for symbolic links; POSIX
39169         doesn't specify the latter.
39170         Check for closedir errors.
39171         Avoid needless casts.
39172         Use "#ifdef weak_alias" around weak_alias, to be like other
39173         glibc code.
39174         The following changes to getcwd.c have effect only when used in
39175         gnulib; they have no effect inside glibc proper.
39176         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39177         as alloca isn't used.
39178         (alloca, __alloca): Likewise.
39179         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39180         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39181         unconditionally, as gnulib assumes C89 or better.
39182         Do not include <sys/param.h>.
39183         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39184         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39185         better.
39186         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39187         Include <dirent.h> in a way that is compatible with modern Autoconf.
39188         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39189         New macros, if not already defined.
39190         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39191         Use "_LIBC", not "defined _LIBC", for consistency.
39192         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39193         a mempcpy module.
39194         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39195         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39196         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39197         credit only to Jim Meyering and adjust the copyright dates.
39198         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39199         <stdlib.h>, <unistd.h>, "pathmax.h".
39200         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39201         (INITIAL_BUFFER_SIZE): Remove.
39202         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39203
39204 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39205
39206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39207         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39208         Use the _ONCE methods, for efficiency.
39209         Check for fcntl.h.  In test program, include <errno.h>
39210         and <fcntl.h> if available.  Remove old K&R cruft from
39211         test program.  Check for common errors in GNU/Linux,
39212         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39213         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39214         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39215         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39216         name accordingly.
39217         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39218         accommodate new getcwd.c.
39219         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39220         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39221         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39222         that's all we need now.
39223
39224 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39225
39226         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39227         argp-parse.c depends on getopt internals, that means we should
39228         always use our getopt, to be on the safe side.
39229         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39230         order not to spoil the result of an eventual previous invocation
39231         of gl_GETOPT_SUBSTITUTE.
39232
39233 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39234
39235         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39236         redefinition warnings. To avoid them, include the defines
39237         in `#if !defined __need_getopt ... #endif'. The only place
39238         where __getopt_argv_const is used is in definitions
39239         of getopt_long and getopt_long_only below, which are as well
39240         protected by `#ifndef __need_getopt'.
39241         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39242         __need_getopt after including <stdio.h> and <unistd.h> These
39243         headers might have defined it.
39244
39245 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39246
39247         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39248
39249 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39250
39251         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39252         (futimens): New function, which uses futimes if available.
39253         (futimens, utimens): Support timespec==NULL, with same semantics
39254         as utime and utimens.
39255         * lib/utimens.h (futimens): New decl.
39256
39257 2004-11-23  Jim Meyering  <jim@meyering.net>
39258
39259         * lib/getopt_.h: Remove trailing blanks.
39260
39261 2004-11-23  Jim Meyering  <jim@meyering.net>
39262
39263         * lib/__fpending.c: Add comment.
39264
39265 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39266
39267         * modules/canonicalize (Depends-on): Add xreadlink.
39268         Problem reported by James Youngman.
39269
39270 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39271
39272         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39273         New macros.
39274         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39275         optopt): Use them instead of invoking ## directly; otherwise, the
39276         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39277
39278 2004-11-19  Bruno Haible  <bruno@clisp.org>
39279
39280         * lib/strtok_r.c: Move comments from here...
39281         * lib/strtok_r.h: ... to here.
39282
39283 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39284
39285         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39286         implementations that mishandle size_t overflow.
39287
39288 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39289
39290         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39291         might fail.  Problem reported by Yoann Vandoorselaere.
39292         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39293         implementations that mishandle size_t overflow.
39294
39295 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39296
39297         * modules/canon-host (Depends-on): Add strdup.
39298
39299 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39300
39301         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39302
39303 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39304
39305         * lib/canon-host.c: Include "strdup.h".
39306         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39307         Use strdup instead of malloc/strcpy to duplicate strings.
39308
39309         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39310         (human_space_before_unit): New constant.
39311         * lib/human.c (human_readable): Support it.
39312
39313         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39314         (xgetcwd): Set errno correctly when failing.
39315         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39316         the failure is actually due to a PATH_MAX problem.
39317
39318         Further getopt changes to make it more likely that glibc will
39319         buy the changes back.
39320         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39321         (getopt): Use it, so to preserve glibc semantic
39322         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39323         when compiling for libc.
39324         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39325         (getopt_long, getopt_long_only): Use it.
39326
39327         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39328         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39329         (getopt): Argv is now char * const *, as per standard.
39330         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39331         not char *__getopt_argv_const *.
39332         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39333         _getopt_long_only_r): Likewise.
39334         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39335         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39336         _getopt_long_r, _getopt_long_only_r): Likewise.
39337         * lib/getopt_.h (__getopt_argv_const): Remove.
39338         (getopt): Argv is now char * const *, as per standard.
39339
39340         * lib/getdate.y (tORDINAL): New token.
39341         (day, relunit): Allow it for relative times.
39342         (relative_time_table): Use tORDINAL for ordinals.
39343
39344 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39345
39346         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39347         Document that "second" isn't allowed as an ordinal number.
39348
39349 2004-11-16  Jim Meyering  <jim@meyering.net>
39350
39351         * modules/closeout (Depends-on): Add fpending.
39352
39353 2004-11-15  Jim Meyering  <jim@meyering.net>
39354
39355         * lib/closeout.c: Include "__fpending.h" once again.
39356         Include <stdbool.h>.
39357         (close_stdout): Don't fail just because stdout was closed initially,
39358         since some programs don't write to stdout in the normal course of
39359         operation (other than --version and --help), and we don't want this
39360         function to make e.g. `touch file >&-' fail.
39361         But do fail if it was closed and someone has tried to write to it.
39362         E.g., `printf foo >&-' must fail.
39363
39364 2004-11-13  Jim Meyering  <jim@meyering.net>
39365
39366         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39367
39368 2004-11-12  Simon Josefsson  <jas@extundo.com>
39369
39370         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39371         small doc fix is still pending.
39372
39373 2004-11-11  Simon Josefsson  <jas@extundo.com>
39374
39375         * modules/strtok_r: New file.
39376
39377         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39378         strtok_r.
39379
39380 2004-11-11  Simon Josefsson  <jas@extundo.com>
39381
39382         * m4/strtok_r.m4: New file.
39383
39384         * m4/getopt.m4: Replace opterr.
39385
39386 2004-11-11  Simon Josefsson  <jas@extundo.com>
39387
39388         * lib/strtok_r.h, strtok_r.c: New file.
39389
39390 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39391
39392         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39393         of replacing opterr, getopt, etc.  This should handle the
39394         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39395
39396 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39397
39398         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39399         we can stop lying to compilers about the constness of argv when we
39400         are compiled outside glibc.
39401         (getopt, getopt_long, getopt_long_only): Use it.
39402         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39403         _getopt_internal, getopt): Likewise.
39404         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39405         _getopt_long_only_r): Likewise.
39406         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39407         _getopt_long_r, _getopt_long_only_r): Likewise.
39408
39409         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39410         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39411         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39412         the other external symbols.
39413         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39414         declaration, since the above renaming now works around collisions.
39415
39416 2004-11-11  Jim Meyering  <jim@meyering.net>
39417
39418         * lib/linebreak.c: Remove trailing blanks.
39419         * lib/alloca_.h: Likewise.
39420         * lib/acosl.c: Likewise.
39421         * lib/euidaccess.c: Likewise.
39422         * lib/allocsa.h: Likewise.
39423
39424 2004-11-10  Simon Josefsson  <jas@extundo.com>
39425
39426         * m4/getaddrinfo.m4: New file.
39427
39428 2004-11-10  Simon Josefsson  <jas@extundo.com>
39429
39430         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39431
39432 2004-11-10  Simon Josefsson  <jas@extundo.com>
39433
39434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39435         getaddrinfo.
39436
39437         * modules/getaddrinfo: New file.
39438
39439 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39440
39441         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39442
39443 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39444
39445         * lib/mktime.c (SHR): New macro, which is a portable
39446         substitute for >> that should work even on Crays.
39447         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39448         Problem reported by Mark D. Baushke in
39449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39450         * lib/getdate.y (SHR): Likewise.
39451         (tm_diff): Use it.
39452         * lib/strftime.c (SHR): Likewise.
39453         (tm_diff): Use it.
39454         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39455         quote_these_too, so that right shifts are well defined.  All uses
39456         changed.
39457
39458 2004-11-10  Jim Meyering  <jim@meyering.net>
39459
39460         Ensure that no close failure goes unreported.
39461         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39462         return early when it seems there's nothing to flush.
39463         Don't include __fpending.h.
39464
39465 2004-11-10  Jim Meyering  <jim@meyering.net>
39466
39467         * modules/closeout (Depends-on): Remove fpending.
39468
39469 2004-11-10  Jim Meyering  <jim@meyering.net>
39470
39471         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39472
39473 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39474
39475         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39476         gl_FUNC_STRFTIME.
39477         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39478         and AC_REQUIRE when possible, to avoid duplicate checks.
39479         Check for <wchar.h>.
39480
39481 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39482
39483         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39484
39485 2004-11-09  Bruno Haible  <bruno@clisp.org>
39486
39487         * m4/sockpfaf.m4: New file.
39488
39489 2004-11-05  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39492         Reported by Mark D. Baushke <mdb@cvshome.org>.
39493
39494 2004-11-04  Bruno Haible  <bruno@clisp.org>
39495
39496         2004-09-11  Bruno Haible  <bruno@clisp.org>
39497                 * allocsa.valgrind: New file.
39498         2004-02-06  Bruno Haible  <bruno@clisp.org>
39499                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39500                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39501                 Reported by Christopher Seip <chris.seip@hp.com>.
39502
39503 2004-11-04  Bruno Haible  <bruno@clisp.org>
39504
39505         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39506         (Makefile.am): Distribute it.
39507
39508 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39509
39510         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39511         with errno == ERANGE if the buffer is too small.
39512         Problem reported by Mark D. Baushke.
39513
39514 2004-11-03  Albert Chin  <china@thewrittenword.com>
39515             Paul Eggert  <eggert@cs.ucla.edu>
39516
39517         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39518         equivalent, substitute $ac_type for equivalent type rather than
39519         blindly using uint32_t *always* which won't work if uint32_t is not
39520         available.  Define _UINT32_T to work around typedef of uint32_t if
39521         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39522         2.5.1.
39523
39524 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39525
39526         * m4/jm-macros.m4: Sync from coreutils.
39527         (gl_MACROS): Check for mbrlen, for pathchk.
39528         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39529
39530 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39531
39532         * lib/xreadlink.c (MAXSIZE): New macro.
39533         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39534         size does not exceed MAXSIZE.  Avoid cast.
39535         As suggested by Mark D. Baushke in
39536         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39537         if readlink fails with buffer size just under MAXSIZE, try again
39538         with MAXSIZE.
39539
39540 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39541
39542         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39543
39544 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39545         and  Paul Eggert  <eggert@cs.ucla.edu>
39546
39547         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39548         (get_date): Overparenthesize to avoid GCC warning.
39549
39550 2004-11-02  Bruno Haible  <bruno@clisp.org>
39551
39552         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39553         returns void.
39554
39555 2004-11-02  Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39558         function returns void.
39559
39560 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39561
39562         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39563         fflush_unlocked, flockfile, funlockfile, funlockfile,
39564         fputs_unlocked, putc_unlocked.
39565
39566 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39567
39568         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39569         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39570         already declared.
39571
39572 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39573
39574         * modules/getdate (Files): Add doc/getdate.texi.
39575         (Depends-on): Add setenv, xalloc.
39576
39577 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39578
39579         * lib/getdate.y: Add support for TZ="foo" within a date string.
39580         Fix some bugs near time_t boundaries.  Reject dates with
39581         out-of-range components, e.g., "Sept 31".
39582         Include <stdlib.h>, "setenv.h", "xalloc.h".
39583         (ISDIGIT_LOCALE): Remove; unused.
39584         Note that the TZ and time functions used here are not reentrant.
39585         (mktime_ok, get_tz): New functions.
39586         (TZBUFSIZE): New constant.
39587         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39588         This requires that we sometimes generate our own TZ="XXX..." setting.
39589
39590 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39591
39592         * doc/getdate.texi: New file, from coreutils with modifications for
39593         the new TZ parsing.
39594
39595 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39596
39597         * lib/mktime.c (not_equal_tm): Remove redundant check.
39598
39599 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39600
39601         * modules/regex (lib_SOURCES): Add regex.c.
39602         Reported by James Youngman in
39603         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39604
39605 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39606
39607         * lib/getdate.y: Use Bison 1.875 features, and some minor
39608         code cleanups.  This change does not affect semantics.
39609         Don't include <stdlib.h>; no longer needed.
39610         Don't include unlocked-io.h; only the "#if TEST" code uses
39611         stdio, and performance isn't crucial there.
39612         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39613         Bison 1.875 features as described below.
39614         All uses of "PC." replaced by "pc->".
39615         (YYSTYPE): Add a forward declaration.
39616         (yylex, yyerror): Use full prototypes in forward decls.
39617         Use "%pure-parser" rather than obsolescent "%pure_parser".
39618         Use %parse-param and %lex-param instead of obsolescent
39619         YYPARSE_PARAM and YYLEX_PARAM.
39620         (meridian_table, month_and_day_table, time_units_table,
39621         relative_time_table, time_zone_table, military_table,
39622         lookup_zone, lookup_word, get_date):
39623         Use NULL instead of 0 where appropriate.
39624         (to_hour): Avoid abort (), to avoid a dependency on
39625         stdlib.h.
39626         (yyerror, yylex): Now accepts parser_control * arg.
39627         (main) [TEST]: Use '\0' rather than 0 for char.
39628
39629 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39630
39631         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39632
39633 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39634
39635         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39636         It's now the caller's responsibility to handle the case where
39637         !HAVE_GETPAGESIZE && !defined getpagesize.
39638
39639         * lib/mktime.c (leapyear): Arg is long int, not int.
39640
39641 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
39642
39643         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39644
39645 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39646
39647         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39648         missing.  Problem reported by James Youngman.
39649
39650 2004-10-16  Simon Josefsson  <jas@extundo.com>
39651
39652         * gnulib-tool: Fix comments.  Fix parse problem.
39653         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39654
39655 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
39656
39657         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39658         implementation of getopt_long.  Problem reported by Alexander Taler in:
39659         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39660
39661 2004-10-15  Bruno Haible  <bruno@clisp.org>
39662
39663         * gnulib-tool: Untabify. Initialize supplied_libname.
39664         (func_usage): More homogenous output.
39665         (func_modules_transitive_closure, func_modules_to_filelist,
39666         func_emit_lib_Makefile_am): New functions.
39667         (func_import): New function, extracted from big case statement. Use
39668         func_get_license, func_modules_transitive_closure,
39669         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39670         opt_lgpl. Don't use test -a, as it's not portable.
39671         (func_create_testdir): Use func_modules_transitive_closure,
39672         func_modules_to_filelist, func_emit_lib_Makefile_am.
39673
39674 2004-10-15  Bruno Haible  <bruno@clisp.org>
39675
39676         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39677
39678 2004-10-15  Bruno Haible  <bruno@clisp.org>
39679
39680         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39681         the portions belonging to each module.
39682         Suggested by Derek Robert Price <derek@ximbiot.com>.
39683
39684 2004-10-12  Simon Josefsson  <jas@extundo.com>
39685
39686         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39687         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39688         to real functions.
39689
39690 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39691
39692         * modules/vsnprintf: New file.
39693
39694 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39695
39696         * m4/vsnprintf.m4: New file.
39697
39698 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39699
39700         * lib/vsnprintf.h: New file.
39701         * lib/vsnprintf.c: New file.
39702
39703 2004-10-11  Bruno Haible  <bruno@clisp.org>
39704
39705         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39706         vsnprintf.
39707
39708 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39709
39710         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39711
39712 2004-10-07  Bruno Haible  <bruno@clisp.org>
39713
39714         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39715         fits into the provided buffer.
39716
39717 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39718
39719         * lib/diacrit.c, diacrit.h: Add GPL notice.
39720
39721         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39722         notice.
39723         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39724         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39725         This avoids a potential constant-folding bug.
39726
39727 2004-10-05  Bruno Haible  <bruno@clisp.org>
39728
39729         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39730         for the declaration of strsep.
39731
39732 2004-10-05  Bruno Haible  <bruno@clisp.org>
39733
39734         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39735
39736 2004-10-04  Simon Josefsson  <jas@extundo.com>
39737
39738         * modules/memmem: New file.
39739         * tests/test-memmem.c: New file.
39740         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39741
39742 2004-10-04  Simon Josefsson  <jas@extundo.com>
39743
39744         * m4/memmem.m4: New file.
39745
39746 2004-10-04  Simon Josefsson  <jas@extundo.com>
39747
39748         * lib/memmem.h: New file.
39749         * lib/memmem.c: New file, taken from glibc.
39750
39751 2004-10-04  Simon Josefsson  <jas@extundo.com>
39752
39753         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
39754         '#ifdef USE_UNLOCKED_IO'.
39755
39756 2004-10-04  Simon Josefsson  <jas@extundo.com>
39757
39758         * config/srclist.txt: Add memmem from glibc.
39759
39760 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39761
39762         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
39763
39764         * modules/argmatch, modules/argp, modules/closeout, modules/error,
39765         modules/exclude, modules/getdate, modules/getline,
39766         modules/getndelim2, modules/getpass, modules/getpass-gnu,
39767         modules/getusershell, modules/linebuffer, modules/md5,
39768         modules/mountlist, modules/posixtm, modules/readtokens,
39769         modules/readutmp, modules/regex, modules/sha1,
39770         modules/version-etc, modules/yesno:
39771         Remove dependency on unlocked-io.
39772
39773 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39774
39775         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
39776
39777         * m4/unlocked-io.m4: Add copyright notice.
39778         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
39779
39780 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39781
39782         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
39783         * lib/xmalloc.c (xmemdup): Likewise.
39784         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
39785         XFREE): Remove these long-obsolescent macros.
39786         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
39787         * lib/xstrdup.c: Remove.
39788
39789         * lib/regex.c (re_comp): Cast gettext return value to char *,
39790         Problem reported by Martin Neitzel via Mark D. Baushke.
39791
39792 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39793
39794         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
39795         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
39796         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
39797         regex.c, sha1.c, version-etc.c, yesno.c:
39798         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
39799         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
39800         the includer's responsibility.
39801
39802         Sync from coreutils.
39803
39804         * lib/modechange.c (mode_compile): Don't decrement a pointer that
39805         points to the start of a string, as the C Standard says the
39806         resulting behavior is undefined.
39807
39808         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
39809         simple -> simple_backups, numbered_existing ->
39810         numbered_existing_backups, numbered -> numbered_backups
39811         to avoid shadowing problems.  All uses changed.
39812         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
39813         * lib/backupfile.c (check_extension, numbered_backup):
39814         Rename locals to avoid shadowing 'basename'.
39815         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
39816         once.
39817
39818         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
39819         * lib/.cvsignore: Add getopt.h.
39820
39821 2004-10-04  Bruno Haible  <bruno@clisp.org>
39822
39823         * modules/README: New file.
39824         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
39825         not a module.
39826
39827 2004-10-02  Jim Meyering  <jim@meyering.net>
39828
39829         * lib/dirfd.h, getpagesize.h: Add copyright notice.
39830
39831 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39832
39833         * modules/strsep: New file.
39834
39835 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39836
39837         * m4/strsep.m4: New file.
39838
39839 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39840
39841         * lib/strsep.h: New file.
39842         * lib/strsep.c: New file.
39843
39844 2004-10-01  Simon Josefsson  <jas@extundo.com>
39845
39846         * lib/snprintf.c (snprintf): Handle size==0.
39847
39848 2004-10-01  Simon Josefsson  <jas@extundo.com>
39849             Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
39852         (snprintf): Declare 'args'.
39853
39854 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
39855
39856         * lib/snprintf.c: Remove comments as to why each header is needed.
39857
39858 2004-10-01  Bruno Haible  <bruno@clisp.org>
39859
39860         * MODULES.html.sh: Add strsep.
39861
39862 2004-09-30  Simon Josefsson  <jas@extundo.com>
39863
39864         * modules/snprintf: New file.
39865
39866 2004-09-30  Simon Josefsson  <jas@extundo.com>
39867
39868         * m4/snprintf.m4: New file.
39869
39870 2004-09-30  Simon Josefsson  <jas@extundo.com>
39871
39872         * lib/snprintf.h, lib/snprintf.c: New files.
39873
39874 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39875
39876         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
39877         (hol_entry_help): Never translate an empty string.
39878         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
39879         * lib/argp.h (OPTION_NO_TRANS): New option.
39880
39881 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39882
39883         * modules/argp (Maintainer): Replace Simon Josefsson
39884         by Sergey Poznyakoff.
39885
39886 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39887
39888         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
39889         changes merged back into glibc.
39890
39891 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39892
39893         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
39894
39895 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39896
39897         * lib/xvasprintf.c: Include xalloc.h.
39898         (xvasprintf): Use xalloc_die, not xmalloc_die.
39899
39900 2004-09-29  Bruno Haible  <bruno@clisp.org>
39901
39902         * modules/alloca-opt: New file, derived from modules/alloca.
39903         * modules/allocsa: Depend on alloca-opt instead of alloca.
39904         * modules/setenv: Likewise.
39905         * modules/vasnprintf: Likewise.
39906         * MODULES.html.sh: Add alloca-opt.
39907
39908 2004-09-28  Simon Josefsson  <jas@extundo.com>
39909
39910         * gnulib-tool: New parameter --lgpl, to asseert that modules are
39911         LGPL, and to replace license template from GPL to LGPL.
39912
39913 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39914
39915         * modules/dummy: Change license to LGPL.
39916
39917 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39918
39919         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
39920
39921 2004-09-24  Simon Josefsson  <jas@extundo.com>
39922
39923         * modules/minmax (License): Change from GPL to LGPL.
39924
39925 2004-09-23  Simon Josefsson  <jas@extundo.com>
39926
39927         * gnulib-tool (--import): Typo.
39928
39929 2004-09-23  Simon Josefsson  <jas@extundo.com>
39930
39931         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
39932
39933 2004-09-22  Bruno Haible  <bruno@clisp.org>
39934
39935         * modules/*: Add 'License' field.
39936         * gnulib-tool: Accept --extract-license option.
39937         (func_get_license): New function.
39938
39939 2004-09-21  Bruno Haible  <bruno@clisp.org>
39940
39941         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39942         Reported by Simon Josefsson.
39943
39944 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39945
39946         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
39947         gl_AC_TYPE_LONG_LONG.
39948
39949 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39950
39951         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
39952
39953 2004-09-18  Simon Josefsson  <jas@extundo.com>
39954         and  Paul Eggert  <eggert@cs.ucla.edu>
39955
39956         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
39957         calls with autoreconf.  Define GL_LIB.
39958
39959 2004-09-14  Karl Berry  <karl@gnu.org>
39960
39961         * config/srclist.txt: unsync setenv.c, sigh.
39962
39963 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39964
39965         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
39966         Problem reported by Bruno Haible in:
39967         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
39968
39969 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         * config/srclist.txt: Comment out argp-pvh.c.
39972
39973 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
39974
39975         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
39976         in case some system header has #define'd it.  Problem reported by
39977         Soeren D. Schulze in
39978         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
39979
39980 2004-09-09  Karl Berry  <karl@gnu.org>
39981
39982         * regex.[ch]: delete from the root.  These were supposed to be
39983                 synced with emacs cvs, but this has not happened for about
39984                 a year, and anyway nothing else uses emacs regex.[ch].
39985                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
39986                 lib/regex[.ch] is untouched.
39987
39988 2004-09-09  Bruno Haible  <bruno@clisp.org>
39989
39990         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
39991
39992 2004-09-09  Bruno Haible  <bruno@clisp.org>
39993
39994         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
39995         modifications.
39996         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
39997
39998 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
39999
40000         * modules/xvasprintf: New file.
40001         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40002
40003 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40004
40005         * lib/xvasprintf.h: New file.
40006         * lib/xvasprintf.c: New file.
40007         * lib/xasprintf.c: New file.
40008
40009 2004-09-08  Bruno Haible  <bruno@clisp.org>
40010
40011         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40012
40013 2004-09-08  Bruno Haible  <bruno@clisp.org>
40014
40015         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40016         length is > INT_MAX.
40017         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40018         more.
40019
40020 2004-09-08  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/stdint_.h: New file, taken from GNU clisp.
40023
40024 2004-09-08  Bruno Haible  <bruno@clisp.org>
40025             Oskar Liljeblad  <oskar@osk.mine.nu>
40026
40027         * modules/stdint: New file.
40028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40029
40030 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40031
40032         Import from coreutils.
40033         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40034         strings on unbounded length.  alloca's performance benefits aren't
40035         that important here.
40036         (V_STRDUP): Remove.
40037         (parse_with_separator): New function, with most of the internals
40038         of the old parse_user_spec.  Allow user to omit both user and group,
40039         for compatibility with FreeBSD.
40040         Clone only the user name, not the entire spec.
40041         Do not set *uid, *gid unless entirely successful.
40042         Avoid memory leak in some failing cases.
40043         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40044         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40045         (parse_user_spec): Rewrite to use parse_with_separator.
40046
40047 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40048
40049         * modules/userspec: Don't depend on alloca.
40050
40051 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40052
40053         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40054
40055 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40056
40057         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40058         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40059         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40060
40061 2004-08-16  Simon Josefsson  <jas@extundo.com>
40062
40063         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40064         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40065         Add --dry-run for --import.
40066         Let user provided command line parameters override configure.ac
40067         settings.
40068
40069 2004-08-12  Simon Josefsson  <jas@extundo.com>
40070
40071         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40072         as discussed with Paul Eggert in threads rooted at
40073         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40074         and
40075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40076         Before, the test was empty, and relied on ELIDE_CODE in source
40077         code.)
40078         (gl_PREREQ_GETOPT): New macro.
40079         (gl_GETOPT): Use them.
40080
40081 2004-08-12  Simon Josefsson  <jas@extundo.com>
40082
40083         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40084         * lib/getopt_.h: Renamed from getopt.h.
40085
40086 2004-08-12  Simon Josefsson  <jas@extundo.com>
40087
40088         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40089         Change default library name from libfoo to libgnu.
40090         Now, if you have a configure.ac that says:
40091                 gl_SOURCE_BASE(gl)
40092                 gl_M4_BASE(gl/m4)
40093                 gl_MODULES(error getopt etcetera)
40094                 gl_INIT
40095         you can import all you need by running:
40096                 ../gnulib/gnulib-tool --import
40097
40098         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40099         (Makefile.am): Rewrite, use logic from argz.
40100         (Include): Use <getopt.h> instead of "getopt.h".
40101
40102 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40103
40104         * modules/argp (Files): Add m4/unlocked-io.m4.
40105         (Depends-on): Add extensions.
40106
40107 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40108
40109         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40110         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40111         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40112         Check for program_invocation_name, program_invocation_short_name,
40113         flockfile, funlockfile, features.h, _getopt_long_only_r.
40114
40115 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40116
40117         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40118         its complicated substitute.
40119         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40120         and program_invocation_name.
40121         (__argp_basename) [!_LIBC]: Remove; the only use was
40122         replaced by its body.
40123         (__argp_short_program_name): Change condition from
40124         !defined __argp_short_program_name to
40125         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40126         to match argp-namefrob.h.
40127         (__argp_failure): Don't assume strerror_r returns char *.
40128         * lib/argp-parse.c (N_): Define unconditionally.
40129         (argp_default_options): Fill out initializers with 0 to avoid
40130         gcc warnings.
40131
40132 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40133
40134         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40135         getopt1.c.
40136
40137 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40138
40139         Merge from coreutils.
40140
40141         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40142
40143         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40144         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40145
40146 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40147
40148         Merge from coreutils.
40149
40150         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40151         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40152         for Reliant Unix 5.43.
40153
40154         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40155         (union fooround): Use uintmax_t, not long int.
40156         The rest is a merge from libc:
40157         [defined _LIBC]: Include <shlib-compat.h>.
40158         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40159
40160         * lib/settime.c (settime): Recode to avoid warning with
40161         Sun Forte C 6U2.
40162
40163         * lib/strverscmp.c: Convert to UTF-8.
40164
40165 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40166
40167         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40168         m4/uintmax_t.m4.
40169
40170 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40171
40172         * modules/xalloc-die: New file.
40173         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40174
40175         * modules/md5 (Files): Add m4/uint32_t.m4.
40176         * modules/sha1: Renamed from modules/sha.
40177         (Files):
40178         Rename lib/sha.h to lib/sha1.h.
40179         Rename lib/sha.c to lib/sha1.c.
40180         Rename m4/sha.m4 to m4/sha1.m4.
40181         (lib_SOURCES): Likewise.
40182         (configure.ac): Rename gl_SHA to gl_SHA1.
40183         (Include): sha.h -> sha1.h.
40184
40185 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40186
40187         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40188         * m4/sha1.m4: Renamed from sha.m4.
40189         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40190
40191 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         * lib/obstack.h (obstack_empty_p):
40194         Don't assume that chunk->contents is suitably aligned.
40195         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40196         Likewise. Problem reported by Benno in
40197         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40198
40199         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40200         readable.  This could be improved further but it'd take some work.
40201
40202 2004-08-08  Simon Josefsson  <jas@extundo.com>
40203
40204         * modules/xgethostname (Depends-on): Remove exit and error (not
40205         used).
40206
40207         * modules/getpass-gnu: Add getpass.h.
40208         (Depends-on): Add stdbool.
40209         * modules/getpass: Add getpass.h.
40210
40211 2004-08-08  Simon Josefsson  <jas@extundo.com>
40212
40213         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40214         Check getpass declaration.
40215
40216 2004-08-08  Simon Josefsson  <jas@extundo.com>
40217
40218         * lib/xgethostname.c: Don't include error.h (not used).
40219
40220         * lib/getpass.h: Add.
40221         * lib/getpass.c: Include getpass.h first.
40222
40223 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40224
40225         * lib/xalloc-die.c: New file.
40226         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40227         All uses removed.
40228         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40229         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40230         xalloc-die.c.
40231         (_, N_, xalloc_die): Move to xalloc-die.c.
40232         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40233         so that we needn't mess with xalloc_msg_memory_exhausted.
40234
40235         * lib/sha1.h: Renamed from sha.h.
40236         (SHA1_H): Renamed from _SHA_H.
40237         (sha1_ctx): Renamed from sha_ctx.
40238         (sha1_init_ctx): Renamed from sha_init_ctx.
40239         (sha1_process_block): Renamed from sha_process_block.
40240         (sha1_process_bytes): Renamed from sha_process_bytes.
40241         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40242         (sha1_read_ctx): Renamed from sha_read_ctx.
40243         (sha1_stream): Renamed from sha_stream.
40244         (sha1_buffer): Renamed from sha_buffer.
40245         * lib/sha1.c: Likewise; renamed from sha.c.
40246         Do not include <sys/types.h>.
40247         Include <stddef.h> rather than <stdlib.h>.
40248
40249 2004-08-08  Bruno Haible  <bruno@clisp.org>
40250
40251         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40252         FILESYSTEM_PREFIX_LEN.
40253         * lib/progreloc.c: Likewise.
40254         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40255
40256 2004-08-06  Simon Josefsson  <jas@extundo.com>
40257
40258         * modules/progname (Depends-on): Don't depend on stdbool.
40259
40260 2004-08-06  Simon Josefsson  <jas@extundo.com>
40261
40262         * modules/getsubopt: New file.
40263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40264         getsubopt.
40265
40266 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40267
40268         More merge from coreutils.
40269
40270         * m4/utimens.m4, m4/utimecmp.m4: New files.
40271         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40272         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40273         prereq.m4, sha.m4: Import changes from coreutils.
40274
40275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40276
40277         More merge from coreutils.
40278         * modules/raise, modules/readtokens0, modules/utimens:
40279         * modules/utimecmp, module/xnanosleep: New files.
40280         * modules/strftime: Add lib/strftime.h.
40281         Change include from <time.h> to "strftime.h".
40282         * modules/yesno: Add lib/yesno.h.
40283         * modules/backupfile: Remove lib/addext.c.
40284         * modules/euidaccess: Add stat-macros.h.
40285         * modules/canonicalize, modules/euidaccess,
40286         modules/filemode, modules/lchown, modules/makepath,
40287         modules/rmdir, modules/stat: Likewise.
40288
40289 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40290
40291         Merge from tar.
40292         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40293         SIZE_MAX is a valid preprocessor constant.
40294         (__argp_basename): Change from "#ifndef _LIBC"
40295         to "#ifndef __argp_short_program_name", so that
40296         we don't compile these functions for tar.
40297
40298         More merges from coreutils.
40299         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40300         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40301         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40302         * lib/addext.c: Remove; no longer needed.
40303         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40304         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40305         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40306         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40307         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40308         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40309         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40310         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40311         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40312         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40313         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40314         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40315         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40316         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40317         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40318         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40319         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40320         Import changes from coreutils.
40321
40322 2004-08-05  Simon Josefsson  <jas@extundo.com>
40323
40324         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40325
40326 2004-08-05  Simon Josefsson  <jas@extundo.com>
40327
40328         * m4/getsubopt.m4: New file.
40329
40330 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40331
40332         Merge from coreutils.
40333
40334         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40335         * m4/getcwd-path-max.m4: New files.
40336
40337         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40338         FILESYSTEM_PREFIX_LEN ->
40339         FILE_SYSTEM_PREFIX_LEN.
40340         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40341         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40342         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40343         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40344
40345         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40346         prerequisite modules now handle the DOS stuff.
40347         Don't check for unistd.h.
40348
40349 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40350
40351         Merge from coreutils.
40352
40353         * lib/.gdb-history: Remove; this doesn't belong here.
40354
40355         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40356         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40357         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40358         * lib/getcwd.c: New files.
40359
40360         * lib/dirname.h: Include <stdbool.h>.
40361         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40362         for consistency with POSIX terminology.  All uses changed.
40363         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40364         (strip_trailing_slashes): Use bool for booleans.
40365         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40366
40367         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40368         sometimes returns a positive errno value even when it succeeds.
40369         (print_errno_message) [!LIBC]: Fall back on strerror if
40370         __strerror_r fails.
40371
40372         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40373         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40374         (longest_relative_suffix): New function.
40375         (path_concat): Use it.  Assume first argument is not NULL.
40376         Port to DOS.  Omit redundant separators.
40377         Report an error instead of returning NULL.
40378         Use mempcpy instead of memcpy.
40379         (xpath_concat): Remove: not declared or used.
40380
40381         * lib/same.h: Include <stdbool.h>
40382         (same_name): Return bool, not int.
40383         * lib/same.c (same_name): Likewise.
40384         (errno): Don't declare; we assume C89 or better now.
40385
40386         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40387         if not already defined.
40388
40389         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40390         * lib/dup-safer.c (errno): Likewise.
40391
40392 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40393
40394         Merge from coreutils.
40395         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40396         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40397         * modules/path-concat: Don't depend on strdup.
40398
40399 2004-08-03  Simon Josefsson  <jas@extundo.com>
40400
40401         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40402         * lib/progname.h: Don't include stdbool.h.
40403
40404 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40405
40406         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40407         * MODULES.html.sh (func_all_modules): Remove fatal.
40408
40409 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40410
40411         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40412
40413 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40414
40415         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40416         working.
40417
40418 2004-08-02  Simon Josefsson  <jas@extundo.com>
40419
40420         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40421         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40422         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40423
40424 2004-08-01  Simon Josefsson  <jas@extundo.com>
40425
40426         * lib/xgetdomainname.c: Include stdlib.h, for free().
40427
40428 2004-07-19  Bruno Haible  <bruno@clisp.org>
40429
40430         * MODULES.html.sh (func_all_modules): Add dummy.
40431
40432 2004-07-16  Simon Josefsson  <jas@extundo.com>
40433
40434         * modules/dummy: New file.
40435
40436 2004-07-16  Simon Josefsson  <jas@extundo.com>
40437
40438         * lib/dummy.c: New file.
40439
40440 2004-07-16  Bruno Haible  <bruno@clisp.org>
40441
40442         * lib/backupfile.h: Add extern "C" for C++.
40443         * lib/closeout.h: Likewise.
40444         * lib/copy-file.h: Likewise.
40445         * lib/findprog.h: Likewise.
40446         * lib/full-write.h: Likewise.
40447         * lib/pathname.h: Likewise.
40448         * lib/progname.h: Likewise.
40449         * lib/stpcpy.h: Likewise.
40450         * lib/stpncpy.h: Likewise.
40451         * lib/strcase.h: Likewise.
40452         * lib/strstr.h: Likewise.
40453         * lib/xalloc.h: Likewise.
40454
40455         * lib/mbswidth.h: Add extern "C" for C++.
40456         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40457
40458 2004-07-13  Robert Millan  <robertmh@gnu.org>
40459
40460         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40461
40462 2004-07-09  Simon Josefsson  <jas@extundo.com>
40463
40464         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40465         failed without this.)
40466
40467 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40468
40469         * modules/chown (Files): Add lib/fchown-stub.c, since
40470         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40471
40472 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40473
40474         * lib/fchown-stub.c: New file.
40475
40476 2004-06-24  Jim Meyering  <jim@meyering.net>
40477
40478         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40479
40480 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40481
40482         * modules/argz: Omit "#include".
40483
40484         * MODULES.html.sh (func_all_modules): Add calloc, to match
40485         2004-06-01 addition of calloc module.
40486
40487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40488
40489         * m4/argz.m4: New file, which is autoupdated from libtool.
40490
40491 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40492
40493         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40494         libtool.
40495
40496 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40497
40498         * config/srclist-update: Don't insist on "USA." before the
40499         close-comment, as libtool omits the period and puts the */ on a
40500         separate line.
40501         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40502         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40503
40504 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40505
40506         * modules/argz: New file.
40507         * MODULES.html.sh (func_all_modules): Add argz.
40508
40509 2004-06-12  Jim Meyering  <jim@meyering.net>
40510         and  Paul Eggert  <eggert@cs.ucla.edu>
40511
40512         * modules/hash (Files): Add lib/xalloc.h.
40513         * modules/pipe (Depends-on): Add wait-process.
40514         * modules/stat (Depends-on): Add xalloc.
40515         * modules/userspec (Files): Add lib/userspec.h.
40516         * modules/xstrto
40517
40518         Upgrade from gettext-0.13.
40519         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40520         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40521         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40522
40523 2004-06-10  Jim Meyering  <jim@meyering.net>
40524
40525         * lib/calloc.c: New file.
40526
40527 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40528
40529         * lib/getdate.y (yylex): Allow space between sign and number.
40530         Problem reported by Dan Jacobson.
40531
40532 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40533
40534         Merge from coreutils CVS.
40535
40536         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40537         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40538         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40539         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40540         xstrtol.m4: Fix copyright date and/or serial number.
40541
40542         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40543         See if we need an fchown replacement.
40544         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40545         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40546         and use the replacement function if we detect either defect.
40547
40548         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40549         gl_UTIMECMP.
40550
40551 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40552         and  Jim Meyering  <jim@meyering.net>
40553
40554         Merge from coreutils CVS.
40555
40556         * lib/stat-macros.h: New file, with contents from file-type.h
40557         and coreutils' system.h.
40558         * lib/file-type.c: Include "stat-macros.h".
40559         * lib/file-type.h (file_type): Move all macro definitions to new file,
40560         stat-macros.h.
40561
40562         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40563         Wrap old code with this conditional.
40564         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40565         function that does not dereference symlinks.
40566         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40567
40568         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40569         dependency problems.
40570         (xreadlink): Accept new arg SIZE, for efficiency.
40571         All decls and uses changed.
40572         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40573
40574         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40575         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40576
40577         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40578         sysexits.h.
40579
40580 2004-06-01  Jim Meyering  <jim@meyering.net>
40581
40582         * m4/calloc.m4: New file.
40583
40584 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40585
40586         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40587         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40588         Also, fix a typo in a diagnostic.
40589
40590 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40591
40592         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40593         or AC_FUNC_REALLOC.
40594
40595 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40596
40597         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40598         macros to be defined.
40599         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40600         the allocator returns NULL because the requested size is zero.
40601
40602 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40603
40604         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40605         var.  Add comment explaining why libc still defines it.  This
40606         merges the following patch from glibc:
40607         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40608
40609 2004-05-20  Andreas Schwab  <schwab@suse.de>
40610
40611         * m4/free.m4: Replace free if it not known to work, not the other
40612         way round.
40613
40614 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40615
40616         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
40617         present in glibc since revision 1.1 of this file.
40618         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40619         obstack_alignment_mask, obstack_alloc, obstack_base,
40620         obstack_blank, obstack_blank_fast, obstack_chunk_size,
40621         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40622         obstack_grow0, obstack_init, obstack_int_grow,
40623         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40624         obstack_next_free, obstack_object_size, obstack_ptr_grow,
40625         obstack_ptr_grow_fast, obstack_room): Remove declarations of
40626         nonexistent functions.
40627
40628 2004-05-18  Karl Berry  <karl@gnu.org>
40629
40630         * config/srclist.txt: break link for vasnprintf.c.
40631
40632 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40633
40634         Port obstack to the AS/400, where pointers are 16 bytes wide and
40635         you cannot cast an integer to a valid pointer.  This patch is
40636         currently waiting to be integrated into glibc; see
40637         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40638
40639         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40640         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40641         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40642         (struct obstack): temp member is now a union of a pointer and
40643         an integer, instead of an integer.  All integer uses changed.
40644         This does not affect the physical layout of struct obstack,
40645         except on hosts (like the AS/400) where the size or alignment of
40646         void * is greater than that of ptrdiff_t.
40647         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40648         __STDC__)]: Store temporary in pointer member of union, not
40649         integer member.
40650         * lib/obstack.c: Include <stddef.h>, for offsetof.
40651         (struct fooalign): Remove; it doesn't need a name.
40652         (union fooround): Change double to long double, and add void *.
40653         (DEFAULT_ALIGNMENT): Use offsetof to compute.
40654         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40655         not a macro.  Hence the values are always int; so remove all
40656         casts-to-int in uses.
40657
40658 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40661         we can get this patch merged into glibc.
40662
40663 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40664             Paul Eggert  <eggert@cs.ucla.edu>
40665
40666         * m4/argp: Depend on alloca.
40667
40668 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40669             Paul Eggert  <eggert@cs.ucla.edu>
40670
40671         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40672         freecoding.
40673
40674 2004-05-17  Bruno Haible  <bruno@clisp.org>
40675
40676         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40677         precision that consists of a '.' followed by an empty digit string.
40678         Patch by Tor Lillqvist <tml@iki.fi>.
40679
40680 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40681
40682         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40683         for backward compatibility with older code.  We need our own
40684         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
40685         it under some other name, and our alloca.h will define it.
40686
40687 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40688             Derek Price  <derek@ximbiot.com>
40689
40690         * lib/alloca.c: Include <alloca.h>, to get our interface.
40691         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40692         include <alloca.h> first.  Use C89 prototype for alloca; this
40693         requires including <stddef.h> for size_t.  Use extern "C" if C++.
40694         Use #elif for simplicity, since we can assume C89 now.
40695         Don't try to source the system alloca.h since it will not be found
40696         and to prevent recursively including its replacement.
40697         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40698         * lib/regex.c: Likewise.
40699
40700 2004-05-16  Derek Price  <derek@ximbiot.com>
40701             Paul Eggert  <eggert@cs.ucla.edu>
40702
40703         getline cleanup.  This changes the getndelim2 API: both order of
40704         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40705         no delimiter).
40706
40707         * lib/getline.c: Don't include stddef.h or stdio.h, since our
40708         interface does that.
40709         (getline): Always use getdelim, so that we don't have two
40710         copies of this code.
40711         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40712         if available.
40713         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40714         (GETNDELIM2_MAXIMUM): New macro.
40715         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
40716         instead of the old practice of delim2==0.  All callers changed.
40717         Return -1 on overflow, instead of returning junk.
40718         Do not set *linesize unless allocation succeeds.
40719         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40720         that we include sys/types.h.
40721         * lib/getnline.h: Likewise.
40722         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40723         (getndelim2): Reorder arguments.
40724         * lib/getnline.c (getnline, getndelim):
40725         Don't discard the NMAX argument.
40726         (getnline): Invoke getndelim, to avoid code duplication.
40727         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40728         of (size_t) -1 by callers of the getnline family.
40729
40730 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40731
40732         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40733         Check for gettimeofday.
40734         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40735         Check for settimeofday, stime.
40736
40737 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40738
40739         * lib/nanosleep.c (suspended): Change its type from int to
40740         sig_atomic_t volatile.
40741         (first_call): Make it private to rpl_nanosleep, and have it
40742         be zero initially as that's a bit faster.
40743         (my_usleep): Round up fractional times instead of truncating them,
40744         as this is the usual meaning for 'sleep'.
40745
40746         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
40747         doesn't work.
40748         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
40749         (ENOSYS): Define if not defined.
40750         (settime): Fall back on stime if it exists and settimeofday fails.
40751         But don't bother with fallbacks if a method fails with errno == EPERM.
40752
40753 2004-05-11  Jim Meyering  <jim@meyering.net>
40754
40755         Prior to this change, the save_cwd caller required read access to the
40756         current directory on most systems (ones with the fchdir function).
40757
40758         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
40759         fails, try write-only, and finally, resort to using xgetcwd.
40760
40761 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40762
40763         * lib/obstack.c, obstack.h: Import changes from libc.
40764
40765 2004-04-28  Bruno Haible  <bruno@clisp.org>
40766
40767         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
40768         also implicitly appends .exe to executables.
40769         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
40770         accepts Windows pathnames.
40771         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40772         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40773         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40774         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40775         Reported by Derek Robert Price <derek@ximbiot.com>.
40776
40777 2004-04-21  Karl Berry  <karl@gnu.org>
40778
40779         * config/srclist.txt (localcharset.c): break sync.
40780
40781 2004-04-20  Paul Eggert  <eggert@twinsun.com>
40782
40783         * m4/host-os.m4: Add a copyright notice.
40784
40785 2004-04-20  Jim Meyering  <jim@meyering.net>
40786
40787         Change UTILS_ to gl_ in AC_DEFINE'd names.
40788         Change utils_- and jm_-prefixed variables, too.
40789         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
40790         UTILS_FUNC_MKDIR_TRAILING_SLASH.
40791         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
40792
40793         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
40794         Don't emit trailing blanks.
40795         Also rename jm_-prefixed variables to have gl_ prefix.
40796
40797         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
40798         Also rename jm_-prefixed variables to have gl_ prefix.
40799
40800         * m4/jm-macros.m4: Reflect the renamings.
40801         * m4/prereq.m4: Likewise.
40802
40803 2004-04-20  Jim Meyering  <jim@meyering.net>
40804
40805         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
40806         memory.
40807
40808 2004-04-20  Jim Meyering  <jim@meyering.net>
40809             Bruno Haible  <bruno@clisp.org>
40810
40811         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
40812         memory when realloc fails.
40813
40814 2004-04-19  Jim Meyering  <jim@meyering.net>
40815
40816         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
40817         now that readutmp.c may call `free (0)'.
40818
40819 2004-04-19  Bruno Haible  <bruno@clisp.org>
40820
40821         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
40822         * m4/inttypes_h.m4: Likewise.
40823         * m4/stdint_h.m4: Likewise.
40824         * m4/intmax_t.m4: Likewise.
40825         * m4/uintmax_t.m4: Likewise.
40826
40827 2004-04-18  Jim Meyering  <jim@meyering.net>
40828
40829         * m4/prereq.m4: Don't forbid jm_ prefix.
40830
40831         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
40832         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
40833         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
40834         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
40835         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
40836         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
40837         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
40838         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
40839         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
40840         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
40841         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
40842         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
40843         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
40844         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
40845         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
40846         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
40847         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
40848         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
40849         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
40850
40851 2004-04-18  Jim Meyering  <jim@meyering.net>
40852
40853         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
40854         failure, don't leak memory and do call END_UTMP_ENT.
40855
40856 2004-04-16  Jim Meyering  <jim@meyering.net>
40857
40858         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
40859         coreutils' stat program.
40860         (gl_PREREQ): Don't require jm_PREREQ_STAT.
40861
40862 2004-04-11  Paul Eggert  <eggert@twinsun.com>
40863
40864         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
40865         C89.
40866         (CHAR_BIT): Remove, since we assume C89.
40867         Include <stdint.h> if available, as per current Autoconf CVS advice.
40868
40869 2004-03-31  Jim Meyering  <jim@meyering.net>
40870
40871         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
40872         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
40873         * m4/xalloc.m4: Likewise.
40874
40875 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40876
40877         Merge from coreutils.
40878
40879         * m4/inttostr.m4: New file.
40880         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
40881         Require AM_STDBOOL_H and gl_TIMESPEC instead.
40882         Require gl_CLOCK_TIME.
40883         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
40884
40885 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40886
40887         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
40888         not bool, to be more consistent with Unix conventions.
40889         Suggested by Bruno Haible.
40890
40891         Merge from coreutils.
40892
40893         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
40894         * lib/umaxtostr.c: New files.
40895
40896         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
40897         the usual <time.h> dance.
40898         (get_date): Change signature to support fractional time stamps.
40899         All callers changed.
40900         * lib/getdate.y: Include "getdate.h" first, as we can now
40901         assume C89 and don't need to worry about 'const'.
40902         Similarly, include "unlocked-io.h" near start, not in middle.
40903         Include <limits.h>.
40904         (textint.value): Use long int rather than int.
40905         (textint.digits): Use size_t rather than int.
40906         (BILLION, LOG10_BILLION): New constants.
40907         (parser_control): New member rel_ns.  Members day_ordinal,
40908         time_zone, month, day, hour, minutes, rel_year, rel_month,
40909         rel_day, rel_hour, rel_minutes, rel_seconds
40910         are now long int, not int.  Member seconds is now struct timespec,
40911         not int.  New member timespec_seen.  Members dates_seen, days_seen,
40912         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
40913         not int.
40914         (%union.intval): Now long int, not int.
40915         New member timespec.
40916         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
40917         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
40918         (spec): Now is a timespec or an item list.
40919         (timespec, items): New nonterminals.
40920         (time, rel, relunit, number, get_date):
40921         Add support for fractional seconds.
40922         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
40923         (gmtime, localtime, mktime): Remove decls; not needed with C89.
40924         (to_hour): First arg is now long int, not int.
40925         (to_year): Returns long int, not int.
40926         Don't treat year -70 like 70.
40927         (tm_diff): Returns long int, not int.
40928         (lookup_word): Use bool instead of int when appropriate.
40929         (yylex): Use size_t for count, not int.
40930         Detect overflow when parsing large integer constants.
40931         Add support for fractions.
40932         (get_date): Make pointers 'const' if possible.
40933         Use more-portable code to detect integer overflow.
40934         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
40935         Don't use ctime; it's not reliable if the year has >4 digits.
40936
40937         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
40938         This is for compatibility with BSD.
40939
40940         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
40941         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
40942         From coreutils' system.h.
40943
40944         * lib/userspec.c: Don't include "posixver.h".
40945         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
40946         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
40947         compatible extension.  Simplify code by removing a boolean int
40948         that was always nonzero if a string was nonnull.
40949
40950 2004-03-30  Jim Meyering  <jim@meyering.net>
40951
40952         Merge from coreutils.
40953
40954         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
40955         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
40956         on some systems one must include <grp.h> before it.
40957         Reported by Christian Krackowizer.
40958
40959 2004-03-30  Jim Meyering  <jim@meyering.net>
40960
40961         Merge from coreutils.
40962
40963         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
40964
40965         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
40966         an empty input stream.
40967
40968         * lib/readtokens.c: Include <stdbool.h>.
40969         (readtoken): Use `size_t' rather than int/long.
40970         All callers adjusted.
40971         Use `bool' rather than `int' where appropriate.
40972         Use memset rather than an explicit loop.
40973         Use x2nrealloc rather than xrealloc.
40974         Allow the use of `\0' as a delimiter.
40975         (readtokens): Likewise.
40976         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
40977
40978 2004-03-30  Jim Meyering  <jim@meyering.net>
40979
40980         * m4/realloc.m4: Remove file, since now it does no more than
40981         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
40982         the `configure.ac' section of module/realloc.
40983         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
40984
40985 2004-03-30  Bruno Haible  <bruno@clisp.org>
40986
40987         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
40988         nonnull.
40989
40990 2004-03-29  Paul Eggert  <eggert@twinsun.com>
40991
40992         Merge changes to getloadavg.c from coreutils and Emacs.
40993
40994         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
40995         Define to an expression, not to the empty string.
40996         Include cloexec.h and xalloc.h.
40997         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
40998         Use set_cloexec_flag rather than rolling our own.
40999         * lib/cloexec.c, lib/cloexec.h: New files.
41000
41001 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41002
41003         * m4/cloexec.m4: New file.
41004
41005 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41006
41007         * lib/getopt.h: Sync with libc CVS.
41008
41009 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41010             Bruno Haible  <bruno@clisp.org>
41011
41012         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41013         mbswidth.
41014
41015 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41016             Bruno Haible  <bruno@clisp.org>
41017
41018         * lib/mbswidth.h: Include <wchar.h> only if
41019         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41020         <wchar.h>.
41021         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41022
41023 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41024
41025         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41026         Sync with libc CVS.
41027         * lib/getopt_int.h: New file, also synced from libc.
41028
41029 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41030
41031         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41032         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41033         Bring back getopt.c, getopt.h, getopt1.c.
41034
41035 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41036
41037         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41038         All uses changed.  Check for sa_sigaction member; this fixes
41039         a bug first reported by Jason Andrade in
41040         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41041
41042 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41043
41044         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41045         '#if' expressions.  Unlike the code it replaces, it does not
41046         depend on (defined _SC_PAGESIZE).  However, it does depend on
41047         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41048         first reported by Jason Andrade in
41049         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41050
41051 2004-02-25  Simon Josefsson  <jas@extundo.com>
41052
41053         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41054
41055 2004-02-25  Simon Josefsson  <jas@extundo.com>
41056
41057         * lib/strdup.h: New file.
41058         * lib/strdup.c: Include it.
41059         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41060         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41061
41062 2004-02-23  Karl Berry  <karl@gnu.org>
41063
41064         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41065         (from fencepost.gnu.org:/gd/gnuorg).
41066
41067 2004-02-23  Karl Berry  <karl@gnu.org>
41068
41069         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41070         * config/srclist.txt: add maintain/standards documents.
41071
41072 2004-02-18  Bruno Haible  <bruno@clisp.org>
41073
41074         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41075         Reported by Derek Robert Price <derek@ximbiot.com>.
41076
41077 2004-02-16  Karl Berry  <karl@gnu.org>
41078
41079         * config/mkinstalldirs, install-sh: update from automake.
41080
41081 2004-02-06  Karl Berry  <karl@gnu.org>
41082
41083         * m4/po.m4: update from gettext 0.14.1.
41084
41085 2004-02-06  Karl Berry  <karl@gnu.org>
41086
41087         * lib/config.charset: update from gettext 0.14.1.
41088
41089 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41090
41091         Add comments and code, prompted by suggestions from Bruno Haible
41092         for sh-quote.
41093         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41094         describing the enum quoting_style values.
41095         * lib/quotearg.c (quotearg_alloc): New function.
41096         (quotearg_buffer_restyled): Treat lone { and } as special.
41097         Treat = as special.  Work around bug with older shells
41098         that "see" a '\' that is really the 2nd byte of a multibyte char.
41099         Quote empty string with shell_quoting_style.
41100
41101 2004-02-03  Bruno Haible  <bruno@clisp.org>
41102
41103         * m4/pipe.m4: New file, from GNU gettext.
41104
41105 2004-02-03  Bruno Haible  <bruno@clisp.org>
41106
41107         * lib/pipe.h: New file, from GNU gettext.
41108         * lib/pipe.c: New file, from GNU gettext.
41109
41110 2004-01-27  Bruno Haible  <bruno@clisp.org>
41111
41112         * m4/execute.m4: New file, from GNU gettext.
41113
41114 2004-01-27  Bruno Haible  <bruno@clisp.org>
41115
41116         * lib/execute.h: New file, from GNU gettext.
41117         * lib/execute.c: New file, from GNU gettext.
41118         * lib/w32spawn.h: New file, from GNU gettext.
41119
41120 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41121
41122         Merge from diffutils.
41123
41124         * lib/file-type.c (file_type): Add typed memory objects.
41125         * lib/file-type.h (S_TYPEISTMO): New macro.
41126
41127         * lib/c-stack.h (c_stack_action): Remove argv argument.
41128         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41129         (die): Don't calculate message unless segv_action returns.
41130         (get_stack_location, min_address_from_argv, max_address_from_argv,
41131         volatile stack_base, volatile_stack_size): Remove.
41132         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41133         that every segmentation violation is a stack overflow.  (Ouch!)
41134         See Debian bug 136249 (still outstanding) for more info about why
41135         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41136
41137 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41138
41139         Exit-status fix from coreutils.
41140
41141         Use exit_failure consistently in place of EXIT_FAILURE,
41142         so that program exit statuses are consistent on failure.
41143
41144         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41145         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41146         * lib/argmatch.h: Comment fix to match the above.
41147         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41148         Now a macro referring to exit_failure, instead of a separate
41149         variable.  Include "exitfail.h" to get it.
41150         * lib/xstrtol.h: Include "exitfail.h".
41151         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41152
41153         * lib/long-options.c (parse_long_options): Use prototype
41154         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41155         for clarity.
41156
41157 2004-01-21  Jim Meyering  <jim@meyering.net>
41158
41159         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41160         so as not to conflict with a different-sized __mktime_internal
41161         function in GNU libc.
41162         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41163         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41164
41165 2004-01-20  Karl Berry  <karl@gnu.org>
41166
41167         * config/config.guess: update from config.
41168
41169         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41170
41171 2004-01-20  Bruno Haible  <bruno@clisp.org>
41172
41173         Safer stack allocation.
41174         * lib/setenv.c: Include allocsa.h.
41175         (alloca): Remove fallback definition.
41176         (freea): Remove macro.
41177         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41178         instead of freea.
41179
41180 2004-01-20  Bruno Haible  <bruno@clisp.org>
41181
41182         * m4/eealloc.m4: New file, from GNU gettext.
41183
41184 2004-01-20  Bruno Haible  <bruno@clisp.org>
41185
41186         * m4/allocsa.m4: New file, from GNU gettext.
41187
41188 2004-01-20  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/xallocsa.h: New file, from GNU gettext.
41191         * lib/xallocsa.c: New file, from GNU gettext.
41192
41193 2004-01-20  Bruno Haible  <bruno@clisp.org>
41194
41195         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41196
41197 2004-01-20  Bruno Haible  <bruno@clisp.org>
41198
41199         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41200         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41201         specially.
41202
41203 2004-01-20  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41206         patch.
41207
41208 2004-01-20  Bruno Haible  <bruno@clisp.org>
41209
41210         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41211
41212 2004-01-20  Bruno Haible  <bruno@clisp.org>
41213
41214         * lib/eealloc.h: New file.
41215
41216 2004-01-20  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/binary-io.h: Avoid warnings on Cygwin.
41219
41220 2004-01-20  Bruno Haible  <bruno@clisp.org>
41221
41222         * lib/allocsa.h: New file, from GNU gettext.
41223         * lib/allocsa.c: New file, from GNU gettext.
41224
41225 2004-01-18  Karl Berry  <karl@gnu.org>
41226
41227         * doc/gpl.texi, doc/lgpl.texi: new files.
41228
41229 2004-01-18  Karl Berry  <karl@gnu.org>
41230
41231         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41232         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41233
41234 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41235
41236         Merge from coreutils.
41237
41238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41239         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41240         (gl_DEFAULT_POSIX2_VERSION): Move
41241         the documentation from 'configure' into 'config.hin',
41242         so that 'configure --help' isn't burdened by it and
41243         we don't have to worry about its formatting there.
41244         Reword the documentation so that it's more succinct
41245         and can be run together into a single paragraph.
41246         * m4/same.m4 (gl_SAME): Check for pathconf.
41247
41248 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41249
41250         Merge from coreutils.
41251
41252         * lib/posixver.c: Include posixver.h.
41253
41254         * lib/same.c: Include <stdbool.h>, <limits.h>.
41255         (_POSIX_NAME_MAX): Define if not defined.
41256         (MIN): New macro.
41257         (same_name): If file names are silently truncated, report
41258         that the file names are the same if they are the same after
41259         the silent truncation.
41260
41261         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41262         conversion function.
41263         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41264         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41265         longer needed.
41266
41267 2004-01-15  Jim Meyering  <jim@meyering.net>
41268
41269         Merge from coreutils.
41270
41271         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41272         if no library is required.
41273         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41274         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41275         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41276         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41277         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41278         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41279         value, $ac_cv_search_crypt, if it's "none required".
41280         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41281         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41282         not gl_FUNC_GETLOADAVG.
41283         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41284         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41285
41286 2004-01-15  Jim Meyering  <jim@meyering.net>
41287
41288         Merge from coreutils.
41289
41290         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41291         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41292         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41293
41294         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41295         optional configure-time default.
41296
41297         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41298
41299         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41300
41301 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41302
41303         Merge from coreutils.
41304
41305         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41306         value, $ac_cv_search_nanosleep, if it's "none required".
41307
41308 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41309
41310         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41311         with like-named macro in fnmatch.c.
41312         (EXT): Use an internal constant instead.
41313
41314         Merge fnmatch patches from glibc.
41315         * lib/fnmatch.c (mbsinit): Remove define.
41316         Add libc_hidden_ver (__fnmatch, fnmatch).
41317         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41318         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41319
41320 2004-01-14  Karl Berry  <karl@gnu.org>
41321
41322         * config/install-sh: update from automake.
41323
41324 2004-01-13  Karl Berry  <karl@gnu.org>
41325
41326         * config/install-sh: update from automake.
41327
41328 2004-01-09  Karl Berry  <karl@gnu.org>
41329
41330         * config/install-sh: update from automake.
41331
41332 2004-01-05  Karl Berry  <karl@gnu.org>
41333
41334         * config/config.{sub,guess}: update from config.
41335
41336 2003-12-31  Karl Berry  <karl@gnu.org>
41337
41338         * config/depcomp: update from automake.
41339
41340 2003-12-14  Karl Berry  <karl@gnu.org>
41341
41342         * lib/config.charset: update from gettext-runtime.
41343
41344 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41345
41346         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41347         Bug reported by Alfred M. Szmidt.
41348
41349 2003-12-03  Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/gettext.m4: Upgrade from gettext-0.13.
41352         * m4/po.m4: Upgrade from gettext-0.13.
41353         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41354         * m4/intmax.m4: New file, from gettext-0.13.
41355         * m4/printf-posix.m4: New file, from gettext-0.13.
41356
41357 2003-11-29  Karl Berry  <karl@gnu.org>
41358
41359         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41360
41361 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41362             Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/printf-parse.h: Don't include sys/types.h.
41365         (ARG_NONE): New macro.
41366         (char_directive): Change type of *arg_index fields to size_t.
41367         * lib/printf-parse.c: Don't include sys/types.h.
41368         (SSIZE_MAX): Remove macro.
41369         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41370         Remove unnecessary overflow check.
41371         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41372         fields.
41373
41374 2003-11-25  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41377
41378 2003-11-25  Bruno Haible  <bruno@clisp.org>
41379
41380         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41381         gt_TYPE_SSIZE_T.
41382
41383 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41384
41385         * modules/alloca: Remove dependency on xalloc.
41386
41387 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41388
41389         * lib/alloca.c: Remove dependency on xalloc module.
41390         (xalloc_die): Remove.
41391         (memory_full) [!defined emacs]: New macro.
41392         [!defined emacs]: Don't include xalloc.h.
41393         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41394         address arithmetic overflows.  Change datatypes a bit to avoid
41395         unnecessary casts.
41396
41397 2003-11-22  Jim Meyering  <jim@meyering.net>
41398
41399         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41400         s/size/size_t/.
41401
41402 2003-11-21  Karl Berry  <karl@gnu.org>
41403
41404         * config/config.{sub,guess}: update from config.
41405
41406 2003-11-18  Karl Berry  <karl@gnu.org>
41407
41408         * config/config.{sub,guess}: update from config.
41409
41410         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41411
41412 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41413
41414         * README: Mention that S+T cannot overflow if S is the size of
41415         an existing object and T is sufficiently small.
41416
41417 2003-11-17  Jim Meyering  <jim@meyering.net>
41418
41419         On systems without utime and without a utimes function capable of
41420         dealing with a NULL struct utimbuf* argument, this utime replacement
41421         could -- in unusual circumstances -- leak a file descriptor.
41422         * lib/utime.c: Include <unistd.h> and <errno.h>.
41423         (utime_null): Be sure to close `fd' and to preserve errno.
41424         Reported by Geoff Collyer via Arnold Robbins.
41425
41426 2003-11-17  Bruno Haible  <bruno@clisp.org>
41427
41428         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41429         (Depends-on): Add xsize.
41430
41431 2003-11-17  Bruno Haible  <bruno@clisp.org>
41432
41433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41434
41435 2003-11-17  Bruno Haible  <bruno@clisp.org>
41436
41437         * lib/vasnprintf.c (alloca): Remove fallback definition.
41438         (freea): Remove definition.
41439         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41440         Reported by Paul Eggert.
41441
41442 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41443             Bruno Haible  <bruno@clisp.org>
41444
41445         Protect against address arithmetic overflow.
41446         * lib/printf-args.h: Include stddef.h.
41447         (arguments): Change type of field 'count' to size_t.
41448         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41449         'unsigned int' where appropriate.
41450         * lib/printf-parse.h: Include sys/types.h.
41451         (char_directive): Change type of *arg_index fields to ssize_t.
41452         (char_directives): Change type of fields 'count', max_*_length to
41453         size_t.
41454         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41455         (SSIZE_MAX): Define fallback value.
41456         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41457         instead of 'int' where appropriate. Check a_allocated, d_allocated
41458         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41459         * lib/vasnprintf.c: Include xsize.h.
41460         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41461         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41462         overflow. Avoid wraparound when converting a width or precision from
41463         decimal to binary.
41464
41465 2003-11-16  Bruno Haible  <bruno@clisp.org>
41466
41467         Update from GNU gettext.
41468         * lib/printf-parse.c: Generalize to it can be compiled for wide
41469         strings.
41470         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41471         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41472         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41473         SNPRINTF): New macros.
41474         Don't include <alloca.h> if the file is used inside libintl.
41475         (local_wcslen): New function, for Solaris 2.5.1.
41476         (VASNPRINTF): Use it instead of wcslen.
41477
41478 2003-11-16  Bruno Haible  <bruno@clisp.org>
41479
41480         * lib/xsize.h (xmax): New function.
41481         (xsum, xsum3, xsum4): Declare as "pure" functions.
41482
41483 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41484
41485         * modules/xalloc (Files): Undo latest change, since xalloc.h
41486         no longer needs SIZE_MAX or PTRDIFF_MAX.
41487
41488 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41489
41490         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41491         gl_PTRDIFF_MAX.
41492
41493 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41494
41495         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41496         "return", to pacify some unknown compiler.  Problem reported
41497         by Joerg Schilling.
41498
41499 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41500
41501         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41502         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41503         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41504         heuristic is just as accurate as far as we know, and it removes a
41505         dependency on size_max.m4 and ptrdiff_max.m4.
41506
41507 2003-11-11  Bruno Haible  <bruno@clisp.org>
41508
41509         * modules/xsize (Files): Add m4/size_max.m4.
41510         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41511
41512 2003-11-11  Bruno Haible  <bruno@clisp.org>
41513
41514         * m4/size_max.m4: New file.
41515         * m4/ptrdiff_max.m4: New file.
41516         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41517         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41518         (gl_XALLOC): Invoke it.
41519
41520 2003-11-11  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41523         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41524         defined.
41525
41526 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41527
41528         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41529         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41530         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41531         From Bruno Haible.
41532         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41533         not (size_t) -1, since it's defined here.
41534
41535 2003-11-09  Karl Berry  <karl@gnu.org>
41536
41537         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41538
41539 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41540
41541         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41542         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41543         Reject sizes of exactly SIZE_MAX bytes.
41544         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41545         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41546
41547 2003-11-05  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41550         SIZE_MAX defined in <limits.h> on Solaris.
41551
41552 2003-11-04  Jim Meyering  <jim@meyering.net>
41553
41554         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41555         variable names, rather than @VAR@.
41556         * modules/poll: Likewise.
41557
41558 2003-11-04  Bruno Haible  <bruno@clisp.org>
41559
41560         * modules/xsize: New file.
41561         * modules/linebreak: Depend on xsize.
41562         * MODULES.html.sh (func_all_modules): Add xsize.
41563
41564 2003-11-04  Bruno Haible  <bruno@clisp.org>
41565
41566         * m4/xsize.m4: New file.
41567
41568 2003-11-04  Bruno Haible  <bruno@clisp.org>
41569
41570         * lib/xsize.h: New file.
41571         * lib/linebreak.c: Include xsize.h.
41572         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41573         argument for overflow.
41574         Suggested by Paul Eggert.
41575
41576 2003-11-03  Karl Berry  <karl@gnu.org>
41577
41578         * config/config.{guess,sub}: update from config.
41579
41580 2003-11-03  Jim Meyering  <jim@meyering.net>
41581
41582         * modules/userspec (lib_SOURCES): Add userspec.h.
41583         (Include): Add "userspec.h".
41584         Improve description.
41585
41586 2003-11-03  Jim Meyering  <jim@meyering.net>
41587
41588         * lib/userspec.c: Include "userspec.h".
41589         * lib/userspec.h: New file.
41590
41591 2003-11-03  Bruno Haible  <bruno@clisp.org>
41592
41593         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41594
41595 2003-11-03  Bruno Haible  <bruno@clisp.org>
41596
41597         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41598         available, to avoid (extremely rare) race condition.
41599         Suggested by Paul Eggert.
41600
41601 2003-11-02  Karl Berry  <karl@gnu.org>
41602
41603         * config/srclist.txt (vasprintf.c): sync broken, sigh.
41604
41605 2003-10-31  Paul Eggert  <eggert@twinsun.com>
41606
41607         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41608         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41609         (read_filesystem_list): Set and use me_type_malloced.
41610         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41611         whatever the type happens to be), for brevity and consistency.
41612         Check for size calculation overflow on Alphas running OSF/1.
41613
41614 2003-10-31  Jim Meyering  <jim@meyering.net>
41615
41616         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41617
41618         * lib/linebuffer.c: Include <string.h> for declaration of memset.
41619
41620 2003-10-30  Paul Eggert  <eggert@twinsun.com>
41621             Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41624         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41625
41626 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41627
41628         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41629         netbsd*-gnu*.  Suggested by Robert Millan.
41630
41631 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41632
41633         * modules/group-member: Depend on stdbool.
41634
41635 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41636
41637         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41638
41639 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41640
41641         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
41642         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
41643         after the 'gnu' in these cases.  This fixes some bugs in the
41644         previous change, and is based on suggestions by Robert Millan.
41645
41646 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41647
41648         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41649         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
41650         no longer needed.
41651         * lib/quotearg.c (quotearg_n_options): Use it.
41652         * lib/group-member.c: Include <stdbool.h>.
41653         (free_group_info): Arg is now const *; don't free arg.
41654         (get_group_info): Now returns bool and accepts struct group_info *,
41655         rather than returning a malloc'ed struct group_info *.
41656         All uses changed.  Check for overflow in internal size calculation.
41657
41658         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41659         rather than xmalloc/xrealloc.
41660         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41661         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
41662         conformance bug: the old code used a pointer after freeing the
41663         storage that it addressed.
41664         * lib/hash.c (hash_initialize): Simplify the code by using
41665         xalloc_oversized rather than doing it by hand.
41666         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41667         the buffer preserved.  Use free and xmalloc instead.
41668         * lib/quotearg.c (quotearg_n_options): Likewise.
41669         Use a simpler test for size overflow.  Don't use xalloc_oversized
41670         because unsigned int might be wider than size_t (!); this suggests
41671         that we should switch from unsigned int to size_t for slot numbers.
41672
41673 2003-10-28  Paul Eggert  <eggert@twinsun.com>
41674
41675         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41676         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
41677         NetBSD kernels.  Requested by Richard Stallman.
41678
41679 2003-10-27  Paul Eggert  <eggert@twinsun.com>
41680
41681         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41682         to allocate the returned structure.  Do not allocate a subarray,
41683         as x2nrealloc will do that.
41684         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41685         instead of xnrealloc.
41686         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41687
41688 2003-10-27  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/stdbool_.h: Better support for BeOS.
41691
41692 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41693
41694         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41695         now uses inline.
41696
41697 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41698
41699         * lib/xalloc.h (xalloc_oversized): New static inline function, for
41700         callers that want to do their own size-overflow checking.  Include
41701         <stdbool.h>, since xalloc_oversized returns bool.
41702         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
41703         to use xalloc_oversized.
41704
41705         Add two functions x2realloc, x2nrealloc, for programs that grow
41706         arrays dynamically by doubling their sizes.
41707         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41708         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41709         New functions.
41710
41711         Port to C99 semantics for 'inline' of external functions.
41712         Bug reported by Bruno Haible.
41713         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41714         with the old contents of xnmalloc.
41715         (xnmalloc, xmalloc): Use it.
41716         (xnrealloc_inline): New static inline function,
41717         with the old contents of xnrealloc.
41718         (xnrealloc, xrealloc): Use it.
41719
41720         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41721         that.
41722
41723 2003-10-26  Karl Berry  <karl@gnu.org>
41724
41725         * config/srclist.txt (COPYING.DOC): no longer available from
41726         /gd/gnuorg; don't know where the ultimate source is.
41727
41728 2003-10-25  Paul Eggert  <eggert@twinsun.com>
41729
41730         Fix several address-calculation bugs in the hash modules,
41731         plus some minor code cleanup.
41732
41733         * lib/hash.h: Include <stdbool.h>, for bool.
41734         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41735         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41736         hash_get_n_entries, hash_get_max_bucket_length,
41737         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41738         hash_rehash): Use size_t rather than unsigned.
41739         * lib/hash.c (struct hash_table, hash_get_n_buckets,
41740         hash_get_n_buckets_used, hash_get_n_entries,
41741         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41742         hash_get_entries, hash_do_for_each, hash_string, is_prime,
41743         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41744         Likewise.
41745         (SIZE_MAX): Define if not defined.
41746         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
41747         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
41748         hash_print):
41749         Use const * when possible.
41750         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
41751         (check_tuning): Fix bug: if tuning parameters were very close to
41752         0 or 1, rounding errors could have caused subscript violations.
41753         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
41754         (hash_initialize): Add 'fail:' label
41755         to free table and return NULL, and use it to simplify code.
41756         Use calloc rather than clearing the storage ourself.
41757         (hash_initialize, hash_rehash): Check for arithmetic overflow in
41758         buffer size calculations.
41759         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
41760         Include <stddef.h>, for size_t.
41761         * lib/hash-pjw.c (hash_pjw): Likewise.
41762         Switch to method described by Bruno Haible.
41763         Include <limits.h>, for CHAR_BIT.
41764         (SIZE_BITS): New macro.
41765
41766 2003-10-23  Paul Eggert  <eggert@twinsun.com>
41767
41768         * m4/getline.m4 (AM_FUNC_GETLINE):
41769         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
41770         hosts.  Problem reported by Derek Robert Price in
41771         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
41772         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
41773         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
41774
41775 2003-10-21  Paul Eggert  <eggert@twinsun.com>
41776
41777         * lib/getndelim2.c (getndelim2): When size calculation overflows,
41778         ceiling the allocation at NMAX bytes rather than silently
41779         discarding input bytes before NMAX is reached.  This makes
41780         a difference only if NMAX exceeds SIZE_MAX / 2.
41781
41782         * lib/obstack.c: Merge from glibc.
41783         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
41784         Add libc_hidden_def (_obstack_newchunk).
41785         (_obstack_free) [! defined _LIBC]: Remove.
41786         [defined _LIBC]: Make a strong alias from obstack_free, rather than
41787         a clone of the function body.
41788         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
41789         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
41790
41791         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
41792         glibc.
41793         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
41794         arg to memcpy.
41795
41796         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
41797         (obstack_ptr_grow_fast, obstack_int_grow_fast):
41798         Don't use lvalue casts, as GCC plans to remove support for them
41799         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
41800         was also present in the non-GCC version, indicating that this
41801         code had always been buggy and had never been widely used.
41802         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
41803         Use the fast variant of each macro, rather than copying the
41804         definiens of the fast variant; that way, we'll be more likely to
41805         catch future bugs in the fast variants.
41806
41807 2003-10-20  Bruno Haible  <bruno@clisp.org>
41808
41809         * modules/wait-process: New file.
41810         * MODULES.html.sh (func_all_modules): Add wait-process.
41811
41812 2003-10-20  Bruno Haible  <bruno@clisp.org>
41813
41814         * m4/wait-process.m4: New file.
41815
41816 2003-10-20  Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/wait-process.h: New file, from GNU gettext.
41819         * lib/wait-process.c: New file, from GNU gettext.
41820
41821 2003-10-19  Jim Meyering  <jim@meyering.net>
41822
41823         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
41824         HPUX 10.20.
41825
41826 2003-10-18  Karl Berry  <karl@gnu.org>
41827
41828         * config/config.guess: update from config.
41829
41830 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41831
41832         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
41833         (getgroups): First arg is int, not size_t.
41834         Don't let 'free' mangle errno.
41835
41836 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41837
41838         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
41839
41840 2003-10-16  Karl Berry  <karl@gnu.org>
41841
41842         * config/config.{guess,sub}: update from config.
41843
41844 2003-10-16  Jim Meyering  <jim@meyering.net>
41845
41846         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
41847         memcpy.
41848
41849 2003-10-15  Paul Eggert  <eggert@twinsun.com>
41850
41851         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
41852         (SIZE_MAX): Remove.
41853         (new_exclude, add_exclude_file): Initial size no longer needs to
41854         be a power of 2.
41855         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
41856         our own address arithmetic overflow checking.
41857
41858         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
41859         (fnmatch): Do not alloca more than 2000 wide characters;
41860         instead, use malloc for large buffers.
41861         Check for address arithmetic overflow, and return -1
41862         with errno set to ENOMEM in that case.
41863         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
41864         (NEW_PATTERN): Do not alloca more than 8000 bytes;
41865         instead, return -1.  Check for address arithmetic overflow.
41866
41867 2003-10-14  Paul Eggert  <eggert@twinsun.com>
41868
41869         Handle invalid suffixes and overflow independently, so that
41870         callers can treat them independently as needed.  Fix some bugs in
41871         suffix handling, e.g., "100k@" was not diagnosed as an invalid
41872         suffix for a human-readable blocksize.  The major caller-visible
41873         change is the addition of a new
41874         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
41875         that both overflow and suffix chars were found.
41876
41877         * lib/human.c (humblock): Don't check separately for invalid suffix
41878         char; that is xstrtoumax's job (now that its bug is fixed).
41879         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
41880         INTMAX_MAX]: New macros.
41881         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
41882         TYPE_MAXIMUM): New macros.
41883         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
41884         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
41885         if overflow occurs, as it's what __strtol does and it's more useful
41886         in practice.
41887         (__xstrtol): If __strtol reports some error other than ERANGE,
41888         reflect it to the caller as LONGINT_INVALID.  If it reports
41889         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
41890         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
41891         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
41892         value.
41893         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
41894         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
41895         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
41896         [defined UINTMAX_MAX]: New macros.
41897
41898 2003-10-14  Bruno Haible  <bruno@clisp.org>
41899
41900         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
41901
41902 2003-10-14  Bruno Haible  <bruno@clisp.org>
41903
41904         * m4/sig_atomic_t: New file, from GNU gettext.
41905         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
41906
41907 2003-10-14  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
41910         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
41911         Also use volatile where needed.
41912
41913 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41914
41915         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
41916         Change maintainer from Bruno Haible to 'all'.
41917
41918 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41919
41920         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
41921
41922 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41923
41924         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
41925         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
41926         and define in terms of the other primitives.
41927         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
41928         (SIZE_MAX): Define if not already defined.
41929         (array_size_overflow): New function.
41930         (xalloc_die): Abort instead of exiting if 'error' returns.
41931         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
41932         (xmalloc, xrealloc): Use them.
41933         (xcalloc): Check for address arithmetic overflow.
41934         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
41935         a bit faster than strcpy.
41936
41937 2003-10-10  Simon Josefsson  <jas@extundo.com>
41938
41939         * modules/argp (Depends-on): Add restrict and strcase.
41940
41941 2003-10-10  Simon Josefsson  <jas@extundo.com>
41942
41943         * m4/argp.m4: Add AC_C_INLINE.
41944
41945 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41946
41947         Merge getpass from libc, plus a few fixes.
41948
41949         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
41950         Include <stdbool.h>.
41951         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
41952         __fsetlocking to empty.
41953         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
41954         do include <bits/libc-lock.h>.
41955         Do not include <fcntl.h>; not needed.
41956         [_LIBC]: Include <wchar.h>.
41957         (NOTCANCEL_MODE): New macro.
41958         (flockfile, funlockfile) [_LIBC]: New macros.
41959         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
41960         [!_LIBC]: New macros.
41961         (call_fclose): New function.
41962         (getpass): Use it.  Save tty stream separately; this simplifies the
41963         code and makes it more reliable if stdin happens to equal stdout.
41964         Invoke __fsetlocking on tty.
41965         Handle thread cancellation if needed.
41966         Namespace cleanup (use __tcgetattr, __getline).
41967         Use bool for Booleans.
41968         [USE_IN_LIBIO]: Handle wide streams.
41969         [!_LIBC]: Unconditionally do the fseek, since we don't know what
41970         stream might go where.
41971
41972         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
41973         doesn't have to include <stdio.h> before us.
41974         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
41975         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
41976         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
41977         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
41978         if not declared, so that we can use getpass.c code from libc without
41979         rewriting it.
41980         (flockfile, ftrylockfile, funlockfile): New macros.
41981
41982 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41983
41984         * modules/getpass: Depend on stdbool.
41985
41986 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41987
41988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
41989
41990 2003-10-07  Karl Berry  <karl@gnu.org>
41991
41992         * config/config.{guess,sub}: update from config.
41993
41994 2003-10-06  Jim Meyering  <jim@meyering.net>
41995             Bruno Haible  <bruno@clisp.org>
41996
41997         This lets translators provide better translations for the
41998         "Written by ..." part of --version output.
41999         * lib/version-etc.h: Include stdarg.h.
42000         (version_etc_copyright): Declare as readonly.
42001         (version_etc): Make this function variadic with a NULL-terminated list
42002         of author name strings.
42003         (version_etc_va): New declaration.
42004         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42005         (version_etc_copyright): Declare as readonly.
42006         (version_etc_va): New function. Provide a different translatable string
42007         for each possible number of authors < 10. Abbreviate when there are 10
42008         authors or more.
42009         (version_etc): Make this function variadic. Call version_etc_va.
42010         Suggestion from Gary V. Vaughan.
42011
42012         * lib/long-options.h (parse_long_options): Change prototype: the
42013         authors string is moved to the end and becomes variadic.
42014         * lib/long-options.c: Include stdarg.h.
42015         (parse_long_options): Make this function variadic, too.
42016         Call version_etc_va, not version_etc.
42017
42018 2003-10-06  Bruno Haible  <bruno@clisp.org>
42019
42020         * modules/version-etc-2: Remove file.
42021         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42022
42023 2003-10-06  Bruno Haible  <bruno@clisp.org>
42024
42025         * modules/fatal-signal: New file.
42026         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42027
42028 2003-10-06  Bruno Haible  <bruno@clisp.org>
42029
42030         * m4/fatal-signal.m4: New file.
42031         * m4/signalblocking.m4: New file, from GNU gettext.
42032
42033 2003-10-06  Bruno Haible  <bruno@clisp.org>
42034
42035         * lib/version-etc-2.h: Remove file.
42036         * lib/version-etc-2.c: Remove file.
42037
42038 2003-10-06  Bruno Haible  <bruno@clisp.org>
42039
42040         * lib/fatal-signal.h: New file, from GNU gettext.
42041         * lib/fatal-signal.c: New file, from GNU gettext.
42042
42043 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42044
42045         * README: Rework advice for preventing empty .o files.
42046         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42047         not <sys/types.h>.
42048
42049 2003-10-04  Karl Berry  <karl@gnu.org>
42050
42051         * lib/argp*: update from libc.
42052
42053 2003-10-04  Karl Berry  <karl@gnu.org>
42054
42055         * config/config.{guess,sub}: update from config.
42056
42057 2003-10-02  Bruno Haible  <bruno@clisp.org>
42058
42059         * modules/lchown (Include): Add lchown.h.
42060         * modules/time_r (Include): Use "..." syntax.
42061         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42062
42063 2003-10-01  Simon Josefsson  <jas@extundo.com>
42064
42065         * MODULES.html.sh (func_all_modules): Move gethostname from section
42066         'based on' to section 'lacking' POSIX:2001.
42067
42068 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42069
42070         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42071         to output mode on the same stream.
42072
42073 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42074
42075         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42076         Fix arg typo in previous patch.
42077
42078 2003-09-28  Jim Meyering  <jim@meyering.net>
42079
42080         * lib/error.c: Correct cpp indentation.
42081
42082 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42083
42084         * modules/free: New file.
42085
42086 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42087
42088         * m4/free.m4: New file.
42089
42090 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42091
42092         * lib/minmax.h (MIN, MAX)
42093         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42094         Omit the special code that used __typeof__, since we worry that
42095         it could be more trouble than it's worth.  See:
42096         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42097         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42098
42099         * lib/free.c: New file.
42100
42101 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42102
42103         Trivial fixes to Makefile.am parts of module listings.
42104         * modules/strstr: Append strstr.h to lib_SOURCES.
42105         * modules/strcase: Likewise, for strcase.h.
42106
42107 2003-09-27  Karl Berry  <karl@gnu.org>
42108
42109         * config/mkinstalldirs: update from automake.
42110
42111 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42112
42113         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42114         (error_tail): Do not loop, reallocating temporary buffer, since
42115         the output cannot contain more wide characters than the input
42116         contains bytes, the size must be big enough already.  This avoids
42117         one potential size overflow calculation.  Check for size overflow
42118         when calculating temporary buffer size.  Free temporary buffer
42119         when done, if it was allocated with malloc; this plugs a memory
42120         leak.  Remove casts from void * to pointers, that are no longer
42121         needed now that we're assuming C89 or better.
42122
42123         Merge error changes from glibc.
42124
42125         * lib/error.c, error.h: Update copyright notice header to match glibc.
42126         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42127         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42128         Disable cancellation while printing error.
42129         * lib/error.h: Prepend __ to parameter names.
42130
42131 2003-09-26  Jim Meyering  <jim@meyering.net>
42132
42133         * lib/error.c (error_tail): Move some declarations
42134         into inner scope where the local variables are used.
42135
42136 2003-09-26  Bruno Haible  <bruno@clisp.org>
42137
42138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42139         stpncpy().
42140         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42141
42142 2003-09-26  Bruno Haible  <bruno@clisp.org>
42143
42144         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42145         (stpncpy): Define as alias for gnu_stpncpy.
42146         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42147
42148 2003-09-25  Simon Josefsson  <jas@extundo.com>
42149
42150         * lib/xgetdomainname.h: New file.
42151         * lib/xgetdomainname.c: New file.
42152
42153 2003-09-25  Simon Josefsson  <jas@extundo.com>
42154             Bruno Haible  <bruno@clisp.org>
42155
42156         * modules/getdomainname: New file.
42157         * modules/xgetdomainname: New file.
42158         * MODULES.html.sh (func_all_modules): Add getdomainname,
42159         xgetdomainname.
42160
42161 2003-09-25  Simon Josefsson  <jas@extundo.com>
42162             Bruno Haible  <bruno@clisp.org>
42163
42164         * m4/getdomainname.m4: New file.
42165
42166 2003-09-25  Simon Josefsson  <jas@extundo.com>
42167             Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/getdomainname.h: New file.
42170         * lib/getdomainname.c: New file.
42171
42172 2003-09-25  Karl Berry  <karl@gnu.org>
42173
42174         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42175
42176 2003-09-25  Karl Berry  <karl@gnu.org>
42177
42178         * config/install-sh: update from automake.
42179
42180 2003-09-25  Bruno Haible  <bruno@clisp.org>
42181
42182         * modules/version-etc-2: New file, from modules/version-etc with
42183         modifications.
42184         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42185
42186 2003-09-25  Bruno Haible  <bruno@clisp.org>
42187
42188         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42189         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42190
42191 2003-09-24  Simon Josefsson  <jas@extundo.com>
42192
42193         * modules/xgethostname: Add xgethostname.h.
42194
42195 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42196
42197         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42198         the buffer associated with the argument.  Bug reported by
42199         Simon Josefsson.
42200
42201 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42202
42203         * README: Document assumptions that 'int' is at least 32 bits
42204         wide, that integer arithmetic is 2's complement without overflow,
42205         that there are no holes in integer values, that adding sizes of
42206         two nonoverlapping objects can't overflow, and that all-bits-zero
42207         yields scalar zero.  Fix spelling and capitalization typos.
42208
42209 2003-09-19  Karl Berry  <karl@gnu.org>
42210
42211         * lib/argp.h: update from libc.
42212
42213 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42214
42215         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42216         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42217         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42218
42219 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42220
42221         * gnulib-tool: Use "test -h", not "test -L", for portability
42222         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42223         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42224         (sed_extract_prog): Issue s commands one-by-one, rather than
42225         using \| in one s command.
42226
42227 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42228
42229         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42230         input error, instead of returning NULL the next time we are called
42231         (and therefore losing track of errno).
42232
42233 2003-09-16  Bruno Haible  <bruno@clisp.org>
42234
42235         * gnulib-tool (func_create_testdir): Warn about duplicated
42236         dependencies.
42237
42238 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42239
42240         * modules/argmatch, modules/fatal, modules/obstack,
42241         modules/xalloc, modules/xgethostname: Sort dependencies by
42242         importance, not alphabetically.
42243
42244 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42245
42246         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42247         fails, so that the caller gets the proper errno.
42248
42249         * lib/readutmp.c (read_utmp): Likewise.
42250         Check for fstat error.  Close stream and free storage
42251         when failing.
42252
42253 2003-09-14  Karl Berry  <karl@gnu.org>
42254
42255         * config/srclist.txt (strdup.c): disable for c89 changes.
42256
42257 2003-09-14  Jim Meyering  <jim@meyering.net>
42258
42259         * lib/getloadavg.c: Correct cpp indentation.
42260         * lib/strdup.c: Likewise.
42261         * lib/vasnprintf.c: Likewise.
42262
42263 2003-09-14  Bruno Haible  <bruno@clisp.org>
42264
42265         * modules/fwriteerror: New file.
42266         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42267
42268 2003-09-14  Bruno Haible  <bruno@clisp.org>
42269
42270         * lib/fwriteerror.h: New file.
42271         * lib/fwriteerror.c: New file.
42272
42273 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42274
42275         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42276         modules/xgethostname, modules/xalloc: Depend on exit.
42277
42278 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42279
42280         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42281
42282         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42283         and AC_MINIX, too, so that their extensions are available.
42284
42285         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42286         This macro has been superseded by gl_BACKUPFILE.
42287
42288         More patches to assume C89 or better.
42289
42290         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42291
42292         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42293         unconditionally.
42294         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42295         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42296         Include <string.h>, <stdlib.h> unconditionally.
42297         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42298         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42299         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42300         headers or for string.h.
42301         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42302         or strtoul.
42303
42304         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42305         headers.
42306         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42307         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42308         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42309         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42311         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42312         memcpy, memset.
42313         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42314         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42315         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42316         strtol.
42317         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42318         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42320         strtoul.
42321
42322 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42323
42324         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42325         * lib/obstack.c [!defined _LIBC]: Likewise.
42326         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42327         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42328         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42329
42330         More changes to assume C89 or better.
42331
42332         * lib/error.c (error_tail): Assume vprintf.
42333
42334         * lib/argmatch.c (getenv): Remove decl.
42335         * lib/progreloc.c (get_full_program_name): Define via prototype.
42336         * lib/setenv.c (clearenv): Likewise.
42337         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42338         needed.
42339         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42340         (malloc, memcpy): Remove decls.
42341         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42342         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42343         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42344         (memcpy): Remove macro.
42345         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42346         (__P): Remove.  All uses removed.
42347         (PTR): Remove.  All uses changed to void *.
42348         (CHAR_BIT, NULL): Remove.
42349         (spaces, zeros, memset_space, memset_zero)
42350         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42351         Remove.
42352         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42353         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42354         Define with prototype.
42355         Remove now-unnecessary prototype decl.
42356         (extra_args_spec): Assume ANSI C.  All uses changed.
42357         (extra_args_spec_iso): Remove.
42358         (my_strftime, emacs_strftimeu): Define via prototype.
42359         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42360         unconditionally.
42361         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42362         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42363         (strtoul, strtol): Remove decls.
42364         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42365         LONG_MAX): Remove.
42366         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42367         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42368         (LOCALE_PARAM_PROTO): New macro.
42369         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42370         (INTERNAL (strtol), strtol): Define with a prototype.
42371         (PARAMS): Remove.  All uses removed.
42372         * lib/tempname.c: Include <string.h> unconditionally.
42373         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42374         * lib/xgethostname.c (main): Define with a prototype.
42375         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42376         Include <stdlib.h> unconditionally.
42377         (calloc, malloc, realloc, free): Remove decls.
42378         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42379         Include <stdlib.h> unconditionally.  Sort include file names.
42380         (strtod): Remove.
42381         (xstrtod): Define with a prototype.
42382         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42383         (strtol, strtoul): Remove decls.
42384
42385 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42386
42387         More patches to assume C89 or better.
42388         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42389         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42390         string.h, memchr, STDC_HEADERS.
42391
42392 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42393
42394         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42395         Include <stdlib.h>, <string.h> unconditionally.
42396         Remove now-unnecessary cast to char *.
42397         * lib/strnlen.c: Include <string.h> unconditionally.
42398         * lib/yesno.c (yesno): Define with a prototype.
42399
42400 2003-09-11  Bruno Haible  <bruno@clisp.org>
42401
42402         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42403
42404 2003-09-10  Jim Meyering  <jim@meyering.net>
42405
42406         * lib/error.c: Correct indentation of cpp directives.
42407
42408 2003-09-10  Bruno Haible  <bruno@clisp.org>
42409
42410         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42411         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42412         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42413         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42414         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42415         <stdlib.h> and <string.h> checks.
42416         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42417         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42418
42419 2003-09-10  Bruno Haible  <bruno@clisp.org>
42420
42421         * lib/strcspn.c: Include <string.h> unconditionally.
42422         * lib/strpbrk.c: Include <string.h> unconditionally.
42423         * lib/strstr.c: Include <string.h> unconditionally.
42424         * lib/unicodeio.c: Include <string.h> unconditionally.
42425         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42426         * lib/unsetenv.c: Likewise.
42427         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42428         * lib/yesno.c: Include <stdlib.h> unconditionally.
42429         (rpmatch): Add prototype.
42430
42431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42432
42433         More patches to assume C89 or better.
42434         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42435         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42436         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42437         or for string.h.
42438         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42439         stdlib.h.
42440         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42441         C headers.
42442         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42443         string.h.
42444         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42445         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42446         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42447         or for string.h.
42448         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42449         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42450         C headers.
42451         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42452         memcpy.
42453         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42454         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42455         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42456         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42457         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42458         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42459         string.h, free.
42460         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42461         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42462         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42463         C headers, or for string.h.
42464         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42465         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42466         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42467         headers, memory.h, stdlib.h, string.h, strings.h.
42468         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42469         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42470         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42471         strchr.
42472         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42473         headers, memory.h, string.h.
42474         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42475         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42476         free.
42477         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42478         headers.
42479         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42480         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42481         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42482         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42483         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42484
42485 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42486
42487         More K&R removal.
42488
42489         * lib/acosl.c (main): Use a prototype.
42490         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42491         tanl.c: Likewise.
42492
42493         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42494
42495         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42496         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42497         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42498         with a prototype.
42499         * lib/getopt.c (const): Remove macro.
42500         Include <string.h> unconditionally.
42501         (my_index): Remove; all uses changed to strchr.
42502         (strlen): Remove decl.
42503         (exchange): Remove forward decl; no longer needed.
42504         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42505         Define with prototype.
42506         * lib/getopt1.c (const): Remove macro.
42507         (getopt_long, getopt_long_only, main): Define with prototype.
42508
42509         * lib/getugroups.c: Include <string.h> unconditionally.
42510
42511         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42512         (getusershell, setusershell, endusershell, readname, main):
42513         Define with prototypes.
42514
42515         * lib/group-member.c: Include group-member.h first.
42516         Include <stdlib.h> unconditionally.
42517
42518         * lib/hard-locale.c: Include hard-locale.h first.
42519         Include <stdlib.h>, <string.h> unconditionally.
42520
42521         * lib/hash.c (free, malloc): Remove decls.
42522         Include <stdlib.h> unconditionally.
42523
42524         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42525         (getenv): Do not declare.
42526
42527         * lib/idcache.c: Include <string.h> unconditionally.
42528
42529         * lib/long-options.c: Include long-options.h first, to test interface.
42530         Include <stdlib.h> unconditionally.
42531
42532         * lib/makepath.c: Include makepath.h first, to test interface.
42533         Include <stdlib.h> and <string.h> unconditionally.
42534
42535         * lib/linebuffer.c: Include <stdlib.h>.
42536         (free): Remove decl.
42537
42538         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42539         stddef.h. rpl_malloc returns void *, not char *.
42540         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42541         prototype.
42542
42543         * lib/md5.h: Include <limits.h> unconditionally.
42544         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42545         (__P): Remove; all uses removed.
42546         * lib/md5.c: Include "md5.h" first.
42547         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42548         md5_buffer, md5_process_bytes, md5_process_block):
42549         Define with prototypes.
42550         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42551         * lib/sha.c: Include "sha.h" first.
42552         Include <stdlib.h>, <string.h> unconditionally.
42553
42554         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42555         * lib/memcmp.c (__ptr_t): Likewise.
42556         * lib/memrchr.c (__ptr_t): Likewise.
42557         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42558         Include <string.h> unconditionally.
42559         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42560         * lib/memchr.c: Include <stdlib.h> unconditionally.
42561         * lib/memchr.c (LONG_MAX): Remove.
42562         * lib/memrchr.c (LONG_MAX): Likewise.
42563         * lib/memchr.c (__memchr): Define via a prototype.
42564         * lib/memrchr.c (__memrchr): Likewise.
42565         * lib/memcmp.c (__P): Remove, and remove all uses.
42566         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42567         Remove forward decls; no longer needed.
42568         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42569         Use types required by C89 in prototype.
42570
42571         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42572         * lib/savedir.c: Likewise.
42573         * lib/mkdir.c (free): Remove decl.
42574         * lib/rmdir.c (rmdir): Define with a prototype.
42575         * lib/savedir.c: Include savedir.h first, to test interface.
42576
42577         * lib/mktime.c (STDC_HEADERS): Remove.
42578         Include <stdlib.h>, <string.h> unconditionally.
42579
42580         * lib/modechange.c: Include <stdlib.h> unconditionally.
42581         (malloc): Remove decl.
42582
42583         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42584         (free): Remove decl.
42585
42586         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42587         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42588         (This type really should be intptr_t, but that's a C99ism.)
42589         (_obstack_memcpy): Remove: all uses changed to memcpy.
42590         Include <string.h> unconditionally.
42591         (struct obstack): Assume __STDC__ for types of members
42592         chunkfun, freefun, extra_arg.
42593         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42594         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42595         obstack_begin, obstack_specify_allocation,
42596         obstack_specify_allocation_with_arg, obstack_chunkfun,
42597         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42598         Remove unprototyped decls and the macros that use them.
42599         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42600         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42601         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42602         (defined __STDC__ && __STDC__)]:
42603         Remove nonprototyped code.
42604         Include <stdlib.h> unconditionally.
42605         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42606         _obstack_allocated_p, _obstack_free, obstack_free,
42607         _obstack_memory_used, print_and_abort):
42608         Define using prototypes.
42609         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42610         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42611         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42612         obstack_next_free, obstack_object_size, obstack_room) [0]:
42613         Remove unused, unprototyped code.
42614
42615         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42616
42617         * lib/physmem.c (physmem_total, physmem_available, main): Define
42618         with prototypes.
42619
42620         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42621         (main): Define with a prototype.
42622
42623         * lib/posixver.c (getenv): Remove decl.
42624
42625         * lib/putenv.c (malloc): Returns void *, not char *.
42626         Include <string.h> unconditionally.
42627         (strchr, memcpy, NULL): Do not define.
42628
42629         * lib/readtokens.c: Include readtokens.h first, to test interface.
42630         Include <stdlib.h>, <string.h> unconditionally.
42631         (init_tokenbuffer): Define with a prototype.
42632
42633         * lib/regex.c (PARAMS): Remove.  All uses removed.
42634         All uses of _RE_ARGS removed, too.
42635         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42636         unconditionally.
42637         (bzero): Assume memset exists.
42638         (memcmp, memcpy, NULL): Remove.
42639         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42640         char, or assignments to local vars of type signed char.
42641         (init_syntax_once, PREFIX(extract_number_and_incr),
42642         PREFIX(print_partial_compiled_pattern),
42643         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42644         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42645         PREFIX(regex_grow_registers), PREFIX(regex_compile),
42646         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42647         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42648         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42649         wcs_compile_range, byte_compile_range, truncate_wchar,
42650         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42651         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42652         count_mbs_length, wcs_re_match_2_internal,
42653         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42654         PREFIX(alt_match_null_string_p),
42655         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42656         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42657         regfree, PREFIX(extract_number)): Define with prototype.  Remove
42658         now-unnecessary declaration, if any.
42659         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42660         regcomp, regexec):
42661         Remove now-unnecessary casts among pointer types.
42662         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
42663
42664         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42665         (free): Remove decl.
42666
42667         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42668
42669         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42670         (free): Remove decl.
42671
42672         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42673         * lib/xgetcwd.c: Likewise.
42674
42675         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42676         (free): Remove decl.
42677
42678         * lib/strchrnul.c (strchrnul): Define with a prototype.
42679         Fix bug: c_in was not converted to char before searching.
42680
42681         The following changes are not K&R related:
42682
42683         * lib/group-member.h: Include <sys/types.h>, so that this file is
42684         self-contained.
42685         * lib/makepath.h: Likewise.
42686
42687         * lib/getusershell.c (readname, default_index, line_size, readname):
42688         Use size_t, not int, for sizes.
42689         (readname): If the size overflows, report an error instead of
42690         looping forever.
42691
42692 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42693
42694         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42695         libc.
42696
42697 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42698
42699         * README: New section: portability guidelines.
42700
42701 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42702
42703         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42704         C89 spec.
42705
42706 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42707
42708         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42709
42710 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42711
42712         Assume C89 or better; remove K&R cruft.
42713         A few of these changes were first proposed by Derek Robert Price
42714         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42715
42716         * lib/addext.c: Include <string.h> unconditionally.
42717         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42718         Don't declare getenv or malloc.
42719
42720         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42721         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42722         (NULL): Remove.
42723         (find_stack_direction, alloca): Use prototypes.
42724
42725         * lib/atexit.c (atexit): Define using a prototype.
42726
42727         * lib/basename.c, dirname.c, stripslash.c:
42728         Include <string.h> unconditionally.
42729
42730         * lib/bcopy.c: Include <stddef.h>.
42731         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42732
42733         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42734
42735         * lib/error.h (error, error_at_line, error_print_progname)
42736         [! (defined (__STDC__) && __STDC__)]: Remove decls.
42737         * lib/error.c: Include error.h first, to check interface.
42738         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42739         (VA_START): Remove; all uses changeed to va_start.
42740         (exit, strerror): Remove decls.
42741         (error_print_progname): Prototype uncondionally.
42742         Don't include <errno.h>; no longer needed.
42743         (private_strerror): Remove.
42744         (error_tail): Always define.
42745         (error, error_at_line): Assume C89 or better; always use prototypes.
42746         * lib/fatal.c: Include "fatal.h" first, to test interface.
42747         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42748         (VA_START): Remove; all uses changed to va_start.
42749         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
42750         this case.
42751         (exit): Remove decl.
42752         (fatal): Prototype unconditionally.  Assume va_start works.
42753         Abort at end, to pacify gcc.
42754
42755         * lib/euidaccess.c (main): Define with a prototype.
42756
42757         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
42758
42759         * lib/exitfail.c: Include <stdlib.h> unconditionally.
42760
42761         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
42762         prototypes.
42763         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
42764         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
42765         (getenv): Remove decl.
42766         (fnmatch): Define using a prototype.
42767         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
42768         (FCT): Define using a prototype.
42769
42770         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
42771
42772         * lib/gethostname.c: Include <stddef.h>.
42773         (gethostname): Define with prototype.  Length is size_t, not int.
42774
42775 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42776
42777         Assume C89 or better; remove K&R cruft.
42778         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
42779         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
42780         string.h, getenv, malloc.
42781         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
42782         headers.
42783         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
42784         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
42785         do not check for strerror.
42786         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
42787         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
42788         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
42789         do not check for doprnt or vprintf.
42790         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
42791         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
42792
42793 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42794
42795         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
42796         getversion.c should have been removed then, but was accidentally
42797         preserved.
42798
42799         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
42800         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
42801
42802 2003-09-08  Karl Berry  <karl@gnu.org>
42803
42804         * config/config.sub, config.guess, srclistvars.sh: update from savannah
42805                 config, forget about prep.
42806
42807         * config/depcomp, missing: update from automake.
42808
42809 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42810
42811         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
42812         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42813
42814 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42815
42816         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
42817         copy_tm_result.  Bug reported by Simon Josefsson in
42818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42819
42820 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42821
42822         * m4/time_r.m4: New file.
42823         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
42824         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
42825         is. Check for timegm declaration.
42826         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
42827         Do not check for gmtime_r.
42828         Replace mktime if __mktime_internal does not exist and if mktime
42829         hasn't been replaced already.
42830
42831 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42832
42833         * lib/time_r.c, lib/time_r.h: New files.
42834
42835         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
42836         __localtime_r.
42837         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
42838         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
42839
42840         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
42841         __gmtime_r.
42842         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
42843         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
42844         Include <time_r.h>.
42845
42846         * lib/timegm.c: Switch to glibc implementation, with the following
42847         changes:
42848         [defined HAVE_CONFIG_H]: Include <config.h>.
42849         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
42850         (__mktime_internal) [!defined _LIBC]: New decl.
42851         (__gmtime_r) [!defined _LIBC]: New macro and function.
42852         (timegm): Use a prototype, since gnulib assumes C89.
42853         Do not bother declaring tmp to be const, as it's not really usefu.
42854         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
42855         (timegm): Declare only if HAVE_DECL_TIMEGM.
42856
42857 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42858
42859         * MODULES.html.sh (func_all_modules): Add time_r.
42860         * modules/time_r: New file.
42861         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
42862         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
42863
42864 2003-09-03  Paul Eggert  <eggert@twinsun.com>
42865
42866         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
42867         Bug reported by Lute Kamstra in
42868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
42869
42870         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
42871         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
42872         course with correspondingly smaller numbers for tomorrow and
42873         yesterday.  From Tadayoshi Funaba.  Originally installed into
42874         sh-utils on 1999-08-07, but the patch got lost (I guess during the
42875         coreutils merge?).
42876
42877 2003-08-31  Simon Josefsson  <jas@extundo.com>
42878
42879         * modules/timegm: New file.
42880         * MODULES.html.sh (func_all_modules): Add timegm.
42881
42882 2003-08-31  Simon Josefsson  <jas@extundo.com>
42883
42884         * m4/timegm.m4: New file.
42885
42886 2003-08-31  Simon Josefsson  <jas@extundo.com>
42887
42888         * lib/timegm.h: New file.
42889         * lib/timegm.c: New file.  Based on
42890         wget-1.8.2/src/http.c:mktime_from_utc.
42891
42892 2003-08-31  Karl Berry  <karl@gnu.org>
42893
42894         * lib/argp.h: update from libc.
42895
42896 2003-08-28  Bruno Haible  <bruno@clisp.org>
42897
42898         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
42899         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
42900         followed by '#define fnmatch fnmatch_posix' gives an error.
42901
42902 2003-08-28  Bruno Haible  <bruno@clisp.org>
42903
42904         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
42905         warning on QNX, which defines O_BINARY to 000000.
42906
42907 2003-08-27  Jim Meyering  <jim@meyering.net>
42908
42909         * m4/mkstemp.m4: Require that the system mkstemp be able to create
42910         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
42911         would fail after 32.  Reported by Danny Levinson.  Details here:
42912         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
42913
42914 2003-08-24  Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
42917         MSVC7 <stdio.h> is included later.
42918
42919 2003-08-22  Simon Josefsson  <jas@extundo.com>
42920
42921         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
42922
42923 2003-08-20  Karl Berry  <karl@gnu.org>
42924
42925         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
42926
42927 2003-08-20  Bruno Haible  <bruno@clisp.org>
42928
42929         * modules/progname: New file.
42930         * MODULES.html.sh (func_all_modules): Add progname.
42931
42932 2003-08-20  Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/progname.h: New file, from GNU gettext.
42935         * lib/progname.c: New file, from GNU gettext.
42936         * lib/progreloc.c: New file, from GNU gettext.
42937
42938 2003-08-19  Jim Meyering  <jim@meyering.net>
42939
42940         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
42941         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
42942
42943 2003-08-19  Bruno Haible  <bruno@clisp.org>
42944
42945         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
42946         more.
42947
42948 2003-08-19  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/xstrdup.c: Assume <string.h> exists.
42951
42952 2003-08-18  Paul Eggert  <eggert@twinsun.com>
42953
42954         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
42955         in makefile rules.
42956
42957 2003-08-18  Jim Meyering  <jim@meyering.net>
42958
42959         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
42960         * m4/lib-ld.m4: Likewise.
42961
42962 2003-08-18  Jim Meyering  <jim@meyering.net>
42963
42964         * lib/setenv.h: Indent nested cpp directive.
42965         * lib/vasnprintf.c: Remove trailing blanks.
42966
42967 2003-08-17  Simon Josefsson  <jas@extundo.com>
42968
42969         * modules/xstrndup: New file.
42970         * MODULES.html.sh (func_all_modules): Add xstrndup.
42971
42972 2003-08-17  Simon Josefsson  <jas@extundo.com>
42973
42974         * modules/argp: Fix autoconf macro name. Add more dependencies.
42975
42976 2003-08-17  Simon Josefsson  <jas@extundo.com>
42977
42978         * m4/xstrndup.m4: New file.
42979
42980 2003-08-17  Simon Josefsson  <jas@extundo.com>
42981
42982         * m4/argp.m4: New file.
42983
42984 2003-08-17  Simon Josefsson  <jas@extundo.com>
42985             Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/xstrndup.h: New file.
42988         * lib/xstrndup.c: New file.
42989
42990 2003-08-17  Bruno Haible  <bruno@clisp.org>
42991
42992         * modules/strndup (Files, Include): Add lib/strndup.h.
42993
42994 2003-08-17  Bruno Haible  <bruno@clisp.org>
42995
42996         * modules/euidaccess (Files): Add lib/euidaccess.h.
42997
42998 2003-08-17  Bruno Haible  <bruno@clisp.org>
42999
43000         * lib/strndup.h: New file.
43001
43002 2003-08-17  Bruno Haible  <bruno@clisp.org>
43003
43004         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43005         like AC_GNU_SOURCE.
43006         * modules/extensions (configure.ac): Comment out the invocation of
43007         gl_USE_SYSTEM_EXTENSIONS.
43008
43009 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43010
43011         Merges from coreutils, etc.
43012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43013         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43014         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43015         fixing a typo.
43016         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43017         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43018
43019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43020
43021         Document merge from coreutils.
43022         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43023         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43024         * modules/utime: Add m4/utimes-null.m4.
43025
43026 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43027
43028         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43029         space, undoing this 2003-08-12 change:
43030         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43031
43032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43033
43034         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43035         strtoul.c from libc, undoing this 2003-08-12 change:
43036         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43037
43038 2003-08-16  Jim Meyering  <jim@meyering.net>
43039
43040         Merges from coreutils.
43041         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43042         prefix.  Adjust cache variables similarly.  Create 500 rather than
43043         just 300 files, to exercise bug on Darwin6.5, too.
43044         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43045         $missing_dir.
43046         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43047         AM_SYS_POSIX_TERMIOS.
43048         Reported by mkc@mathdogs.com.
43049         Also change use of $am_cv_sys_posix_termios
43050         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43051         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43052         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43053         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43054         in /proc/mounts until it finds one with matching device number.  This
43055         is unnecessary when the FILE argument *is* a mount point.  No stat call
43056         is necessary in that case.  So, disable the statvfs-testing code on
43057         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43058         as RedHat bug# 84846.
43059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43060         to 1MB, so as not to render systems with no stack size limit (e.g.,
43061         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43062         Include <unistd.h>.  On some systems,
43063         it is required for the definition of _SC_PAGESIZE.
43064
43065 2003-08-16  Jim Meyering  <jim@meyering.net>
43066
43067         Merge from coreutils.
43068         * lib/xstrtoimax.c: #else #if -> #elif.
43069         * lib/xstrtoumax.c: Likewise.
43070
43071 2003-08-16  Jim Meyering  <jim@meyering.net>
43072
43073         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43074         * m4/utimes.m4: Removed.
43075         * m4/utimes-null.m4: Renamed from utimes.m4.
43076
43077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43078         to 1MB, so as not to render systems with no stack size limit (e.g.,
43079         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43080         Include <unistd.h>.  On some systems,
43081         it is required for the definition of _SC_PAGESIZE.
43082
43083 2003-08-16  Jim Meyering  <jim@meyering.net>
43084         and Paul Eggert  <eggert@cs.ucla.edu>
43085
43086         Merges from coreutils, etc.
43087
43088         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43089         using the latest version from cvs.  This avoids problems with #line
43090         directives using a vendor (Sun) compiler.
43091         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43092         Don't set GETGROUPS_LIB here; now it's
43093         done via getgroups.m4's wrapper function.
43094         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43095         rather than just in sh-util/configure.in, so that the
43096         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43097         same.
43098         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43099         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43100         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43101         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43102         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43103         Remove code that is now done by the newly-required macros.
43104         Append $(EXEEXT) to DF_PROG.
43105         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43106         Do not invoke or require the following here,
43107         since prereq.m4 or some gnulib .m4 now does this for us:
43108         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43109         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43110         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43111         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43112         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43113         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43114         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43115         AC_FUNC_OBSTACK.
43116         Do not replace the following functions, as this is now the job
43117         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43118         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43119         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43120         atexit getpass, strdup, getpagesize.
43121         Replace 'raise'.
43122         Do not check for the following functions, as this is now the job
43123         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43124         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43125         setregid.
43126         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43127         Check for sys/sysctl.h.
43128         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43129         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43130         of checking for ssize_t ourselves.
43131
43132         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43133         Require every macro that gnulib/modules/* suggests for us.
43134         (jm_PREREQ_ADDEXT): New macro.
43135         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43136         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43137
43138         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43139         (gl_PHYSMEM): Use it.
43140         Also check for `table' function.
43141         Check for new headers and functions.
43142         Add check for sys/sysmp.h.
43143         With suggestions from Kaveh Ghazi.
43144         Ignore headers that are present but cannot be compiled.  This
43145         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43146         C 5.4.
43147
43148 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43149
43150         Document merge from coreutils.
43151         * modules/userspec: Depend on posixver.
43152         * modules/strftime: Depend on tzset.
43153
43154 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43155
43156         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43157         rather than tab, after '#' in shell-script copyright notices.
43158         Suggested by Bruno Haible.
43159
43160 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43161
43162         * config/srclist-update: Use three spaces, rather than tab, after '#'
43163         in shell-script copyright notices.  Suggested by Bruno Haible.
43164         Remove unnecessary parenthesization in regular expression.
43165
43166 2003-08-15  Jim Meyering  <jim@meyering.net>
43167
43168         Merge from coreutils.
43169         * lib/xgethostname.c: Include <stdlib.h>.
43170         (xghostname): Don't exit for anything other than memory-related
43171         failure; just return NULL.
43172         * lib/userspec.c: Include "posixver.h".
43173         (parse_user_spec): Accept `.' as a separator only
43174         in pre-POSIX-200112 mode.
43175         * lib/strtoimax.c: Use #elif rather than #else #if.
43176         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43177         Remove function, now that we can rely on a working tzset function.
43178         [!_LIBC]: Ensure that the required autoconf test has been run.
43179         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43180         Use underlying_strftime for %r.
43181         * lib/sha.c: Merge in some clean-up and optimization changes from
43182         glibc.
43183         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43184         Ensure that it is a multiple of 64.
43185         Rearrange loop exit tests so as to avoid performing an
43186         additional fread after encountering an error or EOF.
43187         * lib/realloc.c: Update copyright date.
43188
43189 2003-08-15  Jim Meyering  <jim@meyering.net>
43190         and Paul Eggert  <eggert@twinsun.com>
43191
43192         Merge from coreutils.
43193         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43194         member but strut utmpx does not.  Needed for AIX 4.3.3.
43195         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43196
43197 2003-08-15  Jim Meyering  <jim@meyering.net>
43198         and Paul Eggert  <eggert@cs.ucla.edu>
43199
43200         Merges from coreutils, etc.
43201         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43202         Require gl_FUNC_TZSET_CLOBBER.
43203         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43204         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43205         members.
43206
43207 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43208
43209         Help the merge from coreutils.
43210         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43211         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43212         * m4/tzset.m4: Use it too.
43213
43214 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43215
43216         * modules/tzset: New file.
43217
43218 2003-08-14  Jim Meyering  <jim@meyering.net>
43219
43220         Merges from coreutils.
43221         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43222         variable names, rather than @FNMATCH_H@.
43223         * modules/alloca: Likewise for $(ALLOCA_H).
43224
43225         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43226         the three copies of the literal target, `fnmatch.h'.
43227         * modules/alloca (alloca.h): Likewise.
43228
43229 2003-08-14  Jim Meyering  <jim@meyering.net>
43230
43231         Merge from coreutils.
43232         * m4/tzset.m4: New file.
43233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43234         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43235         otherwise, AIX 5.1 systems would end up using the latter.
43236         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43237         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43238         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43239         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43240
43241 2003-08-14  Jim Meyering  <jim@meyering.net>
43242
43243         Merge from coreutils.
43244         * lib/obstack.h: Whitespace changes.
43245         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43246         and xcalloc return values.
43247         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43248         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43249         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43250         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43251         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43252         error from mntctl.
43253         Use mntctl's return value to drive the entry-processing loop, since
43254         we can't rely on the value of the vmt_length member in the last
43255         entry.  On some systems doing so could result in exhausting
43256         virtual memory.  Based in part on a patch from Mike Jetzer.
43257
43258 2003-08-14  Jim Meyering  <jim@meyering.net>
43259         and Paul Eggert  <eggert@twinsun.com>
43260
43261         Merges from coreutils, plus other fixes.
43262         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43263         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43264         for credits and details.  Thanks to Kaveh Ghazi for helping
43265         to keep these files in sync.
43266         (ARRAY_SIZE): Define it.
43267         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43268         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43269         (memcasecmp): Don't assume size_t fits in unsigned int.
43270         Remove casts and duplicate code.
43271         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43272         (memcpy): Remove definition.
43273         Merge in some clean-up and optimization changes from glibc.
43274         [BLOCKSIZE]: Move definition to top of file.
43275         Ensure that it is a multiple of 64.
43276         Rearrange loop exit tests so as to avoid performing an
43277         additional fread after encountering an error or EOF.
43278         * lib/md5.h (md5_uintptr): Define.
43279         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43280         return to the initial working directory.  Preserve errno
43281         for caller.
43282         * lib/idcache.c: Include "xalloc.h".
43283         (xmalloc, xrealloc): Remove decls.
43284         (getuser): Remove casts no longer required in C89.
43285         * lib/human.c: Include stdio.h, for sprintf.
43286         * lib/group-member.c: Include "xalloc.h".
43287         (xmalloc, xrealloc): Remove decls.
43288         (get_group_info): Remove casts no longer required in C89.
43289         * lib/getusershell.c (readname): Remove casts no longer required in
43290         C89.
43291         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43292         * lib/getline.c: Whitespace fix, from coreutils.
43293
43294 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43295
43296         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43297         Check for isascii.
43298
43299         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43300         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43301         Undo previous (whitespace-only) change.
43302
43303 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43304
43305         * lib/exclude.c: Include <ctype.h>
43306         (IN_CTYPE_DOMAIN): New macro.
43307         (is_space): New fn.
43308         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43309         and empty lines.
43310
43311         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43312         Undo previous (whitespace-only) change.
43313
43314 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43315
43316         * config/srclist-update: Change update back to the old behavior,
43317         leaving whitespace alone.  Use one 'sed' command rather than a
43318         pipeline.
43319         (fixlicense): Now a variable, not a function.
43320         (remove_trailing_blanks): Remove.
43321         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43322         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43323         Undo previous (whitespace-only) change.
43324
43325 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43326
43327         Merge from coreutils.
43328         * modules/euidaccess: Add lib_SOURCES, include for new
43329         file euidaccess.h
43330
43331 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43332
43333         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43334         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43335         Normalize leading white space and remove trailing white space.
43336
43337         Merge from coreutils
43338         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43339
43340         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43341         0.12.1.  These files are now being upgraded automatically by
43342         ../config/srclist-update.
43343
43344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43345
43346         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43347         Normalize leading white space and remove trailing white space.
43348         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43349         notice, as per ../config/srclist-update.
43350
43351         Merge from coreutils.
43352         * lib/euidaccess.h: New file.
43353         * lib/euidaccess.c: Include it.
43354         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43355         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43356         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43357
43358 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43359
43360         * config/srclist-update: Add copyright notice.
43361         (remove_id_lines, remove_trailing_blanks): New constants.
43362         (fixfile): Use them to normalize spacing a bit in copied files.
43363         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43364         Normalize leading white space and remove trailing white space.
43365
43366         * config/texinfo.tex: Sync with texinfo.
43367
43368         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43369         strtoul.c from libc, to merge coreutils whitespace changes.
43370
43371         * config/srclist.txt: Get the following m4 files from gettext:
43372         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43373         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43374         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43375         wint_t.m4.
43376
43377 2003-08-12  Karl Berry  <karl@gnu.org>
43378
43379         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43380         been made.
43381
43382 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43383
43384         * modules/gnu-source, m4/gnu-source.m4:
43385         Remove; we're assuming Autoconf 2.54 or later now.
43386         Suggested by Bruno Haible.
43387         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43388
43389 2003-08-11  Bruno Haible  <bruno@clisp.org>
43390
43391         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43392
43393 2003-08-11  Bruno Haible  <bruno@clisp.org>
43394
43395         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43396         (vasnprintf): Use it instead of wcslen.
43397
43398 2003-08-11  Bruno Haible  <bruno@clisp.org>
43399
43400         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43401         value to ensure that _Bool promotes to int. Use #define for _Bool when
43402         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43403
43404 2003-08-10  Karl Berry  <karl@gnu.org>
43405
43406         * lib/regex.h: update from libc (whitespace fix).
43407
43408 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43409
43410         Merge some files from coreutils.  These changes were
43411         originally made by Jim Meyering.
43412         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43413         many older Unixes require this.
43414         * lib/alloca.c (alloca): Remove cast to argument of free;
43415         no longer needed in C89.
43416         * lib/alloca_.h, regex.h: Fix white space to match
43417         what GNU indent does.
43418
43419 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43420
43421         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43422         apparently Emacs's Unicode mode got confused before my 2003-08-05
43423         checkin.
43424
43425 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43426
43427         * m4/extensions.m4: New file.
43428         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43429         Require gl_USE_SYSTEM_EXTENSIONS.
43430         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43431         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43432
43433 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43434
43435         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43436         * modules/extensions, modules/gnu-source: New files.
43437         * modules/timespec, modules/unlocked-io: Depend on extensions.
43438
43439 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43440
43441         * modules/restrict: New file.
43442         * MODULES.html.sh (func_all_modules): Add restrict.
43443         * modules/regex: Depend on restrict.
43444
43445 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43446
43447         * m4/restrict.m4: New file.
43448         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43449
43450 2003-08-07  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43453         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43454
43455 2003-08-07  Bruno Haible  <bruno@clisp.org>
43456
43457         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43458         makes the module 'getndelim2' compatible with the module 'getline'.
43459
43460 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43461
43462         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43463         byte with "\201" to avoid glitches when editing that source file
43464         with multi-gnome-terminal.
43465
43466 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43467
43468         * lib/bumpalloc.h: Remove.
43469
43470 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43471
43472         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43473         * modules/bumpalloc: Remove.
43474
43475 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43476
43477         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43478         GNU coding style.
43479
43480         Merge from coreutils.
43481         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43482         1. From glibc.
43483         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43484         from Karl Berry, implemented by Jim Meyering.
43485         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43486         from Dmitry V. Levin.
43487         Remove anachronistic cast of xrealloc.
43488         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43489         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43490         type. Otherwise, it wouldn't compile with at least /bin/cc on
43491         ymp-cray-unicos9.0.2.X.
43492         Combine two mostly-identical uses of alloca into one.
43493         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43494
43495 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43496
43497         [From Emacs.]
43498
43499         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43500         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43501         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43502         obsolete NLIST_NAME_UNION.
43503         [__GNU__]: Undef BSD and FSCALE.
43504         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43505
43506 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43507
43508         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43509         an enum type, so that it's guaranteed to promote to int.  See:
43510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43511
43512 2003-08-03  Karl Berry  <karl@gnu.org>
43513
43514         * config/depcomp: update from automake.
43515
43516 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43517
43518         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43519         (strerror): Don't assume that a printable int fits in 14 bytes.
43520
43521 2003-07-31  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/getpass-gnu: New file.
43524         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43525
43526 2003-07-31  Bruno Haible  <bruno@clisp.org>
43527
43528         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43529
43530 2003-07-24  Karl Berry  <karl@gnu.org>
43531
43532         * config/missing: update from automake.
43533
43534 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43535             Bruno Haible  <bruno@clisp.org>
43536
43537         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43538         * lib/getline.c (getline, getdelim): Likewise.
43539         Remove _GNU_SOURCE define; now it's defined in config.h through
43540         m4/getline.m4.
43541
43542 2003-07-23  Karl Berry  <karl@gnu.org>
43543
43544         * config/config.sub: update from prep.
43545
43546 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43547
43548         * modules/xalloc (Depends-on): Add exitfail.
43549         * modules/xmemcoll: Likewise.
43550
43551 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43552
43553         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43554         over-parenthesization in macros.
43555
43556         Sync with coreutils.
43557
43558         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43559         required by C99.
43560
43561         Use `exit_failure' for xalloc and xmemcoll instead of their own
43562         private exit-failure variables.
43563         * lib/xalloc.h (xalloc_exit_failure): Remove.
43564         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43565         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43566         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43567         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43568         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43569
43570 2003-07-20  Jim Meyering  <jim@meyering.net>
43571
43572         * modules/closeout (Depends-on): Add exitfail.
43573         Suggestion from Bruno Haible.
43574
43575 2003-07-19  Karl Berry  <karl@gnu.org>
43576
43577         * config/config.sub: update from prep.
43578
43579 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43580
43581         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43582         Remove.
43583         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43584         to test that it can stand by itself.  Include "exitfail.h".
43585         Clients should set exit_failure instead.
43586         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43587
43588 2003-07-18  Bruno Haible  <bruno@clisp.org>
43589
43590         * modules/getndelim2: New file.
43591         * modules/getline: Share files with module getndelim2.
43592         * modules/getnline: Depend on getndelim2 instead of sharing files with
43593         it. Add getnline.c to lib_SOURCES.
43594         * MODULES.html.sh (func_all_modules): Add getndelim2.
43595
43596 2003-07-18  Bruno Haible  <bruno@clisp.org>
43597
43598         * m4/getndelim2.m4: New file.
43599         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43600         invoke gl_PREREQ_GETNDELIM2.
43601         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43602         gl_PREREQ_GETNDELIM2.
43603         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43604         gl_GETNDELIM2.
43605
43606 2003-07-18  Bruno Haible  <bruno@clisp.org>
43607
43608         * lib/getndelim2.h: New file.
43609         * lib/getndelim2.c: Make into a module of its own. Include config.h,
43610         getndelim2.h.
43611         (getndelim2): Make non-static. Change return type to ssize_t.
43612         * lib/getline.h: Change argument names.
43613         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43614         * lib/getnline.c: Include getndelim2.h.
43615
43616 2003-07-18  Andreas Schwab  <schwab@suse.de>
43617
43618         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43619
43620 2003-07-17  Karl Berry  <karl@gnu.org>
43621
43622         * config/config.sub: update from prep.
43623
43624 2003-07-17  Bruno Haible  <bruno@clisp.org>
43625
43626         * modules/getnline: New file.
43627         * modules/getline: Add lib/getndelim2.c to source file list.
43628         * MODULES.html.sh (func_all_modules): Add getnline.
43629
43630 2003-07-17  Bruno Haible  <bruno@clisp.org>
43631
43632         * m4/getnline.m4: New file.
43633
43634 2003-07-17  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/Makefile.am.in: Remove file.
43637         * m4/Makefile.am: Remove file.
43638         * m4/Makefile.in: Remove file.
43639
43640 2003-07-17  Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/getnline.h: New file.
43643         * lib/getnline.c: New file.
43644         * lib/getndelim2.c: New file, extracted from getline.c.
43645         (getndelim2): Renamed from getdelim2, with added nmax argument.
43646         * lib/getline.c: Include getndelim2.c.
43647         (getdelim2): Moved out to getndelim2.c.
43648         (getline, getdelim): Update.
43649
43650 2003-07-17  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/Makefile.am: Remove file.
43653         * lib/Makefile.in: Remove file.
43654
43655 2003-07-17  Bruno Haible  <bruno@clisp.org>
43656
43657         * configure.in: Remove file.
43658         * Makefile.in: Remove file.
43659
43660 2003-07-17  Bruno Haible  <bruno@clisp.org>
43661
43662         * MODULES.html.sh: Put the </BODY> right before </HTML>.
43663
43664 2003-07-16  Karl Berry  <karl@gnu.org>
43665
43666         * config/srclist-update: was running fixlicense twice, which caused
43667                 texinfo.tex to be nullified for some reason.  Simplify,
43668                 $gplsrc is no longer needed as far as I can see?
43669
43670 2003-07-16  Jim Meyering  <jim@meyering.net>
43671
43672         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
43673
43674 2003-07-15  Paul Eggert  <eggert@twinsun.com>
43675
43676         * config/srclist.txt: Get the following files from gettext-runtime/intl
43677         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43678         ref-del.sin.  From Bruno Haible.
43679         * config/srclist-update (fixfile): Change grep pattern again, since the
43680         previous fix didn't work (there was another trailing $).  Use
43681         '[$]' to escape the $s.
43682
43683 2003-07-15  Karl Berry  <karl@gnu.org>
43684
43685         * lib/vasnprintf.c: update from gettext.
43686
43687 2003-07-15  Karl Berry  <karl@gnu.org>
43688
43689         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43690         gets expanded when surrounded by '$'.
43691
43692 2003-07-15  Jim Meyering  <jim@meyering.net>
43693
43694         * modules/save-cwd: Don't depend on error.  From Derek Price.
43695
43696 2003-07-15  Jim Meyering  <jim@meyering.net>
43697
43698         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43699
43700 2003-07-14  Simon Josefsson  <jas@extundo.com>
43701
43702         * modules/mempcpy: New file.
43703         * MODULES.html.sh (func_all_modules): Add mempcpy.
43704
43705 2003-07-14  Simon Josefsson  <jas@extundo.com>
43706
43707         * m4/mempcpy.m4: New file.
43708
43709 2003-07-14  Simon Josefsson  <jas@extundo.com>
43710
43711         * lib/mempcpy.h: New file.
43712         * lib/mempcpy.c: New file.
43713
43714 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43715
43716         * modules/getdate, modules/posixtm: Depend on mktime.
43717
43718 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43719
43720         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43721         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43722         unicodeio.c, unicodeio.h, unlocked-io.h:
43723         Switch from LGPL to GPL.
43724
43725 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43726
43727         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43728         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43729         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43730         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43731         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
43732         updated automatically by ../config/srclist-update.  This changes
43733         their license from LPGL to GPL.
43734
43735 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43736
43737         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
43738         assumed to refer to the root of the most recent stable gettext version.
43739         * config/srclistvars.sh: Add defaults for eggert.
43740         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43741         Match "This program" as well as "The program".  This is needed
43742         for gettext.
43743
43744 2003-07-14  Jim Meyering  <jim@meyering.net>
43745
43746         Don't emit diagnostics.  Let callers do that.
43747         * lib/save-cwd.c: Don't include "error.h".
43748         (save_cwd): Don't call error.  Ensure that errno is valid
43749         when returning nonzero.
43750
43751         * lib/save-cwd.h (restore_cwd): Update prototype.
43752         * lib/save-cwd.c (restore_cwd): Remove two parameters.
43753         Simplify.  Don't call error upon failure.  Let callers do that.
43754         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
43755         when auditing is enabled.  But don't bother updating the #if.
43756
43757 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
43758
43759         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
43760         it breaks C++ compilation.
43761         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
43762
43763 2003-07-10  Simon Josefsson  <jas@extundo.com>
43764
43765         * modules/strchrnul (Makefile.am): Add strchrnul.h.
43766
43767 2003-07-10  Jim Meyering  <jim@meyering.net>
43768
43769         * m4/clock_time.m4: Remove trailing blank.
43770         * m4/intmax_t.m4: Likewise.
43771
43772 2003-07-10  Jim Meyering  <jim@meyering.net>
43773
43774         * lib/vasnprintf.c: Remove trailing blanks.
43775         Make cpp indentation consistent.
43776
43777 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43778
43779         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
43780         posixver.c, strftime.c, strnlen.c, strverscmp.c:
43781         Switch from LGPL to GPL.
43782
43783 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43784
43785         * config/srclist.txt: Sort sublists.  Add
43786         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
43787         that differ from gnulib for one reason or another; we'd like this list
43788         to be smaller but for now let's document what we have.
43789
43790 2003-07-08  Paul Eggert  <eggert@twinsun.com>
43791
43792         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
43793         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
43794         and sweeter "eval x=$x".
43795         * config/srclist.txt: Get lib/argp* from glibc.
43796
43797 2003-07-07  Paul Eggert  <eggert@twinsun.com>
43798
43799         * lib/mktime.c: Fix some boundary cases and remove need for floating
43800         point.
43801
43802         Issue a compile-time diagnostic if time_t is floating point, or if
43803         two's complement arithmetic is not in effect, or if arithmetic
43804         right shift does not propagate the sign.  These assumptions were
43805         all in the original code but they weren't checked.
43806
43807         (TIME_T_MIDPOINT, verify): New macros.
43808         (__isleap): Remove; it has integer overflow problems.
43809         (leapyear): New function, without those problems.
43810         (ydhms_tm_diff): Remove; splitting into two parts.
43811         (ydhms_diff): New function, containing the arithmetic part of
43812         the old ydhms_tm_diff function.  Issue a compile-time
43813         diagnostic if we are not using C99 integer division.
43814         Avoid casts when possible.
43815         (guess_time_tm): New function, containing the checking part of
43816         the old ydhms_tm_diff function.  Return the new value, rather than
43817         the difference between it and the old.  Accept a new argument T
43818         so that *T specifies the old value.  Check for overflow in the result.
43819
43820         (__mktime_internal): Use a time_t offset, not a long int offset.
43821         This undoes the 2003-06-04 change, which is no longer needed now
43822         that we have better overflow checking.
43823         (localtime_offset): Likewise.
43824
43825         (__mktime_internal): Avoid harmful overflow on hosts where time_t
43826         and long are 64-bit but int is only 32-bit.
43827         (ydhms_diff): Use long int to store year1 and yday1.
43828         Issue a compile-time diagnostic if long int is not wide enough.
43829
43830         (__mktime_internal): Use long int to store adjusted year and yday.
43831         Use plain C rather than preprocessor commands, if that doesn't
43832         affect efficiency.
43833         Check for overflow (and try to repair) after each probe
43834         rather than checking only at the very end.  This avoids some bugs
43835         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
43836         does not equal GMT offset at maximum time).
43837         Use integer to check for overflow rather than floating point; this
43838         is more portable to non-IEEE hosts, and is a tad faster.
43839         When we detect that we are oscillating between two values,
43840         don't check whether tm_isdst has the requested value, since
43841         we already know the answer.  When tm_isdst has the wrong value,
43842         use a different heuristic to find the right one, based on the
43843         extreme values actually observed in practice in tz2003a,
43844         rather than the (overly optimistic) "previous 3 calendar quarters".
43845
43846         (not_equal_tm, print_tm, check_result): Use "const T" rather than
43847         "T const" to accommodate glibc style.
43848         (check_result): Use less-confusing report format.  "long" -> "long int.
43849         (main): Likewise.
43850         Don't loop if the iteration overflows time_t.
43851         Allow a negative step in the iteration.
43852
43853 2003-07-06  Karl Berry  <karl@gnu.org>
43854
43855         * config/depcomp: update from automake.
43856         * config/config.sub: update from prep.
43857
43858 2003-07-03  Karl Berry  <karl@gnu.org>
43859
43860         * config/config.guess: update from prep.
43861
43862 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43863
43864         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
43865         xreadlink.c now includes it unconditionally.
43866
43867 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43868
43869         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
43870         having it depend on HAVE_SYS_TYPES_H.
43871
43872 2003-07-01  Bruno Haible  <bruno@clisp.org>
43873
43874         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
43875         <sys/types.h> should be sufficient.
43876         Reported by Paul Eggert.
43877
43878 2003-06-26  Karl Berry  <karl@gnu.org>
43879
43880         * config/depcomp: update from automake.
43881
43882 2003-06-26  Bruno Haible  <bruno@clisp.org>
43883
43884         * modules/human: Depend on module stdbool.
43885
43886 2003-06-25  Bruno Haible  <bruno@clisp.org>
43887
43888         * modules/readlink: New file.
43889         * modules/xreadlink: Depend on it.
43890         * MODULES.html.sh (func_all_modules): Add readlink.
43891
43892 2003-06-25  Bruno Haible  <bruno@clisp.org>
43893
43894         * m4/readlink.m4: New file.
43895
43896 2003-06-25  Bruno Haible  <bruno@clisp.org>
43897
43898         * lib/readlink.c: New file.
43899
43900 2003-06-22  Karl Berry  <karl@gnu.org>
43901
43902         * config/srclist.txt: update mkinstalldirs from automake.
43903         * config/mkinstalldirs: update.
43904
43905 2003-06-22  Bruno Haible  <bruno@clisp.org>
43906
43907         Portability to mingw32.
43908         * m4/ssize_t.m4: New file, from GNU gettext.
43909         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
43910         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
43911
43912 2003-06-22  Bruno Haible  <bruno@clisp.org>
43913
43914         * modules/safe-read: Add m4/ssize_t.m4.
43915         * modules/xreadlink: Add m4/ssize_t.m4.
43916
43917 2003-06-20  Bruno Haible  <bruno@clisp.org>
43918
43919         Assume C89, so PARAMS isn't needed.
43920         * lib/unicodeio.h (PARAMS): Remove.
43921         * lib/unicodeio.c: Don't use PARAMS.
43922
43923 2003-06-18  Karl Berry  <karl@gnu.org>
43924
43925         * config/config.{guess,sub}: update from prep.
43926
43927 2003-06-18  Jim Meyering  <jim@meyering.net>
43928
43929         Merge changes from coreutils.
43930         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
43931         Remove explicit declarations of xmalloc and realloc.
43932         Include xalloc.h.
43933         (read_utmp): Remove anachronistic cast of xmalloc.
43934
43935 2003-06-17  Paul Eggert  <eggert@twinsun.com>
43936
43937         Assume C89, so PARAMS isn't needed.
43938         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
43939         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
43940         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
43941         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
43942         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
43943         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
43944         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
43945         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
43946         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
43947         lib/xstrtod.h, lib/xstrtol.h: Likewise.
43948         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
43949         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
43950         no longer needed. Anyway, config.h should always be included before any
43951         other file.
43952
43953 2003-06-11  Simon Josefsson  <jas@extundo.com>
43954
43955         * modules/sysexits: New file.
43956         * MODULES.html.sh (func_all_modules): Add sysexits.
43957
43958 2003-06-11  Simon Josefsson  <jas@extundo.com>
43959
43960         * lib/sysexit_.h: New file.
43961
43962 2003-06-11  Derek Price  <derek@ximbiot.com>
43963
43964         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
43965         necessary.
43966
43967 2003-06-11  Bruno Haible  <bruno@clisp.org>
43968
43969         * m4/sysexits.m4: New file.
43970
43971 2003-06-10  Simon Josefsson  <jas@extundo.com>
43972
43973         * lib/argp.h: New file, from glibc.
43974         * lib/argp-ba.c: New file, from glibc.
43975         * lib/argp-eexst.c: New file, from glibc.
43976         * lib/argp-fmtstream.c: New file, from glibc.
43977         * lib/argp-fmtstream.h: New file, from glibc.
43978         * lib/argp-fs-xinl.c: New file, from glibc.
43979         * lib/argp-help.c: New file, from glibc.
43980         * lib/argp-namefrob.h: New file, from glibc.
43981         * lib/argp-parse.c: New file, from glibc.
43982         * lib/argp-pv.c: New file, from glibc.
43983         * lib/argp-pvh.c: New file, from glibc.
43984         * lib/argp-xinl.c: New file, from glibc.
43985
43986 2003-06-10  Simon Josefsson  <jas@extundo.com>
43987
43988         * modules/strchrnul: New file.
43989
43990 2003-06-10  Simon Josefsson  <jas@extundo.com>
43991
43992         * modules/argp: New file.
43993
43994 2003-06-10  Simon Josefsson  <jas@extundo.com>
43995
43996         * m4/strchrnul.m4: New file.
43997
43998 2003-06-10  Simon Josefsson  <jas@extundo.com>
43999
44000         * lib/strchrnul.h: New file.
44001         * lib/strchrnul.c: New file.
44002
44003 2003-06-10  Bruno Haible  <bruno@clisp.org>
44004
44005         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44006
44007 2003-06-07  Karl Berry  <karl@gnu.org>
44008
44009         * config/config.{guess,sub}: update from prep.
44010
44011 2003-06-07  Jim Meyering  <jim@meyering.net>
44012
44013         * modules/strtod: Use $(...) notation, not @...@ for
44014         AC_REPLACE'd variables.
44015         * modules/localcharset: Likewise.
44016
44017 2003-06-07  Jim Meyering  <jim@meyering.net>
44018
44019         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44020         in place of my name in the copyright comment.
44021         Remove definition and uses of __P.
44022
44023         From coreutils.
44024         * lib/stat.c: Don't declare xmalloc explicitly.
44025         Instead, include "xalloc.h".
44026         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44027         xrealloc, and xcalloc return values.
44028         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44029         Improve comment.
44030         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44031
44032 2003-06-07  Bruno Haible  <bruno@clisp.org>
44033
44034         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44035         avoid AC_CONFIG_LINKS.
44036         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44037         fnmatch.h, to avoid AC_CONFIG_LINKS.
44038         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44039
44040 2003-06-07  Bruno Haible  <bruno@clisp.org>
44041
44042         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44043         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44044         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44045         directory.
44046         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44047         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44048         directory.
44049
44050 2003-06-06  Jim Meyering  <jim@meyering.net>
44051
44052         Merge from coreutils.
44053         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44054         Consolidate declarations and initializations of *_base* locals.
44055
44056         Merge from coreutils.
44057         This avoids a core dump on systems without GNU putenv,
44058         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44059         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44060         (unsetenv): New static function, from GNU libc.
44061         (rpl_putenv): Use it.
44062
44063         * lib/modechange.c: Remove trailing blanks.
44064
44065         Merge from coreutils.
44066         * lib/fsusage.c: Remove declaration of statfs.
44067         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44068
44069         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44070
44071 2003-06-06  Jim Meyering  <jim@meyering.net>
44072
44073         * lib/stdbool_.h: Renamed from stdbool.h.in.
44074
44075 2003-06-06  Jim Meyering  <jim@meyering.net>
44076             Bruno Haible  <bruno@clisp.org>
44077
44078         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44079         Adjust Makefile.am snippet not to redirect directly to target.
44080         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44081
44082 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44083
44084         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44085         mismatch, look in future quarters as well as past.  This fixes a
44086         bug when processing fall-backwards gaps immediately after a long
44087         period of daylight-saving time.
44088
44089         * lib/mktime.c: Assume freestanding C89 or better.
44090         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44091         (__P): Remove; not used.
44092         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44093         (mktime, not_equal_tm, print_tm, check_result,
44094         main): Use prototypes.  Use const * where appropriate.
44095         (main): Fix typo in testing code that uncovered by above changes.
44096         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44097
44098 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44099
44100         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44101         locale.h, localeconv.  This merges changes from coreutils.
44102
44103         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44104         It can be removed after the next Autoconf is released.
44105         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44106         needed.
44107
44108 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44109
44110         * lib/mktime.c: Fix Debian bug 177940
44111         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44112         (localtime_offset): Now long int, not time_t, because we want it
44113         to be guaranteed to be signed.  All uses changed.
44114         (__mktime_internal): If overflow would occur when adding offset,
44115         don't add it.
44116
44117         Merge 'human' changes from coreutils.  Rewrite to support
44118         locale-specific notations like thousands separators.
44119         * lib/human.c: Simplify authorship notice.
44120         Include human.h immediately after config.h.
44121         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44122         <limits.h>: Do not include, since human.h does.
44123         (SIZE_MAX, UINTMAX_MAX): New macros.
44124         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44125         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44126         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44127         (power_letter): Renamed from suffixes.
44128         (generate_suffix_backwards): Remove.
44129         (adjust_value): Now takes int style (because of human.h changes)
44130         and long double value (for greater precision on some platforms).
44131         (group_number): New function.
44132         (human_readable): Use it.  Use integer options, not enum.
44133         Put the options before the sizes in the arg list.
44134         Support all the new options.
44135         The old human_readable function has been removed;
44136         use inttostr.h instead.
44137         (human_readable, default_block_size, humblock):
44138         Use uintmax_t, not int, for block sizes.
44139         (human_readable_inexact, block_size_types): Remove.
44140         (block_size_opts): New constant.
44141         (human_options): Renamed from human_block_size, with new signature
44142         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44143         * lib/human.h: Add copyright and authorship notice.
44144         Include <limits.h> and <stdbool.h> unconditionally.
44145         (PARAMS): Remove.  All uses removed.
44146         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44147         (enum human_inexact_style): Remove tag; now a nameless enum.
44148         (human_floor, human_ceiling, human_round_to_even): Now have
44149         values 2, 0, 1 rather than -1, 1, 0.
44150         (human_group_digits, human_suppress_point_zero, human_autoscale,
44151         human_base_1024, human_SI, human_B): New constants.
44152         (human_readable_inexact, human_block_size): Remove.
44153         (human_readable): Size args are now uintmax_t, not int.
44154         (human_options): New decl.
44155
44156         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44157         unnecessary now that we assume C89 or better.  This change
44158         imported from coreutils.
44159
44160         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44161         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44162         in the 2003-05-30 sync from glibc.
44163
44164         .h files should stand alone, but we shouldn't include <sys/types.h>
44165         if we can get away with just <stddef.h>.
44166
44167         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44168         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44169         rather than <sys/types.h>, as we merely need size_t.
44170         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44171         to get size_t.
44172         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44173         Include <stdio.h>, to get FILE.
44174         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44175         memcasecmp.h has included <stddef.h> and all we need is size_t.
44176         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44177         our interface, instead of including <sys/types.h>
44178
44179 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44180
44181         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44182         now, as glibc mktime is buggy on non-glibc systems.
44183
44184 2003-06-03  Karl Berry  <karl@gnu.org>
44185
44186         * config/config.sub: update from prep.
44187
44188 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44189
44190         [from coreutils]
44191         Fix some minor time-related bugs with POSIX time arguments.
44192         Some valid time stamps were being rejected (notably -1, and
44193         time stamps before 1900 on 64-bit hosts).  And some invalid
44194         time stamps were being accepted, e.g. September 31.
44195
44196         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44197         that we can return (time_t) -1 successfully.
44198         * lib/posixtm.c: Likewise.
44199         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44200         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44201         (t): Remove static var.
44202         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44203         of static var.  All uses changed.
44204         (year): Do not reject years before 1900; they can occur with
44205         64-bit time_t.
44206         (posix_time_parse): Do not check for out-of-range components;
44207         that is now the caller's responsibility, since our checks were
44208         only approximations.
44209         (posixtime): Use mktime to check for out-of-range components,
44210         since it knows them exactly.
44211         If mktime returns (time_t) -1, check whether an error actually occurred
44212         by invoking localtime on -1.
44213         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44214         posixtime failures better.
44215         Improve the test data (in comments only).
44216
44217 2003-06-02  Karl Berry  <karl@gnu.org>
44218
44219         * config/mkinstalldirs (version): new variable.
44220         (--version): new option.
44221         (usage): improve message.
44222
44223 2003-05-30  Karl Berry  <karl@gnu.org>
44224
44225         * lib/mktime.c: update from libc.
44226
44227 2003-05-30  Bruno Haible  <bruno@clisp.org>
44228
44229         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44230         * config/config.rpath: Upgrade to gettext-0.12.1.
44231
44232 2003-05-30  Bruno Haible  <bruno@clisp.org>
44233
44234         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44235         * m4/nls.m4: New file, from gettext-0.12.1.
44236         * m4/po.m4: New file, from gettext-0.12.1.
44237         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44238
44239 2003-05-30  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44242         * lib/localcharset.h: Likewise.
44243         * lib/localcharset.c: Likewise.
44244
44245 2003-05-29  Karl Berry  <karl@gnu.org>
44246
44247         * config/config.rpath: update from gettext.
44248
44249 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44250
44251         Assume the headers required for C89 freestanding compilers.
44252         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44253         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44254         * m4/human.m4 (gl_HUMAN): Likewise.
44255         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44256         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44257         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44258         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44259         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44260         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44261
44262 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44263
44264         Assume the headers required for C89 freestanding compilers.
44265         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44266         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44267         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44268         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44269         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44270         define, since <limits.h> is guaranteed to do that.
44271         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44272         * lib/exclude.c: Include <stdbool.h> unconditionally.
44273         * lib/tempname.c: Include <stddef.h> unconditionally.
44274         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44275         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44276         <stddef.h> does that.
44277         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44278         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44279         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44280         needed.
44281         * lib/xstrtol.c: Likewise.
44282         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44283         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44284
44285         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44286         warnings on some platforms.
44287
44288         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44289         arbitrarily.
44290
44291 2003-05-26  Jim Meyering  <jim@meyering.net>
44292
44293         Merge in a change from coreutils:
44294         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44295         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44296         that condition, rather than `-1' which is slightly misleading.
44297         Change the name of the cache variable to have the gl_ prefix.
44298         Prompted by a patch from Richard Dawe for DJGPP.
44299
44300 2003-05-24  Karl Berry  <karl@gnu.org>
44301
44302         * config/config.guess: update from prep.
44303
44304 2003-05-22  Karl Berry  <karl@gnu.org>
44305
44306         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44307
44308 2003-05-20  Karl Berry  <karl@gnu.org>
44309
44310         * config/config.guess: update from prep.
44311
44312 2003-05-18  Karl Berry  <karl@gnu.org>
44313
44314         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44315         might actually be set by the user.
44316
44317         * config/depcomp, install-sh, mdate-sh: update from automake.
44318
44319 2003-05-17  Bruno Haible  <bruno@clisp.org>
44320
44321         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44322         invalid expansion for AC_EGREP_CPP.
44323         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44324         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44325         Suggested by Akim Demaille <akim@epita.fr> in
44326         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44327
44328 2003-05-12  Jim Meyering  <jim@meyering.net>
44329
44330         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44331         the space-padded-by-default conversion specifiers, %e, %k, %l.
44332
44333 2003-05-12  Bruno Haible  <bruno@clisp.org>
44334
44335         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44336         the string is longer than 4 KB.
44337
44338 2003-05-11  Karl Berry  <karl@gnu.org>
44339
44340         * config/config.{guess,sub}: update from prep.
44341
44342 2003-05-09  Bruno Haible  <bruno@clisp.org>
44343
44344         * modules/error: Add m4/strerror_r.m4 to file list.
44345
44346 2003-05-03  Bruno Haible  <bruno@clisp.org>
44347
44348         Upgrade to Unicode-4.0.
44349         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44350         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44351         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44352         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44353         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44354         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44355         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44356         Change width of U+E0100..U+E01EF from 1 to 0.
44357
44358 2003-04-25  Jim Meyering  <jim@meyering.net>
44359
44360         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44361         of type size_t, not int.
44362
44363 2003-04-25  Bruno Haible  <bruno@clisp.org>
44364
44365         * lib/copy-file.c: Include <stddef.h>, for size_t.
44366
44367 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44368
44369         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44370         code which expansion is under static control.  Patch imported from
44371         Akim Demaille's patch to Bison; see
44372         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44373
44374 2003-04-14  Bruno Haible  <bruno@clisp.org>
44375
44376         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44377
44378 2003-04-11  Jim Meyering  <jim@meyering.net>
44379
44380         Merge changes from Coreutils.
44381
44382         2003-03-22  Jim Meyering  <jim@meyering.net>
44383
44384         * lib/strftime.c (widen): Cast alloca return value to proper type.
44385
44386         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44387
44388         From GNU libc.
44389         * lib/strftime.c (my_strftime): Handle very large width
44390         specifications for numeric values correctly.  Improve checks for
44391         overflow.
44392
44393         2003-01-19  Jim Meyering  <jim@meyering.net>
44394
44395         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44396         definitions.
44397         (nl_get_alt_digit) [! defined my_strftime]: Define.
44398         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44399         _nl_get_alt_digit and _nl_get_walt_digit.
44400
44401         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44402         libc. These changes have no effect outside of _LIBC.
44403
44404 2003-04-10  Bruno Haible  <bruno@clisp.org>
44405
44406         * modules/findprog: New file.
44407         * MODULES.html.sh (func_all_modules): Add it.
44408
44409 2003-04-10  Bruno Haible  <bruno@clisp.org>
44410
44411         * m4/findprog.m4: New file.
44412         * m4/eaccess.m4: New file.
44413
44414 2003-04-10  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/findprog.h: New file, from GNU gettext.
44417         * lib/findprog.c: New file, from GNU gettext.
44418
44419 2003-04-05  Jim Meyering  <jim@meyering.net>
44420
44421         Merge changes from Coreutils.
44422
44423         * lib/exclude.h (PARAMS): Remove definition and uses.
44424         * lib/exclude.c: Remove uses of `PARAMS'.
44425
44426         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44427         Add test-cases for DOS filenames. Declare program_name.
44428         (main): Set up program_name.  Patch by Rich Dawe.
44429
44430         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44431         error from mntctl.
44432         Use mntctl's return value to drive the entry-processing loop, since
44433         we can't rely on the value of the vmt_length member in the last
44434         entry.  On some systems doing so could result in exhausting
44435         virtual memory.  Based in part on a patch from Mike Jetzer.
44436
44437 2003-04-04  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/linebreak: New file.
44440         * MODULES.html.sh (func_all_modules): Add it.
44441
44442 2003-04-04  Bruno Haible  <bruno@clisp.org>
44443
44444         * m4/linebreak.m4: New file.
44445
44446 2003-04-04  Bruno Haible  <bruno@clisp.org>
44447
44448         * lib/linebreak.h: New file, from GNU gettext.
44449         * lib/linebreak.c: New file, from GNU gettext with slight
44450         modifications.
44451         * lib/lbrkprop.h: New file, from GNU gettext.
44452
44453 2003-04-03  Bruno Haible  <bruno@clisp.org>
44454
44455         * modules/utf8-ucs4: New file.
44456         * modules/utf16-ucs4: New file.
44457         * modules/ucs4-utf8: New file.
44458         * modules/ucs4-utf16: New file.
44459         * MODULES.html.sh (func_all_modules): Add them.
44460
44461 2003-04-03  Bruno Haible  <bruno@clisp.org>
44462
44463         * m4/utf-ucs4.m4: New file.
44464         * m4/ucs4-utf.m4: New file.
44465
44466 2003-04-03  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/utf8-ucs4.h: New file, from GNU gettext.
44469         * lib/utf16-ucs4.h: New file, from GNU gettext.
44470         * lib/ucs4-utf8.h: New file, from GNU gettext.
44471         * lib/ucs4-utf16.h: New file, from GNU gettext.
44472
44473 2003-04-02  Bruno Haible  <bruno@clisp.org>
44474
44475         * modules/binary-io: New file.
44476         * MODULES.html.sh (func_all_modules): Add it.
44477
44478 2003-04-02  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/binary-io.h: New file, from GNU gettext.
44481
44482 2003-04-01  Bruno Haible  <bruno@clisp.org>
44483
44484         * modules/pathname: New file.
44485         * MODULES.html.sh (func_all_modules): Add it.
44486
44487 2003-04-01  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/pathname.h: New file, from GNU gettext.
44490         * lib/concatpath.c: New file, from GNU gettext.
44491
44492 2003-03-30  Bruno Haible  <bruno@clisp.org>
44493
44494         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44495
44496 2003-03-30  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44499         function chown() doesn't exist.
44500
44501 2003-03-28  Bruno Haible  <bruno@clisp.org>
44502
44503         * modules/copy-file: New file.
44504         * MODULES.html.sh (func_all_modules): Add it.
44505
44506 2003-03-28  Bruno Haible  <bruno@clisp.org>
44507
44508         * m4/copy-file.m4: New file.
44509
44510 2003-03-28  Bruno Haible  <bruno@clisp.org>
44511
44512         * lib/copy-file.h: New file, from GNU gettext.
44513         * lib/copy-file.c: New file, from GNU gettext.
44514
44515 2003-03-18  Jim Meyering  <jim@meyering.net>
44516
44517         * lib/quote.c (quote_n): Fix typo in comment.
44518
44519 2003-03-18  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44522         checking.
44523         * m4/onceonly_2_57.m4: Likewise.
44524
44525 2003-03-17  Bruno Haible  <bruno@clisp.org>
44526
44527         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44528         (m4_quote): Remove macro.
44529         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44530
44531 2003-03-14  Jim Meyering  <jim@meyering.net>
44532
44533         Merge changes from Coreutils.
44534         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44535         to be const, in order to avoid warnings.
44536         (obstack_room): Likewise.
44537         (obstack_empty_p): Likewise.
44538
44539 2003-03-14  Bruno Haible  <bruno@clisp.org>
44540
44541         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44542         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44543
44544 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44545
44546         Merge changes from Bison.
44547         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44548         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44549         when compiling Bison 1.875's `bitset bset = obstack_alloc
44550         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44551         * lib/hash.c: Include <stdbool.h> unconditionally.
44552
44553 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44554
44555         * m4/onceonly.m4 (m4_quote): New macro.
44556         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44557         Quote AC_FOREACH variable-expansions properly.
44558
44559 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44560
44561         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44562
44563 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44564
44565         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44566         Reported by Bruce Becker; see:
44567         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44568
44569 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44570             Bruno Haible  <bruno@clisp.org>
44571
44572         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44573         Reported by John Hughes, see
44574         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44575
44576 2003-02-20  Bruno Haible  <bruno@clisp.org>
44577
44578         * MODULES.html.sh (func_all_modules): Add poll.
44579
44580 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44581
44582         * modules/poll: New file.
44583
44584 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44585
44586         * lib/poll_.h: New file.
44587         * lib/poll.c: New file.
44588
44589 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44590
44591         * m4/poll.m4: New file.
44592
44593 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44594
44595         * modules/mathl: New file.
44596
44597 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44598
44599         * lib/mathl.h: New file.
44600         * lib/acosl.c: New file.
44601         * lib/asinl.c: New file.
44602         * lib/atanl.c: New file.
44603         * lib/ceill.c: New file.
44604         * lib/cosl.c: New file.
44605         * lib/expl.c: New file.
44606         * lib/floorl.c: New file.
44607         * lib/frexpl.c: New file.
44608         * lib/ldexpl.c: New file.
44609         * lib/logl.c: New file.
44610         * lib/sincosl.c: New file.
44611         * lib/sinl.c: New file.
44612         * lib/sqrtl.c: New file.
44613         * lib/tanl.c: New file.
44614         * lib/trigl.c: New file.
44615         * lib/trigl.h: New file.
44616
44617 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44618
44619         * m4/mathl.m4: New file.
44620
44621 2003-02-18  Bruno Haible  <bruno@clisp.org>
44622
44623         * MODULES.html.sh (func_all_modules): Add mathl.
44624
44625 2003-02-17  Bruno Haible  <bruno@clisp.org>
44626
44627         * modules/mkdtemp: New module.
44628         * MODULES.html.sh (func_all_modules): Add it.
44629
44630 2003-02-17  Bruno Haible  <bruno@clisp.org>
44631
44632         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44633
44634 2003-02-17  Bruno Haible  <bruno@clisp.org>
44635
44636         * lib/mkdtemp.h: New file, from GNU gettext.
44637         * lib/mkdtemp.c: New file, from GNU gettext.
44638
44639 2003-02-02  Jim Meyering  <jim@meyering.net>
44640
44641         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44642         e.g. glibc-2.2.93.
44643
44644 2003-01-31  Bruno Haible  <bruno@clisp.org>
44645
44646         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44647         'rpl_rename'.
44648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44649         'rpl_strnlen'.
44650         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44651         'rpl_strtod'.
44652         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44653         'rpl_utime'.
44654
44655 2003-01-31  Bruno Haible  <bruno@clisp.org>
44656
44657         * lib/rename.c: #undef rename before defining rpl_rename.
44658         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44659
44660 2003-01-30  Bruno Haible  <bruno@clisp.org>
44661
44662         * modules/vasnprintf, modules/vasprintf: New modules.
44663         * MODULES.html.sh (func_all_modules): Add them.
44664
44665 2003-01-30  Bruno Haible  <bruno@clisp.org>
44666
44667         * m4/signed.m4: New file, from GNU gettext.
44668         * m4/longdouble.m4: New file, from GNU gettext.
44669         * m4/wchar_t.m4: New file, from GNU gettext.
44670         * m4/wint_t.m4: New file, from GNU gettext.
44671         * m4/vasnprintf.m4: New file.
44672         * m4/vasprintf.m4: New file.
44673
44674 2003-01-30  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/printf-args.h: New file, from GNU gettext.
44677         * lib/printf-args.c: New file, from GNU gettext.
44678         * lib/printf-parse.h: New file, from GNU gettext.
44679         * lib/printf-parse.c: New file, from GNU gettext.
44680         * lib/vasnprintf.h: New file, from GNU gettext.
44681         * lib/vasnprintf.c: New file, from GNU gettext.
44682         * lib/asnprintf.c: New file, from GNU gettext.
44683         * lib/vasprintf.h: New file, from GNU gettext with modifications.
44684         * lib/vasprintf.c: New file, from GNU gettext.
44685         * lib/asprintf.c: New file, from GNU gettext.
44686
44687 2003-01-29  Bruno Haible  <bruno@clisp.org>
44688
44689         * modules/stpncpy: New module.
44690         * MODULES.html.sh (func_all_modules): Add it.
44691
44692 2003-01-29  Bruno Haible  <bruno@clisp.org>
44693
44694         * m4/stpncpy.m4: New file.
44695
44696 2003-01-29  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/stpncpy.h: New file, from GNU gettext with modifications.
44699         * lib/stpncpy.c: New file, from GNU gettext with modifications.
44700
44701 2003-01-28  Bruno Haible  <bruno@clisp.org>
44702
44703         * modules/c-ctype: New module.
44704         * MODULES.html.sh (func_all_modules): Add it.
44705
44706 2003-01-28  Bruno Haible  <bruno@clisp.org>
44707
44708         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44709         Paul Eggert.
44710         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44711         Paul Eggert.
44712
44713 2003-01-27  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/xsetenv: New module.
44716         * MODULES.html.sh (func_all_modules): Add it.
44717
44718 2003-01-27  Bruno Haible  <bruno@clisp.org>
44719
44720         * lib/xsetenv.h: New file, from GNU gettext.
44721         * lib/xsetenv.c: New file, from GNU gettext.
44722
44723 2003-01-23  Jim Meyering  <jim@meyering.net>
44724
44725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44726         from working on systems without dirfd (at least Irix and OSF1/Tru64).
44727
44728 2003-01-23  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/minmax: New module.
44731         * MODULES.html.sh (func_all_modules): Add it.
44732
44733 2003-01-23  Bruno Haible  <bruno@clisp.org>
44734
44735         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44736         Eggert.
44737
44738 2003-01-22  Bruno Haible  <bruno@clisp.org>
44739
44740         * modules/exit: New module.
44741         * MODULES.html.sh (func_all_modules): Add it.
44742
44743 2003-01-22  Bruno Haible  <bruno@clisp.org>
44744
44745         * lib/exit.h: New file, from GNU gettext.
44746
44747 2003-01-19  Bruno Haible  <bruno@clisp.org>
44748
44749         * gnulib-tool: Recognize option --extract-maintainer.
44750         (func_get_maintainer): New function.
44751         * modules/*: Add Maintainer entry.
44752
44753 2003-01-16  Jim Meyering  <jim@meyering.net>
44754
44755         * m4/regex.m4: The `regex' struct is both input and output.
44756         Initialize it before each use.  Patch by Tim Waugh.
44757
44758 2003-01-16  Bruno Haible  <bruno@clisp.org>
44759
44760         * MODULES.html.sh: Add a table of contents. Add the module name as
44761         leftmost column. Add hyperlinks.
44762
44763 2003-01-15  Bruno Haible  <bruno@clisp.org>
44764
44765         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
44766
44767 2003-01-15  Bruno Haible  <bruno@clisp.org>
44768
44769         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
44770         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
44771         suffix.
44772
44773 2003-01-15  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
44776
44777 2003-01-15  Bruno Haible  <bruno@clisp.org>
44778
44779         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
44780         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
44781
44782 2003-01-14  Jim Meyering  <jim@meyering.net>
44783
44784         * lib/same.c (same_name): Tweak a comment.
44785
44786 2003-01-14  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
44789         when a string comparison is sufficient.
44790
44791 2003-01-14  Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
44794         'unsigned int'.
44795
44796 2003-01-14  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/hash-pjw.c: Add comment about low quality of this function.
44799
44800 2003-01-13  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/stpcpy: Distribute lib/stpcpy.h.
44803         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
44804
44805 2003-01-13  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/*: Add a description.
44808         * modules/strpbrk: Fix Makefile.am snippet.
44809         * modules/strtoimax: Fix dependencies.
44810         * modules/strtoumax: Likewise.
44811
44812 2003-01-13  Bruno Haible  <bruno@clisp.org>
44813
44814         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
44815         * modules/alloca (Makefile.am): All object files depend on alloca.h.
44816         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
44817
44818 2003-01-13  Bruno Haible  <bruno@clisp.org>
44819
44820         * gnulib-tool (func_create_testdir): Store config/* files in the main
44821         directory.
44822         * config.rpath: Move to ...
44823         * config/config.rpath: ... here.
44824         * modules/gettext: Contains config/config.rpath, not config.rpath.
44825         * modules/iconv: Likewise.
44826
44827 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44828
44829         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44830         to avoid collisions with libcurses and libreadline.
44831
44832         * m4/getstr.m4: Remove.
44833         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
44834
44835 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44836
44837         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44838         to avoid collisions with libcurses and libreadline.
44839
44840         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
44841         * lib/getstr.h, getstr.c: Remove.
44842         * lib/getline.c: Include "getline.h", to check interface.
44843         Move body of old getstr.c here: this defines MIN_CHUNK and
44844         declares getdelim2, which is renamed from getstr.
44845         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
44846
44847         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
44848         All uses changed.
44849         * lib/linebuffer.h: Likewise.
44850         (readline): Remove backward-compatibility macro.
44851
44852 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44853
44854         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44855         to avoid collisions with libcurses and libreadline.
44856         * getstr: Remove.
44857         * MODULES.html.sh: Remove getstr.
44858         * modules/getline: Depend on unlocked-io, not getstr.
44859
44860 2003-01-12  Jim Meyering  <jim@meyering.net>
44861
44862         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
44863
44864 2003-01-10  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/alloca: Change Makefile.am requirements. Simplify Include
44867         requirements. Add lib/alloca_.h to file list.
44868
44869 2003-01-10  Bruno Haible  <bruno@clisp.org>
44870
44871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
44872
44873 2003-01-10  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/alloca_.h: New file.
44876         * lib/getdate.y: Unconditionally include alloca.h.
44877         * lib/makepath.c: Likewise.
44878         * lib/setenv.c: Likewise.
44879         * lib/userspec.c: Likewise.
44880
44881 2003-01-09  Karl Berry  <karl@gnu.org>
44882
44883         * MODULES.html.sh: include `dirname $0` in PATH, to find
44884         gnulib-tool.
44885
44886 2003-01-09  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/stdbool: Change configure.ac, Makefile.am requirements.
44889         Simplify Include requirements. Add lib/stdbool.h.in to file list.
44890
44891 2003-01-09  Bruno Haible  <bruno@clisp.org>
44892
44893         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
44894
44895 2003-01-09  Bruno Haible  <bruno@clisp.org>
44896
44897         * lib/stdbool.h.in: New file.
44898
44899 2003-01-09  Bruno Haible  <bruno@clisp.org>
44900
44901         * gnulib-tool (func_all_modules): Ignore files ending in ~.
44902         * MODULES.html.sh: Likewise.
44903
44904 2003-01-08  Jim Meyering  <jim@meyering.net>
44905
44906         * lib/full-write.c: Undefine and define-away `const' after inclusion
44907         of errno.h, not before.  Suggestion from Bruno Haible.
44908
44909 2003-01-08  Bruno Haible  <bruno@clisp.org>
44910
44911         * modules/full-read: Depend on full-write.
44912
44913 2003-01-08  Bruno Haible  <bruno@clisp.org>
44914
44915         * lib/safe-read.c: Include specification header first, to ensure its
44916         selfcontainedness.
44917         * lib/full-write.c: Likewise.
44918
44919 2003-01-07  Jim Meyering  <jim@meyering.net>
44920
44921         * lib/full-write.c: Rework so that it may serve to define full_read,
44922         too.
44923         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
44924
44925 2003-01-07  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/strtoimax.c: Include <stdint.h> as an alternative to
44928         <inttypes.h>.
44929         * lib/xstrtol.h: Likewise.
44930         * lib/xstrtoimax.c: Likewise.
44931         * lib/xstrtoumax.c: Likewise.
44932         * lib/human.h: Likewise.
44933
44934         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
44935         on systems that have <inttypes.h> but not <stdint.h>.
44936
44937 2003-01-07  Bruno Haible  <bruno@clisp.org>
44938
44939         * MODULES.html.sh: Add copyright notice.
44940         (missed_files): Omit CVS directory entries.
44941         (func_module): Make it work with sed-3.02.
44942         * MODULES.txt: Remove file.
44943
44944 2003-01-06  Jim Meyering  <jim@meyering.net>
44945
44946         * lib/version-etc.c: Update year in translatable copyright string.
44947
44948 2003-01-03  Karl Berry  <karl@gnu.org>
44949
44950         * config/config.{guess,sub}: update from prep.
44951
44952 2003-01-02  Karl Berry  <karl@gnu.org>
44953
44954         * doc/COPYING.DOC: belatedly updated to 1.2.
44955
44956 2003-01-01  Karl Berry  <karl@gnu.org>
44957
44958         * gnulib-tool (func_verify_module): report module name $module in
44959         error message, not $1.
44960         * gnulib-tool (create-testdir): don't complain if destdir couldn't
44961         be created, only if it doesn't exist.
44962         * gnulib-tool (last_checkin_date): don't expand the $Date here.
44963
44964 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44965
44966         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
44967
44968 2002-12-31  Paul Eggert  <eggert@twinsun.com>
44969
44970         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
44971         memcmp if strcoll doesn't work.
44972
44973 2002-12-31  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/utime.c (utime_null): No need to call ftruncate if the file was
44976         nonempty.
44977
44978 2002-12-31  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/memcoll.c (STRCOLL): New macro.
44981         (memcoll): Use it.
44982
44983 2002-12-31  Bruno Haible  <bruno@clisp.org>
44984
44985         * lib/localcharset.h: New file.
44986         * lib/localcharset.c: Include it.
44987         * lib/unicodeio.c: Likewise.
44988
44989 2002-12-31  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
44992         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
44993
44994 2002-12-31  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/getline.h: Include <stddef.h>, for size_t.
44997
44998         * lib/unicodeio.h: Include <stddef.h>, for size_t.
44999         * lib/unicodeio.c: Don't include <stddef.h>.
45000
45001 2002-12-31  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45004         HAVE_TM_ZONE.
45005
45006 2002-12-24  Karl Berry  <karl@gnu.org>
45007
45008         * config/config.guess: update from prep.
45009
45010 2002-12-24  Bruno Haible  <bruno@clisp.org>
45011
45012         General infrasructure.
45013         * m4/README: Rewritten.
45014         * m4/onceonly.m4: New file.
45015         * m4/onceonly_2_57.m4: New file.
45016
45017         Module atexit.
45018         * m4/atexit.m4: New file.
45019
45020         Module strtod.
45021         * m4/strtod.m4: New file.
45022
45023         Module strtol.
45024         * m4/strtol.m4: New file.
45025
45026         Module strtoul.
45027         * m4/strtoul.m4: New file.
45028
45029         Module memchr.
45030         * m4/memchr.m4: New file.
45031
45032         Module memcmp.
45033         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45034         (jm_FUNC_MEMCMP): Invoke it.
45035
45036         Module memcpy.
45037         * m4/memcpy.m4: New file.
45038
45039         Module memmove.
45040         * m4/memmove.m4: New file.
45041
45042         Module memset.
45043         * m4/memset.m4: New file.
45044
45045         Module strcspn.
45046         * m4/strcspn.m4: New file.
45047
45048         Module strpbrk.
45049         * m4/strpbrk.m4: New file.
45050
45051         Module strstr.
45052         * m4/strstr.m4: New file.
45053
45054         Module strerror.
45055         * m4/strerror.m4: New file.
45056
45057         Module mktime.
45058         * m4/mktime.m4: Renamed from jm-mktime.m4.
45059         (gl_PREREQ_MKTIME): New macro.
45060         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45061
45062         Module malloc.
45063         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45064         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45065         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45066
45067         Module realloc.
45068         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45069         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45070         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45071
45072         Module strftime.
45073         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45074         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45075         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45076         gl_TM_GMTOFF.
45077         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45078
45079         Module xalloc.
45080         * m4/xalloc.m4: New file.
45081
45082         Module alloca.
45083         * m4/alloca.m4: New file.
45084
45085         Module putenv.
45086         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45087         (jm_FUNC_PUTENV): Invoke it.
45088
45089         Module setenv.
45090         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45091         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45092         when invoked twice.
45093         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45094         gt_FUNC_SETENV.
45095
45096         Module memrchr.
45097         * m4/memrchr.m4: New file.
45098
45099         Module stpcpy.
45100         * m4/stpcpy.m4: New file.
45101
45102         Module strcase.
45103         * m4/strcase.m4: New file.
45104
45105         Module strdup.
45106         * m4/strdup.m4: New file.
45107
45108         Module strnlen.
45109         * m4/strnlen.m4: New file.
45110
45111         Module strndup.
45112         * m4/strndup.m4: New file.
45113
45114         Module xstrtod.
45115         * m4/xstrtod.m4: New file.
45116
45117         Module xstrtol.
45118         * m4/xstrtol.m4: New file.
45119
45120         Module getdate.
45121         * m4/getdate.m4: New file.
45122
45123         Module unlocked-io.
45124         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45125         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45126         * m4/jm-glibc-io.m4n: Remove file.
45127
45128         Module long-options.
45129         * m4/long-options.m4: New file.
45130
45131         Module md5.
45132         * m4/md5.m4: New file.
45133
45134         Module sha.
45135         * m4/sha.m4: New file.
45136
45137         Module getstr.
45138         * m4/getstr.m4: New file.
45139
45140         Module getline.
45141         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45142         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45143         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45144         simply getline. Infoke gl_PREREQ_GETLINE.
45145
45146         Module obstack.
45147         * m4/obstack.m4: New file.
45148
45149         Module hash.
45150         * m4/hash.m4: New file.
45151
45152         Module readtokens.
45153         * m4/readtokens.m4: New file.
45154
45155         Module strverscmp.
45156         * m4/strverscmp.m4: New file.
45157
45158         Module stdbool.
45159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45160         OSF/1.
45161
45162         Module strtoll.
45163         * m4/strtoll.m4: New file.
45164
45165         Module strtoull.
45166         * m4/strtoull.m4: New file.
45167
45168         Module strtoimax.
45169         * m4/strtoimax.m4: New file.
45170
45171         Module strtoumax.
45172         * m4/strtoumax.m4: New file.
45173
45174         Module xstrtoimax.
45175         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45176         jm_AC_PREREQ_XSTRTOIMAX.
45177         Moved the strtol prerequisites to strtol.m4.
45178         Moved the strtoll prerequisites to strtoll.m4.
45179         Moved the strtoimax prerequisites to strtoimax.m4.
45180
45181         Module xstrtoumax.
45182         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45183         jm_AC_PREREQ_XSTRTOUMAX.
45184         Moved the strtoul prerequisites to strtoul.m4.
45185         Moved the strtoull prerequisites to strtoull.m4.
45186         Moved the strtoumax prerequisites to strtoumax.m4.
45187
45188         Module chown.
45189         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45190         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45191
45192         Module dup2.
45193         * m4/dup2.m4: New file.
45194
45195         Module ftruncate.
45196         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45197         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45198
45199         Module getgroups.
45200         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45201         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45202
45203         Module gettimeofday.
45204         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45205         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45206         gl_PREREQ_GETTIMEOFDAY.
45207
45208         Module mkdir.
45209         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45210         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45211
45212         Module mkstemp.
45213         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45214         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45215         jm_AC_TYPE_UINTMAX_T.
45216         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45217
45218         Module stat.
45219         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45220         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45221
45222         Module lstat.
45223         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45224         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45225
45226         Module timespec.
45227         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45228         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45229         * m4/st_mtim.m4: Indentation.
45230
45231         Module nanosleep.
45232         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45233         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45234         gl_PREREQ_NANOSLEEP.
45235
45236         Module regex.
45237         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45238         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45239         (gl_REGEX): New macro.
45240
45241         Module rename.
45242         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45243         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45244
45245         Module rmdir.
45246         * m4/rmdir.m4: New file.
45247
45248         Module utime.
45249         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45250         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45251         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45252
45253         Module dirname.
45254         * m4/dirname.m4: New file.
45255
45256         Module getopt.
45257         * m4/getopt.m4: New file.
45258
45259         Module unistd-safer.
45260         * m4/unistd-safer.m4: New file.
45261
45262         Module fnmatch.
45263         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45264         declaration.
45265         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45266         (gl_FUNC_FNMATCH_POSIX): New macro.
45267         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45268         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45269         simply fnmatch.
45270
45271         Module exclude.
45272         * m4/exclude.m4: New file.
45273
45274         Module human.
45275         * m4/human.m4: New file.
45276
45277         Module acl.
45278         * m4/acl.m4: Nop.
45279
45280         Module backupfile.
45281         * m4/backupfile.m4: New file.
45282         * m4/d-ino.m4: Indentation.
45283
45284         Module fsusage.
45285         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45286         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45287         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45288
45289         Module dirfd.
45290         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45291         requirements.
45292
45293         Module euidaccess.
45294         * m4/euidaccess.m4: New file.
45295
45296         Module file-type.
45297         * m4/file-type.m4: New file.
45298
45299         Module fileblocks.
45300         * m4/fileblocks.m4: New file.
45301
45302         Module filemode.
45303         * m4/filemode.m4: New file.
45304
45305         Module isdir.
45306         * m4/isdir.m4: New file.
45307
45308         Module lchown.
45309         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45310         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45311
45312         Module makepath.
45313         * m4/makepath.m4: New file.
45314
45315         Module modechange.
45316         * m4/modechange.m4: New file.
45317
45318         Module mountlist.
45319         * m4/mountlist.m4: New file.
45320         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45321         Indentation.
45322
45323         Module path-concat.
45324         * m4/path-concat.m4: New file.
45325
45326         Module pathmax.
45327         * m4/pathmax.m4: New file.
45328
45329         Module same.
45330         * m4/same.m4: New file.
45331
45332         Module save-cwd.
45333         * m4/save-cwd.m4: New file.
45334
45335         Module savedir.
45336         * m4/savedir.m4: New file.
45337
45338         Module xgetcwd.
45339         * m4/xgetcwd.m4: New file.
45340         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45341
45342         Module xreadlink.
45343         * m4/xreadlink.m4: New file.
45344
45345         Module safe-read.
45346         * m4/safe-read.m4: New file.
45347
45348         Module safe-write.
45349         * m4/safe-write.m4: New file.
45350
45351         Module closeout.
45352         * m4/closeout.m4: New file.
45353
45354         Module stdio-safer.
45355         * m4/stdio-safer.m4: New file.
45356
45357         Module getpass.
45358         * m4/getpass.m4: New file.
45359
45360         Module getugroups.
45361         * m4/getugroups.m4: New file.
45362
45363         Module group-member.
45364         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45365         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45366
45367         Module idcache.
45368         * m4/idcache.m4: New file.
45369
45370         Module userspec.
45371         * m4/userspec.m4: New file.
45372
45373         Module gettime.
45374         * m4/clock_time.m4: New file.
45375         * m4/gettime.m4: New file.
45376
45377         Module settime.
45378         * m4/settime.m4: New file.
45379
45380         Module posixtm.
45381         * m4/posixtm.m4: New file.
45382
45383         Module gethostname.
45384         * m4/gethostname.m4: New file.
45385
45386         Module canon-host.
45387         * m4/canon-host.m4: New file.
45388
45389         Module gettext.
45390         * m4/codeset.m4: New file, from gettext-0.11.5.
45391         * m4/gettext.m4: New file, from gettext-0.11.5.
45392         * m4/glibc21.m4: New file, from gettext-0.11.5.
45393         * m4/iconv.m4: New file, from gettext-0.11.5.
45394         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45395         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45396         * m4/inttypes.m4: New file, from gettext-0.11.5.
45397         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45398         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45399         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45400         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45401         * m4/lib-link.m4: New file, from gettext-0.11.5.
45402         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45403         * m4/progtest.m4: New file, from gettext-0.11.5.
45404         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45405         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45406         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45407
45408         Module localcharset.
45409         * m4/localcharset.m4: New file.
45410
45411         Module hard-locale.
45412         * m4/hard-locale.m4: New file.
45413
45414         Module mbswidth.
45415         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45416         onceonly macros.
45417         * m4/mbrtowc.m4: Add comment.
45418
45419         Module memcasecmp.
45420         * m4/memcasecmp.m4: New file.
45421
45422         Module memcoll.
45423         * m4/memcoll.m4: New file.
45424
45425         Module unicodeio.
45426         * m4/unicodeio.m4: New file.
45427
45428         Module rpmatch.
45429         * m4/rpmatch.m4: New file.
45430
45431         Module yesno.
45432         * m4/yesno.m4: New file.
45433
45434         Module exitfail.
45435         * m4/exitfail.m4: New file.
45436
45437         Module c-stack.
45438         * m4/c-stack.m4 (gl_C_STACK): New macro.
45439         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45440
45441         Module error.
45442         * m4/error.m4 (gl_ERROR): New macro.
45443         (jm_PREREQ_ERROR): Use onceonly macros.
45444
45445         Module fatal.
45446         * m4/fatal.m4: New file.
45447
45448         Module getloadavg.
45449         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45450         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45451
45452         Module getpagesize.
45453         * m4/getpagesize.m4: New file.
45454
45455         Module getusershell.
45456         * m4/getusershell.m4: New file.
45457
45458         Module physmem.
45459         * m4/physmem.m4: New file.
45460
45461         Module posixver.
45462         * m4/posixver.m4: New file.
45463
45464         Module quotearg.
45465         * m4/quotearg.m4: New file.
45466
45467         Module quote.
45468         * m4/quote.m4: New file.
45469
45470         Module readutmp.
45471         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45472
45473         Module sig2str.
45474         * m4/sig2str.m4: New file.
45475
45476         Other.
45477         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45478         ulonglong.m4.
45479         * m4/intmax_t.m4: New file.
45480         * m4/d-type.m4: Indentation.
45481         * m4/jm-macros.m4: Update.
45482         * m4/prereq.m4 (jm_PREREQ): Update.
45483         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45484         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45485         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45486         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45487         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45488         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45489         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45490         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45491         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45492         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45493         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45494         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45495         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45496         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45497         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45498         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45499         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45500         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45501         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45502
45503 2002-12-24  Bruno Haible  <bruno@clisp.org>
45504
45505         * MODULES.txt: Update according to m4/ changes.
45506
45507         Module gettext.
45508         * config.rpath: New file, from gettext-0.11.5.
45509
45510         * modules/*: New module descriptions.
45511         * gnulib-tool: New file.
45512         * MODULES.html.sh: New file.
45513
45514 2002-12-21  Karl Berry  <karl@gnu.org>
45515
45516         * doc/fdl.texi: update to version 1.2.
45517
45518 2002-12-19  Karl Berry  <karl@gnu.org>
45519
45520         * config/config.guess: update from prep.
45521
45522 2002-12-18  Bruno Haible  <bruno@clisp.org>
45523
45524         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45525         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45526
45527 2002-12-17  Bruno Haible  <bruno@clisp.org>
45528
45529         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45530         stdlib.h, string.h.
45531
45532 2002-12-17  Bruno Haible  <bruno@clisp.org>
45533
45534         * lib/canon-host.c (strdup): Remove unused declaration.
45535
45536         * lib/fsusage.c: Include full_read.h.
45537         (get_fs_usage): Use full_read instead of safe_read.
45538
45539         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45540
45541 2002-12-12  Karl Berry  <karl@gnu.org>
45542
45543         * config/config.guess: update from prep.
45544
45545 2002-12-11  Bruno Haible  <bruno@clisp.org>
45546
45547         * m4/setenv.m4: New file, from gettext-0.11.5.
45548
45549 2002-12-11  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45552         not unsetenv().
45553         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45554         modifications:
45555
45556         2002-12-11  Bruno Haible  <bruno@clisp.org>
45557
45558                 * setenv.c (alloca): Fall back to malloc.
45559                 (freea): New macro.
45560                 (setenv): Use freea() to free memory allocated with alloca().
45561
45562         2002-11-13  Bruno Haible  <bruno@clisp.org>
45563
45564                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45565                 function declarations.
45566                 * unsetenv.c (unsetenv): Likewise.
45567
45568         2002-03-04  Bruno Haible  <bruno@clisp.org>
45569
45570                 Portability to AIX 4.3.3.
45571                 * unsetenv.c: New file, extracted from setenv.c.
45572                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45573
45574         2001-12-20  Bruno Haible  <bruno@clisp.org>
45575
45576                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45577                 use malloc instead. For SunOS 4.
45578
45579         2001-12-11  Bruno Haible  <bruno@clisp.org>
45580
45581                 * setenv.c: Declare alloca.
45582                 (compar_fn_t): New typedef.
45583                 (KNOWN_VALUE, STORE_VALUE): Use it.
45584
45585         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45586         setenv.h.
45587
45588 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45589
45590         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45591         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45592         Choose values that are less likely to collide with system fnmatch
45593         options.
45594         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45595         defined (e.g., a pure POSIX system).
45596         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45597         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45598
45599 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45600
45601         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45602         a pain in practice to deal with generated m4 files.  This change
45603         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45604
45605         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45606         and jm-glibc-io.m4, as they are no longer a special case.
45607         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45608         kludge and the auto-generation stuff.  Check only whether the
45609         functions are declared, not whether they exist, since older hosts
45610         that don't declare the functions can't use the optimization anyway.
45611
45612 2002-12-06  Jim Meyering  <jim@meyering.net>
45613
45614         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45615
45616         Merge in changes from libc's misc/error.c, in preparation
45617         for the merge of gnulib's changes back into libc.
45618
45619         * lib/error.c (_): Define only if not already defined.
45620         Move definition to follow all #include directives.
45621         Include unlocked-io.h only if !_LIBC.
45622         [_LIBC]: Include <libio/libioP.h>.
45623         [USE_IN_LIBIO]: Include <libio/iolibio.h>
45624         (fflush): Tweak definition to use INTUSE.
45625         (putc): Define.
45626
45627 2002-12-05  Paul Eggert  <eggert@twinsun.com>
45628
45629         * lib/alloca.c [defined emacs]: Include "lisp.h".
45630         (xalloc_die) [defined emacs]: New macro.
45631         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45632         [! defined emacs]: Include <xalloc.h>.
45633         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45634         (pointer): Typedef to POINTER_TYPE *.
45635         (malloc): Remove decl; we now always use xmalloc.
45636         (alloca): Use old-style definition, since Emacs needs this.
45637         Check for arithmetic overflow when computing combined size.
45638
45639 2002-12-04  Paul Eggert  <eggert@twinsun.com>
45640
45641         Do not generate unlocked-io.h automatically, since it's easier to
45642         maintain it by hand.
45643
45644         * lib/unlocked-io.h: New file, from GNU diffutils,
45645         but with proper copyright notice and attribution.
45646         * lib/gen-uio: Remove.
45647         * lib/Makefile.am: Add copyright notice.
45648         (libfetish_a_SOURCES): Add unlocked-io.h.
45649         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45650         (DISTCLEANFILES, io_functions): Remove macros.
45651         (EXTRA_DIST): Remove gen_uio.
45652         (unlocked-io.h): Remove rule.
45653
45654 2002-12-04  Jim Meyering  <jim@meyering.net>
45655
45656         Reflect the fact that stat.c and lstat.c are no longer generated.
45657         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45658         (DISTCLEANFILES): Likewise.
45659         (EXTRA_DIST): Likewise.
45660         (all_local): Don't depend on stat.c or lstat.c.
45661         (stat.c, lstat.c): Remove rules.
45662         (EXTRA_DIST): Remove xstat.in.
45663
45664         * lib/xstat.in: Remove file.  Contents moved into stat.c.
45665         * lib/stat.c: New file.  Contents mostly from xstat.in.
45666         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45667         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45668
45669         * lib/safe-read.c: Rework so that it may serve to define safe_write,
45670         too.
45671         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45672
45673 2002-12-03  Jim Meyering  <jim@meyering.net>
45674
45675         * lib/safe-read.c, safe-write.c: Change variable names and comments,
45676         but not semantics, to minimize the differences between these two files.
45677         (safe_read): Change comment to mention SAFE_READ_ERROR.
45678
45679         * lib/safe-read.c (IS_EINTR): Define.
45680         (safe_read): Use IS_EINTR in place of in-function cpp directives.
45681
45682 2002-12-02  Jim Meyering  <jim@meyering.net>
45683
45684         * lib/safe-read.c (EINTR): Define.
45685         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45686         (INT_MAX): Provide fallback.
45687         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45688
45689         * lib/safe-read.h (SAFE_READ_ERROR): Define.
45690
45691 2002-12-02  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45694         Define, taken from safe-read.c.
45695         (INT_MAX): Provide fallback.
45696         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45697         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45698
45699         * lib/safe-read.c (EINTR): Remove definition.
45700         (safe_read): Don't use EINTR if it is absent.
45701
45702 2002-12-01  Jim Meyering  <jim@meyering.net>
45703
45704         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45705         zero.
45706         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45707
45708 2002-11-27  Paul Eggert  <eggert@twinsun.com>
45709
45710         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45711         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45712         with `if (! (value < limit)) abort ();', for readability.
45713
45714 2002-11-26  Karl Berry  <karl@gnu.org>
45715
45716         * lib/strdup.c: copy from libc again, with jim's ok.
45717         * lib/.cppi-disable: re-add strdup.c
45718
45719 2002-11-25  Karl Berry  <karl@gnu.org>
45720
45721         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45722         instead of "strtol.c".
45723
45724 2002-11-25  Karl Berry  <karl@gnu.org>
45725
45726         * config/install-sh: update from automake for variable quoting, $0 in
45727         error msgs, etc.
45728
45729         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45730         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45731         entry.
45732
45733 2002-11-25  Jim Meyering  <jim@meyering.net>
45734
45735         * lib/mktime.c: Sync from libc, now that it has the latest fix.
45736
45737 2002-11-24  Karl Berry  <karl@gnu.org>
45738
45739         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45740         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45741
45742 2002-11-24  Jim Meyering  <jim@meyering.net>
45743
45744         Update from coreutils:
45745
45746         * lib/mktime.c: Merge in changes from libc.
45747
45748         Avoid a link-time failure on some Linux systems.
45749         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
45750         (otherwise).
45751         (__mon_yday): Declare with the STATIC attribute.
45752         (__mktime_internal): Likewise.
45753         Based on a report from Greg Schafer.
45754
45755 2002-11-23  Jim Meyering  <jim@meyering.net>
45756
45757         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
45758         Use `unsigned', not `int', as type of index.
45759
45760         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
45761
45762         * lib/fsusage.c: Remove unneeded parentheses around operands of
45763         `defined'.
45764
45765 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45766
45767         * lib/quotearg.h: Allow multiple inclusion by surrounding with
45768         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
45769         so that we can be included first.
45770         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
45771         * lib/quotearg.c: Include quotearg.h immediately after config.h.
45772         No need to include stddef.h or sys/types.h any more.
45773         Surround local include files with "", not "<>".
45774         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
45775         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
45776         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
45777         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
45778         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
45779         (ISPRINT): Remove; no longer needed now that we assume C89.
45780
45781         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
45782         Preserve errno.
45783
45784         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
45785         quotearg_char): Use SIZE_MAX rather than
45786         (size_t) -1 when we are talking about "infinity".
45787
45788         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
45789
45790 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45791
45792         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
45793         hint that one should use `if (! x) abort ();' rather than `assert
45794         (x);', and anyway it's one less thing to worry about configuring.
45795         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
45796         hash_rehash, hash_insert): Use abort rather than assert.
45797
45798 2002-11-22  Bruno Haible  <bruno@clisp.org>
45799
45800         * lib/safe-read.h: Assume C89. Add comments.
45801         (safe_read): Change return type to size_t.
45802         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
45803         byte counts > SSIZE_MAX correctly.
45804         * lib/safe-write.h: New file.
45805         * lib/safe-write.c: New file.
45806         * lib/full-read.h: New file.
45807         * lib/full-read.c: New file.
45808         * lib/full-write.h: Assume C89. Add comments.
45809         * lib/full-write.c: Include safe-write.h.
45810         (full_write): Rewritten to use safe_write.
45811         Suggested by Jim Meyering and Paul Eggert.
45812
45813 2002-11-21  Jim Meyering  <jim@meyering.net>
45814
45815         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
45816
45817         Merge in changes from the coreutils.
45818
45819         2002-09-25  Paul Eggert  <eggert@twinsun.com>
45820         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
45821         <stdint.h>.
45822         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
45823         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
45824         int.  Work more efficiently if X is the same width as uintmax_t.
45825         Do not compare X to -1, to avoid bogus compiler warning.
45826         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
45827         Don't assume that f_frsize and f_bsize are the same type.
45828
45829         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
45830         warning on FreeBSD.
45831
45832         * lib/makepath.c (make_path): Restore umask *before* creating the final
45833         component.
45834         (make_path): Minor reformatting.
45835
45836         * lib/xmalloc.c: Adjust to work with new autoconf macros,
45837         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
45838         HAVE_MALLOC/HAVE_REALLOC.
45839
45840         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
45841         dummy ones.  At least on GNU/Linux systems, `auto' means something
45842         else.
45843         From Michael Stone.
45844
45845 2002-11-21  Bruno Haible  <bruno@clisp.org>
45846
45847         Remove case insensitive option matching.
45848         * lib/argmatch.h (argcasematch): Remove declaration.
45849         (ARGCASEMATCH): Remove macro.
45850         (__xargmatch_internal): Remove case_sensitive argument.
45851         (XARGMATCH): Update.
45852         (XARGCASEMATCH): Remove macro.
45853         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
45854         case_sensitive argument.
45855         (argcasematch): Remove function.
45856         (__xargmatch_internal): Remove case_sensitive argument.
45857         (main): Use XARGMATCH instead of XARGCASEMATCH.
45858
45859         * lib/xmalloc.c: Change compile-time error message. Add comment about
45860         required autoconf version.
45861
45862 2002-11-20  Paul Eggert  <eggert@twinsun.com>
45863
45864         Merge argmatch cleanups from Bison.  Assume C89.
45865
45866         * lib/argmatch.c: Include config.h here, not in argmatch.h.
45867         Include stdlib.h, for EXIT_FAILURE.
45868         Always include <string.h>, since we assume C89.
45869         (EXIT_FAILURE): Remove pre-C89 bug workaround.
45870         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
45871         Include <stddef.h> instead, since it's all we need for size_t.
45872         (PARAMS): Remove.  All uses removed.
45873         (ARRAY_CARDINALITY): Do not bother to #undef.
45874         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
45875         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45876         Remove unnecessary parentheses.
45877         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45878         Insert necessary parentheses.
45879         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
45880         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
45881
45882 2002-11-19  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
45885         * lib/mbswidth.h: Include <stddef.h>, for size_t.
45886
45887         * lib/mbswidth.h (PARAMS): Remove macro.
45888         (mbswidth, mbsnwidth): Use ANSI C function declarations.
45889         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
45890
45891         * lib/gcd.h (PARAMS): Remove macro.
45892         (gcd): Use ANSI C function declarations.
45893         * lib/gcd.c (gcd): Likewise.
45894
45895 2002-11-15  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/strcspn.c: Include <stddef.h>.
45898         (strcspn): Use ANSI C function declaration. Change return type to
45899         size_t. Use NULL.
45900         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
45901         (strpbrk): Use NULL.
45902         * lib/strpbrk.h (PARAMS): Remove macro.
45903         (strpbrk): Use ANSI C function declaration.
45904         * lib/strstr.c: Don't include <sys/types.h>.
45905         * lib/strstr.h (PARAMS): Remove macro.
45906         (strstr): Use ANSI C function declarations.
45907
45908 2002-11-14  Karl Berry  <karl@gnu.org>
45909
45910         * config/mkinstalldirs: `do' on separate line, instead of
45911         `for var; do'.
45912
45913 2002-11-06  Bruno Haible  <bruno@clisp.org>
45914
45915         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
45916         * lib/gcd.c (gcd): Likewise.
45917
45918 2002-11-05  Bruno Haible  <bruno@clisp.org>
45919
45920         * lib/gcd.h: New file, from gettext-0.11.5.
45921         * lib/gcd.c: New file, from gettext-0.11.5.
45922
45923 2002-11-05  Bruno Haible  <bruno@clisp.org>
45924
45925         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45926         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45927         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45928         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45929
45930         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
45931         <libintl.h>.
45932         * lib/makepath.c: Include gettext.h instead of <locale.h> and
45933         <libintl.h>.
45934
45935         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
45936         * lib/human.c: Include gettext.h instead of <libintl.h>.
45937         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
45938         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
45939         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
45940         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
45941         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
45942         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
45943         (textdomain): Remove definition.
45944         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
45945
45946         * lib/long-options.c: Remove include of <libintl.h> and definition of
45947         _.
45948         * lib/same.c: Remove include of <libintl.h> and definition of _.
45949
45950 2002-11-04  Owen Taylor  <otaylor@redhat.com>
45951
45952         * lib/config.charset: A few additions for Solaris.
45953
45954 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45955
45956         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
45957         * lib/localcharset.c (locale_charset): Declare as extern "C".
45958
45959 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
45960
45961         * lib/config.charset: msdos in uk_UA uses CP1125.
45962
45963 2002-11-04  Bruno Haible  <bruno@clisp.org>
45964
45965         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
45966         * lib/strcase.h: New file, from GNU gettext-0.11.5.
45967         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
45968         * lib/strstr.h: New file, from GNU gettext-0.11.5.
45969         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
45970
45971 2002-11-04  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/localcharset.c (locale_charset): Don't return an empty string.
45974
45975 2002-11-04  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
45978         aliases.
45979
45980 2002-11-04  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/config.charset: Update for newest glibc. Add canonical names
45983         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
45984
45985 2002-11-04  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/config.charset: Add support for NetBSD.
45988
45989 2002-11-04  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
45992
45993 2002-11-01  Bruno Haible  <bruno@clisp.org>
45994
45995         * configure.in: Add AC_CONFIG_AUX_DIR call.
45996         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
45997         test/Makefile.
45998         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
45999
46000 2002-09-28  Karl Berry  <karl@gnu.org>
46001
46002         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46003         installed automake until the next release, since changes have been
46004         made.
46005
46006 2002-09-25  Karl Berry  <karl@gnu.org>
46007
46008         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46009         * lib/getopt*: copy from libc/posix.
46010         * lib/gettext.h: copy from gettext.
46011         * lib/.cppi-disable: add strdup.c, gettext.h.
46012
46013 2002-09-25  Karl Berry  <karl@gnu.org>
46014
46015         * config/srclist.txt: enable gettext.h check.
46016         * config/config.{guess,sub}: update from prep.
46017         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46018                 from automake 1.6.3.
46019         See srclist*.
46020
46021 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46022
46023         * regex.c (PATFETCH): Remove the translating fetch.
46024         (PATFETCH_RAW): Rename to PATFETCH.
46025         (set_image_of_range): New fun.
46026         (SET_RANGE_TABLE_WORK_AREA): Use it.
46027         (regex_compile): Don't translate the pattern chars so eagerly.
46028         Only do it when inserting an `exactn' bytecode or when handling
46029         a char-range.
46030         (mutually_exclusive_p): Avoid empty statement.
46031
46032 2002-07-06  Jim Meyering  <meyering@lucent.com>
46033
46034         * m4/README: Don't mention Makefile.am.in.
46035         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46036
46037 2002-07-01  Jim Meyering  <meyering@lucent.com>
46038
46039         * lib/c-stack.c: Include sys/time.h.
46040         From Volker Borchert.
46041
46042 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46043
46044         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46045
46046 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46047
46048         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46049         New macro.  Use it uniformly instead of
46050         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46051         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46052         reported by Vin Shelton.
46053
46054 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46055
46056         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46057         Do not assume SA_SIGINFO behavior.
46058         Bug reported by Jim Meyering on NetBSD 1.5.2.
46059
46060 2002-06-22  Jim Meyering  <meyering@lucent.com>
46061
46062         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46064
46065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46066         now that configure.ac uses AC_GNU_SOURCE.
46067         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46068         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46069
46070         Update to latest tools.  Suggestions from Paul Eggert.
46071         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46072         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46073         * m4/fnmatch.m4: Likewise.
46074         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46075         to AC_HEADER_STDBOOL
46076
46077 2002-06-22  Jim Meyering  <meyering@lucent.com>
46078
46079         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46080         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46081
46082 2002-06-22  Jim Meyering  <meyering@lucent.com>
46083
46084         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46085
46086         * lib/exitfail.c, exitfail.h: Likewise.
46087         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46088
46089         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46090         of fnmatch.h.
46091         (EXTRA_DIST): Add fnmatch_loop.c.
46092         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46093
46094         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46095         * lib/fnmatch.c: Update from diffutils-2.8.2.
46096         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46097         * lib/fnmatch.h: Remove file.
46098
46099 2002-06-21  Jim Meyering  <meyering@lucent.com>
46100
46101         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46102         * m4/mbrtowc.m4: Likewise.
46103
46104         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46105         * m4/mbswidth.m4: Reflect name change:
46106         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46107         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46108
46109         * m4/lib-link.m4: Update from gettext-0.11.2.
46110         * m4/gettext.m4: Likewise.
46111
46112         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46113         From Alfred M. Szmidt.
46114
46115 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46116
46117         * lib/file-type.h: Report an error if neither S_ISREG nor
46118         S_IFREG is defined, instead of using a test specific to glibc
46119         2.2.  This should be safe, since POSIX requires S_ISREG and
46120         Unix Version 7 had S_IFREG.  We don't need to check for
46121         <sys/types.h> since we don't use any symbols that it defines.
46122
46123 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46124
46125         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46126         $@-t, so that each temporary file name is unique and valid in the first
46127         8 characters, for operation under DOS.
46128
46129 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46130
46131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46132
46133 2002-06-15  Jim Meyering  <meyering@lucent.com>
46134
46135         Work even with DJGPP 2.03, which lacks support for symlinks.
46136         From Richard Dawe.
46137         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46138         is defined.
46139         * lib/lchown.c (S_ISLNK): Likewise.
46140
46141 2002-06-15  Jim Meyering  <meyering@lucent.com>
46142
46143         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46144         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46145         have been included before this file.
46146
46147 2002-06-14  Jim Meyering  <meyering@lucent.com>
46148
46149         * lib/file-type.h: Use the version from diffutils-2.8.2.
46150         * lib/file-type.c: Likewise.
46151
46152 2002-06-07  Jim Meyering  <meyering@lucent.com>
46153
46154         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46155         They're needed at least for NetBSD 1.5.2.
46156         ($statxfs_includes): Include those same headers.
46157         ($statxfs_includes): Include sys/vfs.h if available.
46158         ($statxfs_includes): Likewise for sys/statvfs.h.
46159         Check for the following members in both structs statfs and statvfs:
46160         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46161
46162 2002-06-01  Jim Meyering  <meyering@lucent.com>
46163
46164         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46165         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46166
46167 2002-05-28  Jim Meyering  <meyering@lucent.com>
46168
46169         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46170         Reported by Volker Borchert.
46171
46172 2002-05-27  Jim Meyering  <meyering@lucent.com>
46173
46174         Fix a problem seen only on nonconforming systems whereby ls.c's
46175         use of localtime, and then of gettimeofday would cause trouble:
46176         the localtime call used to initialize rpl_gettimeofday's save
46177         mechanism would clobber ls's current local time information so
46178         that in any long listing the first file would always be listed
46179         with date 1970-01-01.  Analysis by Volker Borchert.
46180
46181         * lib/gettimeofday.c (localtime): Undefine.
46182         (rpl_localtime): New function.
46183
46184 2002-05-27  Jim Meyering  <meyering@lucent.com>
46185
46186         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46187         localtime.
46188
46189         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46190         use the replacement function; it wouldn't resolve at link time.
46191         Reported by Volker Borchert.
46192
46193 2002-05-22  Jim Meyering  <meyering@lucent.com>
46194
46195         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46196         file-type.h.
46197         * lib/file-type.h: New file.
46198         * lib/file-type.c (file_type): New file/function.  Extracted from
46199         diffutils.
46200
46201 2002-04-30  Jim Meyering  <meyering@lucent.com>
46202
46203         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46204
46205 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46206
46207         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46208
46209 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46210
46211         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46212         Do not check for alloca.h (no longer used) or stdbool.h (was never
46213         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46214
46215 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46216
46217         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46218
46219 2002-04-29  Jim Meyering  <meyering@lucent.com>
46220
46221         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46222         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46223         Use AC_FUNC_STRNLEN here instead.
46224
46225         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46226         With autoconf-2.53a, it's part of AC_PROG_CC.
46227
46228 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46229
46230         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46231         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46232
46233 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46234
46235         * lib/sig2str.h, lib/sig2str.c: New files.
46236         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46237
46238 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46239
46240         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46241         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46242         of 127, since 64 is the largest conceivable number for ancient
46243         nonstandard hosts.
46244         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46245
46246 2002-04-28  Jim Meyering  <meyering@lucent.com>
46247
46248         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46249
46250 2002-04-24  Jim Meyering  <meyering@lucent.com>
46251
46252         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46253         (jm_PREREQ): Use it.
46254
46255         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46256         mach/mach.h fcntl.h.
46257         Check for this function: setlocale.
46258
46259 2002-04-24  Jim Meyering  <meyering@lucent.com>
46260
46261         * lib/gettext.h: New file, from Gettext.
46262         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46263         (libfetish_a_SOURCES): Add gettext.h.
46264
46265 2002-04-16  Jim Meyering  <meyering@lucent.com>
46266
46267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46268         ut_pid, ut_id, ut_exit.
46269
46270 2002-04-16  Jim Meyering  <meyering@lucent.com>
46271
46272         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46273         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46274         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46275
46276 2002-04-12  Jim Meyering  <meyering@lucent.com>
46277
46278         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46279         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46280         existence of the getmntinfo function.  Needed for Darwin 5.3.
46281
46282         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46283         This is necessary at least on Darwin 5.3.
46284
46285         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46286         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46287         strnlen.o in the library, and that makes some versions of ranlib
46288         object.
46289
46290 2002-04-12  Jim Meyering  <meyering@lucent.com>
46291
46292         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46293
46294 2002-04-09  Jim Meyering  <meyering@lucent.com>
46295
46296         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46297         to be more precise.  Rather than saying we're checking whether the
46298         function `works', say what we're testing.
46299         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46300         Reported by Bruno Haible.
46301
46302 2002-03-10  Jim Meyering  <meyering@lucent.com>
46303
46304         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46305         Suggestion from Santiago Vila.
46306
46307 2002-03-08  Jim Meyering  <meyering@lucent.com>
46308
46309         * lib/rename.c: Mention that this wrapper is needed also on
46310         mips-dec-ultrix4.4 systems.
46311
46312 2002-03-02  Jim Meyering  <meyering@lucent.com>
46313
46314         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46315         not HAVE_CLOCK_SETTIME.
46316
46317 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46318
46319         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46320         Check for clock_settime.
46321
46322 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46323
46324         * lib/nanosleep.h: Rename to....
46325         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46326
46327         * lib/gettime.c: New file.
46328         * lib/settime.c: New file.
46329         * lib/stime.c: Remove.
46330
46331         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46332         timespec.h.  Remove nanosleep.h.
46333
46334 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46335
46336         * m4/acl.m4: New file.
46337         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46338         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46339
46340 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46341
46342         * lib/acl.c, lib/acl.h: New files.
46343         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46344
46345 2002-02-24  Jim Meyering  <meyering@lucent.com>
46346
46347         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46348         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46349         cause trouble.  Reported by Nelson Beebe.
46350
46351 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46352
46353         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46354         compilers that don't know that xalloc_die never returns.
46355
46356 2002-02-20  Jim Meyering  <meyering@lucent.com>
46357
46358         * lib/getdate.c: Regenerate using bison-1.33.
46359
46360 2002-02-17  Jim Meyering  <meyering@lucent.com>
46361
46362         * config/config.guess (main): Don't use `head -1'; it's no longer
46363         portable. Use `sed 1q' instead.
46364
46365 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46366
46367         * m4/codeset.m4: Upgrade to gettext-0.11.
46368         * m4/gettext.m4: Upgrade to gettext-0.11.
46369         * m4/glibc21.m4: Upgrade to gettext-0.11.
46370         * m4/iconv.m4: Upgrade to gettext-0.11.
46371         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46372         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46373         * m4/lib-ld.m4: New file, from gettext-0.11.
46374         * m4/lib-link.m4: New file, from gettext-0.11.
46375         * m4/lib-prefix.m4: New file, from gettext-0.11.
46376         * m4/progtest.m4: Upgrade to gettext-0.11.
46377
46378 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46379
46380         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46381         (jm_PREREQ): Use it.
46382
46383 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46384
46385         * lib/posixver.c, lib/posixver.h: New files.
46386         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46387
46388 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46389             Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46392         (fwrite_success_callback): New declaration.
46393         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46394         print_unicode_char. Call failure callback instead of error.
46395         (fwrite_success_callback): New function.
46396         (exit_failure_callback): New function.
46397         (fallback_failure_callback): New function.
46398         (print_unicode_char): Call unicode_to_mb.
46399
46400 2002-01-26  Jim Meyering  <meyering@lucent.com>
46401
46402         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46403         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46404
46405 2002-01-26  Jim Meyering  <meyering@lucent.com>
46406
46407         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46408
46409 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46410
46411         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46412
46413 2002-01-22  Jim Meyering  <meyering@lucent.com>
46414
46415         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46416         Otherwise, some versions of automake would omit the rule that makes
46417         Makefile from Makefile.in.
46418
46419 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46420
46421         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46422         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46423         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46424         (memcoll): Set errno to zero if there is no error.
46425
46426         * lib/quotearg.c (quotearg_buffer_restyled):
46427         Fix bug with quoting buffers containing NUL when backslashing escapes.
46428         This bug was exposed by the other changes in this patch.
46429         (quotearg_n_options): New arg ARGSIZE.
46430         All callers changed.
46431         (quoting_options_from_style): New function.
46432         (quotearg_n_style): Use it.
46433         (quotearg_n_style_mem): New function.
46434
46435         * lib/quotearg.h (quotearg_n_style_mem): New function.
46436
46437 2002-01-19  Jim Meyering  <meyering@lucent.com>
46438
46439         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46440         Remove useless quotes: DF_PROG="df".
46441         * m4/strnlen.m4: New file.
46442
46443 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46444
46445         * lib/backupfile.c (ISDIGIT): Comment fix.
46446         * lib/getdate.y (ISDIGIT): Likewise.
46447         * lib/posixtm.c (ISDIGIT, year): Likewise.
46448         * lib/strverscmp.c (ISDIGIT): Likewise.
46449         * lib/userspec.c (ISDIGIT): Likewise.
46450
46451 2002-01-16  Jim Meyering  <meyering@lucent.com>
46452
46453         * lib/getdate.y: Add three semicolons, each just before a closing
46454         brace. Bison (as of version 1.31) no longer papers over that mistake.
46455
46456 2002-01-05  Jim Meyering  <meyering@lucent.com>
46457
46458         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46459
46460 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46461
46462         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46463         not silently exit merely because the output buffer happens to
46464         have nothing pending.
46465
46466 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46467
46468         See the big note in ../ChangeLog.
46469         * lib/human.c (suffixes): Prefer K to k for 1024.
46470         (generate_suffix_backwards): New function.
46471         (human_readable_inexact): Use it.
46472         * lib/xstrtol.c (__xstrtol): If there is no number but there
46473         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46474         Accept 'K' as well as 'k'.
46475
46476 2001-12-15  Jim Meyering  <meyering@lucent.com>
46477
46478         * lib/regex.h (__restrict_arr): Update from libc.
46479
46480         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46481         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46482         (STREQ): Define.
46483
46484 2001-12-14  Jim Meyering  <meyering@lucent.com>
46485
46486         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46487         Suggestion from Bruno Haible.
46488
46489 2001-12-10  Jim Meyering  <meyering@lucent.com>
46490
46491         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46492         xrealloc, Instead, include "xalloc.h".
46493         (initbuffer): Don't cast xmalloc return value to char*.
46494         (readline): Reword comment.
46495         Don't cast xrealloc return value to char*
46496         Return NULL, not 0.
46497
46498 2001-12-09  Jim Meyering  <meyering@lucent.com>
46499
46500         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46501         about `signed and unsigned type in conditional expression'.
46502         * lib/posixtm.c (posix_time_parse): Likewise.
46503
46504         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46505
46506         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46507         to avoid a pedantic warning.
46508
46509         * lib/getstr.c: Don't include assert.h.
46510         (getstr): Remove warning-evoking assertions.
46511         Return -1 if offset parameter is out of bounds.
46512         Change the type of a local from int to size_t.
46513
46514         * lib/strftime.c (my_strftime_localtime_r): Include this function
46515         definition in the `#if ! HAVE_TM_GMTOFF' block.
46516
46517         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46518         Include xalloc.h instead.
46519
46520 2001-12-02  Jim Meyering  <meyering@lucent.com>
46521
46522         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46523         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46524         included.
46525
46526         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46527         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46528
46529 2001-11-30  Akim Demaille  <akim@epita.fr>
46530
46531         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46532         before being defined.
46533
46534 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46535
46536         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46537         First arg is int, not unsigned.
46538         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46539         (SIZE_MAX, UINT_MAX): New macros.
46540         (quotearg_n_options): Abort if N is negative.
46541         Avoid overflow check on hosts where size_t is 64 bits and int
46542         is 32 bits, as overflow is impossible there.
46543         Fix off-by-one typo that caused unnecessary reallocation.
46544
46545 2001-11-27  Jim Meyering  <meyering@lucent.com>
46546
46547         * lib/tempname.c: Merge with version from libc.
46548         * lib/regex.c: Likewise.
46549
46550         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46551         systems for which STDC_HEADERS is 0, it was not included, resulting in
46552         a warning about an integer-to-pointer conversion problem with getenv.
46553         Reported by Volker Borchert.
46554
46555 2001-11-26  Jim Meyering  <meyering@lucent.com>
46556
46557         * lib/gtod.h: Remove file.
46558         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46559         * lib/gettimeofday.c: Don't include gtod.h.
46560         (GTOD_init): Remove function.
46561         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46562         Suggestion from Volker Borchert.
46563
46564 2001-11-23  Jim Meyering  <meyering@lucent.com>
46565
46566         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46567         it.
46568         * lib/hash.c (struct hash_table): Define it here instead.
46569
46570 2001-11-22  Jim Meyering  <meyering@lucent.com>
46571
46572         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46573
46574 2001-11-20  Jim Meyering  <meyering@lucent.com>
46575
46576         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46577         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46578
46579 2001-11-19  Jim Meyering  <meyering@lucent.com>
46580
46581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46582         directory.  Use "conftestXXXXXX" as the template.
46583         Suggestion from Paul Eggert.
46584
46585         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46586         immediately, so the test doesn't mistakenly hit the max-open-files
46587         limit.
46588
46589 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46590
46591         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46592         (TEMPORARIES): New macro.
46593         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46594         removes an artificial limitation (e.g. HP-UX 10.20, where
46595         TMP_MAX is 17576).
46596
46597 2001-11-18  Jim Meyering  <meyering@lucent.com>
46598
46599         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46600
46601 2001-11-18  Jim Meyering  <meyering@lucent.com>
46602
46603         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46604         on SunOS 4.
46605
46606         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46607         files will be created before anything else.
46608
46609 2001-11-17  Paul Eggert  <eggert@twinsun.com>
46610
46611         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46612         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46613
46614 2001-11-17  Jim Meyering  <meyering@lucent.com>
46615
46616         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46617         Prompted by a report from Bob Proulx.
46618
46619         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46620         Instead, require UTILS_FUNC_MKSTEMP.
46621
46622 2001-11-17  Jim Meyering  <meyering@lucent.com>
46623
46624         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46625         Now, that's done as part of AC_FUNC_STRTOD.
46626
46627 2001-11-17  Jim Meyering  <meyering@lucent.com>
46628
46629         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46630         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46631         rather than group writable.  Patch by Juan F. Codagnone.
46632
46633         * lib/readtokens.c: Remove explicit declarations of xmalloc and
46634         xrealloc, Instead, include "xalloc.h".
46635
46636         * lib/mountlist.c: Include unlocked-io.h after all system headers.
46637         Remove explicit declarations of xmalloc, xrealloc,
46638         and xstrdup.  Instead, include "xalloc.h".
46639
46640         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46641         unlocked-io.h.
46642         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46643         Likewise.
46644         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46645
46646         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46647         Reported by Padraig Brady.
46648
46649         * lib/mkstemp.c: #undef mkstemp.
46650         Include config.h.
46651         (rpl_mkstemp): Rename from mkstemp.
46652         Protoize.
46653
46654 2001-11-16  Jim Meyering  <meyering@lucent.com>
46655
46656         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46657         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46658         determine the amount of total physical memory, use pstat_getstatic.
46659         HPUX-11 doesn't define _SC_PHYS_PAGES.
46660         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46661         If sysconf couldn't be used to determine the amount of available
46662         physical memory, use both pstat_getstatic and pstat_getdynamic.
46663         Based on a patch from Bob Proulx.
46664
46665 2001-11-10  Jim Meyering  <meyering@lucent.com>
46666
46667         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46668         (jm_PREREQ): Use it.
46669
46670 2001-11-09  Jim Meyering  <meyering@lucent.com>
46671
46672         * m4/jm-macros.m4: Require autoconf-2.52f.
46673         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46674         Use these AC_-prefixed names, not the AM_-prefixed ones.
46675
46676         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
46677
46678 2001-11-05  Jim Meyering  <meyering@lucent.com>
46679
46680         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46681
46682 2001-11-04  Jim Meyering  <meyering@lucent.com>
46683
46684         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46685         $DEFS.
46686
46687 2001-11-03  Jim Meyering  <meyering@lucent.com>
46688
46689         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46690         of AC_DEFUN.
46691
46692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46693         know the name of the variable in the macro definition.
46694
46695 2001-11-03  Jim Meyering  <meyering@lucent.com>
46696
46697         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46698         in argmatch_to_argument call.
46699
46700         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46701         argument.
46702
46703         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46704         e.g., a fault due to an attempt to free a NULL pointer.
46705
46706 2001-11-01  Jim Meyering  <meyering@lucent.com>
46707
46708         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46709         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46710
46711 2001-11-01  Jim Meyering  <meyering@lucent.com>
46712
46713         * lib/dirfd.c, lib/dirfd.h: New files.
46714         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46715
46716         * lib/hash.c (hash_print) [TESTING]: Clean up.
46717
46718 2001-10-22  Paul Eggert  <eggert@twinsun.com>
46719
46720         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46721         to avoid a warning if -Wall.
46722
46723 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
46724
46725         * README: New file
46726         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46727         (per RMS's instructions, this is now the canonical source)
46728         * lgpl/, gpl/: New directories.
46729
46730 2001-10-21  Paul Eggert  <eggert@twinsun.com>
46731
46732         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46733
46734 2001-10-21  Jim Meyering  <meyering@lucent.com>
46735
46736         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
46737         this code would end up calling gettext even in packages built
46738         with --disable-nls.
46739         * lib/getopt.c (_): Likewise.
46740         * lib/regex.c (_): Likewise.
46741
46742 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46743
46744         * m4/error.m4 (jm_PREREQ_ERROR):
46745         Do not invoke AC_CHECK_FUNCS with strerror_r, as
46746         AC_FUNC_STRERROR_R does that.
46747         Check for strerror declaration.
46748
46749         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
46750         are supposed to have them these days.
46751         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
46752         Merge changes from latest Autoconf CVS.
46753         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
46754         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
46755         POSIX decided to standardize on the int flavor of strerror_r.
46756
46757 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46758
46759         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
46760         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
46761         Use strerror_r that is only a macro, even if it is not a function.
46762         (strerror): Check for HAVE_DECL_STRERROR before declaring.
46763         (private_strerror): Use prototypes, not old-style function definition.
46764         (print_errno_message): New function.
46765         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
46766         char*-flavored one.
46767         (error_tail, error, error_at_line): Use it.
46768
46769 2001-10-11  Jim Meyering  <meyering@lucent.com>
46770
46771         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
46772         and quote_n (1, ... to avoid clobbering a buffer.
46773
46774 2001-10-05  Jim Meyering  <meyering@lucent.com>
46775
46776         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
46777         hash-pjw.h.
46778         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
46779         * lib/hash-pjw.h: New file.
46780
46781 2001-09-30  Jim Meyering  <meyering@lucent.com>
46782
46783         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
46784         `struct fsstat' has the `f_fstypename' member.
46785         Use that to define FS_TYPE, which is now used to make
46786         the getfsstat link test tighter.
46787
46788 2001-09-30  Jim Meyering  <meyering@lucent.com>
46789
46790         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
46791         Include <sys/ucred.h>, for Apple Darwin.
46792         Include sys/mount.h and sys/fs_types.h only if available.
46793         (FS_TYPE): Define.
46794         (read_filesystem_list): Use FS_TYPE.
46795
46796 2001-09-29  Paul Eggert  <eggert@twinsun.com>
46797
46798         * lib/exclude.c (excluded_filename): 0 -> false, since it's
46799         a boolean context.
46800
46801 2001-09-29  Jim Meyering  <meyering@lucent.com>
46802
46803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46804         [one-argument getmntent function]): Include stdio.h before mntent.h.
46805         SunOS 4.1.x needs it for the declaration of `FILE'.
46806         Patch by Volker Borchert.
46807
46808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46809         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
46810         sys/fs_types.h, and make the link-test for getfsstat guard #include
46811         directives with appropriate #if HAVE_*_H tests so that we can
46812         detect getfsstat on Apple Darwin1.3.7 systems.
46813         Reported by Nelson Beebe.
46814         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
46815
46816 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46817
46818         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46819         #defines strtoimax.  Also treat the other strto* functions
46820         like strtoimax.
46821
46822         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46823         Check for strtoul and strtoumax,
46824         as those declarations are made even in the signed case.
46825         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
46826         Likewise, for strtol and strtoimax.
46827
46828 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46829
46830         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46831         #defines strtoimax.  Also treat the other strto* functions
46832         like strtoimax.
46833
46834         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
46835         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
46836         (strtoimax, strtoumax): Do not declare if already defined as a macro.
46837
46838 2001-09-26  Jim Meyering  <meyering@lucent.com>
46839
46840         Most macros in unlocked-io.h had the wrong number of arguments.
46841         * lib/gen-uio: New script.
46842         (USE_UNLOCKED_IO): Define to 1 if not already defined.
46843         * lib/unlocked-io.hin: Remove file.
46844         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
46845         rather than trying to embed it here.
46846         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
46847         Reported by Padraig Brady.
46848
46849 2001-09-25  Volker Borchert  <bt@teknon.de>
46850
46851         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
46852         `result'.
46853
46854 2001-09-24  Jim Meyering  <meyering@lucent.com>
46855
46856         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
46857
46858 2001-09-23  Jim Meyering  <meyering@lucent.com>
46859
46860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
46861         instead of the mere test for existence of mntent.h.  The latter
46862         would get a false-positive on AIX 3.4 systems.
46863         In the outer getmntent if-block, don't die if neither of the getmntent
46864         tests succeeds.  Instead, just fall through and continue with the
46865         remaining tests.
46866
46867 2001-09-23  Jim Meyering  <meyering@lucent.com>
46868
46869         * lib/mountlist.c: Remove useless parentheses in #if directives.
46870         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
46871         the deprecated MOUNTED symbol is no longer defined in mntent.h.
46872
46873 2001-09-22  Jim Meyering  <meyering@lucent.com>
46874
46875         * m4/gettext.m4: New file.  From gettext.
46876         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
46877         * m4/progtest.m4: Likewise
46878         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
46879         * m4/glibc21.m4: Likewise.
46880
46881         * m4/libintl.m4: Remove.  No longer used.
46882
46883 2001-09-22  Jim Meyering  <meyering@lucent.com>
46884
46885         * lib/localcharset.c: Update from latest gettext.
46886         * lib/config.charset: Likewise.
46887
46888 2001-09-20  Jim Meyering  <meyering@lucent.com>
46889
46890         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
46891         strtoimax.
46892         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
46893         strtoumax.
46894
46895 2001-09-20  Jim Meyering  <meyering@lucent.com>
46896
46897         * lib/xstrtol.c (strtoimax): Guard declaration with
46898         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
46899         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
46900         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
46901         (strtoumax): Likewise, for completeness (it wasn't necessary).
46902
46903 2001-09-17  Paul Eggert  <eggert@twinsun.com>
46904
46905         * lib/strtoimax.c (HAVE_LONG_LONG):
46906         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
46907         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
46908         to work around bug in IBM C compiler.
46909
46910 2001-09-17  Jim Meyering  <meyering@lucent.com>
46911
46912         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
46913         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
46914         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
46915         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
46916         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
46917         whenever the right hand side need not be expanded by the shell.
46918
46919 2001-09-16  Paul Eggert  <eggert@twinsun.com>
46920
46921         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
46922         library.  It's not correct, as some older glibcs are buggy.
46923         fnmatch wasn't fixed until glibc 2.2.
46924
46925         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
46926         special shell magic here.
46927
46928 2001-09-16  Jim Meyering  <meyering@lucent.com>
46929
46930         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
46931         * m4/jm-macros.m4: Require it.
46932
46933 2001-09-16  Jim Meyering  <meyering@lucent.com>
46934
46935         * lib/mkdir.c: New file.
46936
46937 2001-09-15  Jim Meyering  <meyering@lucent.com>
46938
46939         * m4/jm-macros.m4: Check for help2man.
46940
46941 2001-09-11  Jim Meyering  <meyering@lucent.com>
46942
46943         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
46944         The body, by Paul Eggert, was moved here from configure.in.
46945         * m4/jm-macros.m4: Require UTILS_HOST_OS.
46946
46947 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46948
46949         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
46950         (jm_PREREQ): Use it.
46951
46952 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46953
46954         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
46955         Use ssize_t, not int, to store result of readlink.
46956         Check for ssize_t overflow as well as size_t overflow,
46957         as POSIX says the result of readlink is implementation-defined
46958         when ssize_t overflows.
46959         Remove unnecessary cast to char*.
46960         Use free+malloc instead of realloc, as the storage doesn't need
46961         to be preserved and it's clearer and can be more efficient that way.
46962         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
46963         * lib/xreadlink.h (xreadlink): Update prototype.
46964
46965 2001-09-04  Paul Eggert  <eggert@twinsun.com>
46966
46967         * lib/xgetcwd.c: Revert some of the previous change; intead,
46968         fix the HAVE_GETCWD_NULL code to behave more like the
46969         !HAVE_GETCWD_NULL code used to.
46970
46971         Include "xalloc.h".
46972         (xgetcwd): Do not return NULL when memory is exhausted; instead,
46973         invoke xalloc_die.
46974
46975 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46976
46977         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
46978         sys/param.h, as pathmax.h includes them.
46979
46980 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46981
46982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
46983         (jm_PREREQ_XGETCWD): New macro.
46984
46985         * m4/getcwd.m4: New file.
46986
46987 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46988
46989         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
46990         like the HAVE_GETCWD_NULL code.
46991         Include pathmax.h if not HAVE_GETCWD.
46992         Do not include xalloc.h.
46993         (INITIAL_BUFFER_SIZE): New symbol.
46994         Do not use xmalloc / xrealloc, since the caller is responsible for
46995         handling errors.  Preserve errno around `free' during failure.
46996         Do not overrun buffer when using getwd.
46997
46998 2001-09-03  Paul Eggert  <eggert@twinsun.com>
46999
47000         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47001         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47002         getcwd (NULL, 0).
47003
47004 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47005
47006         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47007         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47008         spotted by Jim Meyering.
47009
47010 2001-09-03  Jim Meyering  <meyering@lucent.com>
47011
47012         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47013         failure.
47014
47015 2001-09-02  Jim Meyering  <meyering@lucent.com>
47016
47017         * lib/error.c: Update from GNU libc.
47018
47019 2001-09-01  Jim Meyering  <meyering@lucent.com>
47020
47021         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47022         Used by df.
47023
47024 2001-09-01  Jim Meyering  <meyering@lucent.com>
47025
47026         * lib/xreadlink.c: New file.
47027         * lib/xreadlink.h: New file.
47028         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47029         xreadlink.h.
47030
47031         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47032         doesn't conflict with sparc Solaris 7's definition in
47033         /usr/include/sys/int_types.h.
47034
47035         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47036         files.
47037         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47038         and strncasecmp as r-values.  Unixware didn't have declarations.
47039
47040 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47041
47042         * lib/xstrtol.h: Add copyright notice.
47043         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47044         LONGINT_INVALID_SUFFIX_CHAR.
47045
47046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47047
47048         * lib/xstrtol.c (strtoimax): New decl.
47049
47050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47051
47052         * lib/xgetcwd.c: Don't include pathmax.h.
47053         Include stdlib.h and unistd.h if available.
47054         Include xalloc.h.
47055         (xmalloc, xstrdup, free): Remove decls.
47056         (xgetcwd): Don't assume sizes fit in unsigned.
47057         Check for overflow when computing sizes.
47058         Simplify reallocation code.
47059
47060 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47061
47062         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47063         a directory's st_size can have an arbitrary value, so the old
47064         usage could waste an arbitrary amount of memory.  All uses
47065         changed.
47066         * lib/savedir.h: Update prototype.
47067
47068 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47069
47070         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47071
47072         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47073         old strtoimax.c.
47074
47075         Also, make the following further changes to make this file's
47076         configuration more similar to that of strtol.c:
47077         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47078         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47079         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47080         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47081         changed to signed values.
47082
47083         And make the following changes as well:
47084         Fix copyright notice, as 1999 was missing.
47085         (verify): New macro.
47086         (strtoimax): Check sizes at compile-time, not run-time.
47087         Prefer strtol to strtoll if both work.
47088         (main): Remove; it was not that useful and was a pain to maintain.
47089
47090         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47091
47092 2001-08-31  Jim Meyering  <meyering@lucent.com>
47093
47094         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47095         Use an initial, malloc'd, buffer of length 128 rather than
47096         a statically allocated one of length 1024.
47097
47098 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47099
47100         Simplify code, partly by assuming autoconf 2.52 semantics.
47101
47102         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47103
47104         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47105         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47106         All uses removed.
47107         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47108         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47109         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47110         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47111         jm_AC_HEADER_INTTYPES_H.
47112         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47113
47114         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47115
47116         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47117         Quote first arg of AC_DEFUN.
47118         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47119         since they are needed to parse the include file even if we need
47120         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47122         but with opposite signedness.
47123
47124 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47125
47126         Merge 'exclude' changes from tar 1.13.22.
47127         This fixes one or two unlikely storage allocation overflow bugs,
47128         but doesn't change user-visible behavior otherwise.
47129
47130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47131
47132         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47133         (jm_PREREQ_EXCLUDE): New macro.
47134
47135 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47136
47137         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47138         tm to be declared.
47139
47140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47141
47142         * lib/hash.c: Remove '2001' from copyright notice.
47143
47144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47145
47146         * lib/full-write.h: New file.
47147         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47148         * lib/full-write.c: Correct credits, as cccp.c no longer
47149         exists and anyway it was so heavily changed from the old cccp
47150         code as to be unrecognizable.  Include full-write.h.
47151         (full_write) Return size_t, with short writes meaning failure.
47152         All callers changed.  This fixes a bug with large buffers
47153         on 64-bit hosts.
47154         * lib/utime.c: Include full-write.h.
47155
47156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47157
47158         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47159         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47160         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47161         Include if available.
47162         (<xalloc.h>): Include
47163         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47164         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47165         collide with FNM macros.
47166         (struct patopts): New struct.
47167         (struct exclude): Use it, as exclude patterns now come with options.
47168         (new_exclude): Support above changes.
47169         (new_exclude, add_exclude_file):
47170         Initial size must now be a power of two to simplify overflow checking.
47171         (free_exclude, fnmatch_no_wildcards): New function.
47172         (excluded_filename): No longer requires options arg, as the options
47173         are determined by add_exclude.  Now returns bool, not int.
47174         (excluded_filename, add_exclude):
47175         Add support for the fancy new exclusion options.
47176         (add_exclude, add_exclude_file): Now takes int options arg.
47177         Check for arithmetic overflow when computing sizes.
47178         (add_exclude_file): xrealloc might modify errno, so don't
47179         realloc until after errno might be used.
47180
47181         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47182         New macros.
47183         (free_exclude): New decl.
47184         (add_exclude, add_exclude_file): Now takes int options arg.
47185         (excluded_filename): No longer requires options arg, as the options
47186         are determined by add_exclude.  Now returns bool, not int.
47187
47188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47189
47190         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47191
47192 2001-08-27  Jim Meyering  <meyering@lucent.com>
47193
47194         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47195
47196         * lib/version-etc.c (N_): Remove definition.
47197         Revert most of last change.
47198         Instead, simply don't mark the `Copyright...' string for translation.
47199         Based on advice from Paul Eggert.
47200
47201         * lib/strtoxmax.c: Tweak comment.
47202
47203 2001-08-26  Jim Meyering  <meyering@lucent.com>
47204
47205         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47206
47207         * m4/xstrtoimax.m4: New file.
47208         * m4/xstrtoumax.m4: Add comments explaining why we
47209         AC_REPLACE_FUNCS(strtol).
47210
47211 2001-08-26  Jim Meyering  <meyering@lucent.com>
47212
47213         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47214         of copyright with `%s' so translators don't get an untranslated
47215         message in 2002.
47216         (COPYRIGHT_YEAR): Define.
47217         (version_etc): Use fprintf rather than fputs.
47218         Suggestion from Ulrich Drepper.
47219
47220         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47221
47222         * lib/strtoll.c: New file, from GNU libc.
47223         * lib/xstrtoimax.c: New file.
47224
47225         * lib/xstrtol.h: Add xstrtoimax.
47226         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47227         * lib/strtoimax.c: New file.  Likewise, but first define
47228         STRTOUXMAX_SIGNED.
47229
47230         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47231         ...
47232         * lib/strtoxmax.c: ... then renamed to this.
47233
47234 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47235
47236         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47237         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47238         (jm_AC_TYPE_INTMAX_T): New macro.
47239         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47240
47241         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47242
47243         * m4/longlong.m4: Renamed from ulonglong.m4.
47244         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47245         * m4/uintmax_t.m4: Removed.
47246
47247 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47248
47249         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47250         Port to Solaris 8, where 'sed' requires a space after the 'r'
47251         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47252         Redirect output to $tmp just once.
47253
47254 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47255
47256         * lib/addext.c (<errno.h>): Include.
47257         (errno): Declare if not defined.
47258         (addext): Work correctly when pathconf returns -1 and leaves
47259         errno alone because there is no limit.  Also, work even if
47260         pathconf returns a value greater than SIZE_MAX.
47261
47262 2001-08-12  Jim Meyering  <meyering@lucent.com>
47263
47264         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47265         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47266         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47267         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47268         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47269         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47270         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47271         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47272         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47273         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47274         utime.m4, utimes.m4, xstrtoumax.m4:
47275         Quote the first argument in each use of AC_DEFUN.
47276
47277 2001-08-12  Jim Meyering  <meyering@lucent.com>
47278
47279         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47280         Simply `return getcwd (NULL, 0);'.
47281         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47282         Use 1300 as initial value for length, not PATH_MAX.
47283
47284         * lib/pathmax.h: Clean up cpp syntax.
47285
47286 2001-08-12  Jim Meyering  <meyering@lucent.com>
47287
47288         * lib/gettimeofday.c: New file.
47289         * lib/gtod.h: New file.
47290         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47291
47292 2001-08-05  Jim Meyering  <meyering@lucent.com>
47293
47294         * m4/jm-macros.m4: Require autoconf-2.52.
47295
47296 2001-08-04  Jim Meyering  <meyering@lucent.com>
47297
47298         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47299         stmt, to get in sync with glibc.
47300
47301 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47302
47303         The following changes are from gettext 0.10.39 as maintained by
47304         Bruno Haible.
47305
47306         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47307         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47308         with inverted sense.  All uses changed.
47309
47310         * lib/mbswidth.c: Don't include <limits.h>.
47311         Include <stdlib.h> and <string.h> unconditionally.
47312         (iswcntrl, mbsinit, ISCNTRL): New macros.
47313         (mbsnwidth): Use K&R style function declarations.
47314         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47315         can optimize it when MB_CUR_MAX == 1.
47316         The width of control characters is zero, not 1.
47317
47318 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47319
47320         The following changes are from gettext 0.10.39 as maintained by
47321         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47322
47323         * m4/codeset.m4: Upgrade to serial AM1.
47324         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47325         all uses changed.  Quote first arg of AC_DEFUN.
47326         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47327
47328         * m4/iconv.m4: Upgrade to serial AM2.
47329         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47330         Add --with-libconv-prefix.
47331         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47332         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47333         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47334         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47335         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47336
47337         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47338         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47339         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47340         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47341         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47342         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47343         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47344         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47345         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47346
47347         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47348         string.h any more.
47349
47350         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47351         not the default value.
47352
47353         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47354         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47355         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47356         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47357         Also check for iswcntrl, used for wcwidth fallback.
47358         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47359         to Autoconf 2.13.
47360
47361 2001-08-03  Jim Meyering  <meyering@lucent.com>
47362
47363         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47364         as it was in the original.  Reported by Paul Eggert.
47365
47366 2001-07-16  Jim Meyering  <meyering@lucent.com>
47367
47368         * m4/gettimeofday.m4: New file.
47369         Prompted by a report from Bernhard Baehr.
47370
47371 2001-07-15  Jim Meyering  <meyering@lucent.com>
47372
47373         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47374         stuff. Now it's in ../Makefile.cfg.
47375
47376 2001-07-15  Jim Meyering  <meyering@lucent.com>
47377
47378         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47379         (BUILT_SOURCES): Add unlocked-io.h.
47380         (io_functions): Define.
47381         (unlocked-io.h): New rule.
47382         (DISTCLEANFILES): Add unlocked-io.h.
47383         (all-local): Depend on unlocked-io.h, to ensure it is created.
47384
47385         * lib/unlocked-io.hin: New file
47386
47387         * lib/regex.c: Update from glibc.
47388
47389 2001-07-05  Jim Meyering  <meyering@lucent.com>
47390
47391         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47392         recommendation.
47393         (libfetish_a_SOURCES): Put all .h files here instead.
47394         Remove a thus-exposed (better checks in automake) duplicate and
47395         two unnecessary .h files.
47396
47397 2001-07-04  Jim Meyering  <meyering@lucent.com>
47398
47399         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47400         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47401         distcheck failure.
47402
47403 2001-07-02  Jim Meyering  <meyering@lucent.com>
47404
47405         The following changes were prompted by suggestions from Bruno Haible.
47406
47407         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47408         is now generated.
47409         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47410         definition of EXTRA_DIST.
47411         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47412         ensure that the generated file is created/updated whenever the list
47413         of $(unlocked_functions) is changed.
47414         (jm-glibc-io.m4): New rule.
47415         (unlocked-io.h): New rule -- currently unused.
47416
47417 2001-06-24  Jim Meyering  <meyering@lucent.com>
47418
47419         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47420         unmatched right bracket, rather than kludging it with an extra,
47421         falsely-matching quote in a comment.  Patch by Akim Demaille.
47422
47423 2001-06-11  Jim Meyering  <meyering@lucent.com>
47424
47425         * lib/regex.c: Update from GNU libc.
47426
47427 2001-05-27  Jim Meyering  <meyering@lucent.com>
47428
47429         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47430         Check for ut_type in struct utmp.
47431
47432 2001-05-27  Jim Meyering  <meyering@lucent.com>
47433
47434         * lib/readutmp.h (UT_TYPE): Define.
47435
47436 2001-05-24  Jim Meyering  <meyering@lucent.com>
47437
47438         * lib/argmatch.c: Include "quote.h".
47439         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47440         quote function.  Reported by Göran Uddeborg.
47441
47442 2001-05-22  Jim Meyering  <meyering@lucent.com>
47443
47444         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47445         now that we use the package-supplied version unconditionally.
47446         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47447
47448 2001-05-21  Jim Meyering  <meyering@lucent.com>
47449
47450         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47451         shell syntax errors.
47452
47453 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47454
47455         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47456
47457 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47458
47459         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47460         Don't bother to check library strftime, since
47461         we'll be using our own my_strftime function anyway.
47462         Define my_strftime instead of strftime.
47463
47464 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47465
47466         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47467         which is not yet declared.
47468
47469 2001-05-15  Jim Meyering  <meyering@lucent.com>
47470
47471         * m4/regex.m4: Use proper quoting so brackets appear in the test
47472         program.
47473         Reported by, and with help from, Bruno Haible.
47474
47475 2001-05-13  Jim Meyering  <meyering@lucent.com>
47476
47477         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47478         undefined.
47479
47480 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47481
47482         dirname code cleanup.  base_name now behaves more compatibly
47483         with POSIX basename when given file names that have trailing
47484         slashes, and similarly for dir_name.  Add new primitives
47485         base_len and dir_len.  Put the directory-name-related decls
47486         into dirname.h.
47487
47488         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47489         * lib/backupfile.c (base_name): Likewise.
47490         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47491         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47492         * lib/makepath.c (strip_trailing_slashes): Likewise.
47493         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47494         ISSLASH): Likewise.
47495         * lib/rename.c (strip_trailing_slashes): Likewise.
47496         * lib/same.c (base_name): Likewise.
47497         * lib/stripslash.c (ISSLASH): Likewise.
47498
47499         * lib/addext.c: Include <dirname.h> after size_t is defined.
47500         * lib/backupfile.c: Likewise.
47501
47502         * lib/addext.c (addext): Use base_len to trim redundant
47503         trailing slashes instead of doing it ourselves.
47504         But do not trim the last slash if it is not redundant.
47505
47506         * lib/backupfile.c (find_backup_file_name,
47507         max_backup_version): Use base_len instead of rolling it ourselves.
47508         Handle the case of "" and (on DOS) "C:" correctly.
47509
47510         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47511         needed. Include <string.h>, <dirname.h>.
47512         (base_name): Allow file names ending in slashes, other than names
47513         that are all slashes.  In this case, return the basename followed
47514         by the slashes.  This is more general, and can be used in places
47515         where the original base_name purposely had an assertion failure.
47516         (base_len): New function.
47517
47518         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47519         Do not include <assert.h>; no longer needed.
47520         Include xalloc.h.
47521         (memrchr): Remove decl.
47522         (dir_name_r): Remove.
47523         (dir_len): Renamed from dirlen.  All callers changed.
47524         Rewrite in terms of base_name, for simplicity and consistency.
47525         (dir_name): Never return NULL.  All callers changed.
47526         Do not include <stdlib.h> in test program; no longer needed.
47527         return 0; is fine for test program.
47528
47529         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47530         New macros.
47531         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47532
47533         * lib/path-concat.c (path_concat): Use base_len to compute
47534         base length, not strlen; this means we cannot rely on memcpy
47535         to null-terminate.
47536
47537         * lib/same.c (STREQ): Remove.
47538         (same_name): Handle the case where the basename ends in trailing '/'.
47539
47540         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47541         a slash was stripped.  Do not strip the last slash after a
47542         file system prefix.
47543
47544 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47545
47546         * lib/Makefile.am (libfetish_a_SOURCES):
47547         Add strftime.c, since we now compile it on all hosts.
47548
47549         * lib/strftime.c (my_strftime):
47550         Define to nstrftime if emacs, but only if my_strftime is not defined.
47551         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47552         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47553         Add one more extra argument: a nanoseconds value.
47554         All uses changed.
47555         (ns): New macro.
47556         (my_strftime function): Add %N format.
47557         (emacs_strftimeu): Renamed from emacs_strftime,
47558         with extra ut argument.
47559
47560 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47561
47562         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47563
47564 2001-04-21  Jim Meyering  <meyering@lucent.com>
47565
47566         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47567         doesn't interfere.
47568
47569 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47570
47571         * m4/ftruncate.m4: Check for chsize.
47572         Link with ftruncate.o unconditionally if ftruncate is missing.
47573         This was required when cross-compiling to i586-mingw32msvc.
47574
47575 2001-04-08  Jim Meyering  <meyering@lucent.com>
47576
47577         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47578         recomputed; that's necessary when the offset spans a DST transition.
47579         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47580
47581 2001-04-02  Jim Meyering  <meyering@lucent.com>
47582
47583         * lib/regex.h, regex.c: Update from GNU libc.
47584
47585 2001-03-24  Jim Meyering  <meyering@lucent.com>
47586
47587         * m4/jm-macros.m4: Require autoconf-2.49d.
47588
47589 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47590
47591         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47592
47593 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47594
47595         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47596
47597 2001-03-17  Jim Meyering  <meyering@lucent.com>
47598
47599         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47600         now that the version in autoconf is equivalent.
47601         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47602
47603         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47604         Suggestion from Akim Demaille.
47605
47606         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47607         (jm_PREREQ_TEMPNAME): New function.
47608
47609 2001-03-16  Paul Eggert  <eggert@twinsun.com>
47610
47611         * lib/tempname.c (uint64_t): Define to uintmax_t if
47612         not defined, and if UINT64_MAX is not defined.
47613         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47614         Reported by John David Anglin.
47615
47616 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
47617
47618         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47619         resolve alias if codeset is empty.
47620         * lib/config.charset (BeOS): Use wildcard syntax.
47621
47622 2001-03-13  Jim Meyering  <meyering@lucent.com>
47623
47624         * lib/path-concat.c (path_concat)
47625         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47626         concatenating e.g., `C:' and `foo'.
47627         From Bruno Haible.
47628
47629 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47630
47631         * lib/localcharset.c (locale_charset): Don't use
47632         setlocale(LC_CTYPE,NULL). Don't return NULL.
47633         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47634
47635 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47636
47637         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47638         support for DOS/DJGPP.
47639
47640 2001-03-01  Paul Eggert  <eggert@twinsun.com>
47641
47642         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47643         lacks mkstemp.  Compile our own tempname.c if we compile our own
47644         mkstemp.c, as mkstemp relies on tempname.
47645
47646 2001-03-01  Jim Meyering  <meyering@lucent.com>
47647
47648         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47649         AH_VERBATIM really does output its argument verbatim.
47650
47651 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47652
47653         * lib/Makefile.am (libfetish_a_SOURCES):
47654         Add dup-safer.c, fopen-safer.c.
47655         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47656
47657         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47658         * lib/unistd-safer.h: New files.
47659
47660 2001-02-25  Paul Eggert  <eggert@twinsun.com>
47661
47662         The mkstemp replacement is taken from glibc 2.2.2, with some
47663         portability fixes for use outside glibc, as follows:
47664
47665         * lib/tempname.c (struct_stat64): New macro.
47666         (direxists, __gen_tempname): Use it.
47667         This avoids a portability problem with Solaris 8.
47668
47669         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47670         (<stddef.h>, <stdint.h>, <string.h>):
47671         Include only if STDC_HEADERS || _LIBC.
47672         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47673         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47674         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47675         (__set_errno): Define this macro if <errno.h> doesn't.
47676         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47677         Define these macros if <stdio.h> doesn't.
47678         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47679         Define these macros if <sys/stat.h>
47680         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47681         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47682         __xstat64): Define if not _LIBC.
47683         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47684         (__gen_tempname): Invoke gettimeofday only if
47685         HAVE_GETTIMEOFDAY || _LIBC;
47686         otherwise, fall back on plain "time".
47687         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47688
47689         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47690
47691         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47692
47693 2001-02-18  Paul Eggert  <eggert@twinsun.com>
47694
47695         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47696
47697 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47698
47699         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47700         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47701         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47702         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47703
47704 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47705
47706         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47707         Remove workaround macros for hosts that have mbrtowc but not
47708         mbstate_t, as we now insist on proper declarations for both
47709         before using mbrtowc.
47710
47711 2001-02-17  Jim Meyering  <meyering@lucent.com>
47712
47713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47714         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47715         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47716         UnixWare 7.1.1.
47717
47718         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47719         rather than AC_CACHE_VAL.
47720
47721 2001-02-17  Jim Meyering  <meyering@lucent.com>
47722
47723         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
47724         around included file name.
47725
47726         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47727
47728         * lib/strftime.c: Update from GNU libc (the only changes were to
47729         comments).
47730
47731 2001-02-17  Jim Meyering  <meyering@lucent.com>
47732
47733         * lib/regex.c: Update from libc.
47734
47735 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
47736
47737         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47738         clash.
47739
47740 2001-02-16  Paul Eggert  <eggert@twinsun.com>
47741
47742         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47743         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
47744         Reported by Mark Hounschell via Paul Eggert.
47745
47746 2001-02-07  Jim Meyering  <meyering@lucent.com>
47747
47748         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
47749
47750 2001-02-05  Jim Meyering  <meyering@lucent.com>
47751
47752         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
47753         it includes the patch required for `large file' support with at least
47754         HP-UX's 10.20 /bin/cc.
47755
47756 2001-02-03  Jim Meyering  <meyering@lucent.com>
47757
47758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
47759         AS_IF, now that it works once again (mysteriously).
47760         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47761
47762 2001-01-30  Jim Meyering  <meyering@lucent.com>
47763
47764         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
47765         * m4/chown.m4: Rename conftestchown to conftest.chown.
47766         * m4/rename.m4: s/conftestdir/conftest.d1/ and
47767         s/conftestdir2/conftest.d2/.
47768         * m4/utimes.m4: s/conftestdata/conftest.data/
47769         Inspired by Pavel Roskin's change in autoconf.
47770
47771 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
47772
47773         * lib/config.charset: Update for FreeBSD 4.2.
47774
47775 2001-01-27  Jim Meyering  <meyering@lucent.com>
47776
47777         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
47778         a use of AS_IF.
47779         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47780
47781 2001-01-26  Jim Meyering  <meyering@lucent.com>
47782
47783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
47784         quotearg.c includes it.
47785
47786 2001-01-26  Jim Meyering  <meyering@lucent.com>
47787
47788         * lib/quotearg.c: Include stddef.h.
47789         * lib/quote.c: Include stddef.h.
47790         Reported by Axel Kittenberger.
47791
47792         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
47793         line in double quotes so that it evokes a better diagnostic.
47794         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
47795         Reported by Axel Kittenberger.
47796
47797 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
47798
47799         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
47800         as if it was a `charset'.
47801
47802 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47803
47804         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
47805         has const.
47806
47807 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47808
47809         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
47810         to avoid a warning.  Add back 'const' to inptr.
47811
47812 2001-01-20  Jim Meyering  <meyering@lucent.com>
47813
47814         Be sure that headers are checked before used in code compiled
47815         for the type checks.
47816         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
47817         In place of that, invoke jm_CHECK_ALL_TYPES.
47818         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
47819         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
47820         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
47821         The check for ssize_t was mistakenly run before the test for unistd.h.
47822
47823         The configure-time check for stdbool.h was missing.
47824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
47825         (jm_PREREQ_HASH): New function.
47826
47827 2001-01-17  Jim Meyering  <meyering@lucent.com>
47828
47829         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
47830         for autoconf-2.49c.
47831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
47832
47833 2001-01-16  Jim Meyering  <meyering@lucent.com>
47834
47835         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
47836         From Bruno Haible.
47837
47838 2001-01-14  Jim Meyering  <meyering@lucent.com>
47839
47840         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
47841         foo and bar.  Create conftestdir/ in the script, not in the C code.
47842         Remove directories in the script, not in the C code.
47843         Remove conftestdir{,2} before trying to create the directory.
47844         Make the entire configure script fail if the mkdir fails.
47845
47846 2001-01-14  Jim Meyering  <meyering@lucent.com>
47847
47848         * lib/rename.c: New file.  From Volker Borchert.
47849         Include stdlib.h, string.h or strings.h, and xalloc.h.
47850         Use strip_trailing_slashes rather than open-coding it.
47851
47852 2001-01-03  Paul Eggert  <eggert@twinsun.com>
47853
47854         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
47855
47856 2001-01-03  Jim Meyering  <meyering@lucent.com>
47857
47858         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
47859         of local `inptr' to avoid warning with some system declarations of
47860         iconv.
47861
47862 2001-01-02  Volker Borchert  <bt@teknon.de>
47863
47864         * m4/rename.m4: New file.
47865         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
47866
47867 2001-01-01  Jim Meyering  <meyering@lucent.com>
47868
47869         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
47870         even on systems with utmpx.h.  It's necessary for the declaration of
47871         utmp's ut_user member.  Reported by Andreas Jaeger.
47872
47873         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
47874         available. They are required for the declarations of getgrgid and
47875         getpwuid resp.
47876         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
47877         Reported by Andreas Jaeger.
47878
47879 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
47880
47881         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
47882         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
47883         so `make install' also works in VPATH builds.
47884
47885 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
47886
47887         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
47888         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
47889         can be used in subdirectories.
47890
47891 2000-12-29  Paul Eggert  <eggert@twinsun.com>
47892
47893         * lib/modechange.c: Do not assume that mode_t uses the
47894         traditional octal encoding.  E.g. "chmod 1 FOO" should set
47895         the other-execute bit of FOO even if S_IXOTH != 1.
47896
47897         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
47898         WOTH, XOTH, ALLM): New macros.
47899         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
47900          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
47901         Use them.
47902         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
47903         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
47904         (mode_compile):
47905         No need to use uintmax_t; unsigned long is long enough.
47906         Don't bother to get suffix since we don't use it.
47907
47908 2000-12-26  Jim Meyering  <meyering@lucent.com>
47909
47910         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
47911         better with autoheader.
47912
47913 2000-12-24  Jim Meyering  <meyering@lucent.com>
47914
47915         * lib/hash.c (is_prime): Return explicit boolean values.
47916         (hash_get_first): Return NULL to appease Irix5.6's 89.
47917         Reported by Nelson Beebe.
47918
47919 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
47920
47921         * lib/localcharset.c (locale_charset): Add support for Win32.
47922
47923 2000-12-18  Paul Eggert  <eggert@twinsun.com>
47924
47925         * lib/physmem.h, lib/physmem.c: New files.
47926
47927         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
47928         (noinst_HEADERS): Add physmem.h.
47929
47930         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
47931         't' for compatibility with Solaris 8 sort.
47932
47933 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
47934
47935         * lib/config.charset: Add support for BeOS.
47936
47937 2000-12-17  Jim Meyering  <meyering@lucent.com>
47938
47939         * m4/dos.m4 (jm_AC_DOS): New file and macro.
47940         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
47941
47942 2000-12-16  Jim Meyering  <meyering@lucent.com>
47943
47944         This bug had a serious impact on chown: `chown N:M FILE' (for integer
47945         N and M) would have treated it like `chown N:N FILE'.
47946
47947         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
47948
47949 2000-12-16  Jim Meyering  <meyering@lucent.com>
47950
47951         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
47952         SHELLS_FILE to a file name that's useful on djgpp systems.
47953         Include stdlib.h.
47954         (ADDITIONAL_DEFAULT_SHELLS): Define.
47955         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
47956         Based mostly on a patch from Prashant TR.
47957
47958 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
47959
47960         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
47961         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
47962         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
47963
47964 2000-12-08  Andreas Schwab  <schwab@suse.de>
47965
47966         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
47967         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
47968
47969 2000-12-07  Jim Meyering  <meyering@lucent.com>
47970
47971         * lib/stripslash.c (ISSLASH): Define.
47972         (strip_trailing_slashes): Use ISSLASH rather than comparing against
47973         `/'.
47974         From Prashant TR.
47975
47976         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
47977         (dir_name_r): Declare this function as static.
47978         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
47979         manifest itself on a name containing a mix of slashes and
47980         backslashes.
47981         Make this function work with names starting with a DOS-style
47982         drive letter and colon prefix.
47983         (dir_name): Append `.' if necessary.
47984         Based mostly on patches from Prashant TR and Eli Zaretskii.
47985
47986         * lib/dirname.h (dir_name_r): Remove prototype.
47987
47988 2000-12-06  Paul Eggert  <eggert@twinsun.com>
47989
47990         * m4/off_t-format.m4: Remove this file.
47991         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
47992
47993 2000-12-06  Jim Meyering  <meyering@lucent.com>
47994
47995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
47996         replacement strtoull, we may well need the replacement strtoul, too.
47997         Check for declarations of strtoul and strtoull.
47998         Check for strtol.  Mainly as a cue to cause automake to include
47999         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48000         Check for limits.h -- strtol.c needs it.
48001
48002 2000-12-05  Jim Meyering  <meyering@lucent.com>
48003
48004         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48005
48006 2000-12-04  Jim Meyering  <meyering@lucent.com>
48007
48008         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48009         Also include memory.h, stdlib.h, unistd.h if appropriate.
48010         Reported by Andreas Jaeger (conflicting declaration of malloc).
48011
48012 2000-12-02  Jim Meyering  <meyering@lucent.com>
48013
48014         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48015         * m4/jm-macros.m4 (jm_MACROS): require it.
48016
48017 2000-12-02  Jim Meyering  <meyering@lucent.com>
48018
48019         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48020
48021 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48022
48023         * lib/memrchr.c: Include <config.h> before any system include file.
48024
48025 2000-11-30  Jim Meyering  <meyering@lucent.com>
48026
48027         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48028
48029 2000-11-30  Jim Meyering  <meyering@lucent.com>
48030
48031         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48032
48033 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48034
48035         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48036
48037 2000-11-26  Jim Meyering  <meyering@lucent.com>
48038
48039         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48040
48041 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48042
48043         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48044         size of (size_t) -1; it's not portable.
48045
48046 2000-11-17  Jim Meyering  <meyering@lucent.com>
48047
48048         * lib/strstr.c: Update from GNU libc.
48049
48050 2000-11-17  Akim Demaille  <akim@epita.fr>
48051
48052         * lib/obstack.h: Formatting changes.
48053         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48054         prevent type checking.
48055         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48056         cast the value to (void *): assigning a `foo *' to a `void *'
48057         variable is valid.
48058         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48059
48060 2000-11-16  Jim Meyering  <meyering@lucent.com>
48061
48062         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48063
48064 2000-11-11  Jim Meyering  <meyering@lucent.com>
48065
48066         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48067
48068 2000-11-10  Jim Meyering  <meyering@lucent.com>
48069
48070         * lib/obstack.h: Update from GNU libc.
48071         * lib/obstack.c: Likewise.
48072
48073 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48074
48075         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48076
48077 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48078
48079         * lib/getusershell.c (setusershell): Use rewind rather than
48080         fseek/fseeko, to avoid configuration hassles with fseeko.
48081         Don't bother opening SHELLS_FILE if shellstream is NULL;
48082         it's not necessary.
48083
48084 2000-11-05  Jim Meyering  <meyering@lucent.com>
48085
48086         * lib/makepath.h (make_dir): Declare.
48087         * lib/makepath.c (make_dir): Remove `static' attribute.
48088         Tweak a comment.
48089
48090 2000-11-04  Jim Meyering  <meyering@lucent.com>
48091
48092         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48093
48094 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48095
48096         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48097         last one in a bucket, advance to the next bucket.
48098
48099 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48100
48101         * lib/fnmatch.c: Do not comment out all the code if we are using
48102         the GNU C library, because in some cases we are replacing buggy
48103         code in the GNU C library itself.
48104
48105 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48106
48107         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48108         (regex_compile): Catch bogus \(\1\).
48109
48110 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48111
48112         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48113         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48114         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48115
48116 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48117
48118         * lib/error.h, getline.h, modechange.h:
48119         Remove "2000" from Copyright line, as the file hasn't been
48120         changed this year other than in the copyright notice.
48121
48122         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48123         was changed this year.
48124
48125 2000-10-29  Jim Meyering  <meyering@lucent.com>
48126
48127         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48128         renaming.
48129         * m4/ls-mntd-fs.m4: Likewise
48130
48131 2000-10-29  Jim Meyering  <meyering@lucent.com>
48132
48133         * lib/xstat.in: Fix grammar in comment.
48134
48135 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48136
48137         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48138         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48139         doesn't define __restrict_arr.
48140
48141 2000-10-28  Jim Meyering  <meyering@lucent.com>
48142
48143         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48144         (jm_PREREQ_MEMCHR): New function.
48145
48146 2000-10-28  Jim Meyering  <meyering@lucent.com>
48147
48148         * lib/memchr.c: Update from libc.
48149         Adjust for portability:
48150         [HAVE_STDLIB_H]: Include stdlib.h.
48151         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48152         Undef __memchr, too.
48153         [!weak_alias]: Define __memchr to memchr.
48154
48155         * lib/regex.c: Update from libc.
48156         * lib/regex.h: Likewise.
48157         * lib/getopt1.c: Likewise.
48158         * lib/memcmp.c: Likewise.
48159
48160         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48161         Avoid using fseek, when possible -- it's broken by design.
48162         Patch by Ulrich Drepper.
48163
48164 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48165
48166         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48167         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48168         Giving in to popular pressure to shut up the compiler with casts.
48169
48170 2000-10-26  Jim Meyering  <meyering@lucent.com>
48171
48172         * lib/strftime.c: Update from libc.
48173
48174 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48175
48176         * regex.c: More `unsigned char' -> `re_char' changes.
48177         Also change several `int' into `re_wchar_t'.
48178         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48179         (PUSH_FAILURE_POINTER): Don't cast any more.
48180         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48181         We want GCC to complain, since this piece of code makes
48182         re_match non-reentrant, which *should* be fixed.
48183         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48184         (EXTEND_BUFFER): Use RETALLOC.
48185         (SET_LIST_BIT): Don't cast.
48186         (re_wchar_t): New type.
48187         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48188         that those two functions will always properly return.
48189         (IMMEDIATE_QUIT_CHECK): Cast to void.
48190         (analyse_first): Use recursion rather than an explicit stack.
48191         (re_compile_fastmap): Can't fail anymore.
48192         (re_search_2): Don't check re_compile_fastmap for failure.
48193         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48194         Now also sets the new value (passed in a new argument).
48195         (re_match_2_internal): Use it.
48196         Also, use a new var `reg' of type size_t when looping through regs
48197         rather than reuse the inappropriate `mcnt'.
48198
48199 2000-10-25  Jim Meyering  <meyering@lucent.com>
48200
48201         * lib/obstack.c: Update from libc.
48202
48203 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48204
48205         * regex.c (regex_compile): Change the way of handling a range from
48206         a char less than 256 to a char not less than 256.
48207
48208 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48209
48210         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48211         NT-Emacs only.
48212         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48213         so that re_search functions only quit when callers expect them to.
48214
48215 2000-10-23  Jim Meyering  <meyering@lucent.com>
48216
48217         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48218         wrong.  That set_locale call must not have any side effects.
48219         From Paul Eggert.
48220
48221 2000-10-22  Jim Meyering  <meyering@lucent.com>
48222
48223         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48224         [CYCLIC]: Remove now-unused definition.
48225
48226         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48227         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48228         Suggestion from Ulrich Drepper.
48229
48230 2000-10-21  Jim Meyering  <meyering@lucent.com>
48231
48232         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48233         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48234         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48235
48236 2000-10-21  Jim Meyering  <meyering@lucent.com>
48237
48238         * lib/dirname.c (memrchr): Declare if necessary.
48239         (dir_name): Remove the restriction that there be no
48240         trailing slashes.  Now, this code skips past them, effectively
48241         ignoring them.
48242         [TEST_DIRNAME] (main): New unit tests.
48243
48244         * lib/memrchr.c: New file from GNU libc.
48245         Undef __memrchr, too.
48246         [!weak_alias]: Define __memrchr to memrchr.
48247         Guard weak_alias use with `#ifdef weak_alias'.
48248
48249 2000-10-21  Jim Meyering  <meyering@lucent.com>
48250
48251         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48252         (dir_name): Use dir_name_r.
48253         * lib/dirname.h (dir_name_r): Declare it.
48254
48255 2000-10-17  Jim Meyering  <meyering@lucent.com>
48256
48257         * lib/quote.h (PARAMS): Define and use.
48258         Reported by Akim Demaille.
48259
48260         * lib/getopt.c: Update from libc.
48261
48262 2000-10-16  Jim Meyering  <meyering@lucent.com>
48263
48264         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48265         setlocale.
48266         From Jan Fedak.
48267
48268 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48269
48270         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48271
48272 2000-09-25  Jim Meyering  <meyering@lucent.com>
48273
48274         * lib/md5.h (rol): Define (from GnuPG).
48275
48276         * lib/sha.c: Give credit (GnuPG) where due.
48277         (M): Use rol rather than open-coding it.
48278         Add a FIXME comment.
48279
48280 2000-09-21  Jim Meyering  <meyering@lucent.com>
48281
48282         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48283         Reported by Michael Stone.
48284
48285 2000-09-20  Jim Meyering  <meyering@lucent.com>
48286
48287         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48288         (noinst_HEADERS): Add sha.h.
48289         Based on code from Scott G. Miller and from GnuPG.
48290
48291 2000-09-18  Jim Meyering  <meyering@lucent.com>
48292
48293         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48294         LIBS. Otherwise, everyone ends up linking with -lelf for some
48295         configurations.
48296         Reported by Mike Stone.
48297
48298 2000-09-15  Jim Meyering  <meyering@lucent.com>
48299
48300         * lib/regex.c: Update from libc.
48301
48302 2000-09-10  Jim Meyering  <meyering@lucent.com>
48303
48304         * lib/getopt.c (_getopt_internal): Update from glibc.
48305
48306 2000-09-09  Jim Meyering  <meyering@lucent.com>
48307
48308         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48309         think it should be used as a general replacement for isascii.
48310         * lib/fnmatch.c: Likewise.
48311         * lib/mbswidth.c: Likewise
48312         * lib/regex.c: Likewise.
48313
48314         Don't use atoi.
48315         * lib/userspec.c: Include sys/param.h and limits.h.
48316         Include xstrtol.h.
48317         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48318         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48319         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48320         UID, GID.  Check range.
48321
48322 2000-09-06  Jim Meyering  <meyering@lucent.com>
48323
48324         * lib/getopt.c (_getopt_internal): Update from glibc.
48325
48326 2000-08-30  Jim Meyering  <meyering@lucent.com>
48327
48328         * lib/strftime.c: Merge in changes from GNU libc.
48329
48330 2000-08-26  Jim Meyering  <meyering@lucent.com>
48331
48332         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48333         * m4/fpending.m4: New file.
48334
48335 2000-08-26  Jim Meyering  <meyering@lucent.com>
48336
48337         * lib/closeout.c: Include "__fpending.h".
48338         (close_stdout_status): Return right away if there's nothing to flush.
48339
48340         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48341         * lib/__fpending.c: New file.
48342         * lib/__fpending.h: New file.
48343
48344 2000-08-20  Jim Meyering  <meyering@lucent.com>
48345
48346         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48347         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48348         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48349
48350 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48351
48352         Improve fileutils installation on systems where running
48353         programs (like install) can't be unlinked.
48354         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48355         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48356
48357 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48358
48359         Standardize on "memory exhausted" instead of "Memory exhausted"
48360         or "virtual memory exhausted".
48361         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48362         "virtual memory exhausted".
48363         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48364         our own message.
48365         * lib/userspec.c (parse_user_spec): Likewise.
48366         * lib/bumpalloc.h: comment fix
48367         * lib/same.c, userspec.c: Include xalloc.h.
48368
48369         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48370         not char *const and pointing to a constant array.
48371         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48372         (xrealloc): Comment fix.
48373
48374         * lib/userspec.c (parse_user_spec):
48375         Don't translate a message until just before returning,
48376         to avoid unnecessary translation.
48377
48378 2000-08-07  Jim Meyering  <meyering@lucent.com>
48379
48380         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48381         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48382         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48383         getgroups.c, gethostname.c, getopt.h, group-member.c,
48384         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48385         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48386         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48387         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48388         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48389         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48390         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48391         yesno.c: Back out Copyright date changes for each file with no change
48392         this year.  This eases coordination with other programs using the same
48393         source code modules.  From Paul Eggert.
48394
48395 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48396
48397         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48398         not char, for compatibility with glibc 2.1.3 strftime.c.
48399
48400 2000-08-03  Greg McGary  <greg@mcgary.org>
48401
48402         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48403         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48404         (EXTEND_BUFFER): Use them.
48405
48406 2000-08-01  Jim Meyering  <meyering@lucent.com>
48407
48408         * lib/dirname.c (ISSLASH): Define.
48409         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48410         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48411         both `\' and `/' may be use as path separators.
48412         Based on a patch from Prashant TR.
48413
48414 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48415
48416         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48417         slot vector a constant, since it might get modified.
48418
48419 2000-07-31  Jim Meyering  <meyering@lucent.com>
48420
48421         * lib/xmalloc.c: Use `virtual memory exhausted', not
48422         `Memory exhausted'.
48423         * lib/obstack.c (print_and_abort): Likewise.
48424
48425 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48426
48427         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48428         buffer, so that the caller can always quote one small
48429         component of a "memory exhausted" message in slot 0.
48430         From a suggestion by Jim Meyering.
48431
48432 2000-07-30  Jim Meyering  <meyering@lucent.com>
48433
48434         * lib/makepath.c (make_path): Quote the other instance, too.
48435
48436         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48437         (STATIC_BUF_SIZE): Define.
48438         (quotearg_n_options): Use only statically allocated storage when
48439         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48440         than STATIC_BUF_SIZE.
48441
48442 2000-07-29  Jim Meyering  <meyering@lucent.com>
48443
48444         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48445         * lib/dirname.c (dir_name): Likewise.
48446
48447         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48448         `/'.
48449
48450         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48451         (dir_name): Assert that there are no trailing slashes.
48452
48453 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48454
48455         * lib/mbswidth.h (mbswidth): Add a flags argument.
48456         (mbswidth): New declaration.
48457         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48458         * lib/mbswidth.c (mbswidth): Add a flags argument.
48459         (mbsnwidth): New function.
48460
48461 2000-07-24  Jim Meyering  <meyering@lucent.com>
48462
48463         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48464
48465 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48466
48467         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48468
48469 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48470
48471         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48472         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48473         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48474         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48475         invoke multibyte primitives.
48476
48477 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48478
48479         * lib/quotearg.c:
48480         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48481         so that mbstate_t is always defined.
48482
48483         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48484         be 1 in at least one GCC installation, and this configuration
48485         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48486         performance on hosts that have mbrtowc but have only unibyte
48487         locales, but I assume these hosts are rare.
48488
48489 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48490
48491         * lib/mbswidth.c (_XOPEN_SOURCE):
48492         Don't define; this causes problems on Solaris 7.
48493         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48494
48495 2000-07-23  Jim Meyering  <meyering@lucent.com>
48496
48497         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48498         too: getgrgid, getpwuid, getuid.
48499
48500 2000-07-23  Jim Meyering  <meyering@lucent.com>
48501
48502         * lib/basename.c (base_name): Add an assertion.
48503
48504 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48505
48506         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48507         shadow its mbsinit function.
48508
48509 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48510
48511         * lib/mbswidth.h: New file.
48512         * lib/mbswidth.c: New file.
48513         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48514         (noinst_HEADERS): Add mbswidth.h.
48515
48516 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48517
48518         * lib/config.charset: Add support for FreeBSD. Improve support for
48519         HP-UX and IRIX 6.
48520
48521 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48522
48523         * m4/mbswidth.m4: New file.
48524         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48525
48526 2000-07-15  Jim Meyering  <meyering@lucent.com>
48527
48528         * lib/makepath.c: Include quote.h.
48529         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48530         corresponding argument in a `quote (...)' call.
48531         Give better diagnostics.
48532
48533         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48534         (noinst_HEADERS): Add quote.h.
48535
48536         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48537         from tar's src/misc.c.
48538         * lib/quote.h: New file.  Prototypes for same.
48539
48540 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48541
48542         From a suggestion by Bruno Haible.
48543         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48544         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48545         to decide whether to define the BeOS workaround macro;
48546         this adjusts to the change to AC_MBSTATE_T.
48547
48548 2000-07-14  Jim Meyering  <meyering@lucent.com>
48549
48550         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48551         jm_AC_TYPE_UINTMAX_T.
48552
48553 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48554
48555         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48556
48557         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48558         quotearg_buffer_restyled): Add support for
48559         clocale_quoting_style.  Undo previous change to
48560         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48561         and "{RIGHT QUOTATION MARK}" msgids.
48562
48563 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48564
48565         From a suggestion by Bruno Haible.
48566         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48567         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48568         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48569         and mbstate_t, to a single-part test that simply defines mbstate_t.
48570         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48571         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48572
48573 2000-07-10  Jim Meyering  <meyering@lucent.com>
48574
48575         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48576
48577         * m4/gnu-source.m4: Output to confdefs.h directly.
48578         Suggestion from Akim Demaille.
48579
48580 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48581
48582         The old behavior of quoting `like this' doesn't look good with
48583         newer, ISO-style fonts.  See:
48584         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48585
48586         Instead, quote "like this" by default.  Let the translator
48587         tailor the locale-specific quoting behavior by providing
48588         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48589
48590         * lib/quotearg.c (N_): New macro.
48591         (gettext_default): New function.
48592         (quotearg_buffer_restyled): Use
48593         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48594         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48595
48596 2000-07-09  Jim Meyering  <meyering@lucent.com>
48597
48598         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48599         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48600
48601         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48603
48604 2000-07-09  Jim Meyering  <meyering@lucent.com>
48605
48606         * lib/Most files: Update copyright dates to include 2000.
48607
48608 2000-07-08  Jim Meyering  <meyering@lucent.com>
48609
48610         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48611         if not defined.
48612         (xgethostname): Remove now-unnecessary #ifdef.
48613         Move declaration of `err' into loop where it's used.
48614
48615 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48616         and Bruno Haible  <haible@clisp.cons.org>
48617
48618         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48619         only if the test for an object-type mbstate_t fails.  This
48620         prevents us from mistakenly reporting that mbstate_t is a
48621         system object type after we "#define mbstate_t int" to work
48622         around its lack.
48623
48624 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48625         and Bruno Haible  <haible@clisp.cons.org>
48626
48627         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48628
48629 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48630
48631         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48632         to strerror_r.
48633         Include <ctype.h> for use of isalpha.
48634
48635 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48636
48637         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48638         by allocating a larger buffer. Test the gethostname return value for
48639         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
48640         returns an error and ENAMETOOLONG isn't defined.
48641
48642 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48643
48644         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48645         dimension.
48646
48647 2000-07-04  Jim Meyering  <meyering@lucent.com>
48648
48649         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48650         of the deprecated AC_CHECKING.
48651
48652 2000-07-04  Jim Meyering  <meyering@lucent.com>
48653
48654         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48655         Reported by Bruno Haible.
48656
48657 2000-07-04  Jim Meyering  <meyering@lucent.com>
48658
48659         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48660         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
48661         lacks mbrtowc.
48662
48663 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48664
48665         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48666         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48667
48668 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48669         and Bruno Haible  <haible@clisp.cons.org>
48670
48671         * lib/quotearg.c (mbrtowc):
48672         Assign to *pwc, and return 1 only if result is nonzero.
48673         (iswprint): Use ISPRINT when substituting our own mbrtowc.
48674
48675 2000-07-03  Jim Meyering  <meyering@lucent.com>
48676
48677         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48678
48679 2000-07-03  Jim Meyering  <meyering@lucent.com>
48680
48681         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48682         This is necessary to get a definition of e.g., UTMP_FILE on
48683         HP-UX 10.20.
48684         From Bob Proulx.
48685
48686 2000-07-02  Jim Meyering  <meyering@lucent.com>
48687
48688         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48689
48690         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48691         AC_LIBOBJ(function_name).
48692         * m4/chown.m4: Likewise.
48693         * m4/fnmatch.m4: Likewise.
48694         * m4/ftruncate.m4: Likewise.
48695         * m4/getgroups.m4: Likewise.
48696         * m4/getline.m4: Likewise.
48697         * m4/group-member.m4: Likewise.
48698         * m4/jm-macros.m4: Likewise.
48699         * m4/lstat.m4: Likewise.
48700         * m4/malloc.m4: Likewise.
48701         * m4/memcmp.m4: Likewise.
48702         * m4/nanosleep.m4: Likewise.
48703         * m4/putenv.m4: Likewise.
48704         * m4/realloc.m4: Likewise.
48705         * m4/regex.m4: Likewise.
48706         * m4/stat.m4: Likewise.
48707         * m4/strftime.m4: Likewise.
48708
48709 2000-07-02  Jim Meyering  <meyering@lucent.com>
48710
48711         * lib/quotearg.c (mbstate_t): Don't define here.
48712
48713 2000-07-02  Jim Meyering  <meyering@lucent.com>
48714
48715         * lib/nanosleep.c (SIGCONT): Define if not already defined.
48716
48717 2000-07-01  Jim Meyering  <meyering@lucent.com>
48718
48719         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48720
48721 2000-07-01  Jim Meyering  <meyering@lucent.com>
48722
48723         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48724         problem.
48725
48726 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48727
48728         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48729         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48730
48731 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48732
48733         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48734         per change in ../m4/ls-mntd-fs.m4.
48735         (read_filesystem_list): Ignore symbolic links.
48736
48737 2000-06-29  Jim Meyering  <meyering@lucent.com>
48738
48739         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48740         for declaration of strcmp.
48741
48742         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48743
48744         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
48745         Avoid warning by casting result to `char *' to remove `const'.
48746
48747 2000-06-28  Jim Meyering  <meyering@lucent.com>
48748
48749         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
48750         included by quotearg.c, for which we perform this test.  From
48751         Bruno Haible.
48752
48753 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48754
48755         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
48756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
48757         <utmpx.h> exists, put readutmp.o into LIBOBJS.
48758
48759 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48760
48761         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
48762
48763 2000-06-26  Paul Eggert  <eggert@twinsun.com>
48764
48765         savedir now sets errno on failure and invokes xmalloc to get memory.
48766         Fix a couple of other minor bugs while we're at it.
48767
48768         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
48769         (NAMLEN): Remove macro.
48770         (malloc, realloc): Remove decls.
48771         (stpcpy): Likewise.
48772         ("xalloc.h"): Include.
48773         (NAME_SIZE_DEFAULT): New macro.
48774         (savedir): Use xmalloc / xrealloc to allocate memory.
48775         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
48776         Skip "" directory entries.
48777         Use strlen to calculate directory entry length, since the old method
48778         is rarely used these days and isn't worth supporting.
48779         Don't use a pointer after freeing it.
48780         Check for integer overflow when calculating allocation size.
48781         Use memcpy to copy entries, instead of stpcpy.
48782         Set errno properly when returning NULL.
48783         Check for readdir error.
48784
48785 2000-06-26  Jim Meyering  <meyering@lucent.com>
48786
48787         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
48788
48789 2000-06-25  Jim Meyering  <meyering@lucent.com>
48790
48791         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
48792         Linux header bug when _XOPEN_SOURCE is defined to 500.
48793
48794 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48795
48796         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
48797         deficiency.
48798
48799 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48800
48801         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
48802         Include xalloc.h.
48803         Don't include <stdlib.h>.  Don't declare malloc, realloc.
48804
48805 2000-06-24  Jim Meyering  <meyering@lucent.com>
48806
48807         * m4/strerror_r.m4: Revive this file -- to try out an experimental
48808         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
48809         for which strerror does return char*, but which lacks a conveniently
48810         accessible declaration of the function.  If the compile-test says
48811         strerror_r doesn't work, then resort to a `run'-test that works on
48812         BeOS and segfaults on DEC Unix.
48813
48814 2000-06-24  Jim Meyering  <meyering@lucent.com>
48815
48816         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
48817
48818 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48819
48820         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
48821         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
48822
48823 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48824
48825         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
48826         (mbrtowc, mbstate_t): Define substitutes if
48827         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
48828         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
48829         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
48830
48831 2000-06-23  Jim Meyering  <meyering@lucent.com>
48832
48833         * m4/afs.m4: Add missing AC_MSG_RESULT.
48834         Reported by Bruno Haible.
48835
48836         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
48837         Suggestion from Bruno Haible.
48838
48839 2000-06-23  Jim Meyering  <meyering@lucent.com>
48840
48841         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
48842
48843 2000-06-21  Jim Meyering  <meyering@lucent.com>
48844
48845         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
48846
48847 2000-06-21  Jim Meyering  <meyering@lucent.com>
48848
48849         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
48850         (noinst_HEADERS): Add getstr.h.
48851
48852         * lib/getline.c (getstr): Move into a separate file.
48853         * lib/getstr.c (getstr): New file, extracted from getline.c, with
48854         the following changes: new parameter, delim2; both delim[12]
48855         parameters have type `int', not `char'.  The latter would lose
48856         with 8-bit delimiters.
48857         * lib/getstr.h: New file.
48858
48859 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48860
48861         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
48862         than 1024, return a memory chunk of least possible size, instead
48863         of size PATH_MAX + 2. In the loop, increment the size proportionally.
48864         Use free/xmalloc instead of xrealloc to avoid copying for very long
48865         paths.
48866
48867 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48868
48869         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
48870         the empty string.
48871
48872 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48873
48874         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
48875         address, not strdup.  Include <stdlib.h> and don't declare free().
48876
48877 2000-06-19  Jim Meyering  <meyering@lucent.com>
48878
48879         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
48880
48881 2000-06-18  Jim Meyering  <meyering@lucent.com>
48882
48883         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
48884
48885         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
48886         `checking whether...' message to be consistent with that of the
48887         lstat test.
48888
48889 2000-06-18  Jim Meyering  <meyering@lucent.com>
48890
48891         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
48892         Besides, these days every porting target provides a mkdir function.
48893
48894         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
48895         needed. (this snippet comes from src/system.h).
48896
48897 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
48898
48899         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
48900
48901 2000-06-15  Paul Eggert  <eggert@twinsun.com>
48902
48903         * lib/human.c (adjust_value): New function.
48904         (human_readable_inexact): Apply rounding style even when
48905         printing approximate values.
48906
48907 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48908
48909         * lib/human.c (human_readable_inexact): Allow an input block
48910         size that is not a multiple of the output block size, and vice versa.
48911         Reported by Piergiorgio Sartor.
48912
48913 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48914
48915         * lib/getdate.y (get_date): Apply relative times after time
48916         zone indicator, not before.  Reported by Todd A. Jacobs.
48917
48918 2000-06-13  Jim Meyering  <meyering@lucent.com>
48919
48920         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
48921
48922         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
48923
48924 2000-06-12  Paul Eggert  <eggert@twinsun.com>
48925
48926         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
48927
48928 2000-06-12  Jim Meyering  <meyering@lucent.com>
48929
48930         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
48931         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
48932         optional argument.
48933         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
48934         the optional argument, `lib'.
48935
48936 2000-06-08  Jim Meyering  <meyering@lucent.com>
48937
48938         * m4/largefile.m4: Remove file (now that it's part of autoconf).
48939
48940 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48941
48942         Rewrite largefile configuration so that we don't need to run
48943         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
48944         AC_CANONICAL_HOST in configure.in -- jmm]
48945
48946         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
48947         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
48948         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
48949         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
48950         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
48951         All uses changed.
48952         Instead of inspecting the output of getconf, try to compile the
48953         test program without and with the macro definition.
48954         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
48955         for getconf.  Instead, check for the needed flags by compiling
48956         test programs.
48957
48958 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48959
48960         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
48961
48962 2000-06-04  Jim Meyering  <meyering@lucent.com>
48963
48964         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
48965         SunOS 4.1.4 for which gid_t is an unsigned type.
48966
48967 2000-06-03  Jim Meyering  <meyering@lucent.com>
48968
48969         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
48970         now that autoconf requires that.
48971
48972         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
48973         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
48974         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
48975
48976 2000-06-03  Jim Meyering  <meyering@lucent.com>
48977
48978         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
48979
48980 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48981
48982         * m4/glibc21.m4: New file.
48983         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
48984
48985 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
48986
48987         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
48988         newer, don't install charset.alias.
48989         * lib/config.charset: Change the Linux/glibc rules so they become empty
48990         on glibc-2.1 or newer.
48991
48992 2000-06-02  Jim Meyering  <meyering@lucent.com>
48993
48994         * lib/mountlist.c: Back out last change.  Instead, do this...
48995         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
48996         me_dummy member using the same `ignore'-testing code.
48997         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
48998         fs_type strings.
48999         From Mark D. Roth.
49000
49001 2000-05-29  Jim Meyering  <meyering@lucent.com>
49002
49003         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49004         mounts with the `ignore' attribute.  Based on a patch from
49005         Mark D. Roth.
49006
49007 2000-05-28  Jim Meyering  <meyering@lucent.com>
49008
49009         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49010         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49011         * m4/stat.m4: Likewise.
49012         * m4/lstat.m4: Likewise.
49013         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49014
49015         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49016         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49017
49018 2000-05-26  Jim Meyering  <meyering@lucent.com>
49019
49020         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49021
49022 2000-05-24  Jim Meyering  <meyering@lucent.com>
49023
49024         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49025         autoconf requires that.
49026         * m4/lib-check.m4: Likewise.
49027         * m4/jm-macros.m4: Likewise.
49028         * m4/strftime.m4: Likewise.
49029
49030         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49031         AC_CHECK_DECLS, now that autoconf requires that.
49032
49033 2000-05-22  Jim Meyering  <meyering@lucent.com>
49034
49035         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49036         * m4/lstat.m4: Likewise.
49037
49038 2000-05-22  Jim Meyering  <meyering@lucent.com>
49039
49040         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49041
49042 2000-05-20  Jim Meyering  <meyering@lucent.com>
49043
49044         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49045         (jm_PREREQ): Use it.
49046
49047 2000-05-18  Jim Meyering  <meyering@lucent.com>
49048
49049         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49050         back, too, since it may have been modified by allocate_entry.
49051         (hash_delete): Rewrite to use neither the assignment operator
49052         nor the comma operator in an if-expression.
49053
49054 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49055
49056         * lib/closeout.c:
49057         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49058         Remove; no longer needed.
49059         "quotearg.h": Add include.
49060         (file_name): Do not bother to explicitly initialize to NULL; it's less
49061         efficient on some hosts.
49062         (close_stdout_status): Remove test as to whether stdout was already
49063         closed; it breaks for the case "echo x | sort >&-".
49064         Quote file name colons.
49065         Do not assume that _("write error") lacks format strings.
49066
49067 2000-05-15  Jim Meyering  <meyering@lucent.com>
49068
49069         * lib/version-etc.c (version_etc_copyright): Update the copyright
49070         string used in all --version output.
49071
49072 2000-05-14  Jim Meyering  <meyering@lucent.com>
49073
49074         * lib/closeout.c (close_stdout_set_file_name): New function.
49075         (close_stdout_status): Use new file-scoped global.
49076         Return right away if fstat says the stdout file descriptor is invalid.
49077         * lib/closeout.h (close_stdout_set_file_name): Declare.
49078
49079 2000-05-10  Jim Meyering  <meyering@lucent.com>
49080
49081         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49082         (close_stdout_set_status): New function.
49083         * lib/closeout.h (close_stdout_set_status): Declare.
49084
49085 2000-05-09  Jim Meyering  <meyering@lucent.com>
49086
49087         * m4/gettext.m4: Rename this...
49088         * m4/libintl.m4: ...to this.
49089
49090 2000-05-08  Jim Meyering  <meyering@lucent.com>
49091
49092         * lib/long-options.c: Don't include closeout.h.
49093         (parse_long_options): Don't call close_stdout for --version.
49094
49095 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49096
49097         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49098         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49099         2.1.3 bug.  This avoids a clash when files like regex.c define
49100         _GNU_SOURCE.
49101
49102 2000-05-06  Jim Meyering  <meyering@lucent.com>
49103
49104         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49105         (AC_REPLACE_FUNCS): Add strnlen.
49106
49107         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49108         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49109
49110         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49111         AC_SEARCH_LIBS call for nanosleep.
49112         (LIB_NANOSLEEP): Set and AC_SUBST.
49113
49114 2000-05-06  Jim Meyering  <meyering@lucent.com>
49115
49116         * lib/strnlen.c: Undefine __strnlen and strnlen.
49117         [!weak_alias]: Define __strnlen to strnlen.
49118
49119         * lib/atexit.c: New file, from libiberty.
49120
49121 2000-05-06  Jim Meyering  <meyering@lucent.com>
49122
49123         * lib/closeout.c (close_stdout_status): Also check for errors on the
49124         stderr stream.
49125
49126 2000-05-05  Jim Meyering  <meyering@lucent.com>
49127
49128         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49129         AC_SEARCH_LIBS call for clock_gettime.
49130         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49131
49132         * m4/search-libs.m4: Update from autoconf.
49133
49134         su doesn't work on Solaris 2.6.
49135         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49136         <shadow.h>.  Reported by Dragos Harabor.
49137
49138 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49139
49140         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49141         memcpy instead of xmalloc, xrealloc, path_concat.
49142         (locale_charset): Treat empty environment variables as absent.
49143         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49144
49145 2000-05-04  Jim Meyering  <meyering@lucent.com>
49146
49147         * lib/getopt.c: Update from glibc.
49148         * lib/obstack.c: Likewise.
49149         * lib/obstack.h: Likewise.
49150         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49151         file
49152
49153         * lib/regex.h: Likewise.
49154         * lib/strndup.c: Likewise.
49155         * lib/strnlen.c: New file, from glibc.
49156
49157 2000-05-03  Jim Meyering  <meyering@lucent.com>
49158
49159         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49160
49161 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49162
49163         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49164         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49165         compile-time test, rather than inspecting host and OS, to
49166         decide whether to define _LARGEFILE_SOURCE.
49167
49168 2000-05-01  Jim Meyering  <meyering@lucent.com>
49169
49170         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49171
49172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49173         Based on a patch from Bruno Haible.
49174
49175 2000-05-01  Jim Meyering  <meyering@lucent.com>
49176
49177         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49178
49179 2000-04-29  Jim Meyering  <meyering@lucent.com>
49180
49181         * lib/path-concat.c: Declare strdup only if it's not defined.
49182         * lib/canon-host.c: Likewise.
49183
49184 2000-04-28  Jim Meyering  <meyering@lucent.com>
49185
49186         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49187         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49188         is included first, then limits.h is included by locale.h by libintl.h.
49189         From John David Anglin.
49190
49191 2000-04-25  Jim Meyering  <meyering@lucent.com>
49192
49193         * lib/makepath.c (S_IRWXUGO): Define.
49194         (make_path): Always perform explicit chmod if MODE specifies any
49195         of the `special' permission bits.  Prompted by a bug report against
49196         install from Mate Wierdl and Joost van Baal.
49197
49198 2000-04-18  Jim Meyering  <meyering@lucent.com>
49199
49200         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49201         (jm_PREREQ): Use it.
49202
49203 2000-04-18  Jim Meyering  <meyering@lucent.com>
49204
49205         * lib/README: New file.
49206
49207         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49208         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49209
49210 2000-04-17  Jim Meyering  <meyering@lucent.com>
49211
49212         Get it right :-)
49213         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49214         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49215         Suggestion from Akim Demaille.
49216
49217 2000-04-17  Jim Meyering  <meyering@lucent.com>
49218
49219         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49220         the definition of it to rpl_strftime also defined-away the system's
49221         declaration.
49222
49223 2000-04-15  Jim Meyering  <meyering@lucent.com>
49224
49225         Use `C' to denote so-called `contiguous' files, the same way
49226         that tar does.
49227         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49228         (ftypelet): Use S_ISCTG.
49229         From Michael Deutschmann.
49230
49231 2000-04-14  Jim Meyering  <meyering@lucent.com>
49232
49233         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49234         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49235         clobbered.
49236
49237 2000-04-14  Jim Meyering  <meyering@lucent.com>
49238
49239         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49240
49241 2000-04-13  Jim Meyering  <meyering@lucent.com>
49242
49243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49244         AH_VERBATIM to insert required #ifndef into config.h.in.
49245         Suggestion from Akim Demaille.
49246
49247 2000-04-12  Jim Meyering  <meyering@lucent.com>
49248
49249         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49250         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49251         Christian Krackowizer.
49252
49253         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49254         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49255         (AC_SYS_LARGEFILE): Require.
49256         (AM_C_PROTOTYPES): Require.
49257
49258 2000-04-08  Jim Meyering  <meyering@lucent.com>
49259
49260         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49261         names don't conflict.  Reported by Eli Zaretskii.
49262
49263 2000-04-07  Jim Meyering  <meyering@lucent.com>
49264
49265         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49266         sys/types.h, to work around system header problems on AIX 3.2.5.
49267         From Bruno Haible.
49268
49269 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49270
49271         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49272         bug.  Deal with the different error behavior of Irix iconv.
49273
49274 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49275
49276         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49277         IRIX if the installer said otherwise.
49278
49279 2000-04-05  Jim Meyering  <meyering@lucent.com>
49280
49281         Portability tweaks required for ultrix4.3.
49282         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49283         (jm_CHECK_DECLS): Add getutent to the list of functions.
49284         (_jm_DECL_HEADERS): Add utmpx.h.
49285         From John David Anglin.
49286
49287         * m4/strftime.m4: Back out the 2000-04-02 change.
49288         Instead of that change, simply undefine putenv in the test program.
49289
49290 2000-04-05  Jim Meyering  <meyering@lucent.com>
49291
49292         Portability tweaks required for ultrix4.3.
49293         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49294         getutent.
49295         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49296         * lib/canon-host.c: Declare strdup.
49297         * lib/path-concat.c: Likewise.
49298         From John David Anglin.
49299
49300 2000-04-04  Jim Meyering  <meyering@lucent.com>
49301
49302         Be more DOS 8.3-friendly.
49303         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49304         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49305         * lib/Makefile.am: Reflect renaming.
49306         Reported by Eli Zaretskii.
49307
49308         Use a temporary file name that won't clash with `charset.alias'
49309         in the DOS 8.3 name space.
49310         * lib/Makefile.am (charset_tmp): Define.
49311         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49312         (uninstall-local): Likewise.
49313         Reported by Eli Zaretskii.
49314
49315 2000-04-03  Jim Meyering  <meyering@lucent.com>
49316
49317         * m4/gettext.m4: Fix typo in comment.
49318
49319         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49320         textutils/configure.in).  Suggestion from Paul Eggert.
49321         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49322
49323 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49324
49325         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49326         variable in the shell rather than using putenv, which isn't
49327         portable.  This avoids the configure-time inter-test dependency
49328         on the potentially-renamed putenv function.
49329
49330 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49331
49332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49333         before checking struct stat.st_blksize, so that
49334         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49335
49336 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49337
49338         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49339         since strftime.c uses HAVE_STRFTIME to decide whether to use
49340         the underlying strftime.
49341
49342 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49343
49344         * lib/time/strftime.c (my_strftime): Make sure we call the system
49345         strftime, not ourselves, when invoking the underlying strftime.
49346
49347 2000-03-24  Jim Meyering  <meyering@lucent.com>
49348
49349         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49350         (charset_alias): Define.
49351         (install-exec-local): Factor out common code.
49352         (uninstall-local): Split lines longer than 80.
49353         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49354         (SUFFIXES): Define.
49355         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49356         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49357
49358 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49359
49360         * lib/config.charset: Output a line containing "Packages using this
49361         file".
49362         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49363         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49364         ref-del.sed): New rules.
49365
49366 2000-03-17  Jim Meyering  <meyering@lucent.com>
49367
49368         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49369         Otherwise, include <strings.h>
49370
49371 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49372
49373         * lib/unicodeio.c (utf8_wctomb): New function.
49374         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49375         format instead of in UCS-4 with platform dependent endianness.
49376
49377 2000-03-10  Jim Meyering  <meyering@lucent.com>
49378
49379         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49380         From Marco Franzen.
49381
49382 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49383
49384         * lib/savedir.c (savedir): Work even if directory size is
49385         negative; this can happen with some screwy NFS configurations.
49386
49387 2000-03-06  Jim Meyering  <meyering@lucent.com>
49388
49389         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49390         if it's NULL (because we ran out of memory).  From Bruno Haible.
49391
49392 2000-03-05  Jim Meyering  <meyering@lucent.com>
49393
49394         * lib/localcharset.c ("path-concat.h"): Include.
49395         (get_charset_aliases): Use path_concat instead of ANSI string
49396         concatenation.
49397
49398         * lib/unicodeio.h (PARAMS): Define.
49399         Use it to guard prototype.
49400
49401 2000-03-04  Jim Meyering  <meyering@lucent.com>
49402
49403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49404         for lib/localcharset.c.
49405
49406 2000-03-04  Jim Meyering  <meyering@lucent.com>
49407
49408         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49409         installing into it.
49410         (uninstall-local): Uncomment this rule so `make distcheck' works
49411         once again.
49412
49413         * lib/unicodeio.c (<errno.h>): Include it.
49414         (errno): Declare if not defined.
49415
49416         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49417
49418         * lib/config.charset: New version, incorporating remarks from a linux
49419         i18n mailing list.  From Bruno Haible.
49420
49421 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49422
49423         * m4/codeset.m4: New file.
49424         * m4/iconv.m4: New file.
49425         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49426
49427 2000-03-03  Jim Meyering  <meyering@lucent.com>
49428
49429         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49430
49431 2000-03-02  Jim Meyering  <meyering@lucent.com>
49432
49433         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49434         the messages come out on separate lines.
49435
49436         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49437         rather than jm_CHECK_DECLARATIONS.
49438         * m4/decl.m4: Remove now-unused file.
49439
49440         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49441         geteuid.
49442
49443 2000-03-02  Jim Meyering  <meyering@lucent.com>
49444
49445         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49446
49447 2000-03-01  Jim Meyering  <meyering@lucent.com>
49448
49449         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49450         * lib/unicodeio.c: Likewise.
49451
49452 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49453
49454         * lib/config.charset: New file.
49455         * lib/localcharset.c: New file.
49456         * lib/unicodeio.h, lib/unicodeio.c: New files.
49457         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49458         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49459         (noinst_HEADERS): Add unicodeio.h.
49460         (all-local, install-exec-local, charset.alias): New targets.
49461
49462 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49463
49464         * lib/quotearg.c (ALERT_CHAR): New macro.
49465         (quotearg_buffer_restyled): Use it.
49466
49467 2000-02-27  Jim Meyering  <meyering@lucent.com>
49468
49469         * m4/check-decl.m4: Add getenv to the list.
49470
49471 2000-02-27  Jim Meyering  <meyering@lucent.com>
49472
49473         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49474         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49475
49476         * lib/backupfile.c: Guard inclusion of stdlib.h with
49477         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49478         Declare malloc if needed.
49479
49480         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49481         `#ifndef HAVE_DECL..'
49482         now that autoconf always defines the HAVE_DECL_ symbols.
49483         * lib/human.c: Likewise.
49484         * lib/same.c: Likewise.
49485         * lib/strtoumax.c: Likewise.
49486
49487         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49488         declaration check was not run.
49489         * lib/hash.c: Likewise.
49490         * lib/human.c: Likewise.
49491         * lib/same.c: Likewise.
49492         * lib/strtoumax.c: Likewise.
49493
49494         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49495         `.', then first look up the entire `.'-containing string as a login
49496         name.
49497
49498 2000-02-23  Jim Meyering  <meyering@lucent.com>
49499
49500         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49501         in place of my hack.
49502
49503 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49504
49505         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49506         (textint): New typedef.
49507         (parser_control): Member year changed from int to textint.
49508         All uses changed.
49509         (YYSTYPE): Removed; replaced by %union with int and textint members.
49510         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49511         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49512         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49513         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49514         (date, number, to_year): Use width of number in digits, not its value,
49515         to determine whether it's a 2-digit year, or a 2-digit time.
49516         (yylex): Store number of digits of numeric tokens.
49517         Reported by John Kendall.
49518
49519         (parser_control): Changed from struct parser_control to typedef (for
49520         consistency).  All uses changed.
49521
49522         (tID): Removed; not used.
49523         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49524
49525 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49526
49527         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49528         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49529
49530 2000-02-12  Jim Meyering  <meyering@lucent.com>
49531
49532         * lib/userspec.c (ISDIGIT): Define it.
49533         (isdigit): Remove definition.
49534         (is_number): Use ISDIGIT, not isdigit.
49535         <libintl.h>: Include.
49536         (_ and N_): Define.
49537         (parse_user_spec): Mark translatable strings.
49538
49539 2000-02-10  Jim Meyering  <meyering@lucent.com>
49540
49541         With these changes, nanosleep.[ch] are finally enough like the other
49542         lib/* replacement files to compile on a few more losing systems.
49543
49544         * lib/nanosleep.h: Don't include config.h.
49545         Remove prototype from declaration of nanosleep.
49546         (PARAMS): Remove now-unneeded definition.
49547         * lib/nanosleep.c: #undef nanosleep.
49548         (rpl_nanosleep): Rename from nanosleep.
49549
49550 2000-02-10  Jim Meyering  <meyering@lucent.com>
49551
49552         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49553         gnu_nanosleep to rpl_nanosleep.
49554
49555 2000-02-09  Jim Meyering  <meyering@lucent.com>
49556
49557         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49558         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49559
49560 2000-02-08  Akim Demaille  <akim@epita.fr>
49561
49562         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49563         `[' and `]' and remove uses of `changequote'.
49564         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49565         (AC_SYS_LARGEFILE): Likewise.
49566         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49567         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49568         of changequote.
49569         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49570         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49571         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49572         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49573
49574 2000-02-05  Jim Meyering  <meyering@lucent.com>
49575
49576         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49577         Remove explicit use of AC_HEADER_TIME.  It is required by
49578         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49579         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49580         in autoconf whereby the expansion of the latter ended up preceding
49581         the expansion of its prerequisite, AC_HEADER_TIME.
49582         Reported by Volker Borchert.
49583
49584 2000-02-03  Jim Meyering  <meyering@lucent.com>
49585
49586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49587
49588 2000-02-03  Jim Meyering  <meyering@lucent.com>
49589
49590         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49591         rather than with `#if HAVE_UTMPNAME'.
49592
49593 2000-02-02  Jim Meyering  <meyering@lucent.com>
49594
49595         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49596         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49597         Reported by Eli Zaretskii.
49598
49599 2000-02-01  Jim Meyering  <meyering@lucent.com>
49600
49601         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49602
49603 2000-01-31  Jim Meyering  <meyering@lucent.com>
49604
49605         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49606         functions.  Add the time.h and sys/time.h headers along with the
49607         AC_REQUIRE'ment of AC_HEADER_TIME.
49608
49609 2000-01-31  Jim Meyering  <meyering@lucent.com>
49610
49611         * lib/nanosleep.h (nanosleep): Guard declaration with
49612         `#if ! HAVE_DECL_NANOSLEEP'.
49613         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49614         the declaration in that vendor's sys/timers.h.
49615         Reported by Christian Krackowizer.
49616
49617         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49618         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49619         (ISPRINT): Likewise.
49620         Reported by Tom Tromey.
49621
49622 2000-01-30  Jim Meyering  <meyering@lucent.com>
49623
49624         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49625
49626         * m4/prereq.m4 (utmp_includes): Define.
49627         Check for ut_user and ut_name members in both struct utmpx
49628         and struct utmp.
49629
49630 2000-01-30  Jim Meyering  <meyering@lucent.com>
49631
49632         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49633         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
49634         header files where only utmpx.ut_user is declared.
49635
49636         * lib/readutmp.h (UT_USER): Define.
49637
49638 2000-01-29  Jim Meyering  <meyering@lucent.com>
49639
49640         * m4/lib-check.m4: New file containing library-related checks from
49641         fileutils and sh-utils (textutils had none).
49642
49643 2000-01-28  Jim Meyering  <meyering@lucent.com>
49644
49645         * m4/perl.m4: Change format of warning message to look more like that
49646         from the missing script.  Suggestion from François Pinard.
49647
49648 2000-01-25  Jim Meyering  <meyering@lucent.com>
49649
49650         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49651         well as time.h in the compile check.
49652         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49653         Fix typo in cross-compiling case: s/yes/no/.
49654
49655 2000-01-23  Jim Meyering  <meyering@lucent.com>
49656
49657         * m4/jm-macros.m4: Move df-related tests here from
49658         fileutils/configure.in
49659
49660         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49661         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49662
49663         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
49664         s/space/ac_fsusage_space/.
49665         (jm_FILE_SYSTEM_USAGE): Take two parameters.
49666
49667         * m4/ftruncate.m4: New file (derived from part of
49668         fileutils/configure.in).
49669         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49670         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49671
49672         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49673         AC_SUBST these here, rather than just in sh-util/configure.in, so
49674         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49675         all the same.
49676         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49677         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49678         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49679         (AC_SUBST(POW_LIBM)): Likewise.
49680         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49681
49682 2000-01-23  Jim Meyering  <meyering@lucent.com>
49683
49684         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49685         obstack.c.
49686
49687 2000-01-22  Jim Meyering  <meyering@lucent.com>
49688
49689         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49690
49691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49692
49693         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49694         configure.in
49695         (AC_CHECK_HEADERS): Likewise for sh-utils.
49696         (AC_CHECK_HEADERS): Likewise for textutils.
49697         Merge the three lists of headers.
49698
49699         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
49700         from fileutils' configure.in.
49701
49702         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49703         code. Moved tests into their own function (_jm_DECL_HEADERS) in
49704         check-decl.m4.
49705
49706         * m4/check-decl.m4: Use #if rather than #ifdef.
49707         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49708         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49709         (_jm_DECL_HEADERS): Define new function.
49710         (jm_CHECK_DECLARATIONS): Require it.
49711
49712 2000-01-22  Jim Meyering  <meyering@lucent.com>
49713
49714         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49715         [! HAVE_DECL_STRTOULL]: Declare strtoull.
49716         Required for some AIX systems.  Reported by Christian Krackowizer.
49717         [TESTING] (main): New function.
49718
49719         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
49720         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49721         letters.
49722
49723         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49724         iswprint.
49725
49726         * lib/strverscmp.c (ISDIGIT): Define.
49727         (strverscmp): Use ISDIGIT, not isdigit.
49728
49729 2000-01-19  Jim Meyering  <meyering@lucent.com>
49730
49731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49732         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
49733         defines `struct timespec' in <sys/time.h>
49734
49735         * m4/c-bs-a.m4: Remove uses of changequote altogether.
49736         Thanks to Akim for explaining.
49737
49738 2000-01-17  Paul Eggert  <eggert@twinsun.com>
49739
49740         * lib/nanosleep.c (nanosleep):
49741         Don't use SA_INTERRUPT to decide whether to call sigaction, as
49742         POSIX.1 doesn't require SA_INTERRUPT and some systems
49743         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
49744         it's been part of POSIX.1 since day 1 (in 1988).
49745
49746 2000-01-17  Jim Meyering  <meyering@lucent.com>
49747
49748         * lib/interlock: Remove unused file.  Reported by François Pinard.
49749
49750 2000-01-16  Paul Eggert  <eggert@twinsun.com>
49751
49752         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
49753         alert, backslash, formfeed, and vertical tab unnecessarily in
49754         shell quoting style.
49755
49756 2000-01-16  Jim Meyering  <meyering@lucent.com>
49757
49758         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
49759         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
49760         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
49761         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
49762
49763 2000-01-16  Jim Meyering  <meyering@lucent.com>
49764
49765         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
49766         because the latter didn't work.
49767
49768 2000-01-15  Jim Meyering  <meyering@lucent.com>
49769
49770         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
49771         (AC_REPLACE_FUNCS): Add memcpy and memset.
49772         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
49773         Add strpbrk.
49774         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
49775
49776 2000-01-12  Jim Meyering  <meyering@lucent.com>
49777
49778         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
49779         (jm_PREREQ): Use it.
49780         (jm_PREREQ_READUTMP): New macro.
49781         (jm_PREREQ): Use it.
49782
49783 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49784
49785         Quote multibyte characters correctly.
49786         * m4/c-bs-a.m4: New file.
49787         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
49788         (jm_PREREQ): Use it.
49789
49790 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49791
49792         * m4/uintmax_t.m4: Port to autoconf 2.13.
49793
49794 2000-01-08  Jim Meyering  <meyering@ascend.com>
49795
49796         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
49797         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
49798
49799 2000-01-04  Jim Meyering  <meyering@ascend.com>
49800
49801         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
49802         jm_STRUCT_DIRENT_D_TYPE.
49803         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
49804         jm_STRUCT_DIRENT_D_INO.
49805         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
49806         jm_STRUCT_UTIMBUF.
49807         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
49808         renamings.
49809         * m4/utime.m4: Likewise.
49810
49811         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
49812         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
49813
49814 2000-01-03  Paul Eggert  <eggert@twinsun.com>
49815
49816         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
49817         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
49818
49819 2000-01-02  Jim Meyering  <meyering@ascend.com>
49820
49821         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
49822         remember if this is necessary.
49823
49824 1999-12-26  Jim Meyering  <meyering@ascend.com>
49825
49826         * m4/jm-macros.m4: Use it here.
49827         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
49828
49829 1999-12-23  Jim Meyering  <meyering@ascend.com>
49830
49831         * m4/jm-macros.m4: Check for clock_gettime (moved from
49832         fileutils/configure.in)
49833         Check for gettimeofday.
49834
49835 1999-12-20  Jim Meyering  <meyering@ascend.com>
49836
49837         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
49838         autoconf-2.14a-1999-12-20.
49839
49840 1999-12-19  Jim Meyering  <meyering@ascend.com>
49841
49842         * m4/lstat-slash.m4: New file.
49843         * m4/jm-macros.m4: Use the new macro:
49844         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49845
49846 1999-12-07  Jim Meyering  <meyering@ascend.com>
49847
49848         * m4/perl.m4: Require that File::Compare be available, too.
49849         Too many systems seem to lack it.
49850
49851         * m4/strftime.m4: Add checks for most of the cpp macros tested in
49852         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
49853
49854 1999-11-18  Paul Eggert  <eggert@twinsun.com>
49855
49856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
49857         problem with the QNX 4.25 shell, which doesn't propagate exit
49858         status of failed commands inside shell assignments.
49859
49860 1999-11-17  Jim Meyering  <meyering@ascend.com>
49861
49862         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
49863
49864 1999-11-07  Jim Meyering  <meyering@ascend.com>
49865
49866         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
49867
49868 1999-11-06  Jim Meyering  <meyering@ascend.com>
49869
49870         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
49871         * m4/jm-macros.m4 (jm_MACROS): Use it here.
49872
49873 1999-11-05  Jim Meyering  <meyering@ascend.com>
49874
49875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
49876         configure.in of textutils, fileutils, and sh-utils into this one
49877         (shared between those packages) file.
49878         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
49879         AC_STRUCT_ST_BLKSIZE.
49880
49881 1999-11-03  Jim Meyering  <meyering@ascend.com>
49882
49883         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
49884         of AC_CHECK_TYPE checks includes unistd.h.
49885         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
49886         Suggestion from Akim Demaille.
49887
49888 1999-10-30  Jim Meyering  <meyering@ascend.com>
49889
49890         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
49891         m4-quoted string.
49892         * m4/ls-mntd-fs.m4: Likewise.
49893         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
49894         * m4/jm-winsz1.m4: Likewise.
49895
49896         * m4/const.m4: Remove file, since the fix made it into the experimental
49897         version of autoconf.
49898         * m4/mktime.m4: Likewise.
49899
49900         * m4/check-type.m4: Remove file, now that the latest version of
49901         AC_CHECK_TYPE takes a third arg to specify additional #includes.
49902
49903         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
49904         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
49905         AC_CHECK_TYPE.
49906
49907 1999-10-04  Jim Meyering  <meyering@ascend.com>
49908
49909         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
49910
49911 1999-09-22  Paul Eggert  <eggert@twinsun.com>
49912
49913         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
49914         2.95.1 bug with HP-UX 10.20.
49915
49916 1999-09-17  Jim Meyering  <meyering@ascend.com>
49917
49918         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
49919         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
49920         due to missing strdup (against sh-utils-2.0).
49921
49922 1999-08-29  Jim Meyering  <meyering@ascend.com>
49923
49924         * m4/jm-macros.m4: Require jm_BISON.
49925         * m4/bison.m4: New file.
49926
49927 1999-08-17  Paul Eggert  <eggert@twinsun.com>
49928
49929         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
49930         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
49931
49932 1999-08-05  Jim Meyering  <meyering@ascend.com>
49933
49934         * m4/getline.m4: Rename test file from conftestdata to conftest.data
49935         to avoid conflicts with `conftest' on 8+3 filesystems.
49936         Suggestion from Eli Zaretskii.
49937
49938 1999-08-04  Jim Meyering  <meyering@ascend.com>
49939
49940         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
49941         fileutils and sh-utils (textutils's getline test was inadequate).
49942         (AM_FUNC_GETLINE): Run this test.
49943         (AC_CHECK_FUNCS): Check for getdelim.
49944         Reported by Bob Proulx.
49945
49946 1999-08-02  Jim Meyering  <meyering@ascend.com>
49947
49948         * m4/jm-macros.m4: Add a comment.
49949
49950 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49951
49952         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
49953         <inttypes.h> defines strtoumax as a macro (and not as a
49954         function).
49955
49956 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49957
49958         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
49959         that we can shift, multiply and divide unsigned long long
49960         values; Ultrix cc can't do it.
49961
49962 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49963
49964         * m4/mktime.m4: New file, which is a preview of what should appear
49965         in the next public autoconf release.
49966
49967 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49968
49969         * m4/lfs.m4: Remove this file.
49970         * m4/largefile.m4: New file.  It contains the old contents of
49971         lfs.m4, except that all names with prefix AC_LFS have been
49972         changed to use the prefix AC_SYS_LARGEFILE instead, to be
49973         compatible with future autoconf versions.  Also, some minor m4
49974         quoting problems have been fixed.
49975
49976 1999-08-01  Paul Eggert  <eggert@twinsun.com>
49977
49978         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
49979         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
49980         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
49981         and simplify the shell code.
49982
49983 1999-08-01  Jim Meyering  <meyering@ascend.com>
49984
49985         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
49986         m4.
49987
49988 1999-07-20  Jim Meyering  <meyering@ascend.com>
49989
49990         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
49991
49992 1999-07-15  Jim Meyering  <meyering@ascend.com>
49993
49994         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
49995
49996 1999-05-22  Jim Meyering  <meyering@ascend.com>
49997
49998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
49999
50000 1999-05-20  Jim Meyering  <meyering@ascend.com>
50001
50002         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50003         Add a colon after each `then' in case $4 is empty.
50004
50005 1999-05-16  Jim Meyering  <meyering@ascend.com>
50006
50007         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50008
50009 1999-05-10  Jim Meyering  <meyering@ascend.com>
50010
50011         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50012
50013         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50014         AC_FUNC_MKTIME.
50015
50016 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50017
50018         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50019
50020 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50021
50022         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50023         not CPPFLAGS, so that linking works correctly in IRIX.
50024
50025 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50026
50027         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50028
50029 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50030
50031         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50032         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50034         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50035         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50036
50037         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50038
50039 1999-04-20  Jim Meyering  <meyering@ascend.com>
50040
50041         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50042         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50043         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50044
50045 1999-04-18  Jim Meyering  <meyering@ascend.com>
50046
50047         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50048         * m4/jm-macros.m4: Use it.
50049
50050 1999-04-06  Jim Meyering  <meyering@ascend.com>
50051
50052         * m4/strftime.m4: Remove test for %f.
50053
50054 1999-03-29  Jim Meyering  <meyering@ascend.com>
50055
50056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50057         superset of the AC_TYPE_* checks in the textutils, fileutils,
50058         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50059         AC_TYPE_PID_T.
50060
50061 1999-03-28  Jim Meyering  <meyering@ascend.com>
50062
50063         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50064         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50065         replaced e.g., in the *.sh files of the sh-utils.
50066
50067 1999-03-20  Jim Meyering  <meyering@ascend.com>
50068
50069         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50070         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50071         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50072
50073 1999-03-19  Jim Meyering  <meyering@ascend.com>
50074
50075         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50076
50077 1999-03-12  Jim Meyering  <meyering@ascend.com>
50078
50079         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50080
50081 1999-03-07  Jim Meyering  <meyering@ascend.com>
50082
50083         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50084         declared.
50085
50086 1999-02-17  Jim Meyering  <meyering@ascend.com>
50087
50088         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50089         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50090
50091 1999-02-07  Jim Meyering  <meyering@ascend.com>
50092
50093         * m4/group-member.m4: New file -- extracted from sh-utils'
50094         configure.in.
50095
50096         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50097         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50098
50099 1999-02-06  Jim Meyering  <meyering@ascend.com>
50100
50101         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50102         * m4/fnmatch.m4: Likewise.
50103         * m4/getgroups.m4: Likewise.
50104         * m4/lstat.m4: Likewise.
50105         * m4/malloc.m4: Likewise.
50106         * m4/putenv.m4: Likewise.
50107         * m4/realloc.m4: Likewise.
50108         * m4/regex.m4: Likewise.
50109         * m4/stat.m4: Likewise.
50110         * m4/strftime.m4: Likewise.
50111         Suggestion from Alain Magloire.
50112
50113         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50114         * m4/fnmatch.m4: Likewise.
50115         * m4/getgroups.m4: Likewise.
50116         * m4/getline.m4: Likewise.
50117         * m4/lstat.m4: Likewise.
50118         * m4/malloc.m4: Likewise.
50119         * m4/memcmp.m4: Likewise.
50120         * m4/putenv.m4: Likewise.
50121         * m4/realloc.m4: Likewise.
50122         * m4/regex.m4: Likewise.
50123         * m4/stat.m4: Likewise.
50124         * m4/strftime.m4: Likewise.
50125         Suggestion from Alain Magloire.
50126
50127         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50128         an argument.
50129
50130         * m4/regex.m4: Add a run-time Test for proper operation of
50131         re_compile_pattern.
50132
50133 1999-01-31  Jim Meyering  <meyering@ascend.com>
50134
50135         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50136
50137 1999-01-30  Jim Meyering  <meyering@ascend.com>
50138
50139         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50140
50141         * m4/jm-mktime.m4: Make this a wrapper around the official
50142         AM_FUNC_MKTIME rather than my private copy, now that the official one
50143         is up to date.
50144         * m4/mktime.m4: Remove file.
50145
50146         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50147         * m4/uptime.m4: Likewise.
50148         * m4/uintmax_t.m4: Likewise.
50149
50150 1999-01-28  Jim Meyering  <meyering@ascend.com>
50151
50152         * m4/jm-macros.m4: Use jm_AFS.
50153         * m4/afs.m4: New file (from fileutils' configure.in).
50154
50155         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50156         * m4/chown.m4: Likewise.
50157         * m4/d-ino.m4: Likewise.
50158         * m4/d-type.m4: Likewise.
50159         * m4/fnmatch.m4: Likewise.
50160         * m4/getgroups.m4: Likewise.
50161         * m4/gettext.m4: Likewise.
50162         * m4/jm-mktime.m4: Likewise.
50163         * m4/jm-winsz2.m4: Likewise.
50164         * m4/lcmessage.m4: Likewise.
50165         * m4/ls-mntd-fs.m4: Likewise.
50166         * m4/malloc.m4: Likewise.
50167         * m4/memcmp.m4: Likewise.
50168         * m4/putenv.m4: Likewise.
50169         * m4/realloc.m4: Likewise.
50170         * m4/st_mtim.m4: Likewise.
50171         * m4/strftime.m4: Likewise.
50172
50173 1999-01-16  Jim Meyering  <meyering@ascend.com>
50174
50175         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50176         (ARGMATCH_DIE_DECL): Define.
50177
50178 1999-01-12  Jim Meyering  <meyering@ascend.com>
50179
50180         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50181         Reported by Lars Hecking.
50182
50183 1999-01-10  Jim Meyering  <meyering@ascend.com>
50184
50185         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50186         gross kludge.
50187         * m4/inttypes_h.m4: Likewise.
50188         * m4/lstat.m4: Likewise.
50189         * m4/malloc.m4: Likewise.
50190         * m4/readdir.m4: Likewise.
50191         * m4/realloc.m4: Likewise.
50192         * m4/st_dm_mode.m4: Likewise.
50193         * m4/stat.m4: Likewise.
50194         * m4/utimbuf.m4: Likewise.
50195         * m4/utimes.m4: Likewise.
50196
50197         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50198         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50199         comments in config.h.in are meaningful.
50200
50201         * m4/jm-macros.m4: Require autoconf-2.13 here.
50202
50203         * m4/regex.m4: By default, don't use the included regex.c on systems
50204         with glibc 2.  Suggestion from Uli Drepper.
50205
50206 1999-01-02  Jim Meyering  <meyering@ascend.com>
50207
50208         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50209
50210 1998-12-18  Jim Meyering  <meyering@ascend.com>
50211
50212         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50213         Based on a suggestion from Lars Hecking.
50214
50215 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50216
50217         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50218
50219 1998-11-16  Jim Meyering  <meyering@ascend.com>
50220
50221         * m4/lfs.m4: Double-quote the `uname...` expression.
50222
50223 1998-11-14  Jim Meyering  <meyering@ascend.com>
50224
50225         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50226         * m4/stat.m4: Likewise.
50227
50228 1998-11-03  Jim Meyering  <meyering@ascend.com>
50229
50230         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50231         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50232
50233 1998-10-18  Jim Meyering  <meyering@ascend.com>
50234
50235         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50236
50237 1998-10-17  Jim Meyering  <meyering@ascend.com>
50238
50239         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50240         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50241         calls for those previously hard-coded headers.  Instead, take a new
50242         parameter.
50243         (jm_CHECK_DECLARATIONS): Reflect interface change.
50244         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50245         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50246
50247         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50248
50249 1998-10-14  Jim Meyering  <meyering@ascend.com>
50250
50251         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50252         instead of "TZ=America/Vancouver".  From Paul Eggert.
50253
50254 1998-10-11  Jim Meyering  <meyering@ascend.com>
50255
50256         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50257         This adds a test for a recently added compatibility fix for mktime.c.
50258         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50259
50260 1998-09-27  Jim Meyering  <meyering@ascend.com>
50261
50262         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50263
50264         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50265         ../configure.in, including a change from Gordon Matzigkeit to allow
50266         cross-compiling for the Hurd.
50267
50268         * m4/glibc.m4: New file/macro to test for the GNU C Library
50269         versions 1 and 2.  From Gordon Matzigkeit.
50270         Indent.
50271
50272 1998-09-21  Jim Meyering  <meyering@ascend.com>
50273
50274         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50275
50276 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50277
50278         Port nanosecond-resolution times to UnixWare 2.1.2 and
50279         pedantic Solaris 2.6.
50280
50281         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50282         AC_STRUCT_ST_MTIM.
50283         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50284         Generate name of ns member, instead of just 1 or undef.
50285         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50286
50287 1998-08-15  Jim Meyering  <meyering@ascend.com>
50288
50289         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50290         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50291         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50292         instead of jm_TYPE_SSIZE_T.
50293
50294 1998-08-12  Jim Meyering  <meyering@ascend.com>
50295
50296         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50297
50298 1998-08-02  Jim Meyering  <meyering@ascend.com>
50299
50300         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50301         in acconfig.h manually.
50302
50303 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50304
50305         * m4/st_mtim.m4: New file.
50306
50307 1998-07-28  Jim Meyering  <meyering@ascend.com>
50308
50309         * m4/utimes.m4: Undef stat.
50310
50311 1998-07-25  Jim Meyering  <meyering@ascend.com>
50312
50313         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50314         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50315
50316 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50317
50318         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50319         uid and gid actually remain unchanged.
50320
50321 1998-07-07  Jim Meyering  <meyering@ascend.com>
50322
50323         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50324
50325 1998-07-04  Jim Meyering  <meyering@ascend.com>
50326
50327         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50328         to prove that this macro can be used in packages without regex.c.
50329
50330 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50331
50332         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50333         is to be used.
50334
50335 1998-07-03  Jim Meyering  <meyering@ascend.com>
50336
50337         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50338
50339         * m4/gettext.m4: New file -- from gettext-0.10.35.
50340         * m4/lcmessage.m4: Likewise.
50341         * m4/progtest.m4: Likewise.
50342
50343         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50344         * m4/jm-macros.m4: Require the new macro.
50345
50346 1998-06-29  Jim Meyering  <meyering@ascend.com>
50347
50348         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50349         for the definition of NGROUPS (used in a system header included
50350         by sys/mount.h).
50351
50352 1998-06-28  Jim Meyering  <meyering@ascend.com>
50353
50354         * m4/ls-mntd-fs.m4: New file.
50355         * m4/fstypename.m4: New file.
50356
50357         * m4/jm-macros.m4: Require the new macro.
50358         * m4/jm-glibc-io.m4: New file.
50359
50360 1998-05-19  Jim Meyering  <meyering@ascend.com>
50361
50362         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50363         * m4/lchown.m4: New file.
50364
50365         * m4/Makefile.am.in: New file.
50366         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50367
50368 1998-05-14  Jim Meyering  <meyering@ascend.com>
50369
50370         * m4/Makefile.am (EXTRA_DIST): Add them.
50371         * m4/jm-macros.m4: New file.
50372         * m4/utimbuf.m4: New file.
50373
50374 1998-05-12  Jim Meyering  <meyering@ascend.com>
50375
50376         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50377
50378 1998-05-11  Jim Meyering  <meyering@ascend.com>
50379
50380         * m4/isc-posix.m4: New file.
50381
50382 1998-05-10  Jim Meyering  <meyering@ascend.com>
50383
50384         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50385
50386 1998-05-09  Jim Meyering  <meyering@ascend.com>
50387
50388         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50389         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50390         with automake.
50391
50392         * m4/ssize_t.m4: New file.
50393         * m4/mktime.m4: Remove file -- the new automake has this now.
50394
50395 1998-04-26  Jim Meyering  <meyering@ascend.com>
50396
50397         * m4/assert.m4: New file.
50398         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50399
50400 1998-04-05  Jim Meyering  <meyering@ascend.com>
50401
50402         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50403         (jm_PREREQ): Use it here.
50404
50405 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50406
50407         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50408         in acconfig.h.
50409
50410 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50411
50412         * m4/prereq.m4: New file.
50413         * m4/error.m4: New file.
50414         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50415
50416 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50417
50418         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50419         cache-check for the same variable -- that defeated the purpose of
50420         the test; the test program was never run.  This was a problem only
50421         on systems with losing getline functions -- HP-UX 10.20 is one.
50422         Reported by Bjorn Helgaas.
50423
50424 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50425
50426         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50427
50428 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50429
50430         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50431
50432         * m4/const.m4: New file.  Use an initializer in this declaration
50433         typedef int charset[2]; const charset x;
50434         Reported by Bob Glickstein.
50435
50436 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50437
50438         * m4/chown.m4: Fix reversed types on -1 args to chown.
50439         From Kaveh Ghazi.
50440
50441 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50442
50443         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50444         Add lseek and memchr.
50445
50446         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50447         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50448         have a 20-character limit on names.
50449
50450 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50451
50452         * m4/inttypes_h.m4: New file.
50453         * m4/uintmax_t.m4: New file.
50454         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50455
50456
50457         -----
50458
50459         Local Variables:
50460         coding: utf-8
50461         End:
50462
50463         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50464
50465         Copying and distribution of this file, with or without
50466         modification, are permitted provided the copyright notice
50467         and this notice are preserved.