vsnprintf: make more consistent with snprintf; doc fixes
[gnulib.git] / ChangeLog
1 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2
3         vsnprintf: make more consistent with snprintf; doc fixes
4
5         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6         the byte count return problem was promoted from the snprintf-posix
7         to the snprintf module.
8         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
10         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
11         * tests/test-snprintf.c (main): Check the byte count returned.
12         * tests/test-vsnprintf.c (main): Likewise.
13
14 2010-12-23  Eric Blake  <eblake@redhat.com>
15
16         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17         * modules/sigpipe (License): Relax license.
18
19 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20
21         doc: document Solaris printf bug with large float precisions
22         * doc/posix-functions/dprintf.texi (dprintf):
23         * doc/posix-functions/fprintf.texi (fprintf):
24         * doc/posix-functions/printf.texi (printf):
25         * doc/posix-functions/snprintf.texi (snprintf):
26         * doc/posix-functions/sprintf.texi (sprintf):
27         * doc/posix-functions/vdprintf.texi (vdprintf):
28         * doc/posix-functions/vfprintf.texi (vfprintf):
29         * doc/posix-functions/vprintf.texi (vprintf):
30         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31         * doc/posix-functions/vsprintf.texi (vsprintf):
32         Mention that these functions mishandle large floating point
33         precisions on Solaris 10.  The same bug is also present in Solaris
34         8, and I assume earlier.  This causes "cd gnulib-tests; make
35         check" to fail on Solaris 8 (and I assume, later) when building
36         the latest coreutils, in test-vasprintf-posix's call to
37         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
38         the wide flavors (e.g., wprintf) so this patch just updates the
39         documentation for the narrow ones.
40
41         test-posixtm.c: add two tests
42         * tests/test-posixtm.c: Add two tests, to highlight the
43         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
44         around this bug; this is merely to document it.
45
46 2010-12-22  Bruno Haible  <bruno@clisp.org>
47
48         getlogin_r: Work around portability problem on OSF/1.
49         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
50         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
51         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
52         test for a truncated result.
53         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
54         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
55         * modules/getlogin_r (Depends-on): Add memchr.
56         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
57
58 2010-12-22  Bruno Haible  <bruno@clisp.org>
59
60         ptsname: Avoid test failure on OSF/1 5.1.
61         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
63         (same_slave): New function.
64         (main): Use it to compare ptsname's result with the expected file name.
65
66 2010-12-22  Bruno Haible  <bruno@clisp.org>
67
68         Port extended stdio modules to HP NonStop Kernel.
69         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
70         macros.
71         * lib/fbufmode.c: Update comments.
72         * lib/fflush.c: Likewise.
73         * lib/fpurge.c: Likewise.
74         * lib/freadable.c: Likewise.
75         * lib/freadahead.c: Likewise.
76         * lib/freading.c: Likewise.
77         * lib/freadptr.c: Likewise.
78         * lib/freadseek.c: Likewise.
79         * lib/fseeko.c: Likewise.
80         * lib/fseterr.c: Likewise.
81         * lib/fwritable.c: Likewise.
82         * lib/fwriting.c: Likewise.
83         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
84
85 2010-12-22  Bruno Haible  <bruno@clisp.org>
86
87         ttyname_r: Work around bug on OSF/1 5.1.
88         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
89         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
90         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
91         present.
92         * lib/ttyname_r.c (ttyname_r): Update comments.
93
94 2010-12-22  Bruno Haible  <bruno@clisp.org>
95
96         round: Implement result sign according to IEEE 754.
97         * lib/round.c (MIN, MINUS_ZERO): New macros.
98         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
99         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
100         * tests/test-round-ieee.c (main): Likewise.
101         * tests/test-roundl-ieee.c (main): Likewise.
102
103         trunc: Implement result sign according to IEEE 754.
104         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
105         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
106         * tests/test-trunc2.c: Include minus-zero.h.
107         (MINUS_ZERO): New macro.
108         (trunc_reference): Keep in sync with lib/trunc.c.
109         * tests/test-truncf2.c: Include minus-zero.h.
110         (MINUS_ZERO): New macro.
111         (truncf_reference): Keep in sync with lib/trunc.c.
112         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
113         * tests/test-trunc-ieee.c (main): Likewise.
114         * tests/test-truncl-ieee.c (main): Likewise.
115
116         ceil: Implement result sign according to IEEE 754.
117         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
118         (FUNC): Return -0.0 for -1 < x < 0.
119         * tests/test-ceil2.c: Include minus-zero.h.
120         (MINUS_ZERO): New macro.
121         (ceil_reference): Keep in sync with lib/ceil.c.
122         * tests/test-ceilf2.c: Include minus-zero.h.
123         (MINUS_ZERO): New macro.
124         (ceilf_reference): Keep in sync with lib/ceil.c.
125         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
126         * tests/test-ceil-ieee.c (main): Likewise.
127         * tests/test-ceill-ieee.c (main): Likewise.
128
129         floor: Implement result sign according to IEEE 754.
130         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
131         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
132         * tests/test-floorf2.c (floorf_reference): Likewise.
133         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
134         * tests/test-floor-ieee.c (main): Likewise.
135         * tests/test-floorl-ieee.c (main): Likewise.
136
137 2010-12-22  Bruno Haible  <bruno@clisp.org>
138
139         getaddrinfo: Update doc.
140         * doc/posix-functions/gai_strerror.texi: Return type is also different
141         on AIX and HP-UX.
142
143 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
144
145         getaddrinfo, inet_ntop: Update doc for Solaris.
146         * doc/posix-functions/gai_strerror.texi: Return type is also an
147         issue on Solaris 9 and earlier.
148         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
149         on Solaris 10 and earlier.
150
151 2010-12-21  Bruno Haible  <bruno@clisp.org>
152
153         New module 'roundl-ieee'.
154         * modules/roundl-ieee: New file.
155         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
156         test whether roundl works according to ISO C 99 with IEC 60559.
157         * m4/roundl-ieee.m4: New file.
158         * modules/roundl-ieee-tests: New file.
159         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
160         * tests/test-roundl.c (main): Remove signbit tests.
161         * modules/roundl-tests (Depends-on): Remove signbit.
162         * doc/posix-functions/roundl.texi: Mention the new module.
163
164 2010-12-21  Bruno Haible  <bruno@clisp.org>
165
166         New module 'truncl-ieee'.
167         * modules/truncl-ieee: New file.
168         * modules/truncl-ieee-tests: New file.
169         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
170         * tests/test-truncl.c (main): Remove signbit tests.
171         * modules/truncl-tests (Depends-on): Remove signbit.
172         * doc/posix-functions/truncl.texi: Mention the new module.
173
174 2010-12-21  Bruno Haible  <bruno@clisp.org>
175
176         New module 'ceill-ieee'.
177         * modules/ceill-ieee: New file.
178         * modules/ceill-ieee-tests: New file.
179         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
180         * tests/test-ceill.c (main): Remove signbit tests.
181         * modules/ceill-tests (Depends-on): Remove signbit.
182         * doc/posix-functions/ceill.texi: Mention the new module.
183
184 2010-12-21  Bruno Haible  <bruno@clisp.org>
185
186         New module 'floorl-ieee'.
187         * modules/floorl-ieee: New file.
188         * modules/floorl-ieee-tests: New file.
189         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
190         * tests/test-floorl.c (main): Remove signbit tests.
191         * modules/floorl-tests (Depends-on): Remove signbit.
192         * doc/posix-functions/floorl.texi: Mention the new module.
193
194 2010-12-21  Bruno Haible  <bruno@clisp.org>
195
196         New module 'round-ieee'.
197         * modules/round-ieee: New file.
198         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
199         whether round works according to ISO C 99 with IEC 60559.
200         * m4/round-ieee.m4: New file.
201         * modules/round-ieee-tests: New file.
202         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
203         * tests/test-round1.c (main): Remove signbit tests.
204         * modules/round-tests (Depends-on): Remove 'signbit'.
205         * doc/posix-functions/round.texi: Mention the new module.
206
207 2010-12-21  Bruno Haible  <bruno@clisp.org>
208
209         New module 'trunc-ieee'.
210         * modules/trunc-ieee: New file.
211         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
212         whether trunc works according to ISO C 99 with IEC 60559.
213         * m4/trunc-ieee.m4: New file.
214         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
216         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
217         * modules/trunc-ieee-tests: New file.
218         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
219         * tests/test-trunc1.c (main): Remove signbit tests.
220         * modules/trunc-tests (Depends-on): Remove 'signbit'.
221         * doc/posix-functions/trunc.texi: Mention the new module.
222
223 2010-12-21  Bruno Haible  <bruno@clisp.org>
224
225         New module 'ceil-ieee'.
226         * modules/ceil-ieee: New file.
227         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
228         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
229         ISO C 99 with IEC 60559.
230         * m4/ceil-ieee.m4: New file.
231         * modules/ceil (Files): Add lib/ceil.c.
232         (Depends-on): Add 'float'.
233         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
234         * lib/math.in.h (ceil): New declaration.
235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
236         REPLACE_CEIL.
237         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
238         * modules/ceil-ieee-tests: New file.
239         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
240         * tests/test-math-c++.cc: Check the signature of 'ceil'.
241         * doc/posix-functions/ceil.texi: Mention the new module.
242
243 2010-12-21  Bruno Haible  <bruno@clisp.org>
244
245         New module 'floor-ieee'.
246         * modules/floor-ieee: New file.
247         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
248         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
249         ISO C 99 with IEC 60559.
250         * m4/floor-ieee.m4: New file.
251         * modules/floor (Files): Add lib/floor.c.
252         (Depends-on): Add 'float'.
253         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
254         * lib/math.in.h (floor): New declaration.
255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
256         REPLACE_FLOOR.
257         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
258         * modules/floor-ieee-tests: New file.
259         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
260         * tests/test-math-c++.cc: Check the signature of 'floor'.
261         * doc/posix-functions/floor.texi: Mention the new module.
262
263 2010-12-21  Bruno Haible  <bruno@clisp.org>
264
265         New module 'roundf-ieee'.
266         * modules/roundf-ieee: New file.
267         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
268         test whether roundf works according to ISO C 99 with IEC 60559.
269         * m4/roundf-ieee.m4: New file.
270         * modules/roundf-ieee-tests: New file.
271         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
272         * tests/test-roundf1.c (main): Remove signbit tests.
273         * modules/roundf-tests (Depends-on): Remove 'signbit'.
274         * doc/posix-functions/roundf.texi: Mention the new module.
275
276 2010-12-21  Bruno Haible  <bruno@clisp.org>
277
278         New module 'truncf-ieee'.
279         * modules/truncf-ieee: New file.
280         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
281         test whether truncf works according to ISO C 99 with IEC 60559.
282         * m4/truncf-ieee.m4: New file.
283         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
285         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
286         * modules/truncf-ieee-tests: New file.
287         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
288         * tests/test-truncf1.c (main): Remove signbit tests.
289         * modules/truncf-tests (Depends-on): Remove 'signbit'.
290         * doc/posix-functions/truncf.texi: Mention the new module.
291
292 2010-12-21  Bruno Haible  <bruno@clisp.org>
293
294         New module 'ceilf-ieee'.
295         * modules/ceilf-ieee: New file.
296         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
297         test whether ceilf works according to ISO C 99 with IEC 60559.
298         * m4/ceilf-ieee.m4: New file.
299         * modules/ceilf-ieee-tests: New file.
300         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
301         * tests/test-ceilf1.c (main): Remove signbit tests.
302         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
303         * doc/posix-functions/ceilf.texi: Mention the new module.
304
305 2010-12-21  Bruno Haible  <bruno@clisp.org>
306
307         New module 'floorf-ieee'.
308         * modules/floorf-ieee: New file.
309         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
310         test whether floorf works according to ISO C 99 with IEC 60559.
311         * m4/floorf-ieee.m4: New file.
312         * modules/floorf-ieee-tests: New file.
313         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
314         * tests/test-floorf1.c (main): Remove signbit tests.
315         * modules/floorf-tests (Depends-on): Remove 'signbit'.
316         * doc/posix-functions/floorf.texi: Mention the new module.
317
318 2010-12-21  Bruno Haible  <bruno@clisp.org>
319
320         Support for minus zero in autoconf macros.
321         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
322         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
323         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
324         * tests/minus-zero.h: Update comments.
325
326 2010-12-21  Bruno Haible  <bruno@clisp.org>
327
328         Tests for module 'ceil'.
329         * modules/ceil-tests: New file.
330         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
331         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
332
333 2010-12-21  Bruno Haible  <bruno@clisp.org>
334
335         Tests for module 'floor'.
336         * modules/floor-tests: New file.
337         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
338         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
339
340 2010-12-21  Bruno Haible  <bruno@clisp.org>
341
342         math: Fix indentation.
343         * lib/math.in.h (floorf): Fix indentation.
344
345 2010-12-21  Bruno Haible  <bruno@clisp.org>
346
347         Fix cross-compilation guesses on Solaris.
348         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
349         not match "solaris2.10".
350         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
351         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
352         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
353
354 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
355
356         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
357         This fixes a problem observed with the latest coreutils snapshot
358         that caused a test to fail on Solaris 8.  src/csplit.c's call
359         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
360         earlier, instead of returning the number of bytes that would have
361         been generated; this causes csplit to incorrectly report memory
362         exhaustion.
363         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
364         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
365         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
366         comments to match.
367         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
368         Fix typo in matching older versions of Solaris: "solaris2.10"
369         is matched by the shell pattern "solaris2.[0-9]*".  This matters
370         only for guessing while cross-compiling.
371         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
372
373 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
374
375         ftoastr: fix comment again
376         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
378         Also, simplify example a bit by using flags = 0.
379
380 2010-12-20  Bruno Haible  <bruno@clisp.org>
381
382         round*, trunc*: Update documentation regarding glibc.
383         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
384         * doc/posix-functions/round.texi: Likewise.
385         * doc/posix-functions/roundl.texi: Likewise.
386         * doc/posix-functions/truncf.texi: Likewise.
387         * doc/posix-functions/trunc.texi: Likewise.
388         * doc/posix-functions/truncl.texi: Likewise.
389
390 2010-12-20  Bruno Haible  <bruno@clisp.org>
391
392         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
393         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
394         * doc/posix-functions/round.texi: Likewise.
395         * doc/posix-functions/roundl.texi: Likewise.
396
397 2010-12-20  Bruno Haible  <bruno@clisp.org>
398
399         ttyname_r: Add missing declaration on HP-UX 11.
400         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
401         HAVE_TTYNAME_R.
402         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
403         declared. Set HAVE_TTYNAME_R always.
404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
405         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
406         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
407         HAVE_TTYNAME_R.
408         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
409
410 2010-12-20  Bruno Haible  <bruno@clisp.org>
411
412         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
413         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
414         * doc/posix-functions/getlogin_r.texi: Likewise.
415         * tests/test-getlogin.c: Include <errno.h>.
416         (main): Avoid test failure on HP-UX 11.11.
417         * tests/test-getlogin_r.c (main): Likewise.
418
419 2010-12-20  Bruno Haible  <bruno@clisp.org>
420
421         getlogin_r: Add missing declaration on HP-UX 11.
422         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
423         declared also when it exists as a function.
424         * doc/posix-functions/getlogin_r.texi: Document this workaround.
425
426 2010-12-20  Bruno Haible  <bruno@clisp.org>
427
428         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
429         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
430         through wcrtomb.
431
432 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
433
434         ftoastr: fix comment
435         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
437
438 2010-12-19  Bruno Haible  <bruno@clisp.org>
439
440         isnan: Ensure it is a macro.
441         * lib/math.in.h (isnan): Define as a macro if not already a macro.
442         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
443         Solaris.
444
445 2010-12-19  Bruno Haible  <bruno@clisp.org>
446
447         ldexpl test: Fix link error on OSF/1 5.1.
448         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
449
450 2010-12-19  Bruno Haible  <bruno@clisp.org>
451
452         wctype: Make it work in C++ mode on OSF/1 5.1.
453         * lib/wctype.in.h (iswblank): Declare but not define here.
454         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
455         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
456         * modules/wctype (Files): Add lib/iswblank.c.
457
458 2010-12-19  Bruno Haible  <bruno@clisp.org>
459
460         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
461         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
462         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
463
464 2010-12-19  Bruno Haible  <bruno@clisp.org>
465
466         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
468         _POSIX_PII_SOCKET.
469         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
470         * doc/posix-functions/recvfrom.texi: Likewise.
471         * doc/posix-functions/send.texi: Likewise.
472         * doc/posix-functions/sendto.texi: Likewise.
473
474 2010-12-19  Bruno Haible  <bruno@clisp.org>
475
476         tcgetsid: Add missing declaration on OSF/1 5.1.
477         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
478         HAVE_TCGETSID.
479         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
480         Don't set HAVE_TCGETSID.
481         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
482         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
483         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
484         HAVE_TCGETSID.
485         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
486
487 2010-12-19  Bruno Haible  <bruno@clisp.org>
488
489         stdio: Fix problem with popen() declaration on OSF/1 5.1.
490         * lib/stdio.in.h: During the include_next statement, let recursive
491         includes of this file include only the system header file.
492
493 2010-12-19  Bruno Haible  <bruno@clisp.org>
494
495         iconv_open: Fix regression from 2010-12-04.
496         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
497         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
498
499 2010-12-19  Bruno Haible  <bruno@clisp.org>
500
501         stdbool test: Avoid a gcc warning.
502         * tests/test-stdbool.c (main): Fail if e1 is false.
503         Reported by Jim Meyering.
504
505 2010-12-19  Jim Meyering  <meyering@redhat.com>
506
507         setenv: restore to working order
508         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
509         mistakenly removed.
510         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
511         HAVE_SETENV.
512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
513         HAVE_SETENV.
514
515 2010-12-19  Bruno Haible  <bruno@clisp.org>
516
517         Document some different function declarations on OSF/1 5.1.
518         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
519         * doc/posix-functions/inet_ntop.texi: Likewise.
520         * doc/posix-functions/gethostname.texi: Likewise.
521         * lib/unistd.in.h (gethostname): Update comment.
522
523 2010-12-19  Bruno Haible  <bruno@clisp.org>
524
525         doc: Mention vasprintf-posix module.
526         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
527         the 'vasprintf-posix' module.
528         * doc/glibc-functions/vasprintf.texi: Likewise.
529
530 2010-12-19  Bruno Haible  <bruno@clisp.org>
531
532         unsetenv: Add missing declaration on OSF/1 5.1.
533         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
534         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
535         Don't set HAVE_UNSETENV. In the test program, set _BSD.
536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
537         not HAVE_UNSETENV.
538         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
539         HAVE_UNSETENV.
540         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
541
542 2010-12-19  Bruno Haible  <bruno@clisp.org>
543
544         setenv: Add missing declaration on OSF/1 5.1.
545         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
546         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
547         declared. Don't set HAVE_SETENV.
548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
549         not HAVE_SETENV.
550         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
551         HAVE_SETENV.
552         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
553
554 2010-12-19  Bruno Haible  <bruno@clisp.org>
555
556         nl_langinfo tests: Avoid gcc warning.
557         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
558
559 2010-12-19  Bruno Haible  <bruno@clisp.org>
560
561         mknod: Avoid error in C++ mode on OSF/1 with GCC.
562         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
563         _GL_CXXALIAS_SYS.
564
565 2010-12-19  Bruno Haible  <bruno@clisp.org>
566
567         stdbool: Relax test.
568         * tests/test-stdbool.c (e): Don't require that casts from a variable's
569         address to 'bool' work in static initializer, for compilers other than
570         GCC.
571
572 2010-12-19  Bruno Haible  <bruno@clisp.org>
573
574         ftello: Add missing declaration on OSF/1 5.1.
575         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
576         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
578         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
579         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
580
581 2010-12-19  Bruno Haible  <bruno@clisp.org>
582
583         fseeko: Add missing declaration on OSF/1 5.1.
584         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
585         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
587         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
588         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
589
590 2010-12-19  Bruno Haible  <bruno@clisp.org>
591
592         fchdir: Add missing declaration on OSF/1 5.1.
593         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
596         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
597         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
598
599 2010-12-19  Bruno Haible  <bruno@clisp.org>
600
601         relocatable-prog-wrapper: Separate from relocatable-prog.
602         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
603         uninstall-relocwrapper rule here.
604         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
605         Reported by Ian Beckwith <ianb@erislabs.net>.
606
607 2010-12-19  Bruno Haible  <bruno@clisp.org>
608
609         unistr/u8-mbsnlen: Add missing dependency.
610         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
611         Reported by Ian Beckwith <ianb@erislabs.net>.
612
613 2010-12-19  Bruno Haible  <bruno@clisp.org>
614
615         iconv: Make it possible again to use this module without 'iconv-h'.
616         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
617         if it is not defined.
618         Reported by Ian Beckwith <ianb@erislabs.net>.
619
620 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
621
622         acl: port to Solaris 8 when copying from tmpfs to ufs
623         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
624         error number.  Problem observed on Solaris 8 with latest
625         coreutils, with "mv A B", where A is on a tmpfs file system and B
626         is on a ufs file system.  This caused coreutils' mv/part-symlink
627         test to fail.
628
629         tests: set fail=0 at start
630         * tests/init.sh (setup_): Move fail=0 initialization here ...
631         (mktempd_): ... from here, so that tests can rely on fail being
632         set to 0 initially.  This fixes a problem in coreutils; see:
633         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
634
635 2010-12-18  Bruno Haible  <bruno@clisp.org>
636
637         memmem-simple: Stylistic changes.
638         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
639         Fix preprocessor directive indentation.
640
641 2010-12-15  Pádraig Brady <P@draigBrady.com>
642
643         memmem, memmem-simple: reorganize and expand empty needle check
644         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
645         functional checks to memmem-simple so that one has a fully functional
646         memmem by using just this module.
647         Restrict the performance only check to the memmem module.
648         Also expand the empty needle check to ensure the correct
649         pointer is returned, not just a non NULL pointer.
650         * doc/glibc-functions/memmem.texi: Rearrange the portability
651         documentation to correlate with the rearranged checks.
652         Clarify exactly how the memmem and memmem-simple modules
653         relate to each other.
654
655 2010-12-15  Pádraig Brady <P@draigBrady.com>
656             Bruno Haible  <bruno@clisp.org>
657
658         Improve cross-compilation guesses for uClibc.
659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
660         that uClibc does not have the glibc bug.
661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
662         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
663
664 2010-12-14  Eric Blake  <eblake@redhat.com>
665
666         configmake: provide fallbacks for oldest supported autotools
667         * m4/configmake.m4: New file.
668         * modules/configmake (Files): Ship it.
669         (configure.ac): Use it to guarantee fallbacks.
670
671 2010-12-13  Pádraig Brady <P@draigBrady.com>
672
673         read-file: Improve handling of large files
674         * lib/read-file.c (fread_file): Minimize realloc()s
675         for regular files, and better manage sizes around SIZE_MAX.
676
677 2010-12-13  Eric Blake  <eblake@redhat.com>
678
679         cloexec, fcntl: relax license
680         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
681         consent from all contributors.
682         * modules/fcntl (License): Likewise.
683
684 2010-12-10  Bruno Haible  <bruno@clisp.org>
685
686         Tests for module 'pipe-posix'.
687         * modules/pipe-posix-tests: New file.
688         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
689
690 2010-12-10  Bruno Haible  <bruno@clisp.org>
691
692         pipe-posix: Make it work in C++ mode.
693         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
694         (pipe): Use common idiom, not a macro definition.
695         * lib/pipe.c: New file.
696         * m4/pipe.m4: New file.
697         * modules/pipe-posix (Description): Enhance.
698         (Files): Add lib/pipe.c, m4/pipe.m4.
699         (configure.ac): Invoke gl_FUNC_PIPE.
700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
701         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
702         * tests/test-unistd-c++.cc: Check the signature of pipe.
703
704 2010-12-10  Bruno Haible  <bruno@clisp.org>
705
706         Rename module 'pipe' to 'spawn-pipe'.
707         * modules/spawn-pipe: New file, renamed from modules/pipe.
708         (Files, configure.ac, Makefile.am): Update.
709         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
710         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
711         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
712         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
713         "spawn-pipe.h" instead of "pipe.h".
714         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
715         to gl_SPAWN_PIPE.
716         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
717         (Files, Makefile.am): Update.
718         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
719         Update.
720         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
721         Include "spawn-pipe.h" instead of "pipe.h".
722         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
723         * lib/javacomp.c: Likewise.
724         * lib/javaversion.c: Likewise.
725         * lib/pipe-filter-gi.c: Likewise.
726         * lib/pipe-filter-ii.c: Likewise.
727         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
728         * modules/javacomp (Depends-on): Likewise.
729         * modules/javaversion (Depends-on): Likewise.
730         * modules/pipe-filter-gi (Depends-on): Likewise.
731         * modules/pipe-filter-ii (Depends-on): Likewise.
732         * MODULES.html.sh (Executing programs): Update.
733         * NEWS: Mention the change.
734
735 2010-12-10  Eric Blake  <eblake@redhat.com>
736
737         pipe-posix: new module
738         * modules/pipe-posix: New file.
739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
740         (gl_UNISTD_H): Check for declaration.
741         * modules/unistd (Makefile.am): Substitute it.
742         * lib/unistd.in.h (pipe): Provide it for mingw.
743         * doc/posix-functions/pipe.texi (pipe): Update documentation.
744         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
745
746 2010-12-07  Bruno Haible  <bruno@clisp.org>
747
748         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
749         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
750         u8_strcmp_gnu.
751         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
752
753 2010-12-06  Bruno Haible  <bruno@clisp.org>
754
755         Update internal documentation.
756         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
757
758 2010-12-04  Bruno Haible  <bruno@clisp.org>
759
760         Put more information about failed tests into the test return codes.
761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
762         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
763         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
764         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
765         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
766         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
767         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
768         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
769         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
770         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
771         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
772         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
773         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
774         * m4/stdint.m4 (gl_STDINT_H): Likewise.
775         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
776         returns a bit mask.
777         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
778         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
779         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
780         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
781         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
782         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
783         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
785         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
786         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
787         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
788         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
789         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
791         * m4/link.m4 (gl_FUNC_LINK): Likewise.
792         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
793         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
794         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
795         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
796         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
797         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
798         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
799         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
800         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
801         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
802         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
803         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
804         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
805         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
806         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
807         gl_PRINTF_PRECISION): Likewise.
808         * m4/regex.m4 (gl_REGEX): Likewise.
809         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
810         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
811         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
812         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
813         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
814         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
815         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
816         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
817         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
818         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
819         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
820         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
821         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
822         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
823         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
824         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
825         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
826         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
828         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
829         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
830         enumerated value.
831         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
832
833 2010-12-04  Bruno Haible  <bruno@clisp.org>
834
835         Update for Solaris 11 2010-11.
836         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
837         Express, released in November 2010.
838
839 2010-12-04  Bruno Haible  <bruno@clisp.org>
840
841         nproc: Relax license.
842         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
843         and Paul Eggert.
844         Requested by Ludovic Courtès <ludo@gnu.org>.
845
846 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
847
848         utimecmp: fine-grained src to nearby coarse-grained dest
849
850         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
851         and the source is on a file system with higher-resolution time
852         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
853         not work, and the time stamps are close together, the algorithm to
854         determine the exact resolution from the read-back mtime was buggy:
855         it had a "!=" where it should have had an "==".  This bug has been
856         in the code ever since it was introduced to gnulib.
857         Problem reported by Dan Jacobson in
858         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
859
860 2010-11-30  Bruno Haible  <bruno@clisp.org>
861
862         strerror_r-posix: Fix autoconf test.
863         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
864
865 2010-11-28  Bruno Haible  <bruno@clisp.org>
866             Paul Eggert  <eggert@cs.ucla.edu>
867
868         Tests for module 'getdomainname'.
869         * modules/getdomainname-tests: New file.
870         * tests/test-getdomainname.c: New file, based on
871         tests/test-gethostname.c.
872
873 2010-11-28  Bruno Haible  <bruno@clisp.org>
874             Paul Eggert  <eggert@cs.ucla.edu>
875
876         getdomainname: Use the system function when possible.
877         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
878         (getdomainname): Replace if needed. Provide the declaration if it is
879         missing. Don't use _GL_CXXALIAS_SYS_CAST.
880         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
881         (getdomainname): When the system has getdomainname, call the system
882         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
883         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
884         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
885         found in libnsl. Look for the declaration also in <netdb.h>. Replace
886         the function if its second argument is of type 'int' or if it is found
887         in libnsl.
888         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
889         <sys/systeminfo.h> and sysinfo().
890         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
892         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
893         HAVE_GETDOMAINNAME.
894         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
895         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
896         * doc/glibc-functions/getdomainname.texi: Document the problems with
897         the getdomainname declaration.
898
899 2010-11-28  Bruno Haible  <bruno@clisp.org>
900
901         sys_socket: Ensure ss_family field on AIX.
902         * lib/sys_socket.in.h (ss_family): New macro definition.
903         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
904         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
905         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
906         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
907         * modules/sys_socket (Makefile.am): Substitute
908         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
909         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
910
911 2010-11-27  Bruno Haible  <bruno@clisp.org>
912
913         readline: Improve configure output.
914         * m4/readline.m4 (gl_FUNC_READLINE): Make the
915         "checking for readline..." result understandable.
916
917 2010-11-27  Bruno Haible  <bruno@clisp.org>
918
919         *printf-posix: Detect a bug on Solaris 10/x86.
920         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
921         for floating-point output.
922         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
923         directive.
924         * tests/test-snprintf-posix.h (test_function): Likewise.
925         * tests/test-sprintf-posix.h (test_function): Likewise.
926         * tests/test-vasprintf-posix.c (test_function): Likewise.
927         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
928         * doc/posix-functions/printf.texi: Likewise.
929         * doc/posix-functions/snprintf.texi: Likewise.
930         * doc/posix-functions/sprintf.texi: Likewise.
931         * doc/posix-functions/vfprintf.texi: Likewise.
932         * doc/posix-functions/vprintf.texi: Likewise.
933         * doc/posix-functions/vsnprintf.texi: Likewise.
934         * doc/posix-functions/vsprintf.texi: Likewise.
935         * doc/glibc-functions/obstack_printf.texi: Likewise.
936         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
937
938 2010-11-27  Bruno Haible  <bruno@clisp.org>
939
940         Fix link error when module libunistring-optional is in use.
941         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
942         * modules/striconveha-tests (Makefile.am): Likewise.
943
944 2010-11-27  Bruno Haible  <bruno@clisp.org>
945
946         regex: Mention link dependencies.
947         * modules/regex (Link): New section.
948         * modules/rpmatch (Link): Likewise.
949         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
950
951 2010-11-27  Bruno Haible  <bruno@clisp.org>
952
953         ftoastr: Fix compilation error on Solaris.
954         * lib/ftoastr.c: Include <config.h>.
955
956 2010-11-27  Bruno Haible  <bruno@clisp.org>
957
958         getloadavg: Update documentation.
959         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
960
961 2010-11-27  Bruno Haible  <bruno@clisp.org>
962
963         sys_socket: Fix test whether the functions are declared.
964         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
965         not <sys/select.h>.
966
967 2010-11-27  Bruno Haible  <bruno@clisp.org>
968
969         getpass: Make sure to get system declaration on some platforms.
970         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
971         gl_USE_SYSTEM_EXTENSIONS.
972         * modules/getpass (Depends-on): Add extensions.
973
974 2010-11-26  Bruno Haible  <bruno@clisp.org>
975
976         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
977         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
978         'iconv' module is present.
979         (ICONV_CONST): New macro.
980         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
981         ICONV_CONST.
982         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
983         set ICONV_CONST.
984         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
985         here.
986         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
987         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
988         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
989         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
990         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
991         present.
992
993 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
994
995         ftoastr: comment fix
996         * lib/ftoastr.c: "little" -> "little or no" in comment
997
998 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         stdint: port to GCC 4.3 + OSX + Octave
1001         On this platform, stdint.h is buggy and defines int64_t to long
1002         long int.  The replacement defined it to long int, causing
1003         problems with C++ style name mangling.  Instead, trust the system
1004         definition if INT64_MAX is defined, and likewise for the unsigned
1005         variant.   Problem reported by Jarno Rajahalme in
1006         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1007         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1008         and don't mess with int64_t and INT64_MAX in this case.
1009         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1010
1011 2010-11-24  Bruno Haible  <bruno@clisp.org>
1012
1013         doc: Corrections regarding MacOS X 10.4 and 10.5.
1014         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1015         MacOS X.
1016         Reported by Simon Josefsson.
1017
1018 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1019
1020         Uninstall ".bin" files installed by relocwrapper.
1021         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1022         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1023         unless it is already there.
1024
1025 2010-11-21  Bruno Haible  <bruno@clisp.org>
1026
1027         Update for NetBSD 5.0.
1028         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1029         NetBSD; the test fails on NetBSD 5.0.
1030         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1031         about NetBSD.
1032
1033 2010-11-21  Bruno Haible  <bruno@clisp.org>
1034
1035         Update for HP-UX 11.23 and HP-UX 11.31.
1036         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1037         HP-UX.
1038
1039 2010-11-21  Bruno Haible  <bruno@clisp.org>
1040
1041         Update for MacOS X 10.5.
1042         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1043         MacOS X; the test fails on MacOS X 10.5.8.
1044         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1045         about MacOS X.
1046
1047 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1048
1049         bootstrap: add bootstrap_sync option.
1050         See discussion at
1051         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1053         * build-aux/bootstrap: Accept --bootstrap-sync to update
1054         bootstrap if it is not identical to the local gnulib's
1055         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1056         enable this by default.  Accept --no-bootstrap-sync to disable
1057         it.
1058
1059 2010-11-20  Bruno Haible  <bruno@clisp.org>
1060
1061         Ensure that <features.h> is included before __GLIBC__ is tested.
1062         * lib/printf-parse.h: Include <features.h>.
1063         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1064         Reported by Mike Frysinger <vapier@gentoo.org>.
1065
1066         Ensure that <features.h> is included before __GLIBC__ is tested.
1067         * lib/wchar.in.h: Include <features.h>.
1068         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1069         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1070         Reported by Mike Frysinger <vapier@gentoo.org>.
1071
1072         Ensure that <features.h> is included before __GLIBC__ is tested.
1073         * lib/arpa_inet.in.h: Include <features.h>.
1074         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1075         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1076         Reported by Mike Frysinger <vapier@gentoo.org>.
1077
1078         Ensure that <features.h> is included before __GLIBC__ is tested.
1079         * build-aux/link-warning.h: Include <features.h>.
1080         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1081         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1082         Reported by Mike Frysinger <vapier@gentoo.org>.
1083
1084         Ensure that <features.h> is included before __GLIBC__ is tested.
1085         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1086         Reported by Mike Frysinger <vapier@gentoo.org>.
1087
1088 2010-11-20  Bruno Haible  <bruno@clisp.org>
1089
1090         memmem: Fix autoconf test.
1091         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1092
1093 2010-11-20  Bruno Haible  <bruno@clisp.org>
1094
1095         Port to uClibc.
1096         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1097         * lib/fcntl.in.h: Likewise.
1098         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1099         * lib/mbrtowc.c (mbrtowc): Likewise.
1100         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1101         * lib/strerror_r.c: Likewise.
1102         * lib/unistr/u8-strnlen.c: Likewise.
1103         * lib/vasnprintf.c (decimal_point_char): Likewise.
1104         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1105         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1107         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1108         * tests/test-sigaction.c (handler, main): Likewise.
1109         * lib/freading.h: Treat uClibc like a non-glibc platform.
1110         * lib/freading.c: Likewise.
1111         * lib/gettext.h: Likewise.
1112         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1113         Likewise.
1114         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1115         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1116         * lib/propername.c (proper_name_utf8): Likewise.
1117         * lib/spawn.in.h: Likewise.
1118         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1119         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1120         mem_cd_iconveh_internal): Likewise.
1121         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1122         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1123         strstr, strcasestr): Likewise.
1124         * lib/unicodeio.c (unicode_to_mb): Likewise.
1125         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1126         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1127         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1128         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1129         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1130         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1131         * lib/unistr/u8-stpncpy.c: Likewise.
1132         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1133         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1134         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1135         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1136         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1138         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1140         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1141         Likewise.
1142         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1143         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1144         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1145         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1146         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1147         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1148         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1149         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1150         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1151         * tests/test-striconveha.c (main): Likewise.
1152         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1153         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1154         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1155         * doc/posix-functions/getline.texi: Likewise.
1156         Reported by Mike Frysinger <vapier@gentoo.org>.
1157
1158 2010-11-20  Bruno Haible  <bruno@clisp.org>
1159
1160         nproc: Fix condition.
1161         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1162         HAVE_PTHREAD_AFFINITY_NP.
1163
1164 2010-11-20  Bruno Haible  <bruno@clisp.org>
1165
1166         Fix a comment.
1167         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1168
1169 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1170
1171         ftoastr: don't assume snprintf
1172         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1173         Implement a subset of snprintf here, by using sprintf safely.
1174         * modules/ftoastr (Depends-on): Remove snprintf.
1175
1176 2010-11-19  Jim Meyering  <meyering@redhat.com>
1177
1178         test-rename.h: fix compilation failure
1179         * tests/test-rename.h (test_rename): Add omitted "}".
1180
1181 2010-11-17  Jim Meyering  <meyering@redhat.com>
1182
1183         maint.mk: add a URL discussing the no-@acronym policy
1184         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1185
1186 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1187
1188         ftoastr: depend on snprintf, improve comments
1189         * lib/ftoastr.c: Also mention Loitsch's draft.
1190         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1191         needed in the current implementation, but it might simplify
1192         speeding up the code later.
1193         * modules/ftoastr: Depend on snprintf; this improves portability.
1194         Suggested by Bruno Haible in the same email.
1195
1196         ftoastr: port to hosts lacking strtof and strtold
1197         Problem reported by Bruno Haible in
1198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1199         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1200         environment and strtold (and presumably strtof) are not available.
1201         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1202         (configure.ac): Require gl_C99_STRTOLD.
1203
1204 2010-11-18  Bruno Haible  <bruno@clisp.org>
1205
1206         c-strtold: Avoid link error on AIX 7.
1207         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1208         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1209         (gl_C_STRTOLD): Test whether strtold_l exists.
1210         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1211
1212 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1213
1214         intprops: new macro INT_BITS_STRLEN_BOUND
1215         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1216         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1217         not exposed.  Also, it uses a slightly tighter bound than before;
1218         though this makes no practical difference, we might as well be as
1219         tight as we easily can.
1220
1221         ftoastr: new module, for lossless conversion of floats to short strings
1222         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1223         * modules/ftoastr: New files.
1224
1225 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1226
1227         bootstrap: port to Solaris sed
1228         * build-aux/bootstrap (get_version): Port to Solaris sed.
1229         See Ralf Wildenhues's note in
1230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1231
1232 2010-11-14  Jim Meyering  <meyering@redhat.com>
1233
1234         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1235         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1236         and move definition closer to sole use.
1237
1238 2010-11-13  Jim Meyering  <meyering@redhat.com>
1239
1240         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1241         Now we require at least autoconf-2.59, which means the work-around
1242         is no longer needed.
1243         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1244         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1245         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1246         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1247         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1248
1249 2010-11-13  Bruno Haible  <bruno@clisp.org>
1250
1251         rename, renameat: Avoid test failures at NFS mounted locations.
1252         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1253         functions.
1254         (test_rename): Use assert_nonexistent.
1255         * tests/test-rename.c: Include <dirent.h>.
1256         * tests/test-renameat.c: Likewise.
1257         Reported by Gary V. Vaughan <gary@gnu.org>.
1258
1259         rename, renameat: Document Linux bug with NFS
1260         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1261         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1262         * doc/posix-functions/renameat.texi: Likewise.
1263         Suggested by Eric Blake.
1264
1265 2010-11-13  Bruno Haible  <bruno@clisp.org>
1266
1267         rename test: Add comments.
1268         * tests/test-rename.h (test_rename): Add structure and comments.
1269
1270 2010-11-13  Eric Blake  <eblake@redhat.com>
1271
1272         maintainer-makefile: cover a few more files
1273         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1274         scripts generated within C files, for libvirt.
1275
1276 2010-11-13  Bruno Haible  <bruno@clisp.org>
1277
1278         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1279         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1280         character, return the number of bytes that belong together, not always
1281         1.
1282         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1283         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1284         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1285         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1286         number of bytes of an invalid character.
1287         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1288         (main): Invoke it.
1289         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1290         results.
1291         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1292         malformed byte sequences.
1293         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1294         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1295         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1296         Reported by Ben Pfaff and Paolo Bonzini.
1297
1298 2010-11-13  Bruno Haible  <bruno@clisp.org>
1299
1300         openat: Work around glibc bug with fchownat() and empty file names.
1301         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1302         (gl_FUNC_FCHOWNAT): Invoke it.
1303         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1304         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1305         Reported by Gary V. Vaughan <gary@gnu.org>.
1306
1307 2010-11-13  Bruno Haible  <bruno@clisp.org>
1308
1309         openat: Ensure autoconf macro ordering.
1310         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1311         gl_USE_SYSTEM_EXTENSIONS.
1312         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1313
1314 2010-11-13  Bruno Haible  <bruno@clisp.org>
1315
1316         Update comments.
1317         * lib/unistr/u8-check.c: Update file name in comments.
1318         * lib/unistr/u8-mblen.c: Likewise.
1319         * lib/unistr/u8-prev.c: Likewise.
1320         * lib/unistr/u8-strmblen.c: Likewise.
1321         * lib/unistr/u8-strmbtouc.c: Likewise.
1322
1323 2010-11-13  Jim Meyering  <meyering@redhat.com>
1324
1325         tests: avoid test failure on Solaris 10 due to lack of PATH export
1326         * tests/test-update-copyright.sh: Don't forget to export PATH.
1327
1328         init.sh: ensure that IFS is defined, just in case...
1329         * tests/init.sh (setup_): Ensure that IFS is defined,
1330         so that saving and restoring it works as expected.  This
1331         appears to be useful at least for an old version of dash
1332         from a long time ago (RH 6).  See here for details:
1333         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1334
1335         maint.mk: tighten "test a == b" check
1336         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1337         test to files that contain something like #!/bin/sh.
1338         Without this, coreutils would get two false positives in
1339         the comments of C source files.
1340
1341 2010-11-12  Eric Blake  <eblake@redhat.com>
1342
1343         bootstrap: fix typo in previous attempt
1344         * build-aux/bootstrap (buildreq): Correct the grouping.
1345         Reported by Paul Eggert.
1346
1347         maintainer-makefile: prohibit test x == x
1348         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1349         Based on a report by Matthias Bolte.
1350
1351         bootstrap: allow FreeBSD gzip
1352         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1353         which has no '.' and goes to stderr.
1354         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1355         Reported by Matthias Bolte.
1356
1357         maintainer-makefile: check for i18n setup
1358         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1359         will likely work.
1360
1361 2010-11-12  Bruno Haible  <bruno@clisp.org>
1362
1363         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1364         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1365         * lib/nanosleep.c (nanosleep): Likewise.
1366
1367 2010-11-11  Bruno Haible  <bruno@clisp.org>
1368
1369         fcntl-h: Fix for use of C++ on glibc systems.
1370         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1371         also on glibc systems in C++ mode.
1372         Reported by Gary V. Vaughan <gary@gnu.org>.
1373
1374 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1375
1376         mknod: avoid false failure with dash
1377         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1378
1379 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         unlink: Fix "is it should" typo in diagnostic.
1382         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1384
1385 2010-11-11  Bruno Haible  <bruno@clisp.org>
1386
1387         Tests for module 'strerror_r-posix'.
1388         * modules/strerror_r-posix-tests: New file.
1389         * tests/test-strerror_r.c: New file.
1390         * tests/test-string-c++.cc: Check the signature of strerror_r.
1391
1392         New module 'strerror_r-posix'.
1393         * lib/string.in.h (strerror_r): New declaration.
1394         * lib/strerror_r.c: New file.
1395         * m4/strerror_r.m4: New file.
1396         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1397         of strerror_r.
1398         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1399         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1400         * modules/strerror_r-posix: New file.
1401         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1402         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1403         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1404         portability problems.
1405
1406 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1407
1408         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1409         line is also considered for output. Quoted function name in shell
1410         command, so temporary files for functions like MyClass::operator()
1411         are removed correctly without errors.
1412
1413 2010-11-09  Bruno Haible  <bruno@clisp.org>
1414
1415         * doc/posix-functions/strerror.texi: List more failing platforms.
1416
1417         * doc/posix-functions/strerror.texi: Add a comment.
1418
1419 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1420
1421         fdopendir: fix bug on MacOS X when low on file descriptors
1422
1423         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1424         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1425         All callers changed.
1426         (fdopendir): Invoke save_cwd at the top level, not after using
1427         multiple dup() calls to use up file descriptors.  Then retry
1428         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1429         less than the maximum number of open file descriptors, because
1430         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1431         on Mac OS X 10.6.4 for tar 1.24
1432         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1433         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1434         and for tar 1.25
1435         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1436
1437 2010-11-07  Bruno Haible  <bruno@clisp.org>
1438
1439         vasnprintf: Support I flag on glibc systems.
1440         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1441         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1442         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1443         snprintf function.
1444         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1445         glibc systems.
1446         * tests/test-vasnprintf-posix3.c: New file.
1447         * modules/vasnprintf-posix-tests (Files): Add it.
1448         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1449
1450 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1451
1452         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1453         * MODULES.html.sh: For compiler warnings, use name
1454         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1455
1456 2010-11-05  Eric Blake  <eblake@redhat.com>
1457
1458         ceil, floor: avoid spurious failure with icc
1459         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1460         [denormals-as-zero] when optimizing without -mieee-fp option.
1461         * tests/test-floorf2.c (floorf_reference): Likewise.
1462         * tests/test-ceilf1.c (dummy): New function.
1463         (main): Use it to outsmart icc's optimization.
1464         * tests/test-floorf1.c (dummy, main): Likewise.
1465
1466         tests: require working signbit
1467         * modules/ceilf-tests (Depends-on): Add signbit.
1468         * modules/ceill-tests (Depends-on): Likewise.
1469         * modules/floorf-tests (Depends-on): Likewise.
1470         * modules/floorl-tests (Depends-on): Likewise.
1471         * modules/round-tests (Depends-on): Likewise.
1472         * modules/roundf-tests (Depends-on): Likewise.
1473         * modules/roundl-tests (Depends-on): Likewise.
1474         * modules/trunc-tests (Depends-on): Likewise.
1475         * modules/truncf-tests (Depends-on): Likewise.
1476         * modules/truncl-tests (Depends-on): Likewise.
1477
1478         strtod: work around icc bug
1479         * lib/strtod.c (minus_zero): Define to working value.
1480         (strtod): Use it to avoid icc bug.
1481
1482         copysign: enhance tests
1483         * modules/copysign-tests (Files): Add minus-zero.h.
1484         * tests/test-copysign.c (main): Also test zeros.
1485
1486 2010-11-04  Eric Blake  <eblake@redhat.com>
1487
1488         ceil, floor, round, trunc: enhance tests of -0
1489         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1490         * tests/test-ceill.c (main): Likewise.
1491         * tests/test-floorf1.c (main): Likewise.
1492         * tests/test-floorl.c (main): Likewise.
1493         * tests/test-round1.c (main): Likewise.
1494         * tests/test-roundf1.c (main): Likewise.
1495         * tests/test-roundl.c (main): Likewise.
1496         * tests/test-trunc1.c (main): Likewise.
1497         * tests/test-truncf1.c (main): Likewise.
1498         * tests/test-truncl.c (main): Likewise.
1499
1500 2010-11-04  Eric Blake  <eblake@redhat.com>
1501
1502         frexp, tests: work around ICC bug with -zero
1503         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1504         works with more compilers.
1505         * tests/minus-zero.h: New file.
1506         * modules/ceilf-tests (Files): Include it.
1507         * modules/ceill-tests (Files): Likewise.
1508         * modules/floorf-tests (Files): Likewise.
1509         * modules/floorl-tests (Files): Likewise.
1510         * modules/frexp-nolibm-tests (Files): Likewise.
1511         * modules/frexp-tests (Files): Likewise.
1512         * modules/frexpl-nolibm-tests (Files): Likewise.
1513         * modules/frexpl-tests (Files): Likewise.
1514         * modules/isnan-tests (Files): Likewise.
1515         * modules/isnand-nolibm-tests (Files): Likewise.
1516         * modules/isnand-tests (Files): Likewise.
1517         * modules/isnanf-nolibm-tests (Files): Likewise.
1518         * modules/isnanf-tests (Files): Likewise.
1519         * modules/isnanl-nolibm-tests (Files): Likewise.
1520         * modules/isnanl-tests (Files): Likewise.
1521         * modules/round-tests (Files): Likewise.
1522         * modules/roundf-tests (Files): Likewise.
1523         * modules/roundl-tests (Files): Likewise.
1524         * modules/ldexpl-tests (Files): Likewise.
1525         * modules/signbit-tests (Files): Likewise.
1526         * modules/snprintf-posix-tests (Files): Likewise.
1527         * modules/sprintf-posix-tests (Files): Likewise.
1528         * modules/strtod-tests (Files): Likewise.
1529         * modules/trunc-tests (Files): Likewise.
1530         * modules/truncf-tests (Files): Likewise.
1531         * modules/truncl-tests (Files): Likewise.
1532         * modules/vsnprintf-posix-tests (Files): Likewise.
1533         * modules/vsprintf-posix-tests (Files): Likewise.
1534         * modules/vasnprintf-posix-tests (Files): Likewise.
1535         * modules/vasprintf-posix-tests (Files): Likewise.
1536         * tests/test-ceilf1.c (main): Use it.
1537         * tests/test-ceill.c (main): Likewise.
1538         * tests/test-floorf1.c (main): Likewise.
1539         * tests/test-floorl.c (main): Likewise.
1540         * tests/test-frexp.c (main): Likewise.
1541         * tests/test-frexpl.c (main): Likewise.
1542         * tests/test-isnan.c (main): Likewise.
1543         * tests/test-isnand.h (main): Likewise.
1544         * tests/test-isnanf.h (main): Likewise.
1545         * tests/test-isnanl.h (main): Likewise.
1546         * tests/test-ldexpl.c (main): Likewise.
1547         * tests/test-round.c (main): Likewise.
1548         * tests/test-roundf.c (main): Likewise.
1549         * tests/test-roundl.c (main): Likewise.
1550         * tests/test-signbit.c (test_signbitf, test_signbitd)
1551         (test_signbitl): Likewise.
1552         * tests/test-snprintf-posix.h (test_function): Likewise.
1553         * tests/test-sprintf-posix.h (test_function): Likewise.
1554         * tests/test-strtod.c (main): Likewise.
1555         * tests/test-trunc1.c (main): Likewise.
1556         * tests/test-truncf1.c (main): Likewise.
1557         * tests/test-truncl.c (main): Likewise.
1558
1559         isnanl: work around icc bug
1560         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1561
1562 2010-11-03  Eric Blake  <eblake@redhat.com>
1563
1564         tests: fix compiler warnings
1565         * tests/test-getopt.h (test_getopt): Fix condition.
1566         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1567         * tests/test-pipe2.c (main): Likewise.
1568         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1569
1570         utimens: fix broken m4 test
1571         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1572
1573 2010-10-28  Bruno Haible  <bruno@clisp.org>
1574
1575         posix_spawn*, getdtablesize: Relax license.
1576         * modules/posix_spawn (License): Change to LGPLv2+.
1577         * modules/posix_spawnp (License): Likewise.
1578         * modules/posix_spawn-internal (License): Likewise.
1579         * modules/posix_spawnattr_init (License): Likewise.
1580         * modules/posix_spawnattr_getflags (License): Likewise.
1581         * modules/posix_spawnattr_setflags (License): Likewise.
1582         * modules/posix_spawnattr_getpgroup (License): Likewise.
1583         * modules/posix_spawnattr_setpgroup (License): Likewise.
1584         * modules/posix_spawnattr_getschedparam (License): Likewise.
1585         * modules/posix_spawnattr_setschedparam (License): Likewise.
1586         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1587         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1588         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1589         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1590         * modules/posix_spawnattr_getsigmask (License): Likewise.
1591         * modules/posix_spawnattr_setsigmask (License): Likewise.
1592         * modules/posix_spawnattr_destroy (License): Likewise.
1593         * modules/posix_spawn_file_actions_init (License): Likewise.
1594         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1595         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1596         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1597         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1598         * modules/getdtablesize (License): Likewise.
1599         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1600
1601 2010-10-26  Bruno Haible  <bruno@clisp.org>
1602
1603         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1604         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1605         Cygwin and mingw.
1606         Suggested by Eric Blake.
1607
1608 2010-10-26  Bruno Haible  <bruno@clisp.org>
1609
1610         stdio: Work around compilation error due to renameat() on Solaris 10.
1611         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1612         * lib/renameat.c: Don't include <unistd.h> here.
1613         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1614         Reported by Paul Eggert and Eric Blake.
1615
1616 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1617
1618         renameat: port to Solaris 10, which declares renameat in unistd.h
1619
1620         * lib/renameat.c: Include unistd.h before stdio.h, because
1621         Solaris 10 declares renameat in unistd.h.  Problem encountered
1622         when building GNU tar 1.24 on Solaris 10.
1623
1624 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1625
1626         fdopendir: fix C89 compilation
1627         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1628         compilers.
1629
1630 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         inttostr: simplify by removing unnecessary redundancy
1633         * lib/anytostr.c: Don't include verify.h.
1634         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1635         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1636         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1637         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1638         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1639         Likewise.
1640         * modules/inttostr (Depends-on): Remove 'verify'.
1641
1642 2010-10-23  Bruno Haible  <bruno@clisp.org>
1643
1644         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1645         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1646         Reported by Eric Blake.
1647
1648 2010-10-23  Bruno Haible  <bruno@clisp.org>
1649
1650         Tests: Fix LOCALE_JA on MirBSD 10.
1651         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1652         to an UTF-8 locale.
1653         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1654         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1655         Reported by Eric Blake.
1656
1657 2010-10-21  Bruno Haible  <bruno@clisp.org>
1658
1659         nl_langinfo test: Avoid test failure on NetBSD 5.
1660         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1661         Reported by Eric Blake.
1662
1663 2010-10-21  Eric Blake  <eblake@redhat.com>
1664
1665         c-stack: work around libsigsegv 2.8 bug
1666         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1667         overflow on at least PowerPC64.
1668
1669 2010-10-17  Bruno Haible  <bruno@clisp.org>
1670
1671         userspec: Drop redundant file.
1672         * modules/userspec (Files): Remove lib/inttostr.h.
1673
1674 2010-10-17  Bruno Haible  <bruno@clisp.org>
1675
1676         nl_langinfo tests: Silence some warnings.
1677         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1678         Reported by Jim Meyering.
1679
1680 2010-10-17  Bruno Haible  <bruno@clisp.org>
1681
1682         Make use of GCC's attribute __alloc_size__.
1683         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1684         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1685         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1686         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1687         __alloc_size__.
1688         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1689         Suggested by Jim Meyering.
1690
1691 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1692
1693         bootstrap: anchor .gitignore entries.
1694         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1695         with...
1696         (insert_vc_ignore): ... this new function, which prepends `/' to
1697         all .gitignore entries before passing them to
1698         insert_sorted_if_absent.
1699
1700 2010-10-16  Bruno Haible  <bruno@clisp.org>
1701
1702         nextafter: Fix configure check.
1703         * modules/nextafter (configure.ac): Correct expected prototype.
1704
1705 2010-10-16  Bruno Haible  <bruno@clisp.org>
1706
1707         termios: Update documentation.
1708         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1709
1710 2010-10-16  Bruno Haible  <bruno@clisp.org>
1711
1712         tests: Make them compile with TinyCC.
1713         * tests/test-strstr.c (main): Remove parentheses around array
1714         initializer.
1715
1716 2010-10-15  Eric Blake  <eblake@redhat.com>
1717
1718         ignore-value: make header idempotent
1719         * lib/ignore-value.h: Add double-inclusion guards.
1720         Reported by Stefan Berger.
1721
1722 2010-10-15  Jim Meyering  <meyering@redhat.com>
1723
1724         GNUmakefile: handle "stable" target, not "major"
1725         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1726         lists in maint.mk and announce-gen.  Without this, "make stable"
1727         would fail to ensure that $(VERSION) is up to date.
1728
1729 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1730
1731         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1732         & co.
1733
1734 2010-10-14  Bruno Haible  <bruno@clisp.org>
1735
1736         vasnprintf: Don't set errno to 0.
1737         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1738         block that sets it to 0.
1739         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1740
1741 2010-10-14  Bruno Haible  <bruno@clisp.org>
1742
1743         socketlib: Fix.
1744         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1745         gl_PREREQ_SYS_H_WINSOCK2.
1746         Reported by Ian Beckwith <ianb@erislabs.net>.
1747
1748 2010-10-13  Jim Meyering  <meyering@redhat.com>
1749
1750         test-select-stdin.c: avoid warn_unused_result warnings
1751         * tests/test-select-stdin.c: Include "macros.h".
1752         ASSERT that read and fflush succeed.
1753
1754 2010-10-13  Jim Meyering  <meyering@redhat.com>
1755
1756         git-version-gen: do require git-VC'd files in cwd
1757         * build-aux/git-version-gen: Reject a git version string
1758         if there are no commits associated with the current directory.
1759         This avoids an unlikely false-positive (unrelated dir whose parent
1760         repository also contains a tag matching v*), as pointed out
1761         by Giuseppe Scrivano in
1762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1763
1764 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1765
1766         argv-iter: omit nonconforming declaration
1767         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1768         enum arg_iter_err declaration, which doesn't conform to C99.
1769         Solaris 10 cc warns about this.
1770
1771 2010-10-13  Eric Blake  <eblake@redhat.com>
1772
1773         termios: fix compilation on mingw
1774         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1775         (gl_TERMIOS_H): Adjust it on mingw.
1776         * modules/termios (Makefile.am): Substitute new key.
1777         * lib/termios.in.h (includes): Make include_next conditional.
1778         * doc/posix-headers/termios.texi (termios.h): Update
1779         documentation.
1780         Reported by Daniel P. Berrange.
1781
1782 2010-10-13  Jim Meyering  <meyering@redhat.com>
1783
1784         git-version-gen: don't require that .git/ be in the current dir
1785         * build-aux/git-version-gen: Adjust this script so that it works
1786         when run from any working directory beneath the top-level .git/-
1787         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1788         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1789
1790         test-select: avoid warn_unused_result warnings
1791         * tests/test-select.c: Include "macros.h".
1792         ASSERT that each call to read, write, and pipe succeeds.
1793         While not technically required, also check each "close".
1794         * modules/select-tests (Files): Add tests/macros.h.
1795
1796         test-symlinkat: remove declaration of unused local
1797         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1798
1799         test-inttostr: avoid shadowing warnings
1800         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1801         and use malloc rather than the stack for the same reason as
1802         mentioned in the comment justifying the other allocation.
1803
1804 2010-10-11  Bruno Haible  <bruno@clisp.org>
1805
1806         stdlib: Allow multiple gnulib generated replacements to coexist.
1807         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1808         Reported by Sam Steingold <sds@gnu.org>.
1809
1810 2010-10-11  Jim Meyering  <meyering@redhat.com>
1811
1812         fix a documentation typo
1813         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1814
1815 2010-10-11  Eric Blake  <eblake@redhat.com>
1816
1817         futimens: work around Solaris 11 bug
1818         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1819         * tests/test-futimens.h (test_futimens): Enhance, rather than
1820         weaken test.
1821         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1822
1823 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1824
1825         Indentation.
1826         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1827         higher-level operators more to the left.
1828
1829 2010-10-11  Jim Meyering  <meyering@redhat.com>
1830
1831         test-futimens: avoid unwarranted test failure on Solaris 5.11
1832         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1833         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1834         because it tries to dereference the NULL name argument.
1835
1836 2010-10-11  Bruno Haible  <bruno@clisp.org>
1837
1838         Indentation.
1839         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1840         indentation.
1841
1842 2010-10-11  Jim Meyering  <meyering@redhat.com>
1843
1844         spawn.in.h: make indentation consistent with parentheses
1845         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1846         Make indentation consistent with parentheses.
1847
1848 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1849
1850         Fix mismatched parens in previous commit
1851         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1852         parens.
1853
1854 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1855
1856         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1857
1858         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1859         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1860         * lib/malloca.c: Include "verify.h".
1861         (verify1): Remove, replacing with a verify call.
1862         * lib/relocwrapper.c (verify1): Likewise.
1863         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
1864         Likewise.
1865         * modules/malloca (Depends-on): Add 'verify'.
1866         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
1867         * modules/vasnprintf (Depends-on): Add 'verify'.
1868         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
1869         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
1870         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
1871         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
1872         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
1873         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
1874         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
1875
1876         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
1877
1878         Formerly the style was sometimes 2*X - 1, because the C standard
1879         was wrongly thought to disallow ?: in integral constant expressions.
1880         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
1881         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
1882         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
1883         * lib/stdint.in.h (_verify_intmax_size): Likewise.
1884         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
1885         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
1886         verify that time_t cannot be floating.
1887
1888 2010-10-08  Eric Blake  <eblake@redhat.com>
1889
1890         time: enforce recent POSIX ruling that time_t is integral
1891         * lib/time.in.h (__time_t_must_be_integral): Detect any
1892         problematic systems, allowing the rest of gnulib to assume POSIX.
1893
1894 2010-10-08  Jim Meyering  <meyering@redhat.com>
1895
1896         fdopendir: fix a bug on systems lacking openat and /proc support
1897         OpenBSD 4.7 is one such system.  The most noticeable effect was
1898         failure of any application making nontrivial use of fts: rm, du,
1899         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
1900           ./rm: traversal failed: `a': Bad file descriptor
1901         Debugging that, you see that even though FD 6 was closed just
1902         prior to the opendir call in fd_clone_opendir, its resulting
1903         dir->dd_fd was 8, rather than the expected value of 6:
1904
1905         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
1906         93                close (fd);
1907         (gdb) n
1908         94                dir = fd_clone_opendir (dupfd);
1909         (gdb) n
1910         95                saved_errno = errno;
1911         (gdb) p dir->dd_fd
1912         $11 = 8
1913
1914         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
1915         The problem is that on OpenBSD, fd_clone_opendir has to resort
1916         to using the old-style save/restore CWD mechanism, due to its
1917         lack of openat/proc support, and *that* would steal the FD (6)
1918         that opendir was supposed to use.
1919
1920         The fix is to squirrel away the desired FD so that save_cwd uses a
1921         different one, and then free the dest FD right before calling opendir.
1922         That guarantees opendir will use the required file descriptor.
1923
1924         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
1925
1926 2010-10-08  Bruno Haible  <bruno@clisp.org>
1927
1928         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
1929         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
1930
1931 2010-10-08  Bruno Haible  <bruno@clisp.org>
1932
1933         nanosleep: Make replacement POSIX compliant.
1934         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
1935         is out of range.
1936         Reported by Jim Meyering.
1937
1938 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1939
1940         bootstrap: add hook for altering gnulib.mk, for Bison
1941         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
1942         the Bison bootstrapping process can rewrite file names and variables
1943         in this file before later parts of 'bootstrap' use the file.
1944         Bison wants to include lib/gnulib.mk from the top-level makefile,
1945         so it needs the file names in this file to be relative to the top
1946         level, not relative to lib; plus it needs variable names to be
1947         rewritten.
1948         (slurp): Use the new function.
1949
1950         bootstrap: reformat for readability
1951         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
1952
1953 2010-10-08  Eric Blake  <eblake@redhat.com>
1954
1955         docs: update cygwin progress
1956         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
1957         1.7.7.
1958         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
1959         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
1960         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
1961         * doc/posix-functions/carg.texi (carg): Likewise.
1962         * doc/posix-functions/cargf.texi (cargf): Likewise.
1963         * doc/posix-functions/casin.texi (casin): Likewise.
1964         * doc/posix-functions/casinf.texi (casinf): Likewise.
1965         * doc/posix-functions/casinh.texi (casinh): Likewise.
1966         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
1967         * doc/posix-functions/catan.texi (catan): Likewise.
1968         * doc/posix-functions/catanf.texi (catanf): Likewise.
1969         * doc/posix-functions/catanh.texi (catanh): Likewise.
1970         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
1971         * doc/posix-functions/ccos.texi (ccos): Likewise.
1972         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
1973         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
1974         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
1975         * doc/posix-functions/cexp.texi (cexp): Likewise.
1976         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
1977         * doc/posix-functions/cimag.texi (cimag): Likewise.
1978         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
1979         * doc/posix-functions/clog.texi (clog): Likewise.
1980         * doc/posix-functions/clogf.texi (clogf): Likewise.
1981         * doc/posix-functions/conj.texi (conj): Likewise.
1982         * doc/posix-functions/conjf.texi (conjf): Likewise.
1983         * doc/posix-functions/cpow.texi (cpow): Likewise.
1984         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
1985         * doc/posix-functions/cproj.texi (cproj): Likewise.
1986         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
1987         * doc/posix-functions/creal.texi (creal): Likewise.
1988         * doc/posix-functions/crealf.texi (crealf): Likewise.
1989         * doc/posix-functions/csin.texi (csin): Likewise.
1990         * doc/posix-functions/csinf.texi (csinf): Likewise.
1991         * doc/posix-functions/csinh.texi (csinh): Likewise.
1992         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
1993         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
1994         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
1995         * doc/posix-functions/ctan.texi (ctan): Likewise.
1996         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
1997         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
1998         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
1999         * doc/posix-headers/complex.texi (complex.h): Likewise.
2000
2001 2010-10-07  Jim Meyering  <meyering@redhat.com>
2002
2003         parse-datetime: avoid compilation failure on OpenBSD 4.7
2004         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2005         This works around a compilation failure on OpenBSD 4.7:
2006         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2007
2008 2010-10-07  Eric Blake  <eblake@redhat.com>
2009
2010         docs: update cygwin progress
2011         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2012         1.7.6.
2013         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2014         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2015         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2016         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2017         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2018         Likewise.
2019         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2020         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2021         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2022         Likewise.
2023         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2024         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2025         Likewise.
2026         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2027         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2028         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2029         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2030         Likewise.
2031         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2032         Likewise.
2033         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2034
2035         docs: update parse-datetime history
2036         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2037         documentation of this function's history and alternatives.
2038
2039         cygwin: use more robust version check
2040         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2041         exclude an eventual cygwin 1.9.1.
2042         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2043         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2044         (gl_FUNC_STRCASESTR): Likewise.
2045         Reported by Bruno Haible.
2046
2047 2010-10-06  Bruno Haible  <bruno@clisp.org>
2048
2049         string, sys_select: Avoid #including large headers unless necessary.
2050         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2051         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2052         OSF/1, BeOS, Haiku.
2053         Reported by Jim Meyering.
2054
2055 2010-10-05  Eric Blake  <eblake@redhat.com>
2056
2057         memmem, strstr, strcasestr: fix bug with long periodic needle
2058         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2059         periodic needle having false positive.
2060         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2061         and cygwin 1.7.7.
2062         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2064         (gl_FUNC_STRCASESTR): Likewise.
2065         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2066         * tests/test-memmem.c (main): Expose the bug.
2067         * tests/test-strcasestr.c (main): Likewise.
2068         * tests/test-strstr.c (main): Likewise.
2069         * tests/test-c-strcasestr.c (main): Likewise.
2070         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2071         * doc/posix-functions/strstr.texi (strstr): Likewise.
2072         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2073         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2074
2075 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         parse-datetime: do some more renaming
2078         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2079         parse_datetime, not get_date.  Mention the renaming.
2080         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2081         in comments.
2082         * m4/bison.m4: Likewise.
2083
2084 2010-10-05  Eric Blake  <eblake@redhat.com>
2085
2086         parse-datetime: better name than get_date
2087         * NEWS: Reword the deprecation notice.
2088         * modules/get_date: Rename to modules/parse-datetime.
2089         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2090         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2091         * lib/get_date.y: Rename to lib/parse-datetime.y.
2092         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2093         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2094         * doc/getdate.texi: Provide fallback wrapper.
2095         * lib/getdate.h: Move guts, and wrap...
2096         * lib/parse-datetime.h: ...new file.
2097         * lib/parse-datetime.y (get_date): Rename...
2098         (parse_datetime): ...to this.
2099         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2100         (gl_PARSE_DATETIME): ...to this.
2101         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2102         documentation.
2103         * modules/getdate (Files): Provide fallback docs and header.
2104         (Notice, Depends-on): Update references.
2105         * tests/test-parse-datetime.c: Likewise.
2106         * DEPENDENCIES: Likewise.
2107         * MODULES.html.sh (Date and time <time.h>): Likewise.
2108         * doc/parse-datetime.texi (Date input formats)
2109         (Authors of parse_datetime): Likewise.
2110         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2111         (Include): Likewise.
2112         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2113         * gnulib-tool: Likewise.
2114         * m4/bison.m4 (gl_BISON): Likewise.
2115         Suggested by Bruno Haible.
2116
2117 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         more ports to Solaris tr, which needs [] around ranges
2120         * gnulib-tool: Solaris tr needs [] around ranges.
2121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2122         * tests/test-pipe-filter-gi1.c (main): Likewise.
2123         * tests/test-pipe-filter-ii1.c (main): Likewise.
2124
2125 2010-10-05  Eric Blake  <eblake@redhat.com>
2126
2127         bootstrap: fix Solaris regression
2128         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2129         around ranges.
2130         Reported by Pádraig Brady.
2131
2132         bootstrap: work with pkg-config
2133         * build-aux/bootstrap (check_versions): Also transliterate - in
2134         prerequisite name.
2135         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2136         prerequisites that were already found, to avoid confusion.
2137         Reported by Justin Clift.
2138
2139         faccessat: remove unused wrappers
2140         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2141         presence of these wrappers dragged in -lgen on Solaris.
2142         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2143
2144 2010-10-05  Jim Meyering  <meyering@redhat.com>
2145
2146         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2147         * Makefile (sc_pragma_columns): New syntax-check rule.
2148
2149 2010-10-04  Bruno Haible  <bruno@clisp.org>
2150
2151         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2152         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2153         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2154         Reported by Bruce Korb and Eric Blake.
2155
2156 2010-10-04  Bruno Haible  <bruno@clisp.org>
2157
2158         threadlib: Make option --with-libpth-prefix work.
2159         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2160         use $LIBPTH, not just -lpth.
2161
2162 2010-10-04  Bruno Haible  <bruno@clisp.org>
2163
2164         Avoid line length limitation from HP NonStop system header files.
2165         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2166         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2167         * lib/ctype.in.h: Likewise.
2168         * lib/dirent.in.h: Likewise.
2169         * lib/errno.in.h: Likewise.
2170         * lib/fcntl.in.h: Likewise.
2171         * lib/float.in.h: Likewise.
2172         * lib/getopt.in.h: Likewise.
2173         * lib/iconv.in.h: Likewise.
2174         * lib/inttypes.in.h: Likewise.
2175         * lib/langinfo.in.h: Likewise.
2176         * lib/locale.in.h: Likewise.
2177         * lib/math.in.h: Likewise.
2178         * lib/netdb.in.h: Likewise.
2179         * lib/netinet_in.in.h: Likewise.
2180         * lib/poll.in.h: Likewise.
2181         * lib/pthread.in.h: Likewise.
2182         * lib/pty.in.h: Likewise.
2183         * lib/sched.in.h: Likewise.
2184         * lib/se-selinux.in.h: Likewise.
2185         * lib/search.in.h: Likewise.
2186         * lib/signal.in.h: Likewise.
2187         * lib/spawn.in.h: Likewise.
2188         * lib/stdarg.in.h: Likewise.
2189         * lib/stddef.in.h: Likewise.
2190         * lib/stdint.in.h: Likewise.
2191         * lib/stdio.in.h: Likewise.
2192         * lib/stdlib.in.h: Likewise.
2193         * lib/string.in.h: Likewise.
2194         * lib/strings.in.h: Likewise.
2195         * lib/sys_file.in.h: Likewise.
2196         * lib/sys_ioctl.in.h: Likewise.
2197         * lib/sys_select.in.h: Likewise.
2198         * lib/sys_socket.in.h: Likewise.
2199         * lib/sys_stat.in.h: Likewise.
2200         * lib/sys_time.in.h: Likewise.
2201         * lib/sys_times.in.h: Likewise.
2202         * lib/sys_utsname.in.h: Likewise.
2203         * lib/sys_wait.in.h: Likewise.
2204         * lib/sysexits.in.h: Likewise.
2205         * lib/termios.in.h: Likewise.
2206         * lib/time.in.h: Likewise.
2207         * lib/unistd.in.h: Likewise.
2208         * lib/wchar.in.h: Likewise.
2209         * lib/wctype.in.h: Likewise.
2210         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2211         * modules/ctype (Makefile.am): Likewise.
2212         * modules/dirent (Makefile.am): Likewise.
2213         * modules/errno (Makefile.am): Likewise.
2214         * modules/fcntl-h (Makefile.am): Likewise.
2215         * modules/float (Makefile.am): Likewise.
2216         * modules/getopt-posix (Makefile.am): Likewise.
2217         * modules/iconv-h (Makefile.am): Likewise.
2218         * modules/inttypes (Makefile.am): Likewise.
2219         * modules/langinfo (Makefile.am): Likewise.
2220         * modules/locale (Makefile.am): Likewise.
2221         * modules/math (Makefile.am): Likewise.
2222         * modules/netdb (Makefile.am): Likewise.
2223         * modules/netinet_in (Makefile.am): Likewise.
2224         * modules/poll-h (Makefile.am): Likewise.
2225         * modules/pthread (Makefile.am): Likewise.
2226         * modules/pty (Makefile.am): Likewise.
2227         * modules/sched (Makefile.am): Likewise.
2228         * modules/search (Makefile.am): Likewise.
2229         * modules/selinux-h (Makefile.am): Likewise.
2230         * modules/signal (Makefile.am): Likewise.
2231         * modules/spawn (Makefile.am): Likewise.
2232         * modules/stdarg (Makefile.am): Likewise.
2233         * modules/stddef (Makefile.am): Likewise.
2234         * modules/stdint (Makefile.am): Likewise.
2235         * modules/stdio (Makefile.am): Likewise.
2236         * modules/stdlib (Makefile.am): Likewise.
2237         * modules/string (Makefile.am): Likewise.
2238         * modules/strings (Makefile.am): Likewise.
2239         * modules/sys_file (Makefile.am): Likewise.
2240         * modules/sys_ioctl (Makefile.am): Likewise.
2241         * modules/sys_select (Makefile.am): Likewise.
2242         * modules/sys_socket (Makefile.am): Likewise.
2243         * modules/sys_stat (Makefile.am): Likewise.
2244         * modules/sys_time (Makefile.am): Likewise.
2245         * modules/sys_times (Makefile.am): Likewise.
2246         * modules/sys_utsname (Makefile.am): Likewise.
2247         * modules/sys_wait (Makefile.am): Likewise.
2248         * modules/sysexits (Makefile.am): Likewise.
2249         * modules/termios (Makefile.am): Likewise.
2250         * modules/time (Makefile.am): Likewise.
2251         * modules/unistd (Makefile.am): Likewise.
2252         * modules/wchar (Makefile.am): Likewise.
2253         * modules/wctype (Makefile.am): Likewise.
2254
2255 2010-10-04  Bruno Haible  <bruno@clisp.org>
2256
2257         read-file tests: Avoid a test failure on NonStop Kernel.
2258         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2259         a regular file.
2260         Reported by Joachim Schmitz <schmitz@hp.com>.
2261
2262 2010-10-03  Bruno Haible  <bruno@clisp.org>
2263
2264         gnulib-tool: Fixes for --create-testdir with --libtool.
2265         * gnulib-tool (func_get_automake_snippet): Don't augment
2266         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2267         an executable.
2268         (func_create_testdir): Handle module 'alloca' like func_import.
2269         Reported by Bruce Korb <bruce.korb@gmail.com>.
2270
2271 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2272
2273         Avoid some lines longer than 80 characters.
2274         * lib/stdint.in.h: Break long comment lines.
2275         * lib/math.in.h: Likewise.
2276         (_GL_NUM_UINT_WORDS): New macro, for readability.
2277         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2278         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2279         * lib/stdlib.in.h: Likewise.
2280         * lib/spawn.in.h: Likewise.
2281         * lib/sys_socket.in.h: Update an URL.
2282         * lib/sys_stat.in.h: Break long line.
2283
2284 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2285
2286         Improve pmccabe2html.
2287         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2288         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2289         when the sources change. Remove the line in the HTML about "Used
2290         ranges" (which implied that there might be other unused ranges),
2291         rename "Resume" to "Summary" (easier to understand for more users).
2292         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2293         styles, and some unnecessary blank lines.
2294
2295 2010-10-03  Bruno Haible  <bruno@clisp.org>
2296             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2297
2298         acl: Add support for ACLs on NonStop Kernel.
2299         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2300         Check whether the function aclsort() exists.
2301         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2302         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2303         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2304         (acl_nontrivial [HAVE_ACLSORT]: New function.
2305         (file_has_acl): Implement for NonStop Kernel.
2306         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2307         (qset_acl): Implement for NonStop Kernel.
2308         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2309         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2310         (main): Implement for NonStop Kernel.
2311         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2312         Kernel. Handle this flavor.
2313         * tests/test-set-mode-acl.sh: Likewise.
2314         * tests/test-copy-acl.sh: Likewise.
2315         * tests/test-copy-file.sh: Likewise.
2316
2317 2010-10-03  Bruno Haible  <bruno@clisp.org>
2318
2319         Info about ACLs on NonStop Kernel.
2320         * doc/acl-resources.txt: Add info about NonStop Kernel.
2321         References by Joachim Schmitz <schmitz@hp.com>.
2322
2323 2010-10-02  Bruno Haible  <bruno@clisp.org>
2324
2325         Define missing EDQUOT on NonStop Kernel.
2326         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2327         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2328         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2329         missing.
2330         * doc/posix-headers/errno.texi: Mention the NSK bug.
2331         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2332         Reported by Joachim Schmitz <schmitz@hp.com>.
2333
2334 2010-10-02  Bruno Haible  <bruno@clisp.org>
2335
2336         Update doc for POSIX:2008.
2337         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2338         Update URL of POSIX specification.
2339
2340 2010-10-02  Bruno Haible  <bruno@clisp.org>
2341
2342         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2343         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2344         from gnulib, not from Automake.
2345
2346 2010-10-02  Bruno Haible  <bruno@clisp.org>
2347
2348         New module 'system-posix'.
2349         * modules/system-posix: New file.
2350         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2351         module is present.
2352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2353         GNULIB_SYSTEM_POSIX.
2354         * modules/stdlib (Depends-on): Remove sys_wait.
2355         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2356         * doc/posix-functions/system.texi: Mention the new module.
2357         * doc/posix-headers/stdlib.texi: Likewise.
2358         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2359         define test_sys_wait_macros to a no-op.
2360         Reported by Sam Steingold <sds@gnu.org>.
2361
2362 2010-09-30  Bruno Haible  <bruno@clisp.org>
2363
2364         More renaming from 'getdate' to 'get_date'.
2365         * doc/get_date.texi: Renamed from doc/getdate.texi.
2366         * modules/get_date (Files): Update.
2367         * MODULES.html.sh (Date and time <time.h>): Update.
2368         * DEPENDENCIES: Update.
2369         * gnulib-tool: Update comment.
2370         * m4/bison.m4 (gl_BISON): Likewise.
2371         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2372
2373 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2374
2375         bootstrap: support ACLOCAL_FLAGS during aclocal
2376         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2377         can add additional -I dir for third-party .m4 files.
2378
2379 2010-09-30  Eric Blake  <eblake@redhat.com>
2380
2381         bootstrap: use glibtoolize on MacOS
2382         * build-aux/bootstrap (check_versions): Convert libtool into
2383         libtoolize.
2384         (tool search): Move libtool check earlier, and look for
2385         glibtoolize for MacOS.
2386         (gnulib_tool_options): Auto-add --libtool when appropriate.
2387         Reported by Justin Clift.
2388
2389         poll: fix typo that broke test on MacOS
2390         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2391         Reported by Justin Clift.
2392
2393         getdate: rename to get_date
2394         Note: getdate.h is not renamed, to minimize client impact.
2395         * modules/getdate: Mark obsolete.  Move old contents...
2396         * modules/get_date: ...to new module name.
2397         * modules/getdate-tests: Move...
2398         * modules/get_date-tests: ...here.
2399         * m4/getdate.m4: Move...
2400         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2401         * lib/getdate.y: Move...
2402         * lib/get_date.y: ...here.
2403         * tests/test-getdate.c: Move...
2404         * tests/test-get_date.c: ...here.
2405         * doc/posix-functions/getdate.texi (getdate): Update name.
2406         * NEWS: Mention the change.
2407
2408 2010-09-29  Bruno Haible  <bruno@clisp.org>
2409
2410         Separate the module 'waitpid' from the module 'sys_wait'.
2411         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2412         present.
2413         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2414         gl_MODULE_INDICATOR_FOR_TESTS.
2415         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2416         * modules/sys_wait (Depends-on): Remove waitpid.
2417         (Makefile.am): Substitute GNULIB_WAITPID.
2418         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2419         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2420         signature only if the 'waitpid' module is present.
2421         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2422         * NEWS: Mention the change.
2423         * modules/grantpt (Depends-on): Add waitpid.
2424         * modules/wait-process (Depends-on): Likewise.
2425
2426 2010-09-29  Bruno Haible  <bruno@clisp.org>
2427
2428         More tests for module 'sys_wait'.
2429         * modules/sys_wait-c++-tests: New file.
2430         * tests/test-sys_wait-c++.cc: New file.
2431         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2432         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2433
2434 2010-09-29  Bruno Haible  <bruno@clisp.org>
2435
2436         New module 'waitpid'.
2437         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2438         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2439         Don't include <process.h>.
2440         (waitpid): Declare only, using modern idiom.
2441         * m4/waitpid.m4: New file.
2442         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2443         * modules/waitpid: New file.
2444         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2445         (Makefile.am): Update.
2446         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2447
2448 2010-09-28  Bruno Haible  <bruno@clisp.org>
2449
2450         poll: Assume ANSI C.
2451         * lib/poll.c (poll): Use an ANSI C declaration.
2452
2453 2010-09-28  Bruno Haible  <bruno@clisp.org>
2454
2455         poll-h: Create poll.h on all platforms.
2456         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2457         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2458         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2459         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2460         (gl_REPLACE_POLL_H): Don't set POLL_H.
2461         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2462         * modules/poll-h (Depends-on): Add include_next.
2463         (Makefile.am): Create poll.h unconditionally. Substitute also
2464         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2465
2466 2010-09-28  Bruno Haible  <bruno@clisp.org>
2467
2468         Tests for module 'poll-h'.
2469         * modules/poll-h-c++-tests: New file.
2470         * tests/test-poll-h-c++.cc: New file.
2471
2472         Tests for module 'poll-h'.
2473         * modules/poll-h-tests: New file.
2474         * tests/test-poll-h.c: New file.
2475
2476 2010-09-28  Bruno Haible  <bruno@clisp.org>
2477
2478         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2479         * modules/poll-h (Depends-on): Add 'extensions'.
2480
2481 2010-09-28  Bruno Haible  <bruno@clisp.org>
2482
2483         New module 'poll-h'.
2484         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2485         (poll): Use modern idiom.
2486         * modules/poll-h: New file.
2487         * modules/poll (Files): Remove lib/poll.in.h.
2488         (Depends-on): Add poll-h.
2489         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2490         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2491         * m4/poll_h.m4: New file.
2492         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2493         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2494         and invoke gl_REPLACE_POLL_H.
2495         * lib/poll.c: Use common idiom.
2496         * tests/test-poll.c: Likewise.
2497         * doc/posix-headers/poll.texi: Mention the poll-h module.
2498         Suggested by Eric Blake.
2499
2500 2010-09-26  Bruno Haible  <bruno@clisp.org>
2501
2502         sys_wait: Implement WSTOPSIG.
2503         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2504         Reported by Simon Josefsson.
2505
2506 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2507
2508         stdlib, sys_wait: Avoid compilation error on mingw.
2509         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2510
2511 2010-09-26  Bruno Haible  <bruno@clisp.org>
2512
2513         stdlib tests: Avoid code duplication.
2514         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2515         * modules/sys_wait-tests (Files): Likewise.
2516         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2517         * tests/test-stdlib.c: Include test-sys_wait.h.
2518         (main): Invoke test_sys_wait_macros.
2519         * tests/test-sys_wait.c: Include test-sys_wait.h.
2520         (main): Invoke test_sys_wait_macros.
2521
2522 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2523
2524         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2525         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2526         sure Windows sockets are working before calling getaddrinfo.
2527         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2528         * doc/gnulib.texi (Windows sockets): Fix typo.
2529
2530 2010-09-25  Bruno Haible  <bruno@clisp.org>
2531
2532         Tests for module 'regex-quote'.
2533         * modules/regex-quote-tests: New file.
2534         * tests/test-regex-quote.c: New file.
2535
2536         New module 'regex-quote'.
2537         * lib/regex-quote.h: New file.
2538         * lib/regex-quote.c: New file.
2539         * modules/regex-quote: New file.
2540         Suggested by Reuben Thomas <rrt@sc3d.org>.
2541
2542 2010-09-24  Bruno Haible  <bruno@clisp.org>
2543
2544         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2545         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2546
2547 2010-09-23  Bruno Haible  <bruno@clisp.org>
2548
2549         setenv: Relax license.
2550         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2551         Blake.
2552         Requested by Eric Blake.
2553
2554 2010-09-22  Bruno Haible  <bruno@clisp.org>
2555
2556         termios: Relax license.
2557         * modules/termios (License): Change to LGPLv2+.
2558         Requested by Eric Blake.
2559
2560 2010-09-22  Bruno Haible  <bruno@clisp.org>
2561
2562         threadlib: Allow the package to change the default to 'no'.
2563         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2564         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2565         Reported by Paul Eggert.
2566
2567 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2568             Bruno Haible  <bruno@clisp.org>
2569
2570         Fix endless loop in mbmemcasecoll.
2571         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2572         byte.
2573         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2574
2575 2010-09-22  Bruno Haible  <bruno@clisp.org>
2576
2577         Tests for module 'memcoll'.
2578         * modules/memcoll-tests: New file.
2579         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2580
2581         memcoll, xmemcoll: Clarify size vs. length.
2582         * modules/memcoll.c (memcoll0): Clarify specification.
2583         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2584         passed to collate_error.
2585
2586 2010-09-22  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'memcasecmp'.
2589         * modules/memcasecmp-tests: New file.
2590         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2591
2592 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2593
2594         * lib/pthread.in.h: Add split double-inclusion guard, and include
2595         system <pthread.h> if there is one.  Use @@-style as in other
2596         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2597         pthread.h doesn't.
2598         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2599         (pthread_mutexattr_settype, pthread_mutex_trylock):
2600         New static inline functions, if there's no system <pthread.h>.
2601         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2602         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2603         Approximate with mutexes if the system lacks spinlocks, as in
2604         MacOS.
2605         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2606         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2607         @@-style.  Check for spinlocks separately.
2608         (gl_PTHREAD_DEFAULTS): New macro.
2609         * modules/pthread: Redo to use a more typical style for in.h files.
2610
2611 2010-09-21  Eric Blake  <eblake@redhat.com>
2612
2613         net_if: enhance tests
2614         * tests/test-net_if.c (main): Move signature checks earlier.
2615         Print failures to stderr.
2616         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2617         Document the bug that we do not yet fix.
2618
2619 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2620
2621         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2622         about gnulib, not GSS.
2623
2624 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2625
2626         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2627         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2628         for Emacs.
2629         * build-aux/pmccabe2html: Make Makefile.am example code more
2630         cut-and-paste friendly.
2631
2632 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2633
2634         * tests/test-net_if.c: New file.
2635         * modules/net_if-tests: New file.
2636
2637 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         pthread: add pthread_spin_destroy
2640         * lib/pthread.in.h (pthread_spin_destroy): New function.
2641
2642 2010-09-19  Bruno Haible  <bruno@clisp.org>
2643
2644         gnulib-tool: Fix --help output.
2645         * gnulib-tool (func_usage): Fix help message.
2646         Reported by Reuben Thomas <rrt@sc3d.org>.
2647
2648 2010-09-18  Jim Meyering  <meyering@redhat.com>
2649
2650         maint.mk: avoid unexpanded \n in two diagnostics
2651         * top/maint.mk (sc_prohibit_always_true_header_tests):
2652         Don't use a literal \n in a halt=... assignment.  It would not be
2653         expanded, and the two \n bytes would appear in the diagnostic output
2654         rather than the desired newline.  Use halt=$$(printf ... instead.
2655         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2656
2657 2010-09-18  Bruno Haible  <bruno@clisp.org>
2658
2659         netinet_in: Doc tweak.
2660         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2661         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2662
2663 2010-09-18  Jim Meyering  <meyering@redhat.com>
2664
2665         init.sh: correct an outdated comment
2666         * tests/init.sh (create_exe_shims_):  s/function/alias/
2667
2668         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2669         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2670         a file named "*.exe" is removed between the glob expansion and the
2671         processing of that oddly named file.
2672
2673 2010-09-17  Eric Blake  <eblake@redhat.com>
2674
2675         mirbsd: add some more support
2676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2677         in BSD family.
2678         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2679         devices as OpenBSD.
2680         * m4/host-os.m4 (mirbsd): Add MirBSD.
2681
2682         tests: fix unportable assumption on sys/wait.h
2683         * tests/test-sys_wait.c (main): Relax test.
2684         * tests/test-stdlib.c (main): Likewise.
2685
2686         init.sh: accomodate directory with no .exes
2687         * tests/init.sh: Accomodate directory containing only scripts.
2688
2689         tests: avoid compiler warning
2690         * tests/test-stdlib.c (main): Use the variable.
2691
2692         fdutimens, fdutimensat: update signature, again
2693         * lib/utimens.h (gl_futimens): Delete, and move signature...
2694         (fdutimens): ...here.
2695         (fdutimensat): Rearrange signature.
2696         (lutimensat): Rename variable for clarity.
2697         * lib/fdutimensat.c (fdutimensat): Update signature.
2698         * lib/utimens.c (fdutimens): Likewise.
2699         (gl_futimens): Delete.
2700         (utimens, lutimens): Update callers.
2701         * lib/futimens.c (futimens): Likewise.
2702         * tests/test-fdutimensat.c: Likewise.
2703         * tests/test-utimens.c: Likewise.
2704         * tests/test-futimens.h: Update comment.
2705         * NEWS: Mention this.
2706         Suggested by Paul Eggert.
2707
2708 2010-09-17  Bruno Haible  <bruno@clisp.org>
2709
2710         Take over the maintenance of some older macros from Autoconf.
2711         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2712         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2713         GNU Autoconf.
2714         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2715         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2716
2717 2010-09-17  Eric Blake  <eblake@redhat.com>
2718
2719         fdutimensat: drop atflag validation
2720         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2721         with valid fd, to close a race scenario where futimens is
2722         unsupported and FILE was replaced by a symlink.
2723         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2724         accordingly.
2725         Suggested by Paul Eggert.
2726
2727 2010-09-16  Bruno Haible  <bruno@clisp.org>
2728
2729         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2730         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2731
2732 2010-09-16  Bruno Haible  <bruno@clisp.org>
2733
2734         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2735         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2736         login_tty exists.
2737         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2738
2739 2010-09-16  Bruno Haible  <bruno@clisp.org>
2740
2741         login_tty: Make the replacement code work on BSD systems.
2742         * lib/login_tty.c: Include <sys/ioctl.h>.
2743         (login_tty): Use ioctl TIOCSCTTY when available.
2744         * modules/login_tty (Depends-on): Add sys_ioctl.
2745         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2746
2747 2010-09-16  Bruno Haible  <bruno@clisp.org>
2748
2749         login_tty: Stricter unit test.
2750         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2751         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2752         and tcgetsid() after login_tty.
2753         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2754
2755 2010-09-16  Bruno Haible  <bruno@clisp.org>
2756
2757         New module 'tcgetsid'.
2758         * lib/tcgetsid.c: New file.
2759         * m4/tcgetsid.m4: New file.
2760         * modules/tcgetsid: New file.
2761         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2762         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2763         GNULIB_TCGETSID, HAVE_TCGETSID.
2764         * lib/termios.in.h: Include <sys/types.h>.
2765         (tcgetsid): New declaration.
2766         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2767         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2768         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2769         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2770
2771 2010-09-16  Bruno Haible  <bruno@clisp.org>
2772
2773         Tests for module 'termios'.
2774         * modules/termios-c++-tests: New file.
2775         * modules/termios-tests: New file.
2776         * tests/test-termios-c++.cc: New file.
2777         * tests/test-termios.c: New file.
2778
2779         New module 'termios'.
2780         * modules/termios: New file.
2781         * lib/termios.in.h: New file.
2782         * m4/termios_h.m4: New file.
2783         * doc/posix-headers/termios.texi: Mention the new module.
2784
2785 2010-09-16  Eric Blake  <eblake@redhat.com>
2786
2787         fdutimensat: add an atflag parameter
2788         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2789         * lib/utimens.h (fdutimensat): Update prototype.
2790         * tests/test-fdutimensat.c: Adjust test to match.
2791         * NEWS: Document the change.
2792         Suggested by Paul Eggert.
2793
2794 2010-09-16  Bruno Haible  <bruno@clisp.org>
2795
2796         Fix typos in comments.
2797         * lib/striconveh.h: Fix typo in comment.
2798         * lib/login_tty.c (login_tty): Likewise.
2799
2800 2010-09-15  Bruno Haible  <bruno@clisp.org>
2801
2802         stdlib: clarify MirBSD WEXITSTATUS bug
2803         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2804         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2805
2806 2010-09-15  Eric Blake  <eblake@redhat.com>
2807
2808         stdlib: work around MirBSD WEXITSTATUS bug
2809         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2810         * modules/stdlib (Depends-on): Add sys_wait.
2811         * tests/test-sys_wait.c (main): Enhance test.
2812         * tests/test-stdlib.c (main): Likewise.
2813         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2814
2815         docs: mention MacOS issue with WEXITSTATUS(constant)
2816         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2817         issue.
2818         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2819
2820         strnlen: add tests
2821         * modules/strnlen-tests: New file.
2822         * tests/test-strnlen.c: Likewise.
2823
2824 2010-09-14  Bruno Haible  <bruno@clisp.org>
2825
2826         unistr/base: Avoid link errors when module 'libunistring' is also used.
2827         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2828         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2829         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2830         Declare also when HAVE_LIBUNISTRING is set.
2831         Reported by Pádraig Brady <P@draigbrady.com>.
2832
2833 2010-09-14  Eric Blake  <eblake@redhat.com>
2834
2835         test-rawmemchr: make more robust
2836         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2837         (Depends-on, configure.ac): Add needed prerequisites to use it.
2838         * modules/memchr-tests (Files, Depends-on, configure.ac):
2839         Likewise, to avoid implicit reliance on memchr module prereqs.
2840         * tests/test-memchr.c (main): Ensure proper masking.
2841         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2842         reads.
2843
2844         memchr: detect glibc Alpha bug
2845         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2846         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2847         Alpha.
2848         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2849         * tests/test-memchr.c (main): Enhance test.
2850         Reported by Nelson H. F. Beebe.
2851
2852 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2853
2854         fts, getcwd, glob: audit for dirfd returning -1
2855         * lib/fts.c (opendir): Remove #define; no longer used.
2856         (opendirat): New arg PDIR_FD.  All callers changed.
2857         (fts_build, _opendir2): Use new opendirat to avoid the need for
2858         dirfd, or for checking whether dirfd returns a negative value.
2859         Don't use opendir; always use openat followed by fdopendir.
2860         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
2861         it.
2862         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
2863         returns -1 here.
2864         * modules/fts (Depends-on): Remove dirfd.
2865         * modules/getcwd (Depends-on): Likewise.
2866
2867 2010-09-13  Eric Blake  <eblake@redhat.com>
2868
2869         float: fix broken MirBSD header
2870         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
2871         * doc/posix-headers/float.texi (float.h): Document it.
2872
2873 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2874
2875         fts: use O_NOFOLLOW to avoid race condition when opening a directory
2876         * lib/fts.c (opendirat): New arg extra_flags.
2877         (__opendir2): Use it to avoid following symlinks when opening
2878         a directory, if symlinks are not supposed to be followed.  See
2879         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
2880
2881         fdopendir: preserve argument fd before returning
2882         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
2883         (fdopendir_with_dup, fd_clone_opendir): New static functions.
2884         (fdopendir): Use them, arranging for FD to be open to the same
2885         directory that it was when it started.  (It might be temporarily
2886         closed while fdopendir is running, so this not thread- or
2887         signal-safe.)  Be careful to do the right thing even when file
2888         descriptors are scarce and dup fails with errno == EMFILE.  See
2889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
2890
2891 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
2892
2893         regex: Pass the system regex if its only problem is 32-bit regoff_t.
2894         * NEWS: Document change.
2895         * m4/regex.m4: Disable test for regoff_t size.
2896
2897 2010-09-13  Jim Meyering  <meyering@redhat.com>
2898
2899         fts: don't operate on an invalid file descriptor after failed dup
2900         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
2901         negative file descriptor.
2902
2903 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2904
2905         savedir: add streamsavedir, deprecate fdsavedir
2906         * NEWS: Mention deprecation of fdsavedir.
2907         * lib/savedir.c (streamsavedir): New extern function, whose name
2908         ends in "savedir" to be consistent with the others.  This differs
2909         from savedirstream in that it doesn't close its argument.  The
2910         next version of GNU tar will use this instead of fdsavedir, to
2911         avoid some race conditions and conserve file descriptors.
2912         (savedirstream): Reimplement as a wrapper around streamsavedir.
2913         (fdsavedir): Add a comment deprecating this function.  As far as
2914         I know, only GNU tar used it, and GNU tar doesn't need it any more.
2915         * lib/savedir.h (streamsavedir): New decl.
2916         (fdsavedir): Add a comment deprecating this.
2917
2918 2010-09-10  Bruno Haible  <bruno@clisp.org>
2919
2920         langinfo: Fix last commit.
2921         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
2922         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
2923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2924
2925 2010-09-10  Bruno Haible  <bruno@clisp.org>
2926
2927         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
2928         * lib/progreloc.c (O_EXEC): Define fallback.
2929
2930 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2931
2932         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
2933         * NEWS: Document recent changes to fcntl-h.
2934         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
2935         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
2936         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
2937         Similarly for O_SEARCH; this last was already true, but not documented.
2938         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
2939         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
2940         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
2941         Likewise.
2942         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
2943         is zero, not whether it is defined.
2944         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
2945         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
2946         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
2947
2948 2010-09-10  Bruno Haible  <bruno@clisp.org>
2949
2950         langinfo, nl_langinfo: Fix for IRIX 5.3.
2951         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
2952         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
2953         HAVE_LANGINFO_YESEXPR.
2954         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
2955         HAVE_LANGINFO_YESEXPR.
2956         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
2957         HAVE_LANGINFO_T_FMT_AMPM is 0.
2958         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
2959         HAVE_LANGINFO_YESEXPR is 0.
2960         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
2961         NOEXPR.
2962         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
2963         * doc/posix-functions/nl_langinfo.texi: Likewise.
2964         Reported by Eric Blake.
2965
2966 2010-09-10  Bruno Haible  <bruno@clisp.org>
2967
2968         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
2969         * doc/glibc-functions/login_tty.texi: Mention the include file problem
2970         on FreeBSD 8.0 and OpenBSD 4.6.
2971         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
2972         * m4/pty_h.m4 (gl_PTY_H): Likewise.
2973         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
2974         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
2975         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
2976         ac_includes_default.
2977         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2978
2979 2010-09-09  Eric Blake  <eblake@redhat.com>
2980
2981         strsignal: work around NetBSD bug
2982         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
2983         * lib/string.in.h (includes): Likewise.
2984         * doc/posix-functions/strsignal.texi (strsignal): Document the
2985         bug.
2986         Reported by Nelson H. F. Beebe.
2987
2988         gnulib-tool: work with NetBSD /bin/sh
2989         * gnulib-tool (func_cache_var, func_cache_lookup_module)
2990         (func_get_description, func_get_comment, func_get_status)
2991         (func_get_notice, func_get_applicability, func_get_filelist)
2992         (func_get_dependencies, func_get_autoconf_early_snippet)
2993         (func_get_autoconf_snippet, func_get_automake_snippet)
2994         (func_get_include_directive, func_get_link_directive)
2995         (func_get_license, func_get_maintainer, func_import): Avoid
2996         shell syntax errors from parsing syntax extensions.
2997
2998 2010-09-09  Bruno Haible  <bruno@clisp.org>
2999
3000         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3001         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3002         a reliable way to determine whether the 'alias' command works.
3003
3004 2010-09-08  Jim Meyering  <meyering@redhat.com>
3005
3006         init.sh: penalize a set-x-impaired shell; don't disqualify it
3007         * tests/init.sh: Too many shells corrupt application stderr when
3008         you set -x, so we can't afford to disqualify them, since at least
3009         on Irix-6.5, that would disqualify all bourne shells.
3010         Instead, use a two-pass approach.
3011         On the first pass, try to find a shell that meets the stricter
3012         condition that set -x does not corrupt stderr.
3013         If no shell meets the stricter condition, retest each candidate
3014         shell, but without that extra condition.  Finally, when
3015         VERBOSE=yes is requested and set -x might cause trouble, simply
3016         issue a warning and refrain from enabling debug output.
3017
3018 2010-09-08  Eric Blake  <eblake@redhat.com>
3019
3020         unsetenv: fix OpenBSD bug
3021         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3022         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3023         documentation.
3024         Reported by Jim Meyering.
3025
3026         strtod: work around IRIX 6.5 bug
3027         * lib/strtod.c (strtod): Reparse number on shorter string if
3028         exponent parse was invalid.
3029         * tests/test-strtod.c (main): Add check for "0x1p 2".
3030         Reported by Tom G. Christensen.
3031
3032         getopt: optimize previous patch
3033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3034         empty variable.  Speed up awk script.
3035         Reported by Paolo Bonzini.
3036
3037 2010-09-08  Jim Meyering  <meyering@redhat.com>
3038
3039         test.sh: disqualify shells for which set -x corrupts stderr
3040         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3041         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3042         appear in stderr output.  For example, this command:
3043             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3044         prints "P=1" on those two systems:
3045
3046 2010-09-08  Bruno Haible  <bruno@clisp.org>
3047
3048         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3049         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3050         commands, because some shells ignore redirections when there is an
3051         error in the command lookup.
3052         Reported by Eric Blake.
3053
3054 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3055
3056         * lib/regex.h: Fix a mention of `regex_compile' (should be
3057         `re_compile_pattern').
3058         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3059         (re_set_registers): Correct name of parameter in comment.
3060
3061         * doc/regex.texi: Add documentation for missing syntax flags.
3062         Remove commented-out documentation of defunct syntax option
3063         RE_NO_EMPTY_ALTS.
3064         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3065         Add documentation of re_set_registers.
3066         Document trick to re-use a pattern buffer by setting fastmap manually.
3067         Update documentation of struct re_pattern_buffer per public members.
3068         Uncomment documentation of equivalence class operators and
3069         collating symbol operators, since they are now implemented,
3070         Explain leftmost-longest matching in relation to alternatives.
3071         Tidy documentation of substring matching.
3072         Remove POSIX documentation, which is done better in
3073         glibc, and refer the reader there. Keep BSD API documentation, as
3074         that is not readily available elsewhere.
3075
3076 2010-09-07  Eric Blake  <eblake@redhat.com>
3077
3078         getopt: handle POSIXLY_CORRECT set but not exported
3079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3080         export state of POSIXLY_CORRECT, due to bash set -o posix.
3081         Reported by Dustin J. Mitchell.
3082
3083 2010-09-05  Bruno Haible  <bruno@clisp.org>
3084
3085         gnulib-tool: Highlight the changed options.
3086         * gnulib-tool (func_usage): Display the --import, --add-import,
3087         --remove-import explanations in bold font.
3088
3089 2010-09-06  Karl Berry  <karl@gnu.org>
3090
3091         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3092
3093 2010-09-05  Bruno Haible  <bruno@clisp.org>
3094
3095         uniwidth/width: Update comment.
3096         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3097         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3098
3099 2010-09-05  Bruno Haible  <bruno@clisp.org>
3100
3101         isinf, isnan: Relax license.
3102         * modules/isinf (License): Change from GPL to LGPL, with consent from
3103         Ben Pfaff.
3104         * modules/isnan (License): Likewise.
3105         Requested by Ludovic Courtès.
3106
3107 2010-09-04  Bruno Haible  <bruno@clisp.org>
3108
3109         gnulib-tool: Help migration from --import to --add-import or --update.
3110         * gnulib-tool: Emit a verbose error message when --import is used
3111         without any module name.
3112
3113 2010-09-04  Bruno Haible  <bruno@clisp.org>
3114
3115         Update doc about gnulib-tool.
3116         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3117         'gnulib-tool --update' in more detail.
3118         Reported by Eric Blake.
3119
3120 2010-09-04  Bruno Haible  <bruno@clisp.org>
3121
3122         gnulib-tool: Change --import. New options --add/remove-import.
3123         * gnulib-tool: New options --add-import, --remove-import.
3124         (func_usage): Document them.
3125         (have_associative): Define always.
3126         (func_import): In import mode, don't merge the specified settings with
3127         the cached settings. Implement remove-import mode.
3128         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3129         Explain when to use them versus --import.
3130         (Simple update): Use --add-import instead of --import.
3131         * NEWS: Mention the change.
3132
3133 2010-09-04  Bruno Haible  <bruno@clisp.org>
3134
3135         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3136         separate gnulib.mk.
3137
3138 2010-09-04  Bruno Haible  <bruno@clisp.org>
3139
3140         gnulib-tool: Don't talk about CVS any more.
3141         * gnulib-tool (func_usage, func_import): Write "version control"
3142         instead of CVS.
3143
3144 2010-09-04  Jim Meyering  <meyering@redhat.com>
3145
3146         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3147         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3148         false positives (whose names may be ill-chosen) when searching
3149         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3150         would cause a false-positive.
3151
3152         avoid coreutils "make distcheck" failure
3153         Coreutils tests with an absolute build directory name that contains
3154         a space.  Not quoting this directory name caused a failure.
3155         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3156         * tests/test-vc-list-files-cvs.sh: Likewise.
3157
3158 2010-09-04  Bruno Haible  <bruno@clisp.org>
3159
3160         gnulib-tool: Avoid error when run in a package without Makefile.am.
3161         * gnulib-tool: When collecting the m4dirs in a package that does not
3162         have a Makefile.am, eliminate those directories that contain no
3163         gnulib-cache.m4. Fix expression that counts these directories.
3164
3165 2010-09-04  Bruno Haible  <bruno@clisp.org>
3166
3167         update-copyright test: Improve output when perl is missing or too old.
3168         * tests/test-update-copyright.sh: Move test of Perl version down after
3169         the test whether Perl exists. Provide an explanation relating Perl's
3170         error message to Automake's SKIP: message.
3171
3172 2010-09-04  Bruno Haible  <bruno@clisp.org>
3173
3174         Don't augment PATH in TESTS_ENVIRONMENT.
3175         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3176         set abs_aux_dir instead of augmenting PATH.
3177         * modules/vc-list-files-tests (Makefile.am): Likewise.
3178         * tests/test-update-copyright.sh: Augment PATH here.
3179         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3180         path_prepend_.
3181         * tests/test-vc-list-files-git.sh: Likewise.
3182
3183 2010-09-04  Jim Meyering  <meyering@redhat.com>
3184
3185         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3186         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3187
3188 2010-09-04  Bruno Haible  <bruno@clisp.org>
3189
3190         strdup: Fix compilation error in C++ mode.
3191         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3192         the macro.
3193
3194 2010-09-04  Bruno Haible  <bruno@clisp.org>
3195
3196         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3197         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3198         macro into a function.
3199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3200
3201 2010-09-04  Bruno Haible  <bruno@clisp.org>
3202
3203         Set PATH_SEPARATOR the same way autoconf does.
3204         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3205         the value of PATH_SEPARATOR the same way autoconf-generated configure
3206         scripts do.
3207         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3208         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3209
3210 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3211
3212         Set PATH_SEPARATOR the same way autoconf does.
3213         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3214         the same way autoconf-generated configure scripts do.
3215         * posix-modules: Likewise.
3216
3217 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3218
3219         hash: fix safe_hasher const typo
3220         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3221         const; otherwise, there is a type error later.
3222
3223 2010-09-02  Jim Meyering  <meyering@redhat.com>
3224
3225         test-update-copyright.sh: require perl 5.8.0
3226         * tests/test-update-copyright.sh: Require 5.8.0,
3227         which Tom G. Christensen has confirmed is adequate,
3228         while 5.6.1 is not.
3229
3230 2010-09-02  Eric Blake  <eblake@redhat.com>
3231
3232         tests: init.sh improvements for re-exec'ing with zsh
3233         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3234         -vx through shell re-exec.
3235         Reported by Tom G. Christensen.
3236
3237         wctype: fix typo in previous commit
3238         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3239         Reported by Ludovic Courtès.
3240
3241 2010-09-02  Jim Meyering  <meyering@redhat.com>
3242
3243         test-update-copyright.sh: skip test if Perl is too old
3244         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3245         Reported by Tom G. Christensen.
3246
3247 2010-09-02  Bruno Haible  <bruno@clisp.org>
3248
3249         wctype: Avoid compilation error on IRIX 6.5.30.
3250         * lib/wctype.in.h (iswblank): Declare with a replacement if
3251         REPLACE_ISWBLANK is set.
3252         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3253         declared. Set REPLACE_ISWBLANK.
3254         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3255         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3256         * doc/posix-headers/wctype.texi: Likewise.
3257         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3258
3259 2010-09-01  Bruno Haible  <bruno@clisp.org>
3260
3261         New module 'socketlib'.
3262         * modules/socketlib: New file.
3263         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3264         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3265         * modules/sockets (Depends-on): Add socketlib.
3266         Suggested by Sam Steingold <sds@gnu.org>.
3267
3268 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3269
3270         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3271
3272         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3273         when one needs search access to a directory but not read access.
3274         On systems where it is available, it works in some cases where
3275         O_RDONLY does not, namely on directories that are searchable but
3276         not readable, and which need only to be searchable.  If O_SEARCH
3277         is not available, fall back to the traditional method of using
3278         O_RDONLY.
3279
3280         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3281         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3282         when opening a directory that needs only to be searchable.
3283         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3284         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3285         * lib/openat-proc.c (openat_proc_name): Likewise.
3286         * lib/openat.c (openat_needs_fchdir): Likewise.
3287         * lib/save-cwd.c (save_cwd): Likewise.
3288         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3289
3290 2010-08-28  Bruno Haible  <bruno@clisp.org>
3291
3292         New module 'host-cpu-c-abi'.
3293         * modules/host-cpu-c-abi: New file.
3294         * m4/host-cpu-c-abi.m4: New file, based on part of
3295         clisp/src/m4/general.m4.
3296         Requested by Sam Steingold <sds@gnu.org>.
3297
3298 2010-08-31  Eric Blake  <eblake@redhat.com>
3299         and Jim Meyering  <meyering@redhat.com>
3300
3301         hash: factor, and guard against misbehaving hasher function
3302         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3303         of table->hasher's return value.  Also protect against a hash value
3304         so large that adding it to table->bucket results in a NULL pointer.
3305         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3306         Use it in place of open-coded check-and-abort.
3307
3308 2010-08-30  Bruno Haible  <bruno@clisp.org>
3309
3310         hash: silence spurious clang warning
3311         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3312         Reported by Eric Blake.
3313
3314 2010-08-30  Eric Blake  <eblake@redhat.com>
3315
3316         strstr, memmem, strcasestr: avoid leaked shell message
3317         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3318         FreeBSD.
3319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3320         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3321
3322         tests: silence clang warning
3323         * tests/test-malloca.c (do_allocation): Avoid dead store.
3324
3325 2010-08-29  Bruno Haible  <bruno@clisp.org>
3326
3327         gettext: Fix recent mistake.
3328         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3329
3330 2010-08-29  Bruno Haible  <bruno@clisp.org>
3331
3332         selinux-h: Offer a --without-selinux option.
3333         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3334         --without-selinux was specified, skip all tests and define
3335         HAVE_SELINUX_SELINUX_H to 0.
3336         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3337         set LIB_SELINUX to empty.
3338         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3339         gl_LIBSELINUX. If --without-selinux was specified, replace
3340         selinux/context.h.
3341         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3342
3343 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3344             Bruno Haible  <bruno@clisp.org>
3345
3346         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3347         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3348         of HAVE_REALLOC.
3349         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3350         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3351         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3352         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3353
3354 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3355             Bruno Haible  <bruno@clisp.org>
3356
3357         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3358         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3359         HAVE_CALLOC.
3360         * lib/xmalloc.c: Update accordingly.
3361         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3362         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3363         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3364
3365 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3366             Bruno Haible  <bruno@clisp.org>
3367
3368         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3369         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3370         HAVE_MALLOC.
3371         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3372         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3373         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3374
3375 2010-08-29  Bruno Haible  <bruno@clisp.org>
3376
3377         Update modules list.
3378         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3379         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3380         (String handling <string.h>): Add astrxfrm.
3381         (File system functions): Add readlinkat.
3382
3383 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3384
3385         Tests for module 'realloc-gnu'.
3386         * modules/realloc-gnu-tests: New file.
3387         * tests/test-realloc-gnu.c: New file.
3388
3389         Tests for module 'calloc-gnu'.
3390         * modules/calloc-gnu-tests: New file.
3391         * tests/test-calloc-gnu.c: New file.
3392
3393         Tests for module 'malloc-gnu'.
3394         * modules/malloc-gnu-tests: New file.
3395         * tests/test-malloc-gnu.c: New file.
3396
3397 2010-08-28  Bruno Haible  <bruno@clisp.org>
3398
3399         Rename module 'realloc' -> 'realloc-gnu'.
3400         * modules/realloc-gnu: New file, copied from modules/realloc.
3401         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3402         obsolete.
3403         * modules/mgetgroups (Depends-on): Update.
3404         * doc/posix-functions/realloc.texi: Update.
3405         * NEWS: Mention the change.
3406
3407         Rename module 'calloc' -> 'calloc-gnu'.
3408         * modules/calloc-gnu: New file, copied from modules/calloc.
3409         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3410         obsolete.
3411         * doc/posix-functions/calloc.texi: Update.
3412         * NEWS: Mention the change.
3413
3414         Rename module 'malloc' -> 'malloc-gnu'.
3415         * modules/malloc-gnu: New file, copied from modules/malloc.
3416         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3417         obsolete.
3418         * modules/argp (Depends-on): Update.
3419         * modules/regex (Depends-on): Update.
3420         * doc/posix-functions/malloc.texi: Update.
3421         * NEWS: Mention the change.
3422
3423 2010-08-28  Eric Blake  <eblake@redhat.com>
3424
3425         pread, pwrite: add missing dependency
3426         * modules/pread (Depends-on): Add extensions.
3427         * modules/pwrite (Depends-on): Likewise.
3428
3429 2010-08-28  Bruno Haible  <bruno@clisp.org>
3430
3431         unistr/u*-strchr: Fix tests dependencies.
3432         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3433         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3434         Reported by Ian Beckwith <ianb@erislabs.net>.
3435
3436 2010-08-28  Bruno Haible  <bruno@clisp.org>
3437
3438         read-file: Don't occupy too much unused memory.
3439         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3440
3441 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3442             Eric Blake  <eblake@redhat.com>
3443             Bruno Haible  <bruno@clisp.org>
3444
3445         read-file: Avoid memory reallocations with regular files.
3446         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3447         (fread_file): With regular files, use the remaining length as the
3448         initial buffer size.  Check against overflow.
3449         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3450         sys_stat.
3451
3452 2010-08-28  Bruno Haible  <bruno@clisp.org>
3453
3454         ftello: Relax license.
3455         * modules/ftello (License): Relax to LGPLv2+.
3456         Reported by Eric Blake.
3457
3458 2010-08-28  Bruno Haible  <bruno@clisp.org>
3459
3460         Avoid relocwrapper link errors due to gnulib replacement functions.
3461         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3462         function.
3463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3464
3465 2010-08-28  Bruno Haible  <bruno@clisp.org>
3466
3467         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3468         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3469         defined.
3470         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3471         Suggested by Eric Blake.
3472
3473 2010-08-28  Bruno Haible  <bruno@clisp.org>
3474
3475         sys_socket, netdb: Ensure socklen_t gets defined.
3476         * modules/sys_socket (Depends-on): Add socklen.
3477         * modules/netdb (Depends-on): Likewise.
3478         * modules/getaddrinfo (Depends-on): Remove socklen.
3479         * modules/getsockopt (Depends-on): Likewise.
3480         * modules/setsockopt (Depends-on): Likewise.
3481         * tests/test-sys_socket.c: Check that socklen_t is defined.
3482         * tests/test-netdb.c: Likewise.
3483         * m4/socklen.m4: Update comments.
3484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3485
3486 2010-08-27  Eric Blake  <eblake@redhat.com>
3487
3488         login_tty: add missing dependency
3489         * modules/login_tty (Depends-on): Add pty.
3490
3491 2010-08-26  Eric Blake  <eblake@redhat.com>
3492
3493         lib-symbol-versions: fix m4 quoting
3494         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3495         format for AC_LINK_IFELSE.
3496
3497         glob: fix compile test
3498         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3499
3500         btowc: fix missing file
3501         * modules/btowc (Files): Also ship locale-fr.m4.
3502
3503         lseek: fix link test
3504         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3505         AC_LINK_IFELSE.
3506
3507         include_next: silence autoconf 2.68 warning
3508         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3509         AC_COMPILE_IFELSE as special.
3510         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3511         autoconf < 2.68.
3512
3513         acl: fix compilation test
3514         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3515         AC_COMPILE_IFELSE.
3516
3517 2010-08-26  Bruno Haible  <bruno@clisp.org>
3518
3519         Modernize AC_TRY_RUN invocations.
3520         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3521         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3522         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3523         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3524         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3525         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3526         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3527         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3528         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3529         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3530         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3531         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3532         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3533         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3534         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3535         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3536         gl_MBRLEN_NUL_RETVAL): Likewise.
3537         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3538         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3539         Likewise.
3540         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3541         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3542         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3543         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3544         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3545         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3546         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3547         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3548         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3549         Likewise.
3550         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3551         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3553         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3556         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3557         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3558         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3559         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3560
3561 2010-08-26  Bruno Haible  <bruno@clisp.org>
3562
3563         Modernize AC_TRY_LINK invocations.
3564         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3565         AC_TRY_LINK.
3566         * m4/argp.m4 (gl_ARGP): Likewise.
3567         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3568         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3569         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3570         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3571         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3572         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3573         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3574         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3575         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3576         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3577         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3578         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3579         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3580         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3581         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3582         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3583         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3584         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3585         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3586         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3587         Likewise.
3588         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3589         Likewise.
3590         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3591         Likewise.
3592         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3593         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3594         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3595         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3596         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3597         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3598         * m4/servent.m4 (gl_SERVENT): Likewise.
3599         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3600         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3601         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3602         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3603         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3604         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3605         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3606         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3607         * modules/tsearch-tests (configure.ac): Likewise.
3608
3609 2010-08-26  Bruno Haible  <bruno@clisp.org>
3610
3611         Modernize AC_TRY_COMPILE invocations.
3612         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3613         AC_TRY_COMPILE.
3614         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3615         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3616         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3617         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3618         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3619         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3620         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3621         * m4/lock.m4 (gl_LOCK): Likewise.
3622         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3623         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3624         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3625         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3626         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3627         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3628         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3630         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3631         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3632         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3633         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3634         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3635         extraneous semicolon.
3636
3637 2010-08-26  Jim Meyering  <meyering@redhat.com>
3638
3639         stat-time: relax license LGPL
3640         * modules/stat-time (License): Change from GPL to LGPL,
3641         with consent from all contributors, for use in libguile.
3642         Requested by Ludovic Courtès.
3643
3644 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3645
3646         poll: return immediately on POLLHUP.
3647         * lib/poll.c (poll): Always set timeout before wait_timeout is
3648         computed.
3649
3650 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3651
3652         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3653         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3654         rmdir ("dir/.//"), unlinkat.
3655
3656 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3657
3658         stdbool: avoid spurious failure with modern xlc
3659         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3660
3661 2010-08-24  Bruno Haible  <bruno@clisp.org>
3662
3663         getloadavg: simplify code
3664         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3665         gl_have_func. Update comments.
3666
3667 2010-08-24  Eric Blake  <eblake@redhat.com>
3668
3669         getloadavg: don't define SVR4 on cygwin
3670         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3671         only define SVR4 when -lkvm is required.
3672         Reported by Yaakov Selkowitz.
3673
3674 2010-08-24  Bruno Haible  <bruno@clisp.org>
3675
3676         priv-set: fix comment
3677         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3678
3679 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3680
3681         priv-set: fix comments
3682         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3683         to match code, as suggested by David Bartley in:
3684         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3685
3686 2010-08-23  Eric Blake  <eblake@redhat.com>
3687
3688         stdbool: avoid rejecting clang
3689         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3690         * tests/test-stdbool.c: Enable more tests if using the system
3691         <stdbool.h> instead of the gnulib replacement.
3692         (main): Move xlc bug test to a runtime test for all compilers.
3693         Reported by Anders Kaseorg.
3694
3695         argz: fix shell quoting issue
3696         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3697         Reported by Charles Wilson.
3698
3699 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3700             Erik Faye-Lund <kusmabite@gmail.com>
3701
3702         poll, select: handle ERROR_BROKEN_PIPE.
3703         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3704         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3705         * lib/select.c (win32_compute_revents): Do not mark a pipe
3706         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3707
3708 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3709
3710         fts: allow compilation with C++
3711         * lib/fts_.h: Specify extern "C" linkage with C++.
3712
3713 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3714
3715         Fix gnulib-tool sed script de-commentation for AIX sed.
3716         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3717         sed.
3718
3719 2010-08-17  Eric Blake  <eblake@redhat.com>
3720
3721         test-stddef: test for (some) offsetof bugs
3722         * tests/test-stddef.c: Enhance test to ensure correct type of
3723         offsetof.
3724         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3725         that we are not fixing at this time.
3726
3727 2010-08-15  Bruno Haible  <bruno@clisp.org>
3728
3729         stpncpy: Allow stpncpy to be defined as a macro.
3730         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3731         if it's already correctly declared.
3732         * lib/string.in.h (stpncpy): Undefine before redefining.
3733         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3734
3735 2010-08-14  Bruno Haible  <bruno@clisp.org>
3736
3737         Rename module 'memxfrm' to 'amemxfrm'.
3738         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3739         (amemxfrm): Renamed from memxfrm.
3740         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3741         (amemxfrm): Renamed from memxfrm.
3742         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3743         * NEWS: Mention the change.
3744         * MODULES.html.sh (String handling <string.h>): Update.
3745         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3746         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3747         * lib/unicase/u16-casexfrm.c: Likewise.
3748         * lib/unicase/u32-casexfrm.c: Likewise.
3749         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3750         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3751         * lib/uninorm/u16-normxfrm.c: Likewise.
3752         * lib/uninorm/u32-normxfrm.c: Likewise.
3753         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3754         memxfrm.
3755         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3756         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3757         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3758         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3759         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3760         Suggested by Paul Eggert.
3761
3762 2010-08-14  Bruno Haible  <bruno@clisp.org>
3763
3764         Tests for module 'astrxfrm'.
3765         * modules/astrxfrm-tests: New file.
3766         * tests/test-astrxfrm.c: New file.
3767
3768         New module 'astrxfrm'.
3769         * lib/astrxfrm.h: New file.
3770         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3771         * modules/astrxfrm: New file.
3772
3773 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3774
3775         regex: Tweak doc.
3776         * doc/regex.texi (Overview): Don't mention regex.c.
3777         (GNU Regular Expression Compiling): Likewise.
3778         (Match-end-of-line Operator): Mention 'not_eol'.
3779
3780 2010-08-14  Brian Gough  <bjg@gnu.org>
3781             Bruno Haible  <bruno@clisp.org>
3782
3783         git-merge-changelog: add doc relating to use with bzr and hg.
3784         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3785
3786 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3787
3788         pthread: fix pthread.h creation for srcdir != builddir
3789         * modules/pthread (Makefile.am): Fix the rule to work also in a
3790         non-srcdir build.
3791
3792 2010-08-13  Karl Berry  <karl@gnu.org>
3793
3794         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3795         * doc/posix-*/*: force line break before @url of POSIX
3796         specifications.
3797         Suggested by Werner Lemberg.
3798
3799 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3800
3801         strtod: fix const diagnostic
3802         * lib/strtod.c (strtod): Don't assign const char * to char *,
3803         as this elicits a warning from GCC when warnings are enabled.
3804
3805 2010-08-10  Pádraig Brady <P@draigbrady.com>
3806         and Eric Blake  <eblake@redhat.com>
3807
3808         copy-acl: ignore ENOTSUP on HP-UX
3809         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3810         so that it is available for HP-UX.
3811         * lib/copy-acl.c (qcopy_acl): Use it.
3812         Reported by Patrick M. Callahan.
3813
3814 2010-08-10  Eric Blake  <eblake@redhat.com>
3815
3816         open, chown: relax license
3817         * modules/open (License): Change to LGPLv2+, with consent by all
3818         authors, for use in augeas.
3819         * modules/chown (License): Likewise.
3820         * modules/lchown (Likewise): Likewise.
3821         Requested by Adam Stokes.
3822
3823 2010-08-09  Karl Berry  <karl@gnu.org>
3824
3825         * build-aux/ar-lib: new file, import from Automake.
3826         * config/srclist.txt: autocheck for updates.
3827
3828 2010-08-09  Eric Blake  <eblake@redhat.com>
3829
3830         readlinkat: adjust client modules
3831         * modules/areadlinkat (Depends-on): Use readlinkat, not
3832         symlinkat.
3833         * modules/areadlinkat-with-size (Depends-on): Likewise.
3834
3835         mknod: be more vocal about danger of running tests as root
3836         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3837         root, since that is just asking for problems.
3838         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3839
3840         readlinkat: split into its own module
3841         * modules/symlinkat: Split readlinkat...
3842         * modules/readlinkat: ...into separate module.
3843         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3844         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3845         * lib/symlinkat.c (readlinkat): Move...
3846         * lib/readlinkat.c: ...into new file.
3847         * modules/symlinkat-tests: Split readlinkat test...
3848         * modules/readlinkat-tests: ...into separate module.
3849         * tests/test-symlinkat.c: Split...
3850         * tests/test-readlinkat.c: ...into new file.
3851         * NEWS: Document the split.
3852         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3853         * lib/unistd.in.h (readlinkat): Likewise.
3854         Suggested by Bruno Haible.
3855
3856 2010-08-08  Bruno Haible  <bruno@clisp.org>
3857
3858         memxfrm: Speed up.
3859         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3860         that usually only one call to strxfrm is necessary for each string
3861         part.
3862         Reported by Paul Eggert <eggert@cs.ucla.edu>.
3863
3864 2010-08-07  Karl Berry  <karl@gnu.org>
3865
3866         * doc/posix-headers/limits.texi,
3867         * doc/posix-functions/malloc.texi,
3868         * doc/posix-functions/strsignal.texi: missing @item.
3869         * doc/ld-version-script.texi: spurious leading i.
3870         * doc/regex.texi (Interval Operators): no commas inside @var.
3871
3872 2010-08-01  Bruno Haible  <bruno@clisp.org>
3873
3874         Integrate the regex documentation.
3875         * doc/gnulib.texi: Define 'cn' index.
3876         (Regular expressions): New a chapter that includes regex.texi and
3877         regexprops-generic.texi.
3878         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
3879         syntax.
3880
3881         Whitespace cleanup.
3882         * doc/regex.texi: Remove trailing spaces.
3883
3884         Add regex documentation.
3885         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
3886         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
3887         Written by Kathy A. Hargreaves and Karl Berry.
3888
3889 2010-08-01  Bruno Haible  <bruno@clisp.org>
3890
3891         link: Update documentation.
3892         * doc/posix-functions/link.texi: Update regarding Solaris.
3893
3894 2010-07-31  Bruno Haible  <bruno@clisp.org>
3895
3896         Update modules list.
3897         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
3898         (String handling <string.h>): Add memcmp2, memxfrm.
3899         (Container data structures): Add xlist, xsublist, xoset.
3900         (Core language properties): Add alignof, unused-parameter.
3901         (Process control, Numeric conversion functions <stdlib.h>): Renamed
3902         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
3903         (Unibyte characters <ctype.h>): New section.
3904         (String handling <string.h>): New section.
3905         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
3906         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
3907         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
3908         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
3909         tan, tanh, tanl, y0, y1, yn.
3910         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
3911         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
3912         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
3913         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
3914         unlockpt, vdprintf, vdprintf-posix.
3915         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
3916         (File system functions): Add concat-filename, sys_file, sys_ioctl,
3917         xconcat-filename.
3918         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
3919         getdtablesize, pipe2, pipe2-safer.
3920         (Security): New section.
3921         (Networking functions): Add accept4.
3922         (Signal handling): Add sigpipe.
3923         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
3924         mbmemcasecoll.
3925         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
3926         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
3927         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
3928         pipe-filter-ii.
3929         (Misc): Add argp-version-etc, login_tty, parse-duration.
3930
3931 2010-07-31  Bruno Haible  <bruno@clisp.org>
3932
3933         Improve doc in MODULES.html.
3934         * modules/linkat (Description): Add the word "function".
3935         * modules/mkfifo (Description): Likewise.
3936         * modules/mknod (Description): Likewise.
3937         * modules/remove (Description): Likewise.
3938         * modules/renameat (Description): Likewise.
3939         * modules/stat (Description): Likewise.
3940         * modules/symlink (Description): Likewise.
3941         * modules/unlink (Description): Likewise.
3942
3943 2010-07-31  Bruno Haible  <bruno@clisp.org>
3944
3945         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
3946         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
3947         option --enable/disable-c++ instead of --enable/disable-cxx.
3948         * NEWS: Mention the change.
3949
3950 2010-07-31  Bruno Haible  <bruno@clisp.org>
3951
3952         readlink, areadlink: Relax test a bit.
3953         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
3954         alternative to ENOTDIR.
3955         * tests/test-areadlink.h (test_areadlink): Likewise.
3956         Reported by Rainer Tammer.
3957
3958 2010-07-31  Bruno Haible  <bruno@clisp.org>
3959
3960         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
3961         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
3962         character, perform the search using U_STRCHR.
3963         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
3964         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
3965         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
3966         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
3967         Suggested by Paolo Bonzini.
3968
3969 2010-07-31  Bruno Haible  <bruno@clisp.org>
3970
3971         unistr/u*-strstr: Fix dependencies.
3972         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
3973         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
3974         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
3975
3976 2010-07-31  Bruno Haible  <bruno@clisp.org>
3977
3978         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
3979         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
3980         the beginning of the loop.
3981         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
3982         cases in 'switch' statement.
3983
3984         unistr/u8-strchr: Fix several bugs.
3985         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
3986         the string. When not found, return NULL, not a pointer near the end.
3987
3988         More tests for unistr/u8-strchr.
3989         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
3990         that the function does not read past the first occurrence of the byte
3991         being searched.
3992         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
3993         * tests/unistr/test-u16-strchr.c (main): New function.
3994         * tests/unistr/test-u32-strchr.c (main): New function.
3995
3996 2010-07-31  Bruno Haible  <bruno@clisp.org>
3997
3998         posix-modules: Ignore backup files of documentation files.
3999         * posix-modules: grep only through files named *.texi.
4000
4001 2010-07-31  Bruno Haible  <bruno@clisp.org>
4002
4003         symlinkat: Fix documentation.
4004         * doc/posix-functions/readlinkat.texi: Fix module name.
4005
4006 2010-07-31  Bruno Haible  <bruno@clisp.org>
4007
4008         fchownat: Replace also when chown has the trailing slash bug.
4009         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4010         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4011         introduced on 2010-04-10.
4012         Reported by Rainer Tammer.
4013
4014 2010-07-31  Bruno Haible  <bruno@clisp.org>
4015
4016         linkat: Work around AIX 7.1 bug.
4017         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4018         whether linkat handles trailing slash correctly. If not, replace linkat
4019         and define LINKAT_TRAILING_SLASH_BUG.
4020         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4021         check whether (fd1,file1) points to a directory if file1 or file2 ends
4022         in a slash. Code taken from lib/link.c.
4023         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4024         Reported by Rainer Tammer.
4025
4026 2010-07-31  Bruno Haible  <bruno@clisp.org>
4027
4028         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4029         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4030         This disables an xlc optimization that was causing wrong test results.
4031         Reported by Rainer Tammer.
4032
4033 2010-07-31  Bruno Haible  <bruno@clisp.org>
4034
4035         iconv: Work around AIX 6.1..7.1 bug.
4036         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4037         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4038         cross-compiling, guess no on all versions of AIX.
4039         Reported by Rainer Tammer.
4040
4041 2010-07-31  Bruno Haible  <bruno@clisp.org>
4042
4043         readlink: Relax test a bit.
4044         * tests/test-readlink.h (test_readlink): Allow different errno value
4045         when readlink is called with a file name that ends in / and refers to
4046         a file.
4047         Suggested by Eric Blake.
4048         Reported by Rainer Tammer.
4049
4050 2010-07-31  Bruno Haible  <bruno@clisp.org>
4051
4052         copysign: Does not require -lm on glibc systems.
4053         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4054         gl_COMMON_DOUBLE_MATHFUNC.
4055         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4056
4057 2010-07-31  Bruno Haible  <bruno@clisp.org>
4058
4059         duplocale: Work around AIX 7.1 bug.
4060         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4061         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4062         * lib/duplocale.c (rpl_duplocale): Update comment.
4063         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4064         Reported by Rainer Tammer.
4065
4066 2010-07-30  Bruno Haible  <bruno@clisp.org>
4067
4068         dirfd: Avoid link error on AIX 7.1.
4069         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4070         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4071         exist, set REPLACE_DIRFD.
4072         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4073         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4074         * doc/posix-functions/dirfd.texi: Update.
4075         Reported by Rainer Tammer.
4076
4077 2010-07-30  Eric Blake  <eblake@redhat.com>
4078
4079         strtod: next round of AIX fixes
4080         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4081         exponent.
4082         * tests/test-strtod.c (main): Enhance tests.
4083         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4084         Reported by Rainer Tammer.
4085
4086         futimens: fix configure check
4087         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4088         Reported by Bruno Haible.
4089
4090 2010-07-30  Bruno Haible  <bruno@clisp.org>
4091
4092         getline: Update regarding AIX.
4093         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4094         Reported by Rainer Tammer.
4095
4096 2010-07-30  Bruno Haible  <bruno@clisp.org>
4097
4098         wcwidth: Drop replacement on AIX 7.
4099         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4100         AIX 7.
4101         Reported by Rainer Tammer.
4102
4103 2010-07-30  Bruno Haible  <bruno@clisp.org>
4104
4105         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4106         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4107         a 'char *'.
4108         Reported by Rainer Tammer.
4109
4110 2010-07-30  Bruno Haible  <bruno@clisp.org>
4111
4112         unlink: Update regarding AIX.
4113         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4114         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4115         Reported by Rainer Tammer.
4116
4117 2010-07-30  Bruno Haible  <bruno@clisp.org>
4118
4119         symlink: Update regarding AIX.
4120         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4121         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4122         Reported by Rainer Tammer.
4123
4124 2010-07-30  Bruno Haible  <bruno@clisp.org>
4125
4126         strndup: Update regarding AIX.
4127         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4128         AIX 7.
4129         Reported by Rainer Tammer.
4130
4131 2010-07-30  Bruno Haible  <bruno@clisp.org>
4132
4133         stat: Update regarding AIX.
4134         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4135         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4136         Reported by Rainer Tammer.
4137
4138 2010-07-30  Bruno Haible  <bruno@clisp.org>
4139
4140         truncl: Fix autoconf test.
4141         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4142         whether truncl works.
4143         Reported by Rainer Tammer.
4144
4145 2010-07-30  Bruno Haible  <bruno@clisp.org>
4146
4147         round: Update regarding AIX.
4148         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4149         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4150         Reported by Rainer Tammer.
4151
4152 2010-07-30  Bruno Haible  <bruno@clisp.org>
4153
4154         rename: Update regarding AIX.
4155         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4156         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4157         Reported by Rainer Tammer.
4158
4159 2010-07-30  Bruno Haible  <bruno@clisp.org>
4160
4161         printf.m4: Update regarding AIX.
4162         * m4/printf.m4: Update comments regarding AIX.
4163         Reported by Rainer Tammer.
4164
4165 2010-07-30  Bruno Haible  <bruno@clisp.org>
4166
4167         iconv: Update regarding AIX.
4168         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4169         AIX 7.
4170         Reported by Rainer Tammer.
4171
4172 2010-07-30  Bruno Haible  <bruno@clisp.org>
4173
4174         getopt: Update regarding AIX.
4175         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4176         no on AIX.
4177         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4178         Reported by Rainer Tammer.
4179
4180 2010-07-30  Bruno Haible  <bruno@clisp.org>
4181
4182         ldexpl; Update regarding AIX.
4183         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4184         on AIX 7.
4185         Reported by Rainer Tammer.
4186
4187 2010-07-30  Bruno Haible  <bruno@clisp.org>
4188
4189         frexpl: Update regarding AIX.
4190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4191         on AIX 7.
4192         Reported by Rainer Tammer.
4193
4194 2010-07-30  Bruno Haible  <bruno@clisp.org>
4195
4196         open, fopen: Update regarding AIX.
4197         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4198         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4199         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4200         * doc/posix-functions/fopen.texi: Likewise.
4201         Reported by Rainer Tammer.
4202
4203 2010-07-30  Bruno Haible  <bruno@clisp.org>
4204
4205         chown: Update doc regarding AIX.
4206         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4207         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4208         Reported by Rainer Tammer.
4209
4210 2010-07-30  Eric Blake  <eblake@redhat.com>
4211
4212         strtod: fix bug in replacement function on AIX
4213         * lib/strtod.c (strtod): Special case broken "0x" parse in
4214         underlying strtod.
4215         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4216         * doc/posix-functions/strtod.texi (strtod): Likewise.
4217         Reported by Rainer Tammer.
4218
4219 2010-07-30  Bruno Haible  <bruno@clisp.org>
4220
4221         mbrlen: Fix cross-compilation guess for AIX.
4222         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4223         guess. Leftover from 2008-12-22.
4224
4225 2010-07-30  Bruno Haible  <bruno@clisp.org>
4226
4227         mbrtowc: Fix cross-compilation guess for AIX.
4228         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4229         guess. Leftover from 2008-12-21.
4230
4231 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4232
4233         init.sh: work around trap limitation of some shells
4234         * tests/init.sh (setup_): Move exit trap outside of shell function.
4235
4236 2010-07-29  Eric Blake  <eblake@redhat.com>
4237
4238         strtod: aid debugging
4239         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4240         understanding why strtod is rejected.
4241
4242 2010-07-28  Bruno Haible  <bruno@clisp.org>
4243
4244         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4245         * lib/unistr/u8-chr.c: Include <string.h>.
4246         * tests/unistr/test-u8-chr.c: Likewise.
4247         * tests/unistr/test-u16-chr.c: Likewise.
4248         * tests/unistr/test-u32-chr.c: Likewise.
4249         * tests/unistr/test-u8-strchr.c: Likewise.
4250         * tests/unistr/test-u16-strchr.c: Likewise.
4251         * tests/unistr/test-u32-strchr.c: Likewise.
4252         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4253         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4254         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4255         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4256
4257 2010-07-28  Bruno Haible  <bruno@clisp.org>
4258
4259         Use spaces for indentation, not tabs.
4260         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4261
4262 2010-07-27  Bruno Haible  <bruno@clisp.org>
4263
4264         mbspcasecmp: Fix function specification.
4265         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4266         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4267         Reported by Eric Blake <eblake@redhat.com>.
4268
4269 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4270
4271         timespec: use cast and not conditional, as truncation isn't possible
4272         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4273         instead of a conditional.  Comment about the situation in more detail.
4274         This undoes most of the 2009-10-29 patch.
4275
4276 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4277
4278         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4279         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4280         * lib/unistr/u8-strchr.c: Likewise.
4281         * modules/unistr/u8-chr: Depend on memchr.
4282
4283         unistr/u*-strchr: add tests
4284         * modules/unistr/u8-strchr-tests: New file.
4285         * modules/unistr/u16-strchr-tests: New file.
4286         * modules/unistr/u32-strchr-tests: New file.
4287         * tests/unistr/test-strchr.h: New file.
4288         * tests/unistr/test-u8-strchr.c: New file.
4289         * tests/unistr/test-u16-strchr.c: New file.
4290         * tests/unistr/test-u32-strchr.c: New file.
4291
4292         unistr/u*-chr: test multibyte sequences more
4293         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4294         test vector.
4295         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4296         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4297         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4298
4299         unistr/u*-chr: test multibyte sequences
4300         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4301
4302         unistr/u*-chr: prepare for multibyte tests
4303         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4304         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4305         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4306         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4307         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4308         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4309
4310 2010-07-18  Bruno Haible  <bruno@clisp.org>
4311
4312         unistr/u8-strchr: Optimize non-ASCII argument case.
4313         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4314         because the first byte often matches anyway.
4315         Reported by Pádraig Brady <P@draigbrady.com>.
4316
4317 2010-07-15  Karl Berry  <karl@gnu.org>
4318
4319         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4320
4321 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4322
4323         getcwd: on Solaris, work better if ancestors are inaccessible
4324         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4325         buffer and size, try again with a large buffer.  This works better
4326         on Solaris, since its getcwd succeeds even if the path to the root
4327         is inaccessible, and this is helpful in common cases such as .zfs
4328         hidden directories.  Problem reported by J Chapman Flack in
4329         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4330         Use system getcwd if it's declared, not merely if it's partly
4331         working; use the partly-working test only to avoid needless effort
4332         if the system getcwd fails.
4333         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4334         comment that was already obsolete and is now even more obsolete.
4335         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4336         now might call strdup.
4337
4338 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4339
4340         pthread: Add enough so that coreutils/src/sort.c compiles.
4341         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4342         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4343         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4344         Include <sys/types.h>, in case it defines pthread_t.
4345         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4346         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4347         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4348         (pthread_rwlockattr_t, pthread_spinlock_t):
4349         New typedefs, if HAVE_PTHREAD_T is not defined.
4350         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4351         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4352         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4353         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4354         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4355         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4356         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4357         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4358         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4359         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4360         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4361         New macros.
4362         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4363         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4364         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4365         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4366         (pthread_spin_unlock): New dummy functions.
4367         (pthread_create): Return EAGAIN; don't set errno.
4368         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4369         require AC_C_INLINE.
4370         * modules/pthread (Depends-on): Add sched, time.
4371         (pthread.h): Use AM_V_GEN.
4372
4373 2010-07-13  Bruno Haible  <bruno@clisp.org>
4374
4375         striconveh: Don't malloc memory if the result buffer is sufficient.
4376         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4377         buffer if its size is sufficient.
4378         Reported by Ludovic Courtès <ludo@gnu.org>.
4379
4380 2010-07-13  Bruno Haible  <bruno@clisp.org>
4381
4382         strtod: Add safety check.
4383         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4384
4385 2010-07-12  Bruno Haible  <bruno@clisp.org>
4386
4387         Unify tests that set gl_cv_func_ldexpl_no_libm.
4388         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4389         gl_FUNC_LDEXPL.
4390         (gl_FUNC_LDEXPL): Invoke it.
4391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4392
4393 2010-07-12  Bruno Haible  <bruno@clisp.org>
4394
4395         Unify tests that set gl_cv_func_ldexp_no_libm.
4396         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4397         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4398         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4399         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4400         * modules/strtod (Files): Add m4/ldexp.m4.
4401
4402 2010-07-12  Bruno Haible  <bruno@clisp.org>
4403
4404         Unify tests that set gl_cv_func_frexpl_no_libm.
4405         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4406         gl_FUNC_FREXPL_NO_LIBM.
4407         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4408         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4409
4410 2010-07-12  Bruno Haible  <bruno@clisp.org>
4411
4412         Unify tests that set gl_cv_func_frexp_no_libm.
4413         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4414         gl_FUNC_FREXP_NO_LIBM.
4415         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4416         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4417
4418 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4419
4420         memcoll: clarify sizes versus lengths, document better, and tweak perf
4421         * lib/memcoll.c (strcoll_loop, memcoll0):
4422         Improve quality of descriptive comments.  Name variables
4423         consistently as to whether they are lengths (which do not include
4424         terminating null) versus sizes (which do).
4425         * lib/xmemcoll.c (xmemcoll0): Likewise.
4426         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4427         returned when s1size == 0; this is easier to compile and saves
4428         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4429
4430 2010-07-12  Bruno Haible  <bruno@clisp.org>
4431
4432         Tests for module '_Exit'.
4433         * modules/_Exit-tests: New file.
4434         * tests/test-_Exit.sh: New file.
4435         * tests/test-_Exit.c: New file.
4436
4437         New module '_Exit'.
4438         * lib/stdlib.in.h (__attribute__): New macro.
4439         (_Exit): New declaration.
4440         * lib/_Exit.c: New file.
4441         * m4/_Exit.m4: New file.
4442         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4443         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4444         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4445         * modules/_Exit: New file.
4446         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4447         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4448
4449 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4450
4451         strtod: make it more-accurate typically, and don't require libm
4452         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4453         Include limits.h.  Don't include string.h.
4454         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4455         (locale_isspace): New function, so that no casts are needed to
4456         check whether *s is a space.
4457         (ldexp): Provide an unused dummy if not available.
4458         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4459         (strtod): Use them.  This implementation prefers to use the
4460         underlying strtod if available, falling back on our own code
4461         only to fix known bugs.  This is more likely to produce an
4462         accurate result.  Also, it avoids the use of libm functions.
4463         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4464         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4465         was absent, but it caused a test failure with coreutils.
4466         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4467         with libm.
4468         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4469         * modules/strtod-tests (Makefile.am): Likewise.
4470
4471 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4472             Bruno Haible  <bruno@clisp.org>
4473
4474         unistr/u8-strchr: Optimize ASCII argument case.
4475         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4476
4477 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4478
4479         (x)memcoll: minor tweaks
4480         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4481         is after the type that it qualifies.
4482         (memcoll0): Likewise.
4483         * lib/memcoll.h (memcoll0): Likewise.
4484         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4485         * lib/xmemcoll.h (xmemcoll0): Likewise.
4486         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4487         differs from memcoll in that the NUL byte is part of the argument.
4488         Omit the abort-checks, as performance is a real issue here.  Plus,
4489         the checks were wrong anyway (an off-by-one error).  Omit local
4490         variable 'diff', as it's a bit clearer that way.
4491         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4492         no longer needed.
4493
4494 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4495
4496         (x)memcoll: speedup when input is known to be NUL delimited
4497         * lib/memcoll.c: Include stdlib.
4498         (memcoll0) New function.
4499         (strcoll_loop) New function, refactored for use in both memcoll
4500         and memcoll0.
4501         * lib/memcoll.h: Add prototype for memcoll0.
4502         * lib/xmemcoll.c: (xmemcoll0) New function.
4503         (collate_error) New function, refactored for use in both xmemcoll
4504         and xmemcoll0.
4505         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4506         * m4/memcoll.m4: add inline invocation.
4507
4508 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4509
4510         * build-aux/bootstrap: Remove any local translations
4511         from the translation project synchronization directory,
4512         so that local only translations are not distributed.
4513
4514 2010-07-04  Bruno Haible  <bruno@clisp.org>
4515
4516         fsusage: Clarify which code applies to which platforms.
4517         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4518         platform.
4519         * lib/fsusage.c (get_fs_usage): Likewise.
4520
4521 2010-07-04  Bruno Haible  <bruno@clisp.org>
4522
4523         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4524         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4525         Reported by Martin Lambers <marlam@marlam.de>.
4526
4527 2010-07-04  Jim Meyering  <meyering@redhat.com>
4528
4529         hash: once again explicitly disallow insertion of NULL
4530         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4531         inserting a NULL pointer cannot work with these functions.
4532         Add a comment with details.
4533         This reverts part of the 2010-07-01 commit, 5bef1a35
4534         "hash: extend module to deal with non-pointer keys".
4535
4536 2010-07-01  Bruno Haible  <bruno@clisp.org>
4537
4538         stdbool: Update doc.
4539         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4540         Info from Christian Weisgerber <naddy@mips.inka.de>.
4541
4542 2010-07-01  Jim Meyering  <meyering@redhat.com>
4543
4544         hash: extend module to deal with non-pointer keys
4545         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4546         but that allows insertion of non-pointer entries.
4547         Do not disallow an ENTRY value of NULL.
4548         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4549         * lib/hash.h (hash_insert0): Declare.
4550
4551 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4552
4553         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4554         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4555         not present (i.e. with autoconf 2.59 and when using gettextize, not
4556         gnulib), require AC_GNU_SOURCE instead.
4557
4558 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4559
4560         idpriv-drop: Fix tests.
4561         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4562         not to the test-idpriv-droptemp program.
4563
4564 2010-06-29  Bruno Haible  <bruno@clisp.org>
4565
4566         string: Fix syntax error with g++ 2.96.
4567         * lib/string.in.h (__pure__): Remove definition.
4568         (_GL_ATTRIBUTE_PURE): New macro.
4569         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4570         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4571         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4572
4573 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4574
4575         unitypes: Fix bug introduced on 2010-05-18.
4576         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4577
4578 2010-06-22  Eric Blake  <eblake@redhat.com>
4579
4580         memmem: slight optimization
4581         * lib/str-two-way.h (critical_factorization): Update comments.
4582         Reduce work during factorization phase.
4583         Reported by Carlos Bueno <carlos@bueno.org>.
4584
4585 2010-06-21  Bruno Haible  <bruno@clisp.org>
4586
4587         Fix HAVE_CALLOC_POSIX misnomer.
4588         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4589         !HAVE_CALLOC_POSIX.
4590         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4591         HAVE_CALLOC_POSIX.
4592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4593         instead of HAVE_CALLOC_POSIX.
4594         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4595         HAVE_CALLOC_POSIX.
4596
4597         Use modern idiom for calloc() replacement.
4598         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4599         AC_FUNC_CALLOC.
4600         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4601         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4602         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4603         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4604         (gl_REPLACE_CALLOC): New macro.
4605
4606 2010-06-21  Bruno Haible  <bruno@clisp.org>
4607
4608         Fix HAVE_REALLOC_POSIX misnomer.
4609         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4610         !HAVE_REALLOC_POSIX.
4611         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4612         HAVE_REALLOC_POSIX.
4613         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4614         instead of HAVE_REALLOC_POSIX.
4615         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4616         HAVE_REALLOC_POSIX.
4617
4618         Use modern idiom for realloc() replacement.
4619         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4620         AC_FUNC_REALLOC.
4621         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4622         Autoconf's AC_FUNC_REALLOC.
4623         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4624         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4625         (gl_REPLACE_REALLOC): New macro.
4626         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4627
4628 2010-06-21  Bruno Haible  <bruno@clisp.org>
4629
4630         Fix HAVE_MALLOC_POSIX misnomer.
4631         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4632         !HAVE_MALLOC_POSIX.
4633         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4634         HAVE_MALLOC_POSIX.
4635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4636         instead of HAVE_MALLOC_POSIX.
4637         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4638         HAVE_MALLOC_POSIX.
4639
4640         Use modern idiom for malloc() replacement.
4641         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4642         AC_FUNC_MALLOC.
4643         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4644         Autoconf's AC_FUNC_MALLOC.
4645         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4646         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4647         (gl_REPLACE_MALLOC): New macro.
4648         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4649
4650 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4651
4652         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4653         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4654         This macro takes 3 arguments, not 4.
4655
4656 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4657
4658         ipv6: fix detection under mingw
4659         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4660         in6_addr.
4661
4662 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4663
4664         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4665         that strtod() works when cross-compiling to a glibc version known
4666         to work.
4667
4668 2010-06-15  Bruno Haible  <bruno@clisp.org>
4669
4670         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4671
4672 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4673
4674         select: Correct timeout.
4675         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4676
4677 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4678
4679         git-version-gen: init shell var to avoid env var influence
4680         * build-aux/git-version-gen (v): Init shell var to empty.
4681
4682 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4683
4684         priv-set: Don't assume that priv.h exists merely because getppriv does.
4685         See Jan Andersen's bug report about AIX 5L in
4686         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4687         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4688         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4689         * lib/priv-set.h: Likewise.
4690         * tests/test-priv-set.c: Likewise.
4691
4692 2010-06-13  Bruno Haible  <bruno@clisp.org>
4693
4694         relocatable: Make it easier to test whether to install wrappers.
4695         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4696         RELOCATABLE_VIA_WRAPPER.
4697
4698 2010-06-13  Bruno Haible  <bruno@clisp.org>
4699
4700         gnulib-tool: Display specified modules and dependencies differently.
4701         * gnulib-tool (func_show_module_list): New function.
4702         (func_import, func_create_testdir): Invoke it.
4703         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4704
4705 2010-06-13  Bruno Haible  <bruno@clisp.org>
4706
4707         gnulib-tool: Align code of func_import and func_create_testdir.
4708         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4709         specified_modules.
4710
4711 2010-06-12  Jim Meyering  <meyering@redhat.com>
4712
4713         test-inttostr: avoid spurious failure on Solaris 9
4714         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4715         to accept "%ju".  Reported by Bruno Haible.
4716
4717 2010-06-11  Jim Meyering  <meyering@redhat.com>
4718
4719         test-sys_socket: mark variables as used more readably
4720         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4721         as "used" explicitly via (void) statement casts.  This is more
4722         readable than using them in an artificial return expression.
4723         Suggestion from Bruno Haible.
4724
4725 2010-06-11  Bruno Haible  <bruno@clisp.org>
4726
4727         Avoid some more warnings from "gcc -Wwrite-strings".
4728         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4729         to 'const char *'.
4730         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4731         * tests/test-c-strcasestr.c (main): Likewise.
4732         * tests/test-mbscasestr1.c (main): Likewise.
4733         * tests/test-mbscasestr2.c (main): Likewise.
4734         * tests/test-memmem.c (main): Likewise.
4735         * tests/test-strstr.c (main): Likewise.
4736         * tests/test-strcasestr.c (main): Likewise.
4737
4738 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4739
4740         init.sh: change framework_failure_ to fail with status 99, not 1
4741         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4742         automake's parallel-tests rule that this is an unexpected failure,
4743         even if the test is listed in XFAIL_TESTS.
4744
4745 2010-06-11  Jim Meyering  <meyering@redhat.com>
4746
4747         test-inttostr: avoid warnings about 4-6KB literal strings
4748         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4749         Include "macros.h", for its definition of ASSERT.
4750         (CK): s/assert/ASSERT/
4751         * modules/inttostr-tests (Files): Add macros.h.
4752
4753         init.sh: don't use $ME_ or skip_ before they are defined
4754         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4755         their first uses.  Also hoist their companions: warn_, fail_,
4756         framework_failure_, $stderr_fileno.  Prompted by a patch from
4757         Stefano Lattarini.
4758
4759         test-sys_socket: avoid set-but-not-used warnings from gcc
4760         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4761         avoid warning about set-but-not-used variables.
4762
4763         test-xvasprintf: avoid 'const' discard warnings
4764         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4765         "const" when assigning from literal strings.
4766         (test_xasprintf): Add "void" in function argument list to placate
4767         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4768
4769         tests: avoid compilation warnings in argmatch and exclude tests...
4770         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4771         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4772         Since it always exits, declare with the "noreturn" attribute.
4773         * tests/test-argmatch.c: Likewise.
4774
4775         tests: avoid 'const' discard warnings in mbsstr tests
4776         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4777         * tests/test-mbsstr2.c (main): Likewise.
4778
4779         test-verify: avoid warning from gcc's -Wmissing-declarations
4780         * tests/test-verify.c (function): Declare to be static.
4781
4782         test-inttostr.c: include <string.h> for use of strcmp
4783         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4784
4785         test-linkat: avoid failed assertion on "other" architectures
4786         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4787         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4788         sparc: https://bugs.launchpad.net/bugs/591968
4789
4790 2010-06-11  Jim Meyering  <meyering@redhat.com>
4791
4792         printf.m4: avoid autoconf's "Expanded Before Required" warning
4793         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4794         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4795         autoconf warning.
4796
4797 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4798
4799         Replacement header templates are now named with ".in", not "_".
4800         * doc/gnulib-intro.texi: Correct.
4801
4802 2010-06-10  Jim Meyering  <meyering@redhat.com>
4803
4804         inttostr-tests: depend on snprintf, not snprintf-posix
4805         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4806         snprintf-posix, to avoid this aclocal failure:
4807           missing file gnulib-tests/vasnprintf.c
4808           configure.ac:45: error: expected source file, required through \
4809           AC_LIBSOURCES, not found
4810
4811 2010-06-10  Jim Meyering  <meyering@redhat.com>
4812
4813         inttostr: add a new function, inttostr, and tests
4814         The namesake function was not available.  The existence of the
4815         template file, inttostr.c makes its addition nontrivial.
4816         * lib/anytostr.c: Rename from inttostr.c.
4817         (anytostr): Rename from inttostr.
4818         * lib/inttostr.c: New file.
4819         * modules/inttostr (Files): Add anytostr.c.
4820         (Makefile.am): Set lib_SOURCES instead of ...
4821         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4822         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4823         * lib/offtostr.c: Likewise.
4824         * lib/uinttostr.c: Likewise.
4825         * lib/umaxtostr.c: Likewise.
4826         * modules/inttostr-tests: New file.
4827         * tests/test-inttostr.c: New file.  Test these functions.
4828
4829 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4830             Bruno Haible  <bruno@clisp.org>
4831
4832         Add "Extending Gnulib" chapter to manual.
4833         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4834         chapter.
4835         (Extending Gnulib): New chapter.
4836         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4837         chapter.
4838
4839 2010-06-09  Bruno Haible  <bruno@clisp.org>
4840
4841         Avoid relocwrapper link errors due to gnulib replacement functions.
4842         * lib/areadlink.c: Use the system's malloc, realloc functions.
4843         (areadlink): Set errno to ENOMEM explicitly.
4844         * modules/areadlink (Depends-on): Remove malloc-posix.
4845         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4846
4847 2010-06-09  Bruno Haible  <bruno@clisp.org>
4848
4849         Avoid relocwrapper link errors due to gnulib replacement functions.
4850         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4851         * lib/malloca.c: Likewise.
4852         * lib/relocatable.c: Likewise.
4853         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4854         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4855         * lib/setenv.c: Use the system's malloc, realloc functions.
4856         * lib/strerror.c: Use the system's sprintf function.
4857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4858
4859 2010-06-04  Bruno Haible  <bruno@clisp.org>
4860
4861         Prefer documented low-level autoconf macro names.
4862         * m4/lib-link.m4: Use m4_translit instead of translit.
4863         * m4/environ.m4: Likewise.
4864         * m4/mathfunc.m4: Likewise.
4865         * m4/onceonly.m4: Likewise.
4866         * m4/stdint.m4: Likewise.
4867         Suggested by Eric Blake.
4868
4869 2010-06-04  Martin Lambers  <marlam@marlam.de>
4870             Bruno Haible  <bruno@clisp.org>
4871
4872         havelib: Allow library names with '+' characters.
4873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
4874         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
4875
4876 2010-06-09  Bruno Haible  <bruno@clisp.org>
4877
4878         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
4879         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
4880         realloc failed.
4881
4882 2010-06-08  Peter Simons  <simons@cryp.to>
4883
4884         maint.mk: make the news-check rule more configurable
4885         * top/maint.mk (news-check-lines-spec) New variable.
4886         (news-check): Use "sed -n 1,10p" in place of "head".
4887
4888 2010-06-07  Jim Meyering  <meyering@redhat.com>
4889
4890         do-release-commit-and-tag: fix typo in --help
4891         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
4892
4893         regex: avoid new dead-code warning with gcc-4.6.0
4894         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
4895         if-block containing a while-loop.  It's been unused for at least
4896         5 years.
4897
4898 2010-06-05  Bruno Haible  <bruno@clisp.org>
4899
4900         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
4901         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
4902
4903 2010-06-04  Bruno Haible  <bruno@clisp.org>
4904
4905         Update to GNU gettext 0.18.1.
4906         * modules/gettext (configure.ac): Require gettext infrastructure from
4907         version 0.18.1.
4908
4909 2010-06-03  Bruno Haible  <bruno@clisp.org>
4910
4911         Don't use AC_LIBOBJ with file names in subdirectories.
4912         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
4913         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
4914         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
4915         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
4916         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
4917         gl_LIBUNISTRING_LIBSOURCE.
4918         (Makefile.am): Augment lib_SOURCES here, conditionally.
4919         * NEWS: Drop requirement for Automake option 'subdir-objects'.
4920
4921 2010-06-03  Bruno Haible  <bruno@clisp.org>
4922
4923         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
4924         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
4925         expansion does not end with a newline.
4926         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
4927         unnecessary newline.
4928
4929 2010-06-03  Bruno Haible  <bruno@clisp.org>
4930
4931         Reduce dependencies.
4932         * tests/test-quotearg.h: New file, extracted from
4933         tests/test-quotearg.c.
4934         * tests/test-quotearg-simple.c: New file, extracted from
4935         tests/test-quotearg.c.
4936         * tests/test-quotearg.c: Don't include <ctype.h>.
4937         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
4938         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
4939         use_quote_double_quotes, use_quotearg_colon): Moved to
4940         tests/test-quotearg.h.
4941         (results_g, flag_results, custom_quotes, custom_results): Moved
4942         to tests/test-quotearg-simple.c.
4943         (main): Moved the part that does not depend on gettext to
4944         tests/test-quotearg-simple.c. Return 77 if the test cannot be
4945         performed.
4946         * modules/quotearg-simple: New file.
4947         * modules/quotearg-simple-tests: New file.
4948         * modules/quotearg (Depends-on): Add quotearg-simple.
4949         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
4950         (Files): Add tests/test-quotearg.h.
4951         Reported by Paolo Bonzini.
4952
4953 2010-06-03  Bruno Haible  <bruno@clisp.org>
4954
4955         Reduce dependencies.
4956         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
4957
4958 2010-06-03  Bruno Haible  <bruno@clisp.org>
4959
4960         time: Undefine more broken macros.
4961         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
4962         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
4963         Reported by Eric Blake.
4964
4965 2010-06-03  Bruno Haible  <bruno@clisp.org>
4966
4967         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
4968         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
4969         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
4970         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
4971         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
4972         Reported by Ludovic Courtès <ludo@gnu.org>.
4973
4974 2010-06-02  Eric Blake  <eblake@redhat.com>
4975
4976         time: work with mingw + pthreads-win32 library
4977         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
4978         if timespec is defined only in pthread.h.
4979         * modules/time (Makefile.am): Substitute it.
4980         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
4981         <pthread.h>, when needed.
4982         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
4983         from the library.
4984
4985 2010-05-31  Bruno Haible  <bruno@clisp.org>
4986
4987         Avoid expanding two macros in the wrong order.
4988         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
4989         gl_LIBUNISTRING if it is defined.
4990         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
4991         autoconf >= 2.64.
4992         Reported by Ludovic Courtès <ludo@gnu.org>.
4993
4994 2010-05-27  Jim Meyering  <meyering@redhat.com>
4995
4996         maint.mk: also prohibit "#undef" of always-defined symbols
4997         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
4998         Allow more than one space before the symbol name.
4999         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5000         the regexp uses alternation.
5001
5002 2010-05-26  Eric Blake  <eblake@redhat.com>
5003
5004         maint.mk: avoid echo -e
5005         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5006         Convert all uses of echo -* to printf.
5007         Reported by Matthias Bolte.
5008
5009 2010-05-25  Bruno Haible  <bruno@clisp.org>
5010
5011         Update to GNU gettext 0.18, part 2.
5012         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5013         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5014
5015 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5016
5017         Add missing include in test-pwrite.c.
5018         * tests/test-pwrite.c: Include string.h, for strcmp.
5019
5020 2010-05-24  Bruno Haible  <bruno@clisp.org>
5021
5022         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5023
5024 2010-05-24  Bruno Haible  <bruno@clisp.org>
5025
5026         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5027         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5028         iconveh_error argument.
5029         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5030         U_STRCONV_TO_LOCALE.
5031         * lib/unistr/u16-strcoll.c: Likewise.
5032         * lib/unistr/u32-strcoll.c: Likewise.
5033         * modules/unistr/u8-strcoll (Depends-on): Add
5034         uniconv/u8-strconv-to-enc, localcharset. Remove
5035         uniconv/u8-strconv-to-locale.
5036         (configure.ac): Bump version number.
5037         * modules/unistr/u16-strcoll (Depends-on): Add
5038         uniconv/u16-strconv-to-enc, localcharset. Remove
5039         uniconv/u16-strconv-to-locale.
5040         (configure.ac): Bump version number.
5041         * modules/unistr/u32-strcoll (Depends-on): Add
5042         uniconv/u32-strconv-to-enc, localcharset. Remove
5043         uniconv/u32-strconv-to-locale.
5044         (configure.ac): Bump version number.
5045
5046 2010-05-24  Bruno Haible  <bruno@clisp.org>
5047
5048         Avoid a test failure on NetBSD 5.0.
5049         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5050         an iconv() bug.
5051
5052 2010-05-24  Bruno Haible  <bruno@clisp.org>
5053
5054         Adjust #include directive style.
5055         * modules/regex (Includes): Recommend to write <regex.h>.
5056
5057 2010-05-24  Bruno Haible  <bruno@clisp.org>
5058
5059         regex: Don't require alloca.
5060         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5061         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5062         only inside if (0).
5063
5064 2010-05-23  Jim Meyering  <meyering@redhat.com>
5065
5066         test-renameat.c: include <sys/stat.h>
5067         * tests/test-renameat.c: Include <sys/stat.h>; required for
5068         definition of S_IS* macros.
5069
5070 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5071
5072         Update maintainer documentation for 'relocatable-prog' module.
5073         * doc/relocatable-maint.texi: Update.
5074         Comments by Bruno Haible.
5075
5076 2010-05-23  Bruno Haible  <bruno@clisp.org>
5077
5078         git-merge-changelog: Enable --split-merged-entry by default.
5079         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5080         (usage): Don't mention this option any more.
5081         Reported by Ralf Wildenhues.
5082
5083 2010-05-23  Jim Meyering  <meyering@redhat.com>
5084
5085         test-pwrite: do not leave behind a test file named "out"
5086         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5087         The trivial-looking use of init.sh is really necessary.
5088         It ensures that the temporary file, "out", is created in
5089         a temporary directory, and removed upon termination.
5090         * tests/test-pwrite.sh: Re-add file.
5091         * modules/pwrite-tests: Reference it.
5092
5093 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5094
5095         Fix output redirection buglet in init.sh.
5096         * tests/init.sh: Fix redirection of stderr.
5097
5098 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5099
5100         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5101
5102 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5103
5104         * modules/valgrind-tests: New file.
5105         * m4/valgrind-tests.m4: New file.
5106         * doc/valgrind-tests.texi: New file.
5107         * doc/gnulib.texi (Running self-tests under valgrind): New
5108         section.
5109
5110 2010-05-19  Bruno Haible  <bruno@clisp.org>
5111
5112         Clean up dead code in recent commit.
5113         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5114         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5115         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5116         Suggested by Paolo Bonzini.
5117
5118 2010-05-19  Bruno Haible  <bruno@clisp.org>
5119
5120         Avoid valgrind error reports from libunistring.
5121         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5122         * modules/libunistring (Files): Add it.
5123         * modules/libunistring-optional (Files): Likewise.
5124
5125 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5126             Bruno Haible  <bruno@clisp.org>
5127
5128         New module 'libunistring-optional'.
5129         * modules/libunistring-optional: New file.
5130         * m4/libunistring-base.m4: New file.
5131         * m4/libunistring-optional.m4: New file.
5132         * lib/unicase.in.h: Renamed from lib/unicase.h.
5133         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5134         * lib/unictype.in.h: Renamed from lib/unictype.h.
5135         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5136         * lib/uniname.in.h: Renamed from lib/uniname.h.
5137         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5138         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5139         * lib/unistr.in.h: Renamed from lib/unistr.h.
5140         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5141         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5142         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5143         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5144         gl_LIBUNISTRING. If the library was found, determine the installed
5145         version and set LIBUNISTRING_VERSION.
5146         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5147         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5148         handle a configuration option --with-included-libunistring.
5149         * modules/libunistring (Files): Add m4/absolute-header.m4.
5150         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5151         Add m4/libunistring-base.m4.
5152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5153         (Makefile.am): Build unicase.h from unicase.in.h.
5154         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5155         Add m4/libunistring-base.m4.
5156         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5157         (Makefile.am): Build uniconv.h from uniconv.in.h.
5158         * modules/unictype/base (Files): Use unictype.in.h instead of
5159         unictype.h. Add m4/libunistring-base.m4.
5160         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5161         (Makefile.am): Build unictype.h from unictype.in.h.
5162         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5163         Add m4/libunistring-base.m4.
5164         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5165         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5166         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5167         Add m4/libunistring-base.m4.
5168         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5169         (Makefile.am): Build uniname.h from uniname.in.h.
5170         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5171         Add m4/libunistring-base.m4.
5172         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5173         (Makefile.am): Build uninorm.h from uninorm.in.h.
5174         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5175         unistdio.h. Add m4/libunistring-base.m4.
5176         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5177         (Makefile.am): Build unistdio.h from unistdio.in.h.
5178         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5179         Add m4/libunistring-base.m4.
5180         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5181         (Makefile.am): Build unistr.h from unistr.in.h.
5182         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5183         Add m4/libunistring-base.m4.
5184         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5185         (Makefile.am): Build unitypes.h from unitypes.in.h.
5186         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5187         Add m4/libunistring-base.m4.
5188         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5189         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5190         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5191         uniwidth.h. Add m4/libunistring-base.m4.
5192         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5193         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5194         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5195         instead of augmenting lib_SOURCES.
5196         * modules/unicase/empty-suffix-context: Likewise.
5197         * modules/unicase/locale-language: Likewise.
5198         * modules/unicase/tolower: Likewise.
5199         * modules/unicase/totitle: Likewise.
5200         * modules/unicase/toupper: Likewise.
5201         * modules/unicase/u8-casecmp: Likewise.
5202         * modules/unicase/u8-casecoll: Likewise.
5203         * modules/unicase/u8-casefold: Likewise.
5204         * modules/unicase/u8-casexfrm: Likewise.
5205         * modules/unicase/u8-ct-casefold: Likewise.
5206         * modules/unicase/u8-ct-tolower: Likewise.
5207         * modules/unicase/u8-ct-totitle: Likewise.
5208         * modules/unicase/u8-ct-toupper: Likewise.
5209         * modules/unicase/u8-is-cased: Likewise.
5210         * modules/unicase/u8-is-casefolded: Likewise.
5211         * modules/unicase/u8-is-lowercase: Likewise.
5212         * modules/unicase/u8-is-titlecase: Likewise.
5213         * modules/unicase/u8-is-uppercase: Likewise.
5214         * modules/unicase/u8-prefix-context: Likewise.
5215         * modules/unicase/u8-suffix-context: Likewise.
5216         * modules/unicase/u8-tolower: Likewise.
5217         * modules/unicase/u8-totitle: Likewise.
5218         * modules/unicase/u8-toupper: Likewise.
5219         * modules/unicase/u16-casecmp: Likewise.
5220         * modules/unicase/u16-casecoll: Likewise.
5221         * modules/unicase/u16-casefold: Likewise.
5222         * modules/unicase/u16-casexfrm: Likewise.
5223         * modules/unicase/u16-ct-casefold: Likewise.
5224         * modules/unicase/u16-ct-tolower: Likewise.
5225         * modules/unicase/u16-ct-totitle: Likewise.
5226         * modules/unicase/u16-ct-toupper: Likewise.
5227         * modules/unicase/u16-is-cased: Likewise.
5228         * modules/unicase/u16-is-casefolded: Likewise.
5229         * modules/unicase/u16-is-lowercase: Likewise.
5230         * modules/unicase/u16-is-titlecase: Likewise.
5231         * modules/unicase/u16-is-uppercase: Likewise.
5232         * modules/unicase/u16-prefix-context: Likewise.
5233         * modules/unicase/u16-suffix-context: Likewise.
5234         * modules/unicase/u16-tolower: Likewise.
5235         * modules/unicase/u16-totitle: Likewise.
5236         * modules/unicase/u16-toupper: Likewise.
5237         * modules/unicase/u32-casecmp: Likewise.
5238         * modules/unicase/u32-casecoll: Likewise.
5239         * modules/unicase/u32-casefold: Likewise.
5240         * modules/unicase/u32-casexfrm: Likewise.
5241         * modules/unicase/u32-ct-casefold: Likewise.
5242         * modules/unicase/u32-ct-tolower: Likewise.
5243         * modules/unicase/u32-ct-totitle: Likewise.
5244         * modules/unicase/u32-ct-toupper: Likewise.
5245         * modules/unicase/u32-is-cased: Likewise.
5246         * modules/unicase/u32-is-casefolded: Likewise.
5247         * modules/unicase/u32-is-lowercase: Likewise.
5248         * modules/unicase/u32-is-titlecase: Likewise.
5249         * modules/unicase/u32-is-uppercase: Likewise.
5250         * modules/unicase/u32-prefix-context: Likewise.
5251         * modules/unicase/u32-suffix-context: Likewise.
5252         * modules/unicase/u32-tolower: Likewise.
5253         * modules/unicase/u32-totitle: Likewise.
5254         * modules/unicase/u32-toupper: Likewise.
5255         * modules/unicase/ulc-casecmp: Likewise.
5256         * modules/unicase/ulc-casecoll: Likewise.
5257         * modules/unicase/ulc-casexfrm: Likewise.
5258         * modules/uniconv/u8-conv-from-enc: Likewise.
5259         * modules/uniconv/u8-conv-to-enc: Likewise.
5260         * modules/uniconv/u8-strconv-from-enc: Likewise.
5261         * modules/uniconv/u8-strconv-from-locale: Likewise.
5262         * modules/uniconv/u8-strconv-to-enc: Likewise.
5263         * modules/uniconv/u8-strconv-to-locale: Likewise.
5264         * modules/uniconv/u16-conv-from-enc: Likewise.
5265         * modules/uniconv/u16-conv-to-enc: Likewise.
5266         * modules/uniconv/u16-strconv-from-enc: Likewise.
5267         * modules/uniconv/u16-strconv-from-locale: Likewise.
5268         * modules/uniconv/u16-strconv-to-enc: Likewise.
5269         * modules/uniconv/u16-strconv-to-locale: Likewise.
5270         * modules/uniconv/u32-conv-from-enc: Likewise.
5271         * modules/uniconv/u32-conv-to-enc: Likewise.
5272         * modules/uniconv/u32-strconv-from-enc: Likewise.
5273         * modules/uniconv/u32-strconv-from-locale: Likewise.
5274         * modules/uniconv/u32-strconv-to-enc: Likewise.
5275         * modules/uniconv/u32-strconv-to-locale: Likewise.
5276         * modules/unictype/bidicategory-byname: Likewise.
5277         * modules/unictype/bidicategory-name: Likewise.
5278         * modules/unictype/bidicategory-of: Likewise.
5279         * modules/unictype/bidicategory-test: Likewise.
5280         * modules/unictype/block-list: Likewise.
5281         * modules/unictype/block-test: Likewise.
5282         * modules/unictype/category-C: Likewise.
5283         * modules/unictype/category-Cc: Likewise.
5284         * modules/unictype/category-Cf: Likewise.
5285         * modules/unictype/category-Cn: Likewise.
5286         * modules/unictype/category-Co: Likewise.
5287         * modules/unictype/category-Cs: Likewise.
5288         * modules/unictype/category-L: Likewise.
5289         * modules/unictype/category-Ll: Likewise.
5290         * modules/unictype/category-Lm: Likewise.
5291         * modules/unictype/category-Lo: Likewise.
5292         * modules/unictype/category-Lt: Likewise.
5293         * modules/unictype/category-Lu: Likewise.
5294         * modules/unictype/category-M: Likewise.
5295         * modules/unictype/category-Mc: Likewise.
5296         * modules/unictype/category-Me: Likewise.
5297         * modules/unictype/category-Mn: Likewise.
5298         * modules/unictype/category-N: Likewise.
5299         * modules/unictype/category-Nd: Likewise.
5300         * modules/unictype/category-Nl: Likewise.
5301         * modules/unictype/category-No: Likewise.
5302         * modules/unictype/category-P: Likewise.
5303         * modules/unictype/category-Pc: Likewise.
5304         * modules/unictype/category-Pd: Likewise.
5305         * modules/unictype/category-Pe: Likewise.
5306         * modules/unictype/category-Pf: Likewise.
5307         * modules/unictype/category-Pi: Likewise.
5308         * modules/unictype/category-Po: Likewise.
5309         * modules/unictype/category-Ps: Likewise.
5310         * modules/unictype/category-S: Likewise.
5311         * modules/unictype/category-Sc: Likewise.
5312         * modules/unictype/category-Sk: Likewise.
5313         * modules/unictype/category-Sm: Likewise.
5314         * modules/unictype/category-So: Likewise.
5315         * modules/unictype/category-Z: Likewise.
5316         * modules/unictype/category-Zl: Likewise.
5317         * modules/unictype/category-Zp: Likewise.
5318         * modules/unictype/category-Zs: Likewise.
5319         * modules/unictype/category-and: Likewise.
5320         * modules/unictype/category-and-not: Likewise.
5321         * modules/unictype/category-byname: Likewise.
5322         * modules/unictype/category-name: Likewise.
5323         * modules/unictype/category-none: Likewise.
5324         * modules/unictype/category-of: Likewise.
5325         * modules/unictype/category-or: Likewise.
5326         * modules/unictype/category-test: Likewise.
5327         * modules/unictype/combining-class: Likewise.
5328         * modules/unictype/ctype-alnum: Likewise.
5329         * modules/unictype/ctype-alpha: Likewise.
5330         * modules/unictype/ctype-blank: Likewise.
5331         * modules/unictype/ctype-cntrl: Likewise.
5332         * modules/unictype/ctype-digit: Likewise.
5333         * modules/unictype/ctype-graph: Likewise.
5334         * modules/unictype/ctype-lower: Likewise.
5335         * modules/unictype/ctype-print: Likewise.
5336         * modules/unictype/ctype-punct: Likewise.
5337         * modules/unictype/ctype-space: Likewise.
5338         * modules/unictype/ctype-upper: Likewise.
5339         * modules/unictype/ctype-xdigit: Likewise.
5340         * modules/unictype/decimal-digit: Likewise.
5341         * modules/unictype/digit: Likewise.
5342         * modules/unictype/mirror: Likewise.
5343         * modules/unictype/numeric: Likewise.
5344         * modules/unictype/property-alphabetic: Likewise.
5345         * modules/unictype/property-ascii-hex-digit: Likewise.
5346         * modules/unictype/property-bidi-arabic-digit: Likewise.
5347         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5348         * modules/unictype/property-bidi-block-separator: Likewise.
5349         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5350         * modules/unictype/property-bidi-common-separator: Likewise.
5351         * modules/unictype/property-bidi-control: Likewise.
5352         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5353         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5354         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5355         * modules/unictype/property-bidi-european-digit: Likewise.
5356         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5357         * modules/unictype/property-bidi-left-to-right: Likewise.
5358         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5359         * modules/unictype/property-bidi-other-neutral: Likewise.
5360         * modules/unictype/property-bidi-pdf: Likewise.
5361         * modules/unictype/property-bidi-segment-separator: Likewise.
5362         * modules/unictype/property-bidi-whitespace: Likewise.
5363         * modules/unictype/property-byname: Likewise.
5364         * modules/unictype/property-combining: Likewise.
5365         * modules/unictype/property-composite: Likewise.
5366         * modules/unictype/property-currency-symbol: Likewise.
5367         * modules/unictype/property-dash: Likewise.
5368         * modules/unictype/property-decimal-digit: Likewise.
5369         * modules/unictype/property-default-ignorable-code-point: Likewise.
5370         * modules/unictype/property-deprecated: Likewise.
5371         * modules/unictype/property-diacritic: Likewise.
5372         * modules/unictype/property-extender: Likewise.
5373         * modules/unictype/property-format-control: Likewise.
5374         * modules/unictype/property-grapheme-base: Likewise.
5375         * modules/unictype/property-grapheme-extend: Likewise.
5376         * modules/unictype/property-grapheme-link: Likewise.
5377         * modules/unictype/property-hex-digit: Likewise.
5378         * modules/unictype/property-hyphen: Likewise.
5379         * modules/unictype/property-id-continue: Likewise.
5380         * modules/unictype/property-id-start: Likewise.
5381         * modules/unictype/property-ideographic: Likewise.
5382         * modules/unictype/property-ids-binary-operator: Likewise.
5383         * modules/unictype/property-ids-trinary-operator: Likewise.
5384         * modules/unictype/property-ignorable-control: Likewise.
5385         * modules/unictype/property-iso-control: Likewise.
5386         * modules/unictype/property-join-control: Likewise.
5387         * modules/unictype/property-left-of-pair: Likewise.
5388         * modules/unictype/property-line-separator: Likewise.
5389         * modules/unictype/property-logical-order-exception: Likewise.
5390         * modules/unictype/property-lowercase: Likewise.
5391         * modules/unictype/property-math: Likewise.
5392         * modules/unictype/property-non-break: Likewise.
5393         * modules/unictype/property-not-a-character: Likewise.
5394         * modules/unictype/property-numeric: Likewise.
5395         * modules/unictype/property-other-alphabetic: Likewise.
5396         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5397         * modules/unictype/property-other-grapheme-extend: Likewise.
5398         * modules/unictype/property-other-id-continue: Likewise.
5399         * modules/unictype/property-other-id-start: Likewise.
5400         * modules/unictype/property-other-lowercase: Likewise.
5401         * modules/unictype/property-other-math: Likewise.
5402         * modules/unictype/property-other-uppercase: Likewise.
5403         * modules/unictype/property-paired-punctuation: Likewise.
5404         * modules/unictype/property-paragraph-separator: Likewise.
5405         * modules/unictype/property-pattern-syntax: Likewise.
5406         * modules/unictype/property-pattern-white-space: Likewise.
5407         * modules/unictype/property-private-use: Likewise.
5408         * modules/unictype/property-punctuation: Likewise.
5409         * modules/unictype/property-quotation-mark: Likewise.
5410         * modules/unictype/property-radical: Likewise.
5411         * modules/unictype/property-sentence-terminal: Likewise.
5412         * modules/unictype/property-soft-dotted: Likewise.
5413         * modules/unictype/property-space: Likewise.
5414         * modules/unictype/property-terminal-punctuation: Likewise.
5415         * modules/unictype/property-test: Likewise.
5416         * modules/unictype/property-titlecase: Likewise.
5417         * modules/unictype/property-unassigned-code-value: Likewise.
5418         * modules/unictype/property-unified-ideograph: Likewise.
5419         * modules/unictype/property-uppercase: Likewise.
5420         * modules/unictype/property-variation-selector: Likewise.
5421         * modules/unictype/property-white-space: Likewise.
5422         * modules/unictype/property-xid-continue: Likewise.
5423         * modules/unictype/property-xid-start: Likewise.
5424         * modules/unictype/property-zero-width: Likewise.
5425         * modules/unictype/scripts: Likewise.
5426         * modules/unictype/syntax-c-ident: Likewise.
5427         * modules/unictype/syntax-c-whitespace: Likewise.
5428         * modules/unictype/syntax-java-ident: Likewise.
5429         * modules/unictype/syntax-java-whitespace: Likewise.
5430         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5431         * modules/unilbrk/u8-width-linebreaks: Likewise.
5432         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5433         * modules/unilbrk/u16-width-linebreaks: Likewise.
5434         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5435         * modules/unilbrk/u32-width-linebreaks: Likewise.
5436         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5437         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5438         * modules/uniname/uniname: Likewise.
5439         * modules/uninorm/canonical-decomposition: Likewise.
5440         * modules/uninorm/composition: Likewise.
5441         * modules/uninorm/decomposing-form: Likewise.
5442         * modules/uninorm/decomposition: Likewise.
5443         * modules/uninorm/filter: Likewise.
5444         * modules/uninorm/nfc: Likewise.
5445         * modules/uninorm/nfd: Likewise.
5446         * modules/uninorm/nfkc: Likewise.
5447         * modules/uninorm/nfkd: Likewise.
5448         * modules/uninorm/u8-normalize: Likewise.
5449         * modules/uninorm/u8-normcmp: Likewise.
5450         * modules/uninorm/u8-normcoll: Likewise.
5451         * modules/uninorm/u8-normxfrm: Likewise.
5452         * modules/uninorm/u16-normalize: Likewise.
5453         * modules/uninorm/u16-normcmp: Likewise.
5454         * modules/uninorm/u16-normcoll: Likewise.
5455         * modules/uninorm/u16-normxfrm: Likewise.
5456         * modules/uninorm/u32-normalize: Likewise.
5457         * modules/uninorm/u32-normcmp: Likewise.
5458         * modules/uninorm/u32-normcoll: Likewise.
5459         * modules/uninorm/u32-normxfrm: Likewise.
5460         * modules/unistdio/u8-asnprintf: Likewise.
5461         * modules/unistdio/u8-asprintf: Likewise.
5462         * modules/unistdio/u8-snprintf: Likewise.
5463         * modules/unistdio/u8-sprintf: Likewise.
5464         * modules/unistdio/u8-u8-asnprintf: Likewise.
5465         * modules/unistdio/u8-u8-asprintf: Likewise.
5466         * modules/unistdio/u8-u8-snprintf: Likewise.
5467         * modules/unistdio/u8-u8-sprintf: Likewise.
5468         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5469         * modules/unistdio/u8-u8-vasprintf: Likewise.
5470         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5471         * modules/unistdio/u8-u8-vsprintf: Likewise.
5472         * modules/unistdio/u8-vasnprintf: Likewise.
5473         * modules/unistdio/u8-vasprintf: Likewise.
5474         * modules/unistdio/u8-vsnprintf: Likewise.
5475         * modules/unistdio/u8-vsprintf: Likewise.
5476         * modules/unistdio/u16-asnprintf: Likewise.
5477         * modules/unistdio/u16-asprintf: Likewise.
5478         * modules/unistdio/u16-snprintf: Likewise.
5479         * modules/unistdio/u16-sprintf: Likewise.
5480         * modules/unistdio/u16-u16-asnprintf: Likewise.
5481         * modules/unistdio/u16-u16-asprintf: Likewise.
5482         * modules/unistdio/u16-u16-snprintf: Likewise.
5483         * modules/unistdio/u16-u16-sprintf: Likewise.
5484         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5485         * modules/unistdio/u16-u16-vasprintf: Likewise.
5486         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5487         * modules/unistdio/u16-u16-vsprintf: Likewise.
5488         * modules/unistdio/u16-vasnprintf: Likewise.
5489         * modules/unistdio/u16-vasprintf: Likewise.
5490         * modules/unistdio/u16-vsnprintf: Likewise.
5491         * modules/unistdio/u16-vsprintf: Likewise.
5492         * modules/unistdio/u32-asnprintf: Likewise.
5493         * modules/unistdio/u32-asprintf: Likewise.
5494         * modules/unistdio/u32-snprintf: Likewise.
5495         * modules/unistdio/u32-sprintf: Likewise.
5496         * modules/unistdio/u32-u32-asnprintf: Likewise.
5497         * modules/unistdio/u32-u32-asprintf: Likewise.
5498         * modules/unistdio/u32-u32-snprintf: Likewise.
5499         * modules/unistdio/u32-u32-sprintf: Likewise.
5500         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5501         * modules/unistdio/u32-u32-vasprintf: Likewise.
5502         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5503         * modules/unistdio/u32-u32-vsprintf: Likewise.
5504         * modules/unistdio/u32-vasnprintf: Likewise.
5505         * modules/unistdio/u32-vasprintf: Likewise.
5506         * modules/unistdio/u32-vsnprintf: Likewise.
5507         * modules/unistdio/u32-vsprintf: Likewise.
5508         * modules/unistdio/ulc-asnprintf: Likewise.
5509         * modules/unistdio/ulc-asprintf: Likewise.
5510         * modules/unistdio/ulc-fprintf: Likewise.
5511         * modules/unistdio/ulc-snprintf: Likewise.
5512         * modules/unistdio/ulc-sprintf: Likewise.
5513         * modules/unistdio/ulc-vasnprintf: Likewise.
5514         * modules/unistdio/ulc-vasprintf: Likewise.
5515         * modules/unistdio/ulc-vfprintf: Likewise.
5516         * modules/unistdio/ulc-vsnprintf: Likewise.
5517         * modules/unistdio/ulc-vsprintf: Likewise.
5518         * modules/unistr/u8-check: Likewise.
5519         * modules/unistr/u8-chr: Likewise.
5520         * modules/unistr/u8-cmp: Likewise.
5521         * modules/unistr/u8-cmp2: Likewise.
5522         * modules/unistr/u8-cpy: Likewise.
5523         * modules/unistr/u8-cpy-alloc: Likewise.
5524         * modules/unistr/u8-endswith: Likewise.
5525         * modules/unistr/u8-mblen: Likewise.
5526         * modules/unistr/u8-mbsnlen: Likewise.
5527         * modules/unistr/u8-mbtouc: Likewise.
5528         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5529         * modules/unistr/u8-mbtoucr: Likewise.
5530         * modules/unistr/u8-move: Likewise.
5531         * modules/unistr/u8-next: Likewise.
5532         * modules/unistr/u8-prev: Likewise.
5533         * modules/unistr/u8-set: Likewise.
5534         * modules/unistr/u8-startswith: Likewise.
5535         * modules/unistr/u8-stpcpy: Likewise.
5536         * modules/unistr/u8-stpncpy: Likewise.
5537         * modules/unistr/u8-strcat: Likewise.
5538         * modules/unistr/u8-strchr: Likewise.
5539         * modules/unistr/u8-strcmp: Likewise.
5540         * modules/unistr/u8-strcoll: Likewise.
5541         * modules/unistr/u8-strcpy: Likewise.
5542         * modules/unistr/u8-strcspn: Likewise.
5543         * modules/unistr/u8-strdup: Likewise.
5544         * modules/unistr/u8-strlen: Likewise.
5545         * modules/unistr/u8-strmblen: Likewise.
5546         * modules/unistr/u8-strmbtouc: Likewise.
5547         * modules/unistr/u8-strncat: Likewise.
5548         * modules/unistr/u8-strncmp: Likewise.
5549         * modules/unistr/u8-strncpy: Likewise.
5550         * modules/unistr/u8-strnlen: Likewise.
5551         * modules/unistr/u8-strpbrk: Likewise.
5552         * modules/unistr/u8-strrchr: Likewise.
5553         * modules/unistr/u8-strspn: Likewise.
5554         * modules/unistr/u8-strstr: Likewise.
5555         * modules/unistr/u8-strtok: Likewise.
5556         * modules/unistr/u8-to-u16: Likewise.
5557         * modules/unistr/u8-to-u32: Likewise.
5558         * modules/unistr/u8-uctomb: Likewise.
5559         * modules/unistr/u16-check: Likewise.
5560         * modules/unistr/u16-chr: Likewise.
5561         * modules/unistr/u16-cmp: Likewise.
5562         * modules/unistr/u16-cmp2: Likewise.
5563         * modules/unistr/u16-cpy: Likewise.
5564         * modules/unistr/u16-cpy-alloc: Likewise.
5565         * modules/unistr/u16-endswith: Likewise.
5566         * modules/unistr/u16-mblen: Likewise.
5567         * modules/unistr/u16-mbsnlen: Likewise.
5568         * modules/unistr/u16-mbtouc: Likewise.
5569         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5570         * modules/unistr/u16-mbtoucr: Likewise.
5571         * modules/unistr/u16-move: Likewise.
5572         * modules/unistr/u16-next: Likewise.
5573         * modules/unistr/u16-prev: Likewise.
5574         * modules/unistr/u16-set: Likewise.
5575         * modules/unistr/u16-startswith: Likewise.
5576         * modules/unistr/u16-stpcpy: Likewise.
5577         * modules/unistr/u16-stpncpy: Likewise.
5578         * modules/unistr/u16-strcat: Likewise.
5579         * modules/unistr/u16-strchr: Likewise.
5580         * modules/unistr/u16-strcmp: Likewise.
5581         * modules/unistr/u16-strcoll: Likewise.
5582         * modules/unistr/u16-strcpy: Likewise.
5583         * modules/unistr/u16-strcspn: Likewise.
5584         * modules/unistr/u16-strdup: Likewise.
5585         * modules/unistr/u16-strlen: Likewise.
5586         * modules/unistr/u16-strmblen: Likewise.
5587         * modules/unistr/u16-strmbtouc: Likewise.
5588         * modules/unistr/u16-strncat: Likewise.
5589         * modules/unistr/u16-strncmp: Likewise.
5590         * modules/unistr/u16-strncpy: Likewise.
5591         * modules/unistr/u16-strnlen: Likewise.
5592         * modules/unistr/u16-strpbrk: Likewise.
5593         * modules/unistr/u16-strrchr: Likewise.
5594         * modules/unistr/u16-strspn: Likewise.
5595         * modules/unistr/u16-strstr: Likewise.
5596         * modules/unistr/u16-strtok: Likewise.
5597         * modules/unistr/u16-to-u32: Likewise.
5598         * modules/unistr/u16-to-u8: Likewise.
5599         * modules/unistr/u16-uctomb: Likewise.
5600         * modules/unistr/u32-check: Likewise.
5601         * modules/unistr/u32-chr: Likewise.
5602         * modules/unistr/u32-cmp: Likewise.
5603         * modules/unistr/u32-cmp2: Likewise.
5604         * modules/unistr/u32-cpy: Likewise.
5605         * modules/unistr/u32-cpy-alloc: Likewise.
5606         * modules/unistr/u32-endswith: Likewise.
5607         * modules/unistr/u32-mblen: Likewise.
5608         * modules/unistr/u32-mbsnlen: Likewise.
5609         * modules/unistr/u32-mbtouc: Likewise.
5610         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5611         * modules/unistr/u32-mbtoucr: Likewise.
5612         * modules/unistr/u32-move: Likewise.
5613         * modules/unistr/u32-next: Likewise.
5614         * modules/unistr/u32-prev: Likewise.
5615         * modules/unistr/u32-set: Likewise.
5616         * modules/unistr/u32-startswith: Likewise.
5617         * modules/unistr/u32-stpcpy: Likewise.
5618         * modules/unistr/u32-stpncpy: Likewise.
5619         * modules/unistr/u32-strcat: Likewise.
5620         * modules/unistr/u32-strchr: Likewise.
5621         * modules/unistr/u32-strcmp: Likewise.
5622         * modules/unistr/u32-strcoll: Likewise.
5623         * modules/unistr/u32-strcpy: Likewise.
5624         * modules/unistr/u32-strcspn: Likewise.
5625         * modules/unistr/u32-strdup: Likewise.
5626         * modules/unistr/u32-strlen: Likewise.
5627         * modules/unistr/u32-strmblen: Likewise.
5628         * modules/unistr/u32-strmbtouc: Likewise.
5629         * modules/unistr/u32-strncat: Likewise.
5630         * modules/unistr/u32-strncmp: Likewise.
5631         * modules/unistr/u32-strncpy: Likewise.
5632         * modules/unistr/u32-strnlen: Likewise.
5633         * modules/unistr/u32-strpbrk: Likewise.
5634         * modules/unistr/u32-strrchr: Likewise.
5635         * modules/unistr/u32-strspn: Likewise.
5636         * modules/unistr/u32-strstr: Likewise.
5637         * modules/unistr/u32-strtok: Likewise.
5638         * modules/unistr/u32-to-u16: Likewise.
5639         * modules/unistr/u32-to-u8: Likewise.
5640         * modules/unistr/u32-uctomb: Likewise.
5641         * modules/uniwbrk/u8-wordbreaks: Likewise.
5642         * modules/uniwbrk/u16-wordbreaks: Likewise.
5643         * modules/uniwbrk/u32-wordbreaks: Likewise.
5644         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5645         * modules/uniwbrk/wordbreak-property: Likewise.
5646         * modules/uniwidth/u8-strwidth: Likewise.
5647         * modules/uniwidth/u8-width: Likewise.
5648         * modules/uniwidth/u16-strwidth: Likewise.
5649         * modules/uniwidth/u16-width: Likewise.
5650         * modules/uniwidth/u32-strwidth: Likewise.
5651         * modules/uniwidth/u32-width: Likewise.
5652         * modules/uniwidth/width: Likewise.
5653         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5654         with $(LIBUNISTRING).
5655         * modules/unicase/ignorable-tests: Likewise.
5656         * modules/unicase/locale-language-tests: Likewise.
5657         * modules/unicase/tolower-tests: Likewise.
5658         * modules/unicase/totitle-tests: Likewise.
5659         * modules/unicase/toupper-tests: Likewise.
5660         * modules/unicase/u8-casecmp-tests: Likewise.
5661         * modules/unicase/u8-casecoll-tests: Likewise.
5662         * modules/unicase/u8-casefold-tests: Likewise.
5663         * modules/unicase/u8-is-cased-tests: Likewise.
5664         * modules/unicase/u8-is-casefolded-tests: Likewise.
5665         * modules/unicase/u8-is-lowercase-tests: Likewise.
5666         * modules/unicase/u8-is-titlecase-tests: Likewise.
5667         * modules/unicase/u8-is-uppercase-tests: Likewise.
5668         * modules/unicase/u8-tolower-tests: Likewise.
5669         * modules/unicase/u8-totitle-tests: Likewise.
5670         * modules/unicase/u8-toupper-tests: Likewise.
5671         * modules/unicase/u16-casecmp-tests: Likewise.
5672         * modules/unicase/u16-casecoll-tests: Likewise.
5673         * modules/unicase/u16-casefold-tests: Likewise.
5674         * modules/unicase/u16-is-cased-tests: Likewise.
5675         * modules/unicase/u16-is-casefolded-tests: Likewise.
5676         * modules/unicase/u16-is-lowercase-tests: Likewise.
5677         * modules/unicase/u16-is-titlecase-tests: Likewise.
5678         * modules/unicase/u16-is-uppercase-tests: Likewise.
5679         * modules/unicase/u16-tolower-tests: Likewise.
5680         * modules/unicase/u16-totitle-tests: Likewise.
5681         * modules/unicase/u16-toupper-tests: Likewise.
5682         * modules/unicase/u32-casecmp-tests: Likewise.
5683         * modules/unicase/u32-casecoll-tests: Likewise.
5684         * modules/unicase/u32-casefold-tests: Likewise.
5685         * modules/unicase/u32-is-cased-tests: Likewise.
5686         * modules/unicase/u32-is-casefolded-tests: Likewise.
5687         * modules/unicase/u32-is-lowercase-tests: Likewise.
5688         * modules/unicase/u32-is-titlecase-tests: Likewise.
5689         * modules/unicase/u32-is-uppercase-tests: Likewise.
5690         * modules/unicase/u32-tolower-tests: Likewise.
5691         * modules/unicase/u32-totitle-tests: Likewise.
5692         * modules/unicase/u32-toupper-tests: Likewise.
5693         * modules/unicase/ulc-casecmp-tests: Likewise.
5694         * modules/unicase/ulc-casecoll-tests: Likewise.
5695         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5696         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5697         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5698         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5699         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5700         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5701         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5702         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5703         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5704         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5705         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5706         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5707         * modules/unictype/bidicategory-byname-tests: Likewise.
5708         * modules/unictype/bidicategory-name-tests: Likewise.
5709         * modules/unictype/bidicategory-of-tests: Likewise.
5710         * modules/unictype/bidicategory-test-tests: Likewise.
5711         * modules/unictype/block-list-tests: Likewise.
5712         * modules/unictype/block-of-tests: Likewise.
5713         * modules/unictype/block-test-tests: Likewise.
5714         * modules/unictype/category-C-tests: Likewise.
5715         * modules/unictype/category-Cc-tests: Likewise.
5716         * modules/unictype/category-Cf-tests: Likewise.
5717         * modules/unictype/category-Cn-tests: Likewise.
5718         * modules/unictype/category-Co-tests: Likewise.
5719         * modules/unictype/category-Cs-tests: Likewise.
5720         * modules/unictype/category-L-tests: Likewise.
5721         * modules/unictype/category-Ll-tests: Likewise.
5722         * modules/unictype/category-Lm-tests: Likewise.
5723         * modules/unictype/category-Lo-tests: Likewise.
5724         * modules/unictype/category-Lt-tests: Likewise.
5725         * modules/unictype/category-Lu-tests: Likewise.
5726         * modules/unictype/category-M-tests: Likewise.
5727         * modules/unictype/category-Mc-tests: Likewise.
5728         * modules/unictype/category-Me-tests: Likewise.
5729         * modules/unictype/category-Mn-tests: Likewise.
5730         * modules/unictype/category-N-tests: Likewise.
5731         * modules/unictype/category-Nd-tests: Likewise.
5732         * modules/unictype/category-Nl-tests: Likewise.
5733         * modules/unictype/category-No-tests: Likewise.
5734         * modules/unictype/category-P-tests: Likewise.
5735         * modules/unictype/category-Pc-tests: Likewise.
5736         * modules/unictype/category-Pd-tests: Likewise.
5737         * modules/unictype/category-Pe-tests: Likewise.
5738         * modules/unictype/category-Pf-tests: Likewise.
5739         * modules/unictype/category-Pi-tests: Likewise.
5740         * modules/unictype/category-Po-tests: Likewise.
5741         * modules/unictype/category-Ps-tests: Likewise.
5742         * modules/unictype/category-S-tests: Likewise.
5743         * modules/unictype/category-Sc-tests: Likewise.
5744         * modules/unictype/category-Sk-tests: Likewise.
5745         * modules/unictype/category-Sm-tests: Likewise.
5746         * modules/unictype/category-So-tests: Likewise.
5747         * modules/unictype/category-Z-tests: Likewise.
5748         * modules/unictype/category-Zl-tests: Likewise.
5749         * modules/unictype/category-Zp-tests: Likewise.
5750         * modules/unictype/category-Zs-tests: Likewise.
5751         * modules/unictype/category-and-not-tests: Likewise.
5752         * modules/unictype/category-and-tests: Likewise.
5753         * modules/unictype/category-byname-tests: Likewise.
5754         * modules/unictype/category-name-tests: Likewise.
5755         * modules/unictype/category-none-tests: Likewise.
5756         * modules/unictype/category-of-tests: Likewise.
5757         * modules/unictype/category-or-tests: Likewise.
5758         * modules/unictype/category-test-withtable-tests: Likewise.
5759         * modules/unictype/combining-class-tests: Likewise.
5760         * modules/unictype/ctype-alnum-tests: Likewise.
5761         * modules/unictype/ctype-alpha-tests: Likewise.
5762         * modules/unictype/ctype-blank-tests: Likewise.
5763         * modules/unictype/ctype-cntrl-tests: Likewise.
5764         * modules/unictype/ctype-digit-tests: Likewise.
5765         * modules/unictype/ctype-graph-tests: Likewise.
5766         * modules/unictype/ctype-lower-tests: Likewise.
5767         * modules/unictype/ctype-print-tests: Likewise.
5768         * modules/unictype/ctype-punct-tests: Likewise.
5769         * modules/unictype/ctype-space-tests: Likewise.
5770         * modules/unictype/ctype-upper-tests: Likewise.
5771         * modules/unictype/ctype-xdigit-tests: Likewise.
5772         * modules/unictype/decimal-digit-tests: Likewise.
5773         * modules/unictype/digit-tests: Likewise.
5774         * modules/unictype/mirror-tests: Likewise.
5775         * modules/unictype/numeric-tests: Likewise.
5776         * modules/unictype/property-alphabetic-tests: Likewise.
5777         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5778         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5779         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5780         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5781         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5782         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5783         * modules/unictype/property-bidi-control-tests: Likewise.
5784         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5785         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5786         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5787         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5788         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5789         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5790         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5791         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5792         * modules/unictype/property-bidi-pdf-tests: Likewise.
5793         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5794         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5795         * modules/unictype/property-byname-tests: Likewise.
5796         * modules/unictype/property-combining-tests: Likewise.
5797         * modules/unictype/property-composite-tests: Likewise.
5798         * modules/unictype/property-currency-symbol-tests: Likewise.
5799         * modules/unictype/property-dash-tests: Likewise.
5800         * modules/unictype/property-decimal-digit-tests: Likewise.
5801         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5802         * modules/unictype/property-deprecated-tests: Likewise.
5803         * modules/unictype/property-diacritic-tests: Likewise.
5804         * modules/unictype/property-extender-tests: Likewise.
5805         * modules/unictype/property-format-control-tests: Likewise.
5806         * modules/unictype/property-grapheme-base-tests: Likewise.
5807         * modules/unictype/property-grapheme-extend-tests: Likewise.
5808         * modules/unictype/property-grapheme-link-tests: Likewise.
5809         * modules/unictype/property-hex-digit-tests: Likewise.
5810         * modules/unictype/property-hyphen-tests: Likewise.
5811         * modules/unictype/property-id-continue-tests: Likewise.
5812         * modules/unictype/property-id-start-tests: Likewise.
5813         * modules/unictype/property-ideographic-tests: Likewise.
5814         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5815         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5816         * modules/unictype/property-ignorable-control-tests: Likewise.
5817         * modules/unictype/property-iso-control-tests: Likewise.
5818         * modules/unictype/property-join-control-tests: Likewise.
5819         * modules/unictype/property-left-of-pair-tests: Likewise.
5820         * modules/unictype/property-line-separator-tests: Likewise.
5821         * modules/unictype/property-logical-order-exception-tests: Likewise.
5822         * modules/unictype/property-lowercase-tests: Likewise.
5823         * modules/unictype/property-math-tests: Likewise.
5824         * modules/unictype/property-non-break-tests: Likewise.
5825         * modules/unictype/property-not-a-character-tests: Likewise.
5826         * modules/unictype/property-numeric-tests: Likewise.
5827         * modules/unictype/property-other-alphabetic-tests: Likewise.
5828         * modules/unictype/property-other-default-ignorable-code-point-tests:
5829         Likewise.
5830         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5831         * modules/unictype/property-other-id-continue-tests: Likewise.
5832         * modules/unictype/property-other-id-start-tests: Likewise.
5833         * modules/unictype/property-other-lowercase-tests: Likewise.
5834         * modules/unictype/property-other-math-tests: Likewise.
5835         * modules/unictype/property-other-uppercase-tests: Likewise.
5836         * modules/unictype/property-paired-punctuation-tests: Likewise.
5837         * modules/unictype/property-paragraph-separator-tests: Likewise.
5838         * modules/unictype/property-pattern-syntax-tests: Likewise.
5839         * modules/unictype/property-pattern-white-space-tests: Likewise.
5840         * modules/unictype/property-private-use-tests: Likewise.
5841         * modules/unictype/property-punctuation-tests: Likewise.
5842         * modules/unictype/property-quotation-mark-tests: Likewise.
5843         * modules/unictype/property-radical-tests: Likewise.
5844         * modules/unictype/property-sentence-terminal-tests: Likewise.
5845         * modules/unictype/property-soft-dotted-tests: Likewise.
5846         * modules/unictype/property-space-tests: Likewise.
5847         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5848         * modules/unictype/property-test-tests: Likewise.
5849         * modules/unictype/property-titlecase-tests: Likewise.
5850         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5851         * modules/unictype/property-unified-ideograph-tests: Likewise.
5852         * modules/unictype/property-uppercase-tests: Likewise.
5853         * modules/unictype/property-variation-selector-tests: Likewise.
5854         * modules/unictype/property-white-space-tests: Likewise.
5855         * modules/unictype/property-xid-continue-tests: Likewise.
5856         * modules/unictype/property-xid-start-tests: Likewise.
5857         * modules/unictype/property-zero-width-tests: Likewise.
5858         * modules/unictype/scripts-tests: Likewise.
5859         * modules/unictype/syntax-c-ident-tests: Likewise.
5860         * modules/unictype/syntax-c-whitespace-tests: Likewise.
5861         * modules/unictype/syntax-java-ident-tests: Likewise.
5862         * modules/unictype/syntax-java-whitespace-tests: Likewise.
5863         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
5864         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
5865         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
5866         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
5867         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
5868         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
5869         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
5870         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
5871         * modules/uniname/uniname-tests: Likewise.
5872         * modules/uninorm/canonical-decomposition-tests: Likewise.
5873         * modules/uninorm/compat-decomposition-tests: Likewise.
5874         * modules/uninorm/composition-tests: Likewise.
5875         * modules/uninorm/decomposing-form-tests: Likewise.
5876         * modules/uninorm/decomposition-tests: Likewise.
5877         * modules/uninorm/filter-tests: Likewise.
5878         * modules/uninorm/nfc-tests: Likewise.
5879         * modules/uninorm/nfd-tests: Likewise.
5880         * modules/uninorm/nfkc-tests: Likewise.
5881         * modules/uninorm/nfkd-tests: Likewise.
5882         * modules/uninorm/u8-normcmp-tests: Likewise.
5883         * modules/uninorm/u8-normcoll-tests: Likewise.
5884         * modules/uninorm/u16-normcmp-tests: Likewise.
5885         * modules/uninorm/u16-normcoll-tests: Likewise.
5886         * modules/uninorm/u32-normcmp-tests: Likewise.
5887         * modules/uninorm/u32-normcoll-tests: Likewise.
5888         * modules/unistdio/u8-asnprintf-tests: Likewise.
5889         * modules/unistdio/u8-vasnprintf-tests: Likewise.
5890         * modules/unistdio/u8-vasprintf-tests: Likewise.
5891         * modules/unistdio/u8-vsnprintf-tests: Likewise.
5892         * modules/unistdio/u8-vsprintf-tests: Likewise.
5893         * modules/unistdio/u16-asnprintf-tests: Likewise.
5894         * modules/unistdio/u16-vasnprintf-tests: Likewise.
5895         * modules/unistdio/u16-vasprintf-tests: Likewise.
5896         * modules/unistdio/u16-vsnprintf-tests: Likewise.
5897         * modules/unistdio/u16-vsprintf-tests: Likewise.
5898         * modules/unistdio/u32-asnprintf-tests: Likewise.
5899         * modules/unistdio/u32-vasnprintf-tests: Likewise.
5900         * modules/unistdio/u32-vasprintf-tests: Likewise.
5901         * modules/unistdio/u32-vsnprintf-tests: Likewise.
5902         * modules/unistdio/u32-vsprintf-tests: Likewise.
5903         * modules/unistdio/ulc-asnprintf-tests: Likewise.
5904         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
5905         * modules/unistdio/ulc-vasprintf-tests: Likewise.
5906         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
5907         * modules/unistdio/ulc-vsprintf-tests: Likewise.
5908         * modules/unistr/u8-check-tests: Likewise.
5909         * modules/unistr/u8-chr-tests: Likewise.
5910         * modules/unistr/u8-cmp-tests: Likewise.
5911         * modules/unistr/u8-cmp2-tests: Likewise.
5912         * modules/unistr/u8-cpy-alloc-tests: Likewise.
5913         * modules/unistr/u8-cpy-tests: Likewise.
5914         * modules/unistr/u8-mblen-tests: Likewise.
5915         * modules/unistr/u8-mbsnlen-tests: Likewise.
5916         * modules/unistr/u8-mbtouc-tests: Likewise.
5917         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
5918         * modules/unistr/u8-mbtoucr-tests: Likewise.
5919         * modules/unistr/u8-move-tests: Likewise.
5920         * modules/unistr/u8-next-tests: Likewise.
5921         * modules/unistr/u8-prev-tests: Likewise.
5922         * modules/unistr/u8-set-tests: Likewise.
5923         * modules/unistr/u8-stpcpy-tests: Likewise.
5924         * modules/unistr/u8-stpncpy-tests: Likewise.
5925         * modules/unistr/u8-strcat-tests: Likewise.
5926         * modules/unistr/u8-strcmp-tests: Likewise.
5927         * modules/unistr/u8-strcoll-tests: Likewise.
5928         * modules/unistr/u8-strcpy-tests: Likewise.
5929         * modules/unistr/u8-strdup-tests: Likewise.
5930         * modules/unistr/u8-strlen-tests: Likewise.
5931         * modules/unistr/u8-strmblen-tests: Likewise.
5932         * modules/unistr/u8-strmbtouc-tests: Likewise.
5933         * modules/unistr/u8-strncat-tests: Likewise.
5934         * modules/unistr/u8-strncmp-tests: Likewise.
5935         * modules/unistr/u8-strncpy-tests: Likewise.
5936         * modules/unistr/u8-strnlen-tests: Likewise.
5937         * modules/unistr/u8-to-u16-tests: Likewise.
5938         * modules/unistr/u8-to-u32-tests: Likewise.
5939         * modules/unistr/u8-uctomb-tests: Likewise.
5940         * modules/unistr/u16-check-tests: Likewise.
5941         * modules/unistr/u16-chr-tests: Likewise.
5942         * modules/unistr/u16-cmp-tests: Likewise.
5943         * modules/unistr/u16-cmp2-tests: Likewise.
5944         * modules/unistr/u16-cpy-alloc-tests: Likewise.
5945         * modules/unistr/u16-cpy-tests: Likewise.
5946         * modules/unistr/u16-mblen-tests: Likewise.
5947         * modules/unistr/u16-mbsnlen-tests: Likewise.
5948         * modules/unistr/u16-mbtouc-tests: Likewise.
5949         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
5950         * modules/unistr/u16-mbtoucr-tests: Likewise.
5951         * modules/unistr/u16-move-tests: Likewise.
5952         * modules/unistr/u16-next-tests: Likewise.
5953         * modules/unistr/u16-prev-tests: Likewise.
5954         * modules/unistr/u16-set-tests: Likewise.
5955         * modules/unistr/u16-stpcpy-tests: Likewise.
5956         * modules/unistr/u16-stpncpy-tests: Likewise.
5957         * modules/unistr/u16-strcat-tests: Likewise.
5958         * modules/unistr/u16-strcmp-tests: Likewise.
5959         * modules/unistr/u16-strcoll-tests: Likewise.
5960         * modules/unistr/u16-strcpy-tests: Likewise.
5961         * modules/unistr/u16-strdup-tests: Likewise.
5962         * modules/unistr/u16-strlen-tests: Likewise.
5963         * modules/unistr/u16-strmblen-tests: Likewise.
5964         * modules/unistr/u16-strmbtouc-tests: Likewise.
5965         * modules/unistr/u16-strncat-tests: Likewise.
5966         * modules/unistr/u16-strncmp-tests: Likewise.
5967         * modules/unistr/u16-strncpy-tests: Likewise.
5968         * modules/unistr/u16-strnlen-tests: Likewise.
5969         * modules/unistr/u16-to-u32-tests: Likewise.
5970         * modules/unistr/u16-to-u8-tests: Likewise.
5971         * modules/unistr/u16-uctomb-tests: Likewise.
5972         * modules/unistr/u32-check-tests: Likewise.
5973         * modules/unistr/u32-chr-tests: Likewise.
5974         * modules/unistr/u32-cmp-tests: Likewise.
5975         * modules/unistr/u32-cmp2-tests: Likewise.
5976         * modules/unistr/u32-cpy-alloc-tests: Likewise.
5977         * modules/unistr/u32-cpy-tests: Likewise.
5978         * modules/unistr/u32-mblen-tests: Likewise.
5979         * modules/unistr/u32-mbsnlen-tests: Likewise.
5980         * modules/unistr/u32-mbtouc-tests: Likewise.
5981         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
5982         * modules/unistr/u32-mbtoucr-tests: Likewise.
5983         * modules/unistr/u32-move-tests: Likewise.
5984         * modules/unistr/u32-next-tests: Likewise.
5985         * modules/unistr/u32-prev-tests: Likewise.
5986         * modules/unistr/u32-set-tests: Likewise.
5987         * modules/unistr/u32-stpcpy-tests: Likewise.
5988         * modules/unistr/u32-stpncpy-tests: Likewise.
5989         * modules/unistr/u32-strcat-tests: Likewise.
5990         * modules/unistr/u32-strcmp-tests: Likewise.
5991         * modules/unistr/u32-strcoll-tests: Likewise.
5992         * modules/unistr/u32-strcpy-tests: Likewise.
5993         * modules/unistr/u32-strdup-tests: Likewise.
5994         * modules/unistr/u32-strlen-tests: Likewise.
5995         * modules/unistr/u32-strmblen-tests: Likewise.
5996         * modules/unistr/u32-strmbtouc-tests: Likewise.
5997         * modules/unistr/u32-strncat-tests: Likewise.
5998         * modules/unistr/u32-strncmp-tests: Likewise.
5999         * modules/unistr/u32-strncpy-tests: Likewise.
6000         * modules/unistr/u32-strnlen-tests: Likewise.
6001         * modules/unistr/u32-to-u16-tests: Likewise.
6002         * modules/unistr/u32-to-u8-tests: Likewise.
6003         * modules/unistr/u32-uctomb-tests: Likewise.
6004         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6005         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6006         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6007         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6008         * modules/uniwidth/u8-strwidth-tests: Likewise.
6009         * modules/uniwidth/u8-width-tests: Likewise.
6010         * modules/uniwidth/u16-strwidth-tests: Likewise.
6011         * modules/uniwidth/u16-width-tests: Likewise.
6012         * modules/uniwidth/u32-strwidth-tests: Likewise.
6013         * modules/uniwidth/u32-width-tests: Likewise.
6014         * modules/uniwidth/width-tests: Likewise.
6015
6016 2010-05-18  Richard Jones  <rjones@redhat.com>
6017
6018         doc: users.txt: list hivex
6019         * users.txt: Add hivex.
6020
6021 2010-05-18  Richard Jones  <rjones@redhat.com>
6022
6023         doc: users.txt: list febootstrap
6024         * users.txt: Add febootstrap.
6025
6026 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6027
6028         bootstrap: fix an error when gnulib is not used as a git submodule
6029         * build-aux/bootstrap (gnulib_path): If its length is zero then
6030         assign "gnulib" to it.
6031         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6032
6033 2010-05-16  Bruno Haible  <bruno@clisp.org>
6034
6035         Avoid autoconf warnings about AM_ICONV.
6036         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6037         2.64.
6038
6039 2010-05-16  Bruno Haible  <bruno@clisp.org>
6040
6041         absolute-header: Make the macro usable in more situations.
6042         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6043         from gl_ABSOLUTE_HEADER.
6044         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6045
6046 2010-05-16  James Youngman  <jay@gnu.org>
6047
6048         doc: update users.txt
6049         * users.txt: Add CSSC.
6050
6051 2010-05-16  Jim Meyering  <meyering@redhat.com>
6052
6053         init.sh: fix an error in the previous change; add more comments
6054         * tests/init.sh: Compare exit code in loop against 9, not 2.
6055         Patch by Bruno Haible.
6056         Make the two tests more similar by adding an empty "then" clause.
6057         Add comments.
6058
6059         init.sh: avoid unnecessary shell re-exec
6060         * tests/init.sh: Improve the re-exec-required check to first test the
6061         current shell.  If it passes the test, do not search for a shell that
6062         does pass, and do not re-exec.  This test is particularly contorted to
6063         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6064         of $(...) evokes a syntax error and causes immediate shell exit with
6065         status 2.  Bruno Haible reported that the re-exec made it impossible
6066         to single-step through any init.sh-using script.
6067
6068 2010-05-16  Bruno Haible  <bruno@clisp.org>
6069
6070         Fix collision between gnulib's and libintl's printf replacements.
6071         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6072         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6073         (printf): When using GNU C, map the __printf__ function to rpl_printf
6074         via __asm__. When not using GNU C, define rpl_printf instead of
6075         __printf__.
6076         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6077         commit.
6078         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6079         commit.
6080         * m4/asm-underscore.m4: New file.
6081         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6082         * modules/stdio (Files): Add m4/asm-underscore.m4.
6083         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6084         Reported by Ben Pfaff.
6085
6086 2010-05-16  Bruno Haible  <bruno@clisp.org>
6087
6088         verify: Avoid skipping the test on openSUSE 11.0.
6089         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6090
6091 2010-05-13  Bruno Haible  <bruno@clisp.org>
6092
6093         Avoid useless warnings from G++.
6094         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6095         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6096         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6097
6098 2010-05-11  Jim Meyering  <meyering@redhat.com>
6099
6100         maint.mk: tweak preceding change
6101         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6102         regexps tighter by anchoring at EOL, and make the new group "shy"
6103         for slightly decreased overhead.
6104
6105 2010-05-11  Eric Blake  <eblake@redhat.com>
6106
6107         maint.mk: gnulib doesn't guarantee NSIG
6108         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6109
6110 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6111
6112         test-pwrite.c: Remove unused variable declaration.
6113         * tests/test-pwrite.c (main): Remove read_buf declaration.
6114
6115         Remove useless test-pwrite.sh file.
6116         * tests/test-pwrite.sh: Delete file.
6117         * modules/pwrite-tests: Remove references.
6118         Reported by Bruno Haible.
6119
6120 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6121
6122         init.sh: fix a typo
6123         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6124
6125 2010-05-10  Jim Meyering  <meyering@redhat.com>
6126
6127         maint.mk: avoid using a temporary file in the always-defined-macros check
6128         * top/maint.mk (.re-defmac): Remove rule.
6129         (gl_trap_): Remove definition.
6130         (sc_prohibit_always-defined_macros): Rewrite not to create and
6131         depend on a temporary file.  Instead, depend on GNU grep's ability
6132         to read a list of regular expressions from stdin when given "-f -".
6133
6134 2010-05-09  Bruno Haible  <bruno@clisp.org>
6135
6136         Update to GNU gettext 0.18, part 1.
6137         * m4/gettext.m4: Update to GNU gettext 0.18.
6138         * m4/intl.m4: Likewise.
6139         * m4/po.m4: Likewise.
6140         * modules/gettext (Files): Add m4/fcntl-o.m4.
6141         (configure.ac): Require gettext infrastructure from version 0.18.
6142
6143 2010-05-09  Jim Meyering  <meyering@redhat.com>
6144
6145         init.sh: enable MALLOC_PERTURB_
6146         * tests/init.sh: Enable glibc's malloc-perturbing option.
6147
6148         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6149         With my recent change in init.sh from the two-line form:
6150             -#   : ${srcdir=.}
6151             -#   . "$srcdir/init.sh"; path_prepend_ .
6152             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6153         I noticed that using the one-line form would cause this test
6154         to fail with a false-positive, or to stop working altogether,
6155         depending on whether help-version changed or all the tests did.
6156         * top/maint.mk (_hv_regex): Remove this definition.
6157         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6158         (_hv_regex_strong): Use a stronger regex to check for conformance.
6159         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6160         Give a separate diagnostic for lack of conforming use.
6161
6162         maint.mk: prohibit definition of symbols defined by gnulib
6163         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6164         definition of symbols defined by gnulib.
6165
6166 2010-05-09  Bruno Haible  <bruno@clisp.org>
6167
6168         acl: Avoid test failure on Cygwin-hosted mingw.
6169         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6170
6171 2010-05-09  Bruno Haible  <bruno@clisp.org>
6172
6173         error: Use system's fcntl function.
6174         * lib/error.c (fcntl): Undefine.
6175
6176 2010-05-09  Jim Meyering  <meyering@redhat.com>
6177
6178         verify: adjust formatting to be more consistent
6179         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6180         argument-list '('s, and after one comma.
6181
6182 2010-05-09  Bruno Haible  <bruno@clisp.org>
6183
6184         error: More reliable output on mingw.
6185         * lib/error.c: Include <windows.h>.
6186         (is_open): New function.
6187         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6188         defined.
6189
6190 2010-05-09  Bruno Haible  <bruno@clisp.org>
6191
6192         vasnprintf: Fix syntax errors in libintl build on mingw.
6193         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6194         pad_ourselves and prec_ourselves after use.
6195
6196 2010-05-08  Bruno Haible  <bruno@clisp.org>
6197
6198         * lib/config.charset: Update comments for Cygwin 1.7.
6199         * lib/localcharset.c: Likewise.
6200
6201 2010-05-07  Jim Meyering  <meyering@redhat.com>
6202
6203         init.sh: improve comments
6204         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6205         . "${srcdir=.}/init.sh"; path_prepend_ .
6206         Add a note about path_prepend_ and the alternative of using
6207         TESTS_ENVIRONMENT.
6208
6209 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6210
6211         exclude: Unescape hashed patterns in wildcard mode.
6212         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6213         to the hash list.
6214         * tests/test-exclude8.sh: New test case.
6215         * modules/exclude-tests: Add new test.
6216
6217 2010-05-05  Eric Blake  <eblake@redhat.com>
6218
6219         verify: automate tests
6220         * modules/verify-tests: New module.
6221         * tests/test-verify.sh: New file.
6222         * tests/test-verify.c: Guard each negative test with a unique id.
6223         Also avoid warning about unused left hand of comma expressions.
6224
6225 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6226
6227         Further improvements to verify.h, suggested by Eric Blake.
6228         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6229         the GL_* versions, to avoid collision with OpenGL.
6230         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6231         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6232         than testing merely whether it's defined.
6233
6234         Modify verify.h to pacify gcc -Wredundant_decls.
6235         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6236         These use the prefix "GL_" since they're likely to be useful elsewhere.
6237         We may need to break them out into a different .h file.
6238         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6239         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6240         of verify_function__.
6241
6242 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6243
6244         Tests for module pwrite.
6245         * modules/pwrite-tests: New file.
6246         * tests/test-pwrite.sh: New file.
6247         * tests/test-pwrite.c: New file.
6248
6249         New module pwrite.
6250         * lib/unistd.in.h (pwrite): New declaration.
6251         * lib/pwrite.c: New file, from glibc with modifications.
6252         * m4/pwrite.m4: New file.
6253         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6254         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6255         REPLACE_PWRITE.
6256         * modules/pwrite: New file.
6257         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6258         REPLACE_PWRITE.
6259         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6260         * doc/posix-functions/pwrite.texi: Mention the new module.
6261
6262 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6263
6264         pread: Update documentation.
6265         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6266
6267 2010-05-04  Eric Blake  <eblake@redhat.com>
6268
6269         docs: update cygwin progress
6270         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6271         this bug.
6272         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6273         Added in cygwin 1.7.2.
6274         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6275         Likewise.
6276         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6277         Likewise.
6278         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6279         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6280         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6281         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6282         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6283         Mention nproc module.
6284         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6285         bug in cygwin 1.7.5 addition.
6286         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6287         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6288         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6289         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6290         1.7.5.
6291         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6292         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6293         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6294         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6295         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6296         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6297         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6298         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6299         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6300         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6301         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6302         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6303         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6304         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6305         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6306         Likewise.
6307         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6308         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6309         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6310         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6311         Likewise.
6312         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6313         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6314         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6315         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6316         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6317         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6318         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6319         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6320         Likewise.
6321         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6322         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6323         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6324         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6325         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6326         Likewise.
6327         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6328         Likewise.
6329         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6330         Likewise.
6331         * doc/glibc-functions/xdrrec_endofrecord.texi
6332         (xdrrec_endofrecord): Likewise.
6333         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6334         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6335         Likewise.
6336         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6337         Likewise.
6338
6339 2010-05-04  Jim Meyering  <meyering@redhat.com>
6340
6341         gendocs.sh: make its "-s FILE" option more useful
6342         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6343         $PACKAGE to reflect the probably-different basename of "FILE".
6344
6345 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6346
6347         bootstrap: don't ignore download_po_files failure
6348         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6349         failure.
6350
6351 2010-05-03  Jim Meyering  <meyering@redhat.com>
6352
6353         maint.mk: allow to pass options to gendocs.sh
6354         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6355         (gendocs_options_): New overridable variable.
6356
6357         gnu-web-doc-update: don't ignore configure or build failure
6358         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6359
6360         announce-gen: backslash-escape '@'s in --help output
6361         * build-aux/announce-gen: Fix syntax errors.
6362
6363         maint.mk, announce-gen: allow project-specific announcement mail headers
6364         * top/maint.mk (translation_project_): Define default.
6365         (announcement_Cc_, announcement_mail_headers_): Likewise.
6366         (announcement): Invoke announce-gen with new --mail-headers option.
6367         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6368
6369         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6370         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6371         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6372         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6373         line in the "err2" output file when running "make check" in verbose
6374         mode (i.e., with set -x enabled).
6375
6376 2010-05-03  Bruno Haible  <bruno@clisp.org>
6377
6378         wctob: Fix for weird platforms.
6379         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6380         argument value.
6381
6382 2010-05-03  Jim Meyering  <meyering@redhat.com>
6383
6384         maint.mk: prohibit unwarranted use of <strings.h>
6385         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6386         strings.h in a file that does not also use strcasecmp, strncasecmp,
6387         ffs or ffsll.
6388
6389         maint.mk: remove obsolete comments
6390         * top/maint.mk: Remove stale, commented-out rules.
6391
6392 2010-05-02  Bruno Haible  <bruno@clisp.org>
6393
6394         wcwidth: Declare also when it's aliased.
6395         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6396         macro.
6397
6398 2010-05-02  Bruno Haible  <bruno@clisp.org>
6399
6400         Fix regression from 2010-04-25.
6401         * gnulib-tool (func_modules_transitive_closure): Check the status of
6402         all modules, not only of the tests that are of the form foo-tests where
6403         foo is a module.
6404
6405 2010-05-02  Bruno Haible  <bruno@clisp.org>
6406
6407         wctob: Work around nasty Cygwin 1.7.2 bug.
6408         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6409         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6410
6411 2010-05-01  Bruno Haible  <bruno@clisp.org>
6412
6413         fpurge: Sharper test.
6414         * tests/test-fpurge.c (main): Add one more ftell check.
6415         * modules/fpurge-tests (Depends-on): Add ftell.
6416         Suggested by Eric Blake.
6417
6418 2010-05-01  Bruno Haible  <bruno@clisp.org>
6419
6420         ftello: Another test.
6421         * tests/test-ftello3.c: New file.
6422         * modules/ftello-tests (Files): Add it.
6423         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6424         MOSTLYCLEANFILES.
6425
6426         ftell: Another test.
6427         * tests/test-ftell3.c: New file.
6428         * modules/ftell-tests (Files): Add it.
6429         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6430         MOSTLYCLEANFILES.
6431
6432 2010-05-01  Bruno Haible  <bruno@clisp.org>
6433
6434         ftell, ftello: Work around Solaris bug.
6435         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6436         * lib/ftello.c: Include stdio-impl.h.
6437         (ftello): On Solaris, when _IOWRT is set, compute the result without
6438         looking at _IOREAD.
6439         * modules/ftello (Files): Add lib/stdio-impl.h.
6440         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6441         * doc/posix-functions/ftello.texi: Likewise.
6442         Reported by Eric Blake.
6443
6444 2010-05-01  Bruno Haible  <bruno@clisp.org>
6445
6446         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6447         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6448         the _IOWRT flag is also set.
6449
6450 2010-05-01  Bruno Haible  <bruno@clisp.org>
6451
6452         Fix doc about a HP-UX stdio bug.
6453         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6454         * doc/posix-functions/ftello.texi: Likewise.
6455
6456 2010-05-01  Bruno Haible  <bruno@clisp.org>
6457
6458         lseek test: Fix failure on Solaris.
6459         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6460         output.
6461
6462 2010-04-30  Jim Meyering  <meyering@redhat.com>
6463
6464         bootstrap: don't ignore failure to generate po*/Makevars
6465         * build-aux/bootstrap (with_gettext): Don't ignore failure
6466         to create po/Makevars or runtime-po/Makevars.
6467
6468 2010-04-29  Eric Blake  <eblake@redhat.com>
6469
6470         headers: relax license to LGPLv2+
6471         * modules/fcntl-h (License): Relax license.
6472         * modules/getopt-posix (License): Likewise.
6473         * modules/locale (License): Likewise.
6474         * modules/math (License): Likewise.
6475         * modules/pty (License): Likewise.
6476         * modules/sched (License): Likewise.
6477         * modules/search (License): Likewise.
6478         * modules/spawn (License): Likewise.
6479         * modules/stdarg (License): Likewise.
6480         * modules/sysexits (License): Likewise.
6481
6482 2010-04-29  Jim Meyering  <meyering@redhat.com>
6483
6484         inttypes: relax license to LGPLv2+
6485         * modules/inttypes (License): Relax license.
6486
6487 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6488
6489         * top/maint.mk (indent): Run twice to produce idempotent results.
6490
6491 2010-04-28  Bruno Haible  <bruno@clisp.org>
6492
6493         getdate: Generate getdate.c in the source directory.
6494         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6495         MOSTLYCLEANFILES.
6496         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6497
6498 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6499
6500         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6501         is not declared as a const *; avoid warnings in that case.
6502
6503 2010-04-28  Eric Blake  <eblake@redhat.com>
6504
6505         canonicalize-lgpl: avoid compiler warning
6506         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6507         declaration' / 'extraneous semicolon' warning with some compilers.
6508         Reported by Andreas Gruenbacher.
6509
6510 2010-04-28  Jim Meyering  <meyering@redhat.com>
6511
6512         init.sh: ensure a more reliable exit status when exiting via trap
6513         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6514         Inspired by patches from Dmitry V. Levin.
6515         Also trap on signal 3 (SIGQUIT).
6516
6517 2010-04-27  Bruno Haible  <bruno@clisp.org>
6518
6519         Update doc about utimes().
6520         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6521         'utimens' module.
6522         Reported by Andreas Gruenbacher <agruen@suse.de>.
6523
6524 2010-04-27  Eric Blake  <eblake@redhat.com>
6525
6526         full-read, full-write: relax license
6527         * modules/full-read (License): Drop to LGPLv2+.
6528         * modules/full-write (License): Likewise.
6529         * modules/safe-read (License): Likewise.
6530         * modules/safe-write (License): Likewise.
6531
6532         pthread: mention library for linking
6533         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6534
6535 2010-04-27  Jim Meyering  <meyering@redhat.com>
6536
6537         maint.mk: fix a bug introduced in last change
6538         * top/maint.mk (gl_assured_headers_): Now that all names are on
6539         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6540         is not anchored to end of word, it should be adequate.
6541
6542         maint.mk: avoid side-effect in latest syntax-check
6543         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6544         to run commands via $(shell...), and hence to incur cost only when
6545         the new rule is actually run.
6546
6547         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6548         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6549         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6550         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6551         (gl_assured_headers_, az_, AZ_): Define.
6552         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6553
6554 2010-04-26  Jim Meyering  <jim@meyering.net>
6555             Bruno Haible  <bruno@clisp.org>
6556
6557         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6558         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6559         Prompted by an exchange with Gilles Espinasse.
6560
6561 2010-04-26  Jim Meyering  <meyering@redhat.com>
6562
6563         git-version-gen: aesthetic tweak
6564         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6565         so that the command remains on a single line.
6566
6567 2010-04-26  Eric Blake  <eblake@redhat.com>
6568
6569         git-version-gen: allow use on EBCDIC hosts
6570         * build-aux/git-version-gen (dirty): Use literal rather than tying
6571         ourselves to ascii.
6572         Reported by Steve Goetze.
6573
6574 2010-04-25  Bruno Haible  <bruno@clisp.org>
6575
6576         netdb: Add support for GNULIB_POSIXCHECK.
6577         * lib/netdb.in.h: Include warn-on-use.h.
6578         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6579         functions are used when GNULIB_POSIXCHECK is defined and the
6580         getaddrinfo module is not in use.
6581         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6582         freeaddrinfo, gai_strerror, getnameinfo are declared.
6583         * modules/netdb (Depends-on): Add warn-on-use.
6584         (Makefile.am): Include warn-on-use.h in netdb.h.
6585
6586 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6587
6588         build: avoid "make check" failure without .git/ directory
6589         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6590         there is no .git/ directory.
6591
6592 2010-04-25  Bruno Haible  <bruno@clisp.org>
6593
6594         ptsname: Fix misuse of ttyname_r.
6595         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6596         of errno.
6597
6598 2010-04-25  Bruno Haible  <bruno@clisp.org>
6599
6600         ttyname_r: Make it work on Solaris 10.
6601         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6602         if the system function has the POSIX declaration. Test whether the
6603         function fails if the buffer is less than 128 bytes large.
6604         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6605         system's ttyname_r function. Provide a reasonably large buffer.
6606         * modules/ttyname_r (Depends-on): Add extensions.
6607         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6608
6609 2010-04-25  Bruno Haible  <bruno@clisp.org>
6610
6611         Use the 'extensions' module for some more functions on Solaris.
6612         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6613         module.
6614         * doc/posix-functions/ctime_r.texi: Likewise.
6615         * doc/posix-functions/getgrgid_r.texi: Likewise.
6616         * doc/posix-functions/getgrnam_r.texi: Likewise.
6617         * doc/posix-functions/getpwnam_r.texi: Likewise.
6618         * doc/posix-functions/getpwuid_r.texi: Likewise.
6619         * doc/posix-functions/readdir_r.texi: Likewise.
6620         * doc/posix-functions/sigwait.texi: Likewise.
6621         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6622         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6623
6624 2010-04-25  Bruno Haible  <bruno@clisp.org>
6625
6626         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6627         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6628         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6629         * lib/ttyname_r.c: Include <limits.h>.
6630         (ttyname_r): Define using the system's ttyname_r function, if it exists
6631         and not on Solaris.
6632         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6633         set.
6634         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6635         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6636         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6637         Reported by Simon Josefsson.
6638
6639 2010-04-25  Bruno Haible  <bruno@clisp.org>
6640
6641         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6642         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6643         * doc/posix-functions/ctime_r.texi: Likewise.
6644         * doc/posix-functions/getgrgid_r.texi: Likewise.
6645         * doc/posix-functions/getgrnam_r.texi: Likewise.
6646         * doc/posix-functions/getlogin_r.texi: Likewise.
6647         * doc/posix-functions/getpwnam_r.texi: Likewise.
6648         * doc/posix-functions/getpwuid_r.texi: Likewise.
6649         * doc/posix-functions/readdir_r.texi: Likewise.
6650         * doc/posix-functions/sigwait.texi: Likewise.
6651         * doc/posix-functions/ttyname_r.texi: Likewise.
6652         Reported by Simon Josefsson.
6653
6654 2010-04-25  Bruno Haible  <bruno@clisp.org>
6655
6656         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6657         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6658         also to --create-testdir.
6659         (func_acceptable): Don't consider the status of *-tests modules here.
6660         (func_modules_transitive_closure): Consider it here, before including a
6661         test module.
6662         (func_import, func_create_testdir): Set inc_all_direct_tests,
6663         inc_all_indirect_tests.
6664         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6665         --create-testdir and --create-megatestdir.
6666
6667 2010-04-25  Bruno Haible  <bruno@clisp.org>
6668
6669         gnulib-tool: Add --without-*-tests options.
6670         * gnulib-tool (func_usage): Document the --without-*-tests options.
6671         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6672         excl_unportable_tests): New variables.
6673         Fail if they are specified with --import or --update.
6674         (func_acceptable): Respect the excl_*_tests variables.
6675         (func_import): Set the excl_*_tests variables to empty.
6676
6677 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6678             Bruno Haible  <bruno@clisp.org>
6679
6680         Work around a MacOS X 10.4 bug with openpty.
6681         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6682         * tests/test-openpty.c (main): Close the master side explicitly.
6683
6684 2010-04-25  Bruno Haible  <bruno@clisp.org>
6685
6686         strnlen: Fix a C++ test error on MacOS X and Solaris.
6687         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6688         the function is not declared.
6689         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6690         Simon Josefsson.
6691
6692 2010-04-24  Bruno Haible  <bruno@clisp.org>
6693
6694         Avoid a gcc warning.
6695         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6696         of correct type for %08lx directive.
6697         Reported by Eric Blake.
6698
6699 2010-04-24  Bruno Haible  <bruno@clisp.org>
6700
6701         vasnprintf: Correct errno value in case of out-of-memory.
6702         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6703         or sprintf. Use the errno value from SNPRINTF or sprintf.
6704         Reported by Ian Beckwith <ianb@erislabs.net>.
6705
6706 2010-04-24  Bruno Haible  <bruno@clisp.org>
6707
6708         ansi-c++-opt: Find correct compiler when cross-compiling.
6709         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6710         AC_CHECK_PROGS.
6711         Reported by Simon Josefsson.
6712
6713 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6714
6715         vc-list-files: Add support for subversion
6716         * build-aux/vc-list-files: Use "svn list" to generate the list of
6717         files controlled by subversion.
6718
6719 2010-04-23  Jim Meyering  <meyering@redhat.com>
6720
6721         vc-list-files tests: convert to use init.sh
6722         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6723         path_prepend_.
6724         Use Exit, not exit.
6725         Use skip_ rather than open coding it.
6726         Remove trap set-up and compare definitions.
6727         * tests/test-vc-list-files-git.sh: Likewise.
6728         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6729
6730 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6731
6732         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6733         backup files.
6734
6735 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6736
6737         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6738
6739 2010-04-20  Eric Blake  <eblake@redhat.com>
6740
6741         tests: be robust to ignored SIGPIPE
6742         * tests/test-select-in.sh: Consume all output.
6743         * tests/test-lseek.sh: Check correct exit status, while avoiding
6744         EPIPE.
6745
6746 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6747             Bruno Haible  <bruno@clisp.org>
6748
6749         visibility: Don't use -fvisibility if it leads to a warning.
6750         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6751         yes, don't pretend that visibility works if it leads to a warning.
6752         Reported by Mike Gran <spk121@yahoo.com>.
6753
6754 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6755
6756         * build-aux/bootstrap: Use "git -h" for testing for supported options
6757         instead of "git --help".  The short-form option only shows a summary,
6758         and doesn't layout the full man page.  Grep for the full option name
6759         in the summary, too.
6760
6761 2010-04-19  Bruno Haible  <bruno@clisp.org>
6762
6763         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6764         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6765         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6766         mention of RELOCATABLE_STRIP.
6767         Reported by Sylvain Beucler <beuc@beuc.net>.
6768
6769 2010-04-19  Bruno Haible  <bruno@clisp.org>
6770
6771         * lib/diffseq.h: Fix typo in comment.
6772         Reported by Eric Blake.
6773
6774 2010-04-19  Bruno Haible  <bruno@clisp.org>
6775
6776         ioctl: Move autoconf macro to a .m4 file.
6777         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6778         * modules/ioctl (Files): Add it.
6779         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6780         Reported by Ian Beckwith <ianb@erislabs.net>.
6781
6782 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6783             Bruno Haible  <bruno@clisp.org>
6784
6785         diffseq: Accommodate use-case with abstract arrays.
6786         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6787         is not defined.
6788         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6789         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6790
6791 2010-04-18  Bruno Haible  <bruno@clisp.org>
6792
6793         * doc/posix-headers/stdbool.texi: More precise wording.
6794
6795 2010-04-17  Jim Meyering  <meyering@redhat.com>
6796
6797         maint.mk: use gnu-style indentation in an embedded perl script
6798         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6799         Rename variable: s/two/last_two_bytes/
6800
6801 2010-04-16  Eric Blake  <eblake@redhat.com>
6802
6803         test-stdbool: skip test that fails with Solaris CC
6804         * tests/test-stdbool.c (f): Skip test that causes compilation
6805         error under buggy C++ compiler.
6806         * lib/stdbool.in.h: Document the limitation.
6807         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6808
6809         setenv: allow compilation with C++
6810         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6811         register keyword.
6812
6813         stdint: allow test to pass with C++
6814         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6815
6816         getopt: allow compilation with C++
6817         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6818         struct.
6819         * lib/getopt.c (_getopt_internal_r): Use correct type.
6820         Reported by Dagobert Michelson, via Joel E. Denny.
6821
6822 2010-04-16  Bruno Haible  <bruno@clisp.org>
6823
6824         Override netdb.h always.
6825         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6826         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6827         Reported by Ludovic Courtès <ludo@gnu.org>.
6828
6829 2010-04-15  Bruno Haible  <bruno@clisp.org>
6830
6831         openpty: Fix mistake from 2010-03-21.
6832         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6833         Reported by Simon Josefsson.
6834
6835 2010-04-15  Eric Blake  <eblake@redhat.com>
6836
6837         test-forkpty: fix expected signature
6838         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6839         Reported by Simon Josefsson.
6840
6841 2010-04-15  Jim Meyering  <meyering@redhat.com>
6842
6843         maint.mk: texinfo_suffix_re_: correct the default regexp
6844         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6845
6846         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6847         make it configurable via texinfo_suffix_re_.
6848
6849 2010-04-14  Eric Blake  <eblake@redhat.com>
6850
6851         strtok_r: relax license to LGPLv2+
6852         * modules/strtok_r (License): Relax license.
6853         Reported by Matthias Bolte.
6854
6855 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6856
6857         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6858         version 1.4.4 by default instead of requiring the libgcrypt
6859         version used during build.  This makes it possible to use the
6860         application with older but still binary compatible libgcrypt
6861         versions.
6862
6863 2010-04-13  Eric Blake  <eblake@redhat.com>
6864
6865         getopt-gnu: match recent glibc fixes and posix ruling
6866         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
6867         '+' handling, when requesting extensions.
6868         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
6869         'W;' handling.
6870         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
6871         * doc/posix-functions/getopt.texi (getopt): Document this.
6872         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6873         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6874         Likewise.
6875
6876         getopt: merge bug fixes from glibc
6877         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
6878         diagnostics.  Honor '+:' correctly.  Reject ';'.
6879
6880         getopt-posix: detect MacOS bug
6881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
6882         optind when missing a required argument.
6883         * doc/posix-functions/getopt.texi (getopt): Document the bug.
6884         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6885         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6886         Likewise.
6887
6888         getopt-posix: avoid spurious failure on Solaris
6889         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
6890         an indicator that setting optind=1 is sufficient for reset.
6891
6892         getopt-posix: avoid spurious failure on FreeBSD
6893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
6894         in POSIX mode, since the m4 test uses it.
6895
6896         gnulib-tool: silence warning on BSD sh
6897         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
6898
6899 2010-04-13  Jim Meyering  <meyering@redhat.com>
6900
6901         doc: users.txt: GNU patch now uses gnulib
6902         * users.txt: Add patch.
6903
6904 2010-04-12  Jim Meyering  <meyering@redhat.com>
6905
6906         maint.mk: generate more concise timing data for syntax-check rules
6907         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
6908         " done" from each line that reports a syntax-check test duration.
6909
6910 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
6911
6912         git-version-gen: use "git update-index..." rather than "git status"
6913         * build-aux/git-version-gen: Use git update-index --refresh, not
6914         "git status".  With some versions of git, "git status" would fail
6915         to update the index and result in an unwarranted "-dirty" suffix.
6916
6917 2010-04-11  Jim Meyering  <meyering@redhat.com>
6918
6919         openat: correct formatting (no semantic change)
6920         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
6921         Suggested by Bruno Haible.
6922
6923 2010-04-11  Bruno Haible  <bruno@clisp.org>
6924
6925         Stricter declaration checking in testdirs.
6926         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6927         If for_tests is true, augment AM_CPPFLAGS to define
6928         GNULIB_STRICT_CHECKING.
6929         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
6930         GNULIB_STRICT_CHECKING is defined, verify that the function is
6931         declared.
6932
6933 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
6934             Bruno Haible  <bruno@clisp.org>
6935
6936         libunistring: Improve configure output.
6937         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
6938         Don't say "consider installing GNU libunistring" when checking again
6939         with libiconv.
6940
6941 2010-04-11  Bruno Haible  <bruno@clisp.org>
6942
6943         libunistring: Correct value of $LTLIBUNISTRING.
6944         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
6945         correct the value of $LTLIBUNISTRING.
6946
6947 2010-04-11  Bruno Haible  <bruno@clisp.org>
6948
6949         havelib: Add static libraries to LIBS in the right order.
6950         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
6951         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
6952
6953 2010-04-11  Bruno Haible  <bruno@clisp.org>
6954
6955         libunistring: Detect libunistring also when it depends on libiconv.
6956         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
6957         the second AC_LIB_HAVE_LINKFLAGS invocation.
6958
6959 2010-04-11  James Youngman  <jay@gnu.org>
6960
6961         close-stream: declare local scalars to be "const"
6962         * lib/close-stream.c (close_stream): Make boolean variables const
6963         to document the fact that we set but do not change them.
6964
6965 2010-04-11  Bruno Haible  <bruno@clisp.org>
6966
6967         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
6968
6969 2010-04-11  Jim Meyering  <meyering@redhat.com>
6970
6971         maint.mk: don't include dist-check.mk
6972         * top/maint.mk: Remove bogus include directive.
6973
6974         maint.mk: improve empty-line-at-EOF check
6975         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
6976         solution, rather than tail+Perl-based one.  The latter would read
6977         a few kilobytes from the end of each file, and did not handle empty
6978         files properly.
6979
6980         maint.mk: print the elapsed time for each syntax-check rule
6981         * top/maint.mk (sc_m_rules_): Save start time in a file.
6982         (sc_z_rules_): New rules: remove temp file and print elapsed time.
6983         (local-check): Interpose the .z rules
6984
6985 2010-04-11  Jim Meyering  <meyering@redhat.com>
6986
6987         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
6988         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
6989         empty file with one that ends in an empty line.
6990
6991 2010-04-10  Bruno Haible  <bruno@clisp.org>
6992
6993         mkdir: Make it work on mingw64.
6994         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
6995         * lib/mkdir.c: Update comment.
6996         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
6997
6998 2010-04-10  Bruno Haible  <bruno@clisp.org>
6999
7000         Don't override improved macro from newer autoconf.
7001         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7002         autoconf >= 2.62.
7003         Reported by Joel E. Denny <jdenny@clemson.edu>.
7004
7005 2010-04-10  Jim Meyering  <meyering@redhat.com>
7006
7007         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7008         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7009
7010         maint.mk: correct a diagnostic
7011         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7012         in diagnostic; now use $prohibit.
7013
7014 2010-04-10  Bruno Haible  <address@hidden>
7015
7016         fchownat: Fix a C++ test error on Solaris 8.
7017         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7018         the function does not exist.
7019
7020 2010-04-10  Bruno Haible  <bruno@clisp.org>
7021
7022         vasnprintf: Add more tests.
7023         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7024         (test_function): Test converting an invalid wide string.
7025
7026         vasnprintf: Correct handling of unconvertible wide string arguments.
7027         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7028         VASNPRINTF.
7029         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7030         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7031         smaller than the expected maximum need for the directive. Set errno to
7032         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7033         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7034         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7035         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7036         * modules/vasnprintf (Files): Add m4/printf.m4.
7037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7038
7039 2010-04-10  Bruno Haible  <bruno@clisp.org>
7040
7041         vasnprintf: Fix crash in %ls directive.
7042         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7043         string is passed as argument to %ls, with no precision and no width.
7044         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7045
7046 2010-04-10  Bruno Haible  <bruno@clisp.org>
7047
7048         vasnprintf: Fix multiple test failures on mingw.
7049         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7050         _snprintf, or snwprintf, not _snwprintf.
7051
7052 2010-04-10  Bruno Haible  <bruno@clisp.org>
7053
7054         write: Fix a C++ test error on mingw.
7055         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7056
7057 2010-04-10  Bruno Haible  <bruno@clisp.org>
7058
7059         vasnprintf test: Reduce code duplication.
7060         * tests/test-vasnprintf.c (test_function): New function, extracted from
7061         test_vasnprintf.
7062         (test_vasnprintf, test_asnprintf): Invoke it.
7063
7064 2010-04-10  Bruno Haible  <bruno@clisp.org>
7065
7066         strnlen: Fix warning in C++ mode on MacOS X.
7067         * lib/string.in.h (strnlen): Use the modern idiom.
7068         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7069         defining strnlen as a macro already in <config.h>.
7070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7071         REPLACE_STRNLEN.
7072         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7073         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7074
7075 2010-04-08  James Youngman  <jay@gnu.org>
7076
7077         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7078         the example.
7079
7080 2010-04-09  Jim Meyering  <meyering@redhat.com>
7081
7082         maint.mk: print better diagnostic when there is no $(_hv_file)
7083         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7084         announce that when $(_hv_file) (aka help-version) does not exist.
7085
7086         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7087         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7088         not try to interpret its random input bytes.  Jarno Rajahalme reported
7089         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7090         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7091         (mktempd_): Likewise, just in case.
7092
7093         ftruncate: add two years to projected module removal date: 2012
7094         * m4/ftruncate.m4: Adjust comments.
7095
7096         ftruncate: mark module as obsolete; even MinGW provides it, now
7097         * modules/ftruncate (Status): Obsolete.
7098         (Notice): Say that.
7099         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7100         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7101
7102 2010-04-08  Bruno Haible  <bruno@clisp.org>
7103
7104         Fix side effects from tests-related modules.
7105         * modules/dprintf-posix (Comment): New section.
7106         * modules/fprintf-posix (Comment): Likewise.
7107         * modules/obstack-printf-posix (Comment): Likewise.
7108         * modules/printf-posix (Comment): Likewise.
7109         * modules/snprintf-posix (Comment): Likewise.
7110         * modules/sprintf-posix (Comment): Likewise.
7111         * modules/vasnprintf-posix (Comment): Likewise.
7112         * modules/vasprintf-posix (Comment): Likewise.
7113         * modules/vdprintf-posix (Comment): Likewise.
7114         * modules/vfprintf-posix (Comment): Likewise.
7115         * modules/vprintf-posix (Comment): Likewise.
7116         * modules/vsnprintf-posix (Comment): Likewise.
7117         * modules/vsprintf-posix (Comment): Likewise.
7118         * modules/xprintf-posix (Comment): Likewise.
7119         * modules/xvasprintf-posix (Comment): Likewise.
7120         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7121         * modules/floorf-tests (Depends-on): Likewise.
7122         * modules/round-tests (Depends-on): Likewise.
7123         * modules/roundf-tests (Depends-on): Likewise.
7124         * modules/trunc-tests (Depends-on): Likewise.
7125         * modules/truncf-tests (Depends-on): Likewise.
7126         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7127         'fprintf-posix' module is not present.
7128         * tests/test-floorf2.c (check): Likewise.
7129         * tests/test-trunc2.c (check): Likewise.
7130         * tests/test-truncf2.c (check): Likewise.
7131         * tests/test-round2.c (equal): Likewise.
7132         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7133
7134 2010-04-07  Karl Berry  <karl@gnu.org>
7135
7136         * config/srclist.txt,
7137         * config/srclistvars.sh,
7138         * config/srclist-update: doc fixes.
7139
7140 2010-04-07  Jim Meyering  <meyering@redhat.com>
7141
7142         maint.mk: add a PATH crosschecking syntax-check rule
7143         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7144         Useful if you use a test like the one in help-version (coreutils,
7145         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7146         printed by prog --version.
7147
7148 2010-04-06  Bruno Haible  <bruno@clisp.org>
7149
7150         Fix link error on mingw.
7151         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7152         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7153
7154 2010-04-06  Bruno Haible  <bruno@clisp.org>
7155
7156         Assume rmdir exists.
7157         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7158
7159 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7160
7161         doc: update users.txt
7162         * users.txt: Add gcal.
7163
7164 2010-04-06  Jim Meyering  <meyering@redhat.com>
7165
7166         init.sh: simply unset TMPDIR rather than risking env -i
7167         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7168         although it probably works fine on all Unix-based systems, some
7169         systems (Cygwin?) cannot tolerate a totally cleared environment.
7170         Suggestion from Eric Blake.
7171
7172 2010-04-06  Jim Meyering  <meyering@redhat.com>
7173
7174         init.sh: portability fix: use env's POSIX-specified -i option not -u
7175         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7176         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7177
7178 2010-04-05  Bruno Haible  <bruno@clisp.org>
7179
7180         btowc: Work around Cygwin 1.7.2 bug.
7181         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7182         does not map NUL to 0.
7183         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7184
7185 2010-04-05  Bruno Haible  <bruno@clisp.org>
7186
7187         Make the multithread modules work on Cygwin 1.7.2.
7188         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7189         imported symbols can be declared weak, so that it returns "no" on
7190         Cygwin 1.7.2.
7191
7192 2010-04-05  Bruno Haible  <bruno@clisp.org>
7193
7194         Use the module 'strncat'.
7195         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7196
7197         Tests for module 'strncat'.
7198         * modules/strncat-tests: New file.
7199         * tests/test-strncat.c: New file.
7200
7201         New module 'strncat'.
7202         * lib/string.in.h (strncat): New declaration.
7203         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7204         * m4/strncat.m4: New file, based on m4/memchr.m4.
7205         * modules/strncat: New file.
7206         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7207         is declared.
7208         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7209         REPLACE_STRNCAT.
7210         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7211         REPLACE_STRNCAT.
7212         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7213         module.
7214         * tests/test-string-c++.cc: Check signature of strncat.
7215
7216 2010-04-05  Jim Meyering  <meyering@redhat.com>
7217
7218         xstrtoumax-tests: convert to use init.sh
7219         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7220         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7221         Use Exit, not exit.
7222         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7223
7224         xstrtoimax-tests: convert to use init.sh
7225         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7226         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7227         Use Exit, not exit.
7228         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7229
7230 2010-04-05  Bruno Haible  <bruno@clisp.org>
7231
7232         sys_socket: Avoid #define replacements in C++ mode.
7233         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7234         warning to the function if possible, rather than #defining the symbol
7235         to a dysfunctional alias.
7236
7237 2010-04-05  Bruno Haible  <bruno@clisp.org>
7238
7239         fseeko: Fix C++ test error on mingw.
7240         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7241         gl_FUNC_FSEEKO.
7242         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7243         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7244         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7245         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7246
7247 2010-04-05  Bruno Haible  <bruno@clisp.org>
7248
7249         duplocale: Improve test output.
7250         * tests/test-duplocale.c (main): Print reason for skipped test.
7251
7252 2010-04-05  Bruno Haible  <bruno@clisp.org>
7253
7254         Assume rmdir exists.
7255         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7256         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7257
7258 2010-04-05  Bruno Haible  <bruno@clisp.org>
7259
7260         Fix link error on Solaris 8 with cc.
7261         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7262
7263 2010-04-05  Bruno Haible  <bruno@clisp.org>
7264
7265         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7266         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7267
7268 2010-04-05  Bruno Haible  <bruno@clisp.org>
7269
7270         vasprintf: Update documentation.
7271         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7272
7273 2010-04-05  Bruno Haible  <bruno@clisp.org>
7274
7275         ptsname: Improve test.
7276         * tests/test-ptsname.c (main): Also try the various master names of BSD
7277         systems.
7278
7279 2010-04-05  Bruno Haible  <bruno@clisp.org>
7280
7281         memchr: Avoid a possible C++ test error.
7282         * lib/string.in.h (memchr): Provide declaration if function is missing.
7283         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7284         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7286         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7287
7288 2010-04-05  Bruno Haible  <bruno@clisp.org>
7289
7290         strtok_r: Improve idiom.
7291         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7292         AC_LIBOBJ is used.
7293
7294 2010-04-05  Bruno Haible  <bruno@clisp.org>
7295
7296         strdup: Improve idiom.
7297         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7298         AC_LIBOBJ is used.
7299         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7300         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7301         when AC_LIBOBJ is used.
7302
7303 2010-04-05  Bruno Haible  <bruno@clisp.org>
7304
7305         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7306         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7307         don't set REPLACE_MBSINIT to 1.
7308         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7309         don't set REPLACE_MBRTOWC to 1.
7310         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7311         exist, don't set REPLACE_MBSRTOWCS to 1.
7312         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7313         exist, don't set REPLACE_MBSNRTOWCS to 1.
7314         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7315         don't set REPLACE_WCRTOMB to 1.
7316         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7317         exist, don't set REPLACE_WCSRTOMBS to 1.
7318         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7319         exist, don't set REPLACE_WCSNRTOMBS to 1.
7320
7321 2010-04-05  Bruno Haible  <bruno@clisp.org>
7322
7323         ldexpl: Improve idiom.
7324         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7325         make sure to set HAVE_DECL_LDEXPL to 0.
7326
7327 2010-04-05  Jim Meyering  <meyering@redhat.com>
7328
7329         xstrtol-tests: convert to use init.sh
7330         * modules/xstrtol-tests (Files): Add tests/init.sh.
7331         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7332         Use Exit, not exit.
7333         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7334
7335         atexit-tests: convert to use init.sh
7336         * modules/atexit-tests (Files): Add tests/init.sh.
7337         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7338         Use Exit, not exit.
7339         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7340
7341         init.sh: fix typo
7342         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7343
7344         init.sh: make it easier for a test script to write to the tty, ...
7345         when using automake's parallel-tests mode.
7346         * tests/init.sh (stderr_fileno_): Define overridable variable.
7347         (warn_): New function, to use it.
7348         (fail_, skip_, framework_failure_): Use warn_.
7349
7350 2010-04-04  Bruno Haible  <bruno@clisp.org>
7351
7352         btowc: Avoid warning.
7353         * lib/btowc.c: Include <stdlib.h>.
7354         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7355
7356 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7357             Bruno Haible  <bruno@clisp.org>
7358
7359         wchar: Port to NetBSD 1.5.
7360         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7361         * lib/wctype.in.h (WEOF): Likewise.
7362
7363 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7364             Bruno Haible  <bruno@clisp.org>
7365
7366         Port extended stdio to NetBSD 1.5.
7367         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7368         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7369         older.
7370
7371 2010-04-04  Bruno Haible  <bruno@clisp.org>
7372
7373         string: Remove unused substitution.
7374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7375         HAVE_DECL_STRERROR.
7376         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7377
7378 2010-04-04  Bruno Haible  <bruno@clisp.org>
7379
7380         strtod: Avoid a possible C++ test error.
7381         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7382         set REPLACE_STRTOD.
7383
7384 2010-04-04  Bruno Haible  <bruno@clisp.org>
7385
7386         strerror: Update documentation.
7387         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7388
7389 2010-04-04  Bruno Haible  <bruno@clisp.org>
7390
7391         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7392         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7393         _GL_CXXALIAS_SYS_CAST.
7394
7395 2010-04-04  Bruno Haible  <bruno@clisp.org>
7396
7397         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7398         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7399         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7400         REPLACE_FREXPL to 1.
7401         * doc/posix-functions/frexpl.texi: Update documentation.
7402
7403 2010-04-04  Bruno Haible  <bruno@clisp.org>
7404
7405         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7406         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7407
7408 2010-04-04  Bruno Haible  <bruno@clisp.org>
7409
7410         Implement nanosleep for native Windows.
7411         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7412
7413 2010-04-04  Bruno Haible  <bruno@clisp.org>
7414
7415         math: Fix some C++ test errors on Solaris 8.
7416         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7417
7418 2010-04-04  Bruno Haible  <bruno@clisp.org>
7419
7420         math: Fix some C++ test errors on Cygwin.
7421         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7422         truncl): Provide declaration if the system does not have it.
7423         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7424         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7425         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7426         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7427         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7428         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7429         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7430         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7431         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7432         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7433         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7434         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7435         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7436         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7437         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7438         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7440         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7441         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7442         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7443         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7444         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7445
7446 2010-04-04  Bruno Haible  <bruno@clisp.org>
7447
7448         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7449         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7450         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7451         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7452         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7453         * m4/isinf.m4 (gl_ISINF): Likewise.
7454         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7455
7456 2010-04-04  Bruno Haible  <bruno@clisp.org>
7457
7458         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7459         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7460
7461 2010-04-04  Bruno Haible  <bruno@clisp.org>
7462
7463         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7464         * modules/tmpfile (configure.ac): Update.
7465
7466         tmpfile: Fix C++ test error on mingw.
7467         * lib/stdio.in.h (tmpfile): New declaration.
7468         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7469         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7470         * modules/tmpfile (Depends-on): Add stdio.
7471         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7472         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7473         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7474         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7475         REPLACE_TMPFILE.
7476         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7477
7478 2010-04-04  Bruno Haible  <bruno@clisp.org>
7479
7480         ioctl: Fix C++ test error on mingw.
7481         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7482         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7483         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7484
7485 2010-04-03  Bruno Haible  <bruno@clisp.org>
7486
7487         wcwidth: Fix C++ test error on mingw.
7488         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7490         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7491
7492 2010-04-03  Bruno Haible  <bruno@clisp.org>
7493
7494         nanosleep: Fix C++ test error on mingw.
7495         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7496         * lib/time.in.h (nanosleep): Use modern idiom.
7497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7498         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7499         REPLACE_NANOSLEEP to 1.
7500         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7501         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7502
7503 2010-04-03  Bruno Haible  <bruno@clisp.org>
7504
7505         strptime: Fix C++ test error on mingw.
7506         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7507         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7508         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7509         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7510         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7511         not REPLACE_STRPTIME.
7512         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7513         REPLACE_STRPTIME.
7514
7515 2010-04-03  Bruno Haible  <bruno@clisp.org>
7516
7517         timegm: Fix C++ test error on mingw.
7518         * lib/time.in.h (timegm): Use modern idiom.
7519         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7520         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7521         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7522         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7523
7524 2010-04-03  Bruno Haible  <bruno@clisp.org>
7525
7526         timegm: Assume declaration if function exists.
7527         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7528         if it exists. Don't clobber ac_cv_func_timegm.
7529
7530 2010-04-03  Bruno Haible  <bruno@clisp.org>
7531
7532         time_r: Fix C++ test error on mingw.
7533         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7534         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7535         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7537         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7538
7539 2010-04-03  Bruno Haible  <bruno@clisp.org>
7540
7541         time_r: Minor updates.
7542         * modules/time_r (Description): Mention the provided functions.
7543         * lib/time_r.c: Don't include <string.h>.
7544         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7545         * doc/posix-functions/localtime_r.texi: Likewise.
7546
7547 2010-04-03  Bruno Haible  <bruno@clisp.org>
7548
7549         time: Fix regression introduced on 2010-03-08.
7550         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7551         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7552
7553 2010-04-03  Jim Meyering  <meyering@redhat.com>
7554
7555         maint.mk: don't silently disable project-specific syntax-check rules
7556         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7557         that they need to convert their project-specific syntax-check rules
7558         to use the new _sc_search_regexp.
7559
7560 2010-04-03  Bruno Haible  <bruno@clisp.org>
7561
7562         fchdir: Fix regression introduced on 2010-03-08.
7563         * lib/unistd.in.h (fchdir): Fix declaration.
7564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7566         REPLACE_FCHDIR.
7567         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7568         REPLACE_FCHDIR.
7569
7570 2010-04-03  Bruno Haible  <bruno@clisp.org>
7571
7572         getpagesize: Fix C++ test error on mingw.
7573         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7574         system does not declare the function.
7575         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7576         declared.
7577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7578         HAVE_DECL_GETPAGESIZE.
7579         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7580
7581 2010-04-03  Bruno Haible  <bruno@clisp.org>
7582
7583         stdio: Make C++ tests work on mingw.
7584         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7585         does not declare the function.
7586
7587 2010-04-03  Bruno Haible  <bruno@clisp.org>
7588
7589         ftello: Fix C++ test error on mingw.
7590         * lib/stdio.in.h (ftello): Use modern idiom.
7591         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7592         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7593         is missing and that it needs to be replaced.
7594         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7596         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7597
7598 2010-04-03  Bruno Haible  <bruno@clisp.org>
7599
7600         fseeko: Fix C++ test error on mingw.
7601         * lib/stdio.in.h (fseeko): Use modern idiom.
7602         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7604         is missing and that it needs to be replaced.
7605         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7607         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7608
7609 2010-04-03  Bruno Haible  <bruno@clisp.org>
7610
7611         mkstemp: Fix C++ test error on mingw.
7612         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7613         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7614         function is missing and that it needs to be replaced.
7615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7616         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7617
7618 2010-04-03  Bruno Haible  <bruno@clisp.org>
7619
7620         stpncpy: Fix C++ test error on mingw.
7621         * lib/string.in.h (stpncpy): Use modern idiom.
7622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7623         function is missing and that it needs to be replaced.
7624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7625         REPLACE_STPNCPY.
7626         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7627
7628 2010-04-03  Bruno Haible  <bruno@clisp.org>
7629
7630         sys_stat: Fix C++ test error on mingw.
7631         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7632         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7633
7634 2010-04-03  Bruno Haible  <bruno@clisp.org>
7635
7636         pty: Update doc.
7637         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7638
7639 2010-04-03  Bruno Haible  <bruno@clisp.org>
7640
7641         unistd: Fix C++ test error on mingw.
7642         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7643
7644 2010-04-03  Bruno Haible  <bruno@clisp.org>
7645
7646         Update doc regarding mingw.
7647         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7648         * doc/glibc-functions/login_tty.texi: Likewise.
7649         * doc/glibc-functions/forkpty.texi: Likewise.
7650
7651 2010-04-03  Bruno Haible  <bruno@clisp.org>
7652
7653         stdlib: Avoid compilation failure of c-strtold on mingw.
7654         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7655
7656 2010-04-03  Bruno Haible  <bruno@clisp.org>
7657
7658         locale: Make C++ tests work on Cygwin and mingw.
7659         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7660         cannot provide the function.
7661         Reported by Simon Josefsson.
7662
7663 2010-04-03  Bruno Haible  <bruno@clisp.org>
7664
7665         localename: Port to MacOS X 10.6.
7666         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7667         memory layout of the locales in MacOS X 10.6 as well.
7668         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7669
7670 2010-04-02  Bruno Haible  <bruno@clisp.org>
7671
7672         gnulib-tool: Ensure that long-running tests are executed last.
7673         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7674         running tests after the one for the other tests.
7675
7676 2010-04-02  Bruno Haible  <bruno@clisp.org>
7677
7678         gnulib-tool: Ensure the tests in the main directory are executed first.
7679         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7680         start with the current directory.
7681
7682 2010-04-02  Bruno Haible  <bruno@clisp.org>
7683
7684         Tests for module 'havelib', moved here from GNU gettext.
7685         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7686         modifications.
7687         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7688         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7689         with modifications.
7690         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7691         modifications.
7692         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7693         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7694         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7695         with modifications.
7696         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7697         with modifications.
7698         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7699         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7700         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7701         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7702         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7703         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7704         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7705         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7706         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7707         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7708         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7709         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7710         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7711         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7712         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7713         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7714         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7715         with modifications.
7716         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7717         with modifications.
7718         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7719         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7720         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7721         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7722         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7723         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7724         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7725         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7726         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7727         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7728         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7729         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7730         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7731         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7732         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7733         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7734         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7735         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7736         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7737         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7738         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7739         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7740         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7741         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7742         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7743         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7744         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7745         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7746         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7747         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7748         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7749         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7750         * tests/havelib/rpathx/rpathx.c: New file, from
7751         gettext/autoconf-lib-link.
7752         * tests/havelib/rpathx/Makefile.am: New file, from
7753         gettext/autoconf-lib-link.
7754         * tests/havelib/rpathx/configure.ac: New file, from
7755         gettext/autoconf-lib-link with modifications.
7756         * tests/havelib/rpathy/rpathy.c: New file, from
7757         gettext/autoconf-lib-link.
7758         * tests/havelib/rpathy/Makefile.am: New file, from
7759         gettext/autoconf-lib-link.
7760         * tests/havelib/rpathy/configure.ac: New file, from
7761         gettext/autoconf-lib-link with modifications.
7762         * tests/havelib/rpathz/rpathz.c: New file, from
7763         gettext/autoconf-lib-link.
7764         * tests/havelib/rpathz/Makefile.am: New file, from
7765         gettext/autoconf-lib-link.
7766         * tests/havelib/rpathz/configure.ac: New file, from
7767         gettext/autoconf-lib-link with modifications.
7768         * tests/havelib/rpathlx/usex.c: New file, from
7769         gettext/autoconf-lib-link.
7770         * tests/havelib/rpathlx/Makefile.am: New file, from
7771         gettext/autoconf-lib-link.
7772         * tests/havelib/rpathlx/configure.ac: New file, from
7773         gettext/autoconf-lib-link with modifications.
7774         * tests/havelib/rpathly/usey.c: New file, from
7775         gettext/autoconf-lib-link.
7776         * tests/havelib/rpathly/Makefile.am: New file, from
7777         gettext/autoconf-lib-link.
7778         * tests/havelib/rpathly/configure.ac: New file, from
7779         gettext/autoconf-lib-link with modifications.
7780         * tests/havelib/rpathlz/usez.c: New file, from
7781         gettext/autoconf-lib-link.
7782         * tests/havelib/rpathlz/Makefile.am: New file, from
7783         gettext/autoconf-lib-link.
7784         * tests/havelib/rpathlz/configure.ac: New file, from
7785         gettext/autoconf-lib-link with modifications.
7786         * tests/havelib/rpathlyx/usey.c: New file, from
7787         gettext/autoconf-lib-link.
7788         * tests/havelib/rpathlyx/Makefile.am: New file, from
7789         gettext/autoconf-lib-link.
7790         * tests/havelib/rpathlyx/configure.ac: New file, from
7791         gettext/autoconf-lib-link with modifications.
7792         * tests/havelib/rpathlzyx/usez.c: New file, from
7793         gettext/autoconf-lib-link.
7794         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7795         gettext/autoconf-lib-link.
7796         * tests/havelib/rpathlzyx/configure.ac: New file, from
7797         gettext/autoconf-lib-link with modifications.
7798         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7799         with modifications.
7800
7801 2010-04-02  Bruno Haible  <bruno@clisp.org>
7802
7803         gnulib-tool: Create distributed built sources also for the tests.
7804         * gnulib-tool (func_create_testdir): Also generate distributed built
7805         sources in the tests directory.
7806
7807 2010-04-02  Bruno Haible  <bruno@clisp.org>
7808
7809         gnulib-tool: Obey user's environment variables.
7810         * gnulib-tool (func_create_testdir): When creating built sources,
7811         respect the environment variables for autoconf, automake, etc. given by
7812         the user.
7813
7814 2010-04-02  Bruno Haible  <bruno@clisp.org>
7815
7816         gnulib-tool: Provide the value of --m4-base to modules.
7817         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7818         of gl_m4_base.
7819
7820 2010-04-02  Eric Blake  <eblake@redhat.com>
7821
7822         maint.mk: fix some fallout
7823         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7824         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7825
7826 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7827
7828         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7829         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7830         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7831         (sc_cast_of_x_alloc_return_value): Likewise.
7832         (sc_cast_of_alloca_return_value): Likewise.
7833         (sc_space_tab): Likewise.
7834         (sc_prohibit_atoi_atof): Likewise.
7835         (sc_prohibit_magic_number_exit): Likewise.
7836         (sc_error_exit_success): Likewise.
7837         (sc_file_system): Likewise.
7838         (sc_prohibit_have_config_h): Likewise.
7839         (sc_require_config_h): Likewise.
7840         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7841         (sc_obsolete_symbols): Likewise.
7842         (sc_changelog): Likewise.
7843         (sc_program_name): Likewise.
7844         (sc_the_the): Likewise.
7845         (sc_trailing_blank): Likewise.
7846         (sc_two_space_separator_in_usage): Likewise.
7847         (sc_useless_cpp_parens): Likewise.
7848         (sc_GPL_version): Likewise.
7849         (sc_GFDL_version): Likewise.
7850         (sc_texinfo_acronym): Likewise.
7851         (sc_prohibit_cvs_keyword): Likewise.
7852         (sc_prohibit_stat_st_blocks): Likewise.
7853         (sc_prohibit_S_IS_definition): Likewise.
7854         (sc_redundant_const): Likewise.
7855         (sc_makefile_TAB_only_indentation): Likewise.
7856         (sc_m4_quote_check): Likewise.
7857         (sc_makefile_path_separator_check): Likewise.
7858         (sc_copyright_check): Likewise.
7859         (sc_Wundef_boolean): Likewise.
7860         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
7861
7862         maint.mk: match 0 or more whitespace-before-function-call '('
7863         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
7864         that have zero or two-and-more spaces between the function name
7865         and the open parenthesis.
7866         (sc_error_message_warn_fatal): Likewise.
7867         (sc_error_message_uppercase): Likewise.
7868         (sc_error_message_period): Likewise.
7869
7870 2010-03-31  Eric Blake  <eblake@redhat.com>
7871
7872         maint.mk: check for [ as well as test
7873         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
7874         Based on a libvirt report by Matthias Bolte.
7875
7876         gnumakefile: don't squelch _version output
7877         * top/GNUmakefile (_version): Create one-shot dependency rather
7878         than using $(shell) when version must be regenerated.
7879         (_autoreconf): Run verbosely, by default.
7880
7881         sys_time: avoid compiler warnings
7882         * lib/sys_time.in.h (includes): Ensure gcc pragma is
7883         unconditional, fixing regression from 2010-03-29.
7884         Reported by Simon Josefsson.
7885
7886 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7887
7888         maint.mk: s/_header_without_use/_sc_header_without_use/
7889         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
7890         (sc_prohibit_assert_without_use): Use the new name.
7891         (sc_prohibit_close_stream_without_use): Likewise.
7892         (sc_prohibit_getopt_without_use): Likewise.
7893         (sc_prohibit_quotearg_without_use): Likewise.
7894         (sc_prohibit_quote_without_use): Likewise.
7895         (sc_prohibit_long_options_without_use): Likewise.
7896         (sc_prohibit_inttostr_without_use): Likewise.
7897         (sc_prohibit_ignore_value_without_use): Likewise.
7898         (sc_prohibit_error_without_use): Likewise.
7899         (sc_prohibit_xalloc_without_use): Likewise.
7900         (sc_prohibit_hash_without_use): Likewise.
7901         (sc_prohibit_hash_pjw_without_use): Likewise.
7902         (sc_prohibit_safe_read_without_use): Likewise.
7903         (sc_prohibit_argmatch_without_use): Likewise.
7904         (sc_prohibit_canonicalize_without_use): Likewise.
7905         (sc_prohibit_root_dev_ino_without_use): Likewise.
7906         (sc_prohibit_openat_without_use): Likewise.
7907         (sc_prohibit_c_ctype_without_use): Likewise.
7908         (sc_prohibit_signal_without_use): Likewise.
7909         (sc_prohibit_intprops_without_use): Likewise.
7910
7911 2010-03-30  Eric Blake  <eblake@redhat.com>
7912
7913         maint: improve module indicators
7914         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
7915         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
7916         columns, and avoid extra macro expansion.
7917
7918         fdopendir: work around FreeBSD bug
7919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7920         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
7921         * modules/dirent (Makefile.am): Substitute it.
7922         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
7923         declaration.
7924         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
7925         fix.
7926         Reported by Christian Weisgerber <naddy@mips.inka.de>.
7927
7928 2010-03-29  Bruno Haible  <bruno@clisp.org>
7929
7930         Emit #pragma system_header after the inclusion guard, not before.
7931         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
7932         guard that spans the entire file, not before. This enables an
7933         optimization in GCC's preprocessor.
7934         * lib/ctype.in.h: Likewise.
7935         * lib/dirent.in.h: Likewise.
7936         * lib/errno.in.h: Likewise.
7937         * lib/float.in.h: Likewise.
7938         * lib/getopt.in.h: Likewise.
7939         * lib/iconv.in.h: Likewise.
7940         * lib/langinfo.in.h: Likewise.
7941         * lib/locale.in.h: Likewise.
7942         * lib/math.in.h: Likewise.
7943         * lib/netdb.in.h: Likewise.
7944         * lib/netinet_in.in.h: Likewise.
7945         * lib/pty.in.h: Likewise.
7946         * lib/sched.in.h: Likewise.
7947         * lib/se-selinux.in.h: Likewise.
7948         * lib/search.in.h: Likewise.
7949         * lib/spawn.in.h: Likewise.
7950         * lib/stdarg.in.h: Likewise.
7951         * lib/stdint.in.h: Likewise.
7952         * lib/string.in.h: Likewise.
7953         * lib/strings.in.h: Likewise.
7954         * lib/sys_file.in.h: Likewise.
7955         * lib/sys_ioctl.in.h: Likewise.
7956         * lib/sys_time.in.h: Likewise.
7957         * lib/sys_times.in.h: Likewise.
7958         * lib/sys_utsname.in.h: Likewise.
7959         * lib/sys_wait.in.h: Likewise.
7960         * lib/sysexits.in.h: Likewise.
7961         * lib/wctype.in.h: Likewise.
7962
7963 2010-03-28  James Youngman  <jay@gnu.org>
7964
7965         save-cwd: don't leak a file descriptor when the caller execs.
7966         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
7967         saved file descriptor.
7968         * modules/save-cwd (Depends-on): Depend on cloexec.
7969
7970 2010-03-29  Bruno Haible  <bruno@clisp.org>
7971
7972         Remove vestiges of fts-lgpl module.
7973         * lib/fts_.h: Assume GNULIB_FTS is 1.
7974         * lib/fts.c: Likewise.
7975         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7976
7977 2010-03-28  Bruno Haible  <bruno@clisp.org>
7978
7979         Fix definition of tests witness macro.
7980         * gnulib-tool (func_import): Fix definition of witness macro.
7981
7982 2010-03-28  Bruno Haible  <bruno@clisp.org>
7983
7984         Fix ioctl's protoype on glibc systems.
7985         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
7986         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
7987         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
7988         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
7989         signature. If not, arrange to replace the ioctl function.
7990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7991         REPLACE_IOCTL.
7992         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
7993         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
7994         Reported by Ludovic Courtès <ludo@gnu.org>.
7995
7996 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
7997
7998         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
7999         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8000         made it so grep -r --include=GLOB* ... did not work.
8001
8002 2010-03-26  Jim Meyering  <meyering@redhat.com>
8003             Eric Blake  <eblake@redhat.com>
8004
8005         maint.mk: prohibit use of test's -o and -a operators
8006         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8007
8008 2010-03-28  Bruno Haible  <bruno@clisp.org>
8009
8010         Remove unused GNULIB_XYZ macro definitions.
8011         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8012         invocation.
8013
8014 2010-03-28  Bruno Haible  <bruno@clisp.org>
8015
8016         Mark privileged tests modules.
8017         * modules/idpriv-drop-tests (Status): New section.
8018         * modules/idpriv-droptemp-tests (Status): New section.
8019
8020 2010-03-28  Bruno Haible  <bruno@clisp.org>
8021
8022         Split C++ tests into separate tests modules.
8023         * modules/dirent-c++-tests: New file, extracted from
8024         modules/dirent-tests.
8025         * modules/dirent-tests: Depend on it.
8026         * modules/fcntl-h-c++-tests: New file, extracted from
8027         modules/fcntl-h-tests.
8028         * modules/fcntl-h-tests: Depend on it.
8029         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8030         * modules/glob-tests: Depend on it.
8031         * modules/iconv-h-c++-tests: New file, extracted from
8032         modules/iconv-h-tests.
8033         * modules/iconv-h-tests: Depend on it.
8034         * modules/langinfo-c++-tests: New file, extracted from
8035         modules/langinfo-tests.
8036         * modules/langinfo-tests: Depend on it.
8037         * modules/locale-c++-tests: New file, extracted from
8038         modules/locale-tests.
8039         * modules/locale-tests: Depend on it.
8040         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8041         * modules/math-tests: Depend on it.
8042         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8043         * modules/pty-tests: Depend on it.
8044         * modules/search-c++-tests: New file, extracted from
8045         modules/search-tests.
8046         * modules/search-tests: Depend on it.
8047         * modules/signal-c++-tests: New file, extracted from
8048         modules/signal-tests.
8049         * modules/signal-tests: Depend on it.
8050         * modules/spawn-c++-tests: New file, extracted from
8051         modules/spawn-tests.
8052         * modules/spawn-tests: Depend on it.
8053         * modules/stdio-c++-tests: New file, extracted from
8054         modules/stdio-tests.
8055         * modules/stdio-tests: Depend on it.
8056         * modules/stdlib-c++-tests: New file, extracted from
8057         modules/stdlib-tests.
8058         * modules/stdlib-tests: Depend on it.
8059         * modules/string-c++-tests: New file, extracted from
8060         modules/string-tests.
8061         * modules/string-tests: Depend on it.
8062         * modules/sys_ioctl-c++-tests: New file, extracted from
8063         modules/sys_ioctl-tests.
8064         * modules/sys_ioctl-tests: Depend on it.
8065         * modules/sys_select-c++-tests: New file, extracted from
8066         modules/sys_select-tests.
8067         * modules/sys_select-tests: Depend on it.
8068         * modules/sys_socket-c++-tests: New file, extracted from
8069         modules/sys_socket-tests.
8070         * modules/sys_socket-tests: Depend on it.
8071         * modules/sys_stat-c++-tests: New file, extracted from
8072         modules/sys_stat-tests.
8073         * modules/sys_stat-tests: Depend on it.
8074         * modules/sys_time-c++-tests: New file, extracted from
8075         modules/sys_time-tests.
8076         * modules/sys_time-tests: Depend on it.
8077         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8078         * modules/time-tests: Depend on it.
8079         * modules/unistd-c++-tests: New file, extracted from
8080         modules/unistd-tests.
8081         * modules/unistd-tests: Depend on it.
8082         * modules/wchar-c++-tests: New file, extracted from
8083         modules/wchar-tests.
8084         * modules/wchar-tests: Depend on it.
8085         * modules/wctype-c++-tests: New file, extracted from
8086         modules/wctype-tests.
8087         * modules/wctype-tests: Depend on it.
8088         Reported by Simon Josefsson.
8089
8090 2010-03-28  Bruno Haible  <bruno@clisp.org>
8091
8092         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8093         * gnulib-tool (func_exists_module): New function, extracted from
8094         func_verify_module.
8095         (func_verify_module): Use it.
8096         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8097         'foo' only if 'foo' exists.
8098         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8099         module.
8100
8101 2010-03-28  Bruno Haible  <bruno@clisp.org>
8102
8103         gnulib-tool: Add support for special categories of tests.
8104         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8105         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8106         (func_usage): Document them.
8107         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8108         inc_unportable_tests, inc_all_tests): New variables.
8109         (func_acceptable): Consider these variables.
8110         (func_modules_transitive_closure): Make it work when the 'Status' field
8111         consists of multiple words.
8112         (func_import): Store and restore the values of inc_cxx_tests,
8113         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8114         inc_all_tests in gnulib-comp.m4.
8115         (func_create_testdir): Set inc_all_tests to true.
8116         * doc/gnulib.texi (Extra tests modules): New section.
8117         Suggested by Jim Meyering.
8118
8119 2010-03-28  Bruno Haible  <bruno@clisp.org>
8120
8121         ansi-c++-opt: Allow turning off the C++ build by default.
8122         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8123         gl_CXX_CHOICE_DEFAULT_NO is defined.
8124         Requested by Eric Blake.
8125
8126 2010-03-28  Bruno Haible  <bruno@clisp.org>
8127
8128         unistd: Avoid #define replacements in C++ mode.
8129         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8130         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8131         setsockopt, shutdown, select): In C++, attach a warning to the function
8132         if possible, rather than #defining the symbol to a dysfunctional alias.
8133         Reported by John W. Eaton <jwe@gnu.org>.
8134
8135 2010-03-28  Bruno Haible  <bruno@clisp.org>
8136
8137         Fix link errors on mingw.
8138         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8139         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8140         $(LIBSOCKET).
8141         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8142         $(LIBSOCKET).
8143
8144 2010-03-28  Bruno Haible  <bruno@clisp.org>
8145             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8146
8147         lib-ignore: Determine different options for different compilers.
8148         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8149         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8150         Add comments.
8151         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8152         * NEWS: Mention the change.
8153
8154 2010-03-27  Bruno Haible  <bruno@clisp.org>
8155
8156         Remove unused GNULIB_XYZ macro definitions.
8157         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8158         * modules/fseek (configure.ac): Likewise.
8159         * modules/ioctl (configure.ac): Likewise.
8160         * modules/open (configure.ac): Likewise.
8161         * modules/stdlib-safer (configure.ac): Likewise.
8162
8163 2010-03-27  Bruno Haible  <bruno@clisp.org>
8164
8165         Add a remark about certain modules.
8166         * modules/malloc (Comment): New section.
8167         * modules/realloc (Comment): Likewise.
8168         * modules/sigpipe (Comment): Likewise.
8169
8170 2010-03-27  Bruno Haible  <bruno@clisp.org>
8171
8172         Resolve conflict between the two kinds of module indicators.
8173         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8174         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8175         * modules/canonicalize (configure.ac): Invoke
8176         gl_MODULE_INDICATOR_FOR_TESTS.
8177         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8178         GNULIB_XYZ.
8179         * tests/test-dirent-c++.cc: Likewise.
8180         * tests/test-dirent-safer.c: Likewise.
8181         * tests/test-dup2.c: Likewise.
8182         * tests/test-fchdir.c: Likewise.
8183         * tests/test-fcntl-h-c++.cc: Likewise.
8184         * tests/test-getopt.c: Likewise.
8185         * tests/test-getopt.h: Likewise.
8186         * tests/test-langinfo-c++.cc: Likewise.
8187         * tests/test-locale-c++.cc: Likewise.
8188         * tests/test-math-c++.cc: Likewise.
8189         * tests/test-pty-c++.cc: Likewise.
8190         * tests/test-search-c++.cc: Likewise.
8191         * tests/test-signal-c++.cc: Likewise.
8192         * tests/test-spawn-c++.cc: Likewise.
8193         * tests/test-stdio-c++.cc: Likewise.
8194         * tests/test-stdlib-c++.cc: Likewise.
8195         * tests/test-string-c++.cc: Likewise.
8196         * tests/test-sys_ioctl-c++.cc: Likewise.
8197         * tests/test-sys_select-c++.cc: Likewise.
8198         * tests/test-sys_socket-c++.cc: Likewise.
8199         * tests/test-sys_stat-c++.cc: Likewise.
8200         * tests/test-sys_time-c++.cc: Likewise.
8201         * tests/test-time-c++.cc: Likewise.
8202         * tests/test-unistd-c++.cc: Likewise.
8203         * tests/test-wchar-c++.cc: Likewise.
8204         * tests/uninorm/test-u8-nfc.c: Likewise.
8205         * tests/uninorm/test-u8-nfd.c: Likewise.
8206         * tests/uninorm/test-u8-nfkc.c: Likewise.
8207         * tests/uninorm/test-u8-nfkd.c: Likewise.
8208         * tests/uninorm/test-u16-nfc.c: Likewise.
8209         * tests/uninorm/test-u16-nfd.c: Likewise.
8210         * tests/uninorm/test-u16-nfkc.c: Likewise.
8211         * tests/uninorm/test-u16-nfkd.c: Likewise.
8212         * tests/uninorm/test-u32-nfc.c: Likewise.
8213         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8214         * tests/uninorm/test-u32-nfd.c: Likewise.
8215         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8216         * tests/uninorm/test-u32-nfkc.c: Likewise.
8217         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8218         * tests/uninorm/test-u32-nfkd.c: Likewise.
8219         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8220         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8221
8222 2010-03-27  Bruno Haible  <bruno@clisp.org>
8223
8224         Distinguish two kinds of module indicators.
8225         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8226         gl_MODULE_INDICATOR.
8227         (gl_MODULE_INDICATOR): New macro.
8228         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8229         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8230         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8231         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8232         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8233         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8234         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8235         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8236         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8237         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8238         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8239         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8240         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8241         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8242         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8244         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8245         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8246         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8247         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8248         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8249         * modules/cloexec (configure.ac): Likewise.
8250         * modules/getopt-gnu (configure.ac): Likewise.
8251         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8252         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8253         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8254         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8255
8256 2010-03-27  Bruno Haible  <bruno@clisp.org>
8257
8258         New module description field 'Comment'.
8259         * gnulib-tool: New option --extract-comment.
8260         (func_usage): Document it.
8261         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8262         (func_get_comment): New function.
8263         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8264
8265 2010-03-27  Bruno Haible  <bruno@clisp.org>
8266
8267         Addendum to 2010-02-07 commit.
8268         * gnulib-tool (func_usage): Document --extract-applicability option.
8269
8270 2010-03-27  Bruno Haible  <bruno@clisp.org>
8271
8272         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8273         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8274         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8275         rather than link errors.
8276
8277 2010-03-27  Bruno Haible  <bruno@clisp.org>
8278
8279         Avoid side effects from tests-related modules on the compilation of lib.
8280         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8281         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8282         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8283         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8284         macro.
8285         (func_import): Define a witness macro. Assign it a value that depends
8286         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8287         tests-related modules.
8288         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8289         Reported by Jim Meyering.
8290
8291 2010-03-27  Bruno Haible  <bruno@clisp.org>
8292
8293         Factorize common .m4 code.
8294         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8295         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8296         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8297         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8298         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8299         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8300         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8301         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8302         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8303         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8304         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8305         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8306         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8307         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8308         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8309         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8310         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8311         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8313         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8314         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8316         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8318         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8319         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8320         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8322         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8323         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8324         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8325         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8326
8327 2010-03-27  Bruno Haible  <bruno@clisp.org>
8328
8329         Fix a compilation error on Cygwin with g++ >= 4.3.
8330         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8331         if it is undefined or if we alias it to chmod.
8332         (lstat): Don't warn about the use of this function if it is undefined
8333         or if we alias it to stat.
8334         Reported by Simon Josefsson.
8335
8336 2010-03-27  Bruno Haible  <bruno@clisp.org>
8337
8338         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8339         * modules/getlogin (configure.ac): Update.
8340
8341         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8342         * modules/getlogin_r (configure.ac): Update.
8343
8344         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8346         * modules/inet_ntop (configure.ac): Update.
8347
8348         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8349         * modules/inet_pton (configure.ac): Update.
8350
8351         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8352         * modules/mbslen (configure.ac): Update.
8353
8354         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8355         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8356         * modules/forkpty (configure.ac): Update.
8357         * modules/openpty (configure.ac): Update.
8358
8359 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8360
8361         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8362         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8363
8364 2010-03-25  Eric Blake  <eblake@redhat.com>
8365
8366         maint: use pragma consistently across replacement headers
8367         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8368         * lib/dirent.in.h (system_header): Likewise.
8369         * lib/errno.in.h (system_header): Likewise.
8370         * lib/float.in.h (system_header): Likewise.
8371         * lib/getopt.in.h (system_header): Likewise.
8372         * lib/iconv.in.h (system_header): Likewise.
8373         * lib/inttypes.in.h (system_header): Likewise.
8374         * lib/langinfo.in.h (system_header): Likewise.
8375         * lib/locale.in.h (system_header): Likewise.
8376         * lib/math.in.h (system_header): Likewise.
8377         * lib/netdb.in.h (system_header): Likewise.
8378         * lib/netinet_in.in.h (system_header): Likewise.
8379         * lib/pty.in.h (system_header): Likewise.
8380         * lib/sched.in.h (system_header): Likewise.
8381         * lib/se-selinux.in.h (system_header): Likewise.
8382         * lib/search.in.h (system_header): Likewise.
8383         * lib/spawn.in.h (system_header): Likewise.
8384         * lib/stdarg.in.h (system_header): Likewise.
8385         * lib/stdint.in.h (system_header): Likewise.
8386         * lib/string.in.h (system_header): Likewise.
8387         * lib/strings.in.h (system_header): Likewise.
8388         * lib/sys_file.in.h (system_header): Likewise.
8389         * lib/sys_ioctl.in.h (system_header): Likewise.
8390         * lib/sys_socket.in.h (system_header): Likewise.
8391         * lib/sys_times.in.h (system_header): Likewise.
8392         * lib/sys_utsname.in.h (system_header): Likewise.
8393         * lib/sys_wait.in.h (system_header): Likewise.
8394         * lib/sysexits.in.h (system_header): Likewise.
8395         * lib/unistd.in.h (system_header): Likewise.
8396         * lib/wctype.in.h (system_header): Likewise.
8397
8398         arpa/inet: fix mingw compilation warning
8399         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8400         Reported by Matthew Bolte.
8401
8402 2010-03-25  Bruno Haible  <bruno@clisp.org>
8403
8404         Avoid collision between gnulib wrapper and libintl wrapper.
8405         * lib/printf.c (printf): Don't define if a printf wrapper is already
8406         defined in intl/printf.c.
8407         Reported by Michel Boaventura <michel@michelboaventura.com>.
8408
8409 2010-03-25  Bruno Haible  <bruno@clisp.org>
8410
8411         Use ANSI C.
8412         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8413
8414 2010-03-25  Bruno Haible  <bruno@clisp.org>
8415
8416         Minor formatting changes.
8417         * lib/acosl.c: Insert space before function argument list.
8418         * lib/argz.c: Likewise.
8419         * lib/asinl.c: Likewise.
8420         * lib/expl.c: Likewise.
8421         * lib/gen-uni-tables.c: Likewise.
8422         * lib/gettext.h: Likewise.
8423         * lib/glthread/lock.h: Likewise.
8424         * lib/tanl.c: Likewise.
8425         * lib/uniname/uniname.c: Likewise.
8426         * tests/test-idpriv-drop.c: Likewise.
8427         * tests/test-idpriv-droptemp.c: Likewise.
8428         * tests/test-lock.c: Likewise.
8429         * tests/test-tls.c: Likewise.
8430         * lib/argp-help.c: Insert space before function-like macro argument
8431         list.
8432         * lib/memcmp.c: Likewise.
8433         * tests/test-base64.c: Likewise.
8434         * lib/localename.c: Insert space before sizeof's argument list.
8435         * lib/safe-alloc.h: Likewise.
8436         * lib/file-set.h: Insert space before macro argument list.
8437         * tests/test-argp.c: Likewise.
8438         * lib/argp-namefrob.h: Insert space before function parameter list.
8439         * lib/getaddrinfo.c: Likewise.
8440         * lib/netdb.in.h: Likewise.
8441         * lib/parse-duration.h: Likewise.
8442         * lib/parse-duration.c: Likewise.
8443         * lib/poll.c: Likewise.
8444         * lib/select.c: Likewise.
8445         * lib/trim.h: Likewise.
8446         * tests/test-usleep.c: Likewise.
8447         * lib/ldexpl.c: Insert space before function parameter list and before
8448         function argument list.
8449         * lib/logl.c: Likewise.
8450         * lib/sqrtl.c: Likewise.
8451         * lib/trim.c: Likewise.
8452         * lib/cosl.c: Use GNU style indentation. Insert space before function
8453         argument list.
8454         * lib/sinl.c: Likewise.
8455         * lib/tsearch.c: Insert space after 'for'.
8456         Reported by Jim Meyering.
8457
8458 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8459
8460         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8461         config header before grepping, as it's not present before
8462         autoreconf/configure are run.  Reported by Simon Josefsson.
8463
8464 2010-03-23  Bruno Haible  <bruno@clisp.org>
8465
8466         pt_chown: Make it work with automake < 1.11.
8467         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8468         Reported by Simon Josefsson.
8469
8470 2010-03-23  Bruno Haible  <bruno@clisp.org>
8471
8472         pt_chown: Don't depend on GPLed modules.
8473         * lib/pt_chown.c: Don't include idpriv.h.
8474         (main): Don't drop privileges.
8475         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8476         Reported by Simon Josefsson.
8477
8478 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8479
8480         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8481         suggestions from karl@freefriends.org (Karl Berry).
8482
8483 2010-03-22  Eric Blake  <eblake@redhat.com>
8484
8485         gethostname: further tweaks
8486         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8487         are overriding gethostname.
8488         Suggested by Bruno Haible.
8489
8490 2010-03-21  Bruno Haible  <bruno@clisp.org>
8491
8492         Fix comments.
8493         * lib/forkpty.c (rpl_forkpty): Fix comment.
8494         * lib/openpty.c (rpl_openpty): Likewise.
8495         Reported by Eric Blake.
8496
8497 2010-03-22  Eric Blake  <eblake@redhat.com>
8498
8499         gethostname: fix build on mingw
8500         * lib/unistd.in.h (includes): Work around fact that mingw
8501         <winsock2.h> re-includes <unistd.h>, by avoiding any
8502         redeclarations if we are being included by <winsock2.h>.
8503         Reported by Matthias Bolte.
8504
8505 2010-03-21  Bruno Haible  <bruno@clisp.org>
8506
8507         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8508         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8509         modifications.
8510         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8511         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8512         provide the replacement.
8513         * modules/forkpty (Depends-on): Add openpty, login_tty.
8514         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8515         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8516         * doc/glibc-functions/forkpty.texi: More supported platforms.
8517         * config/srclist.txt: Add forkpty.c (commented).
8518
8519 2010-03-21  Bruno Haible  <bruno@clisp.org>
8520
8521         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8522         (Makefile.am): Verify that PTY_LIB is defined.
8523
8524         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8525
8526 2010-03-21  Bruno Haible  <bruno@clisp.org>
8527
8528         Tests for module 'login_tty'.
8529         * modules/login_tty-tests: New file.
8530         * tests/test-login_tty.c: New file.
8531
8532         New module 'login_tty'.
8533         * lib/login_tty.c: New file.
8534         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8535         * modules/login_tty: New file.
8536         * doc/glibc-functions/login_tty.texi: Mention the new module.
8537
8538 2010-03-21  Bruno Haible  <bruno@clisp.org>
8539
8540         login_tty: Documentation.
8541         * doc/glibc-functions/login_tty.texi: New file.
8542         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8543
8544 2010-03-21  Bruno Haible  <bruno@clisp.org>
8545
8546         pty: Consistent macro naming.
8547         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8548         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8549         * modules/pty (configure.ac): Update.
8550
8551 2010-03-21  Bruno Haible  <bruno@clisp.org>
8552
8553         Tests for openpty: Make stricter.
8554         * tests/test-openpty.c (main): Add test of canonical processing and
8555         erase.
8556         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8557
8558         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8559         * lib/openpty.c (openpty): New replacement function.
8560         * lib/pty.in.h: Include <termios.h>.
8561         (openpty): Update declaration. Add comments.
8562         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8563         is not declared, arrange to provide the replacement. Check for _getpty
8564         and posix_openpt.
8565         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8566         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8567         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8568         * modules/pty-tests (test_pty_c___LDADD): New variable.
8569         * doc/glibc-functions/openpty.texi: More supported platforms.
8570
8571 2010-03-21  Bruno Haible  <bruno@clisp.org>
8572
8573         setenv: Tweaks.
8574         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8575         the test program.
8576         * doc/posix-functions/setenv.texi: Update platforms list.
8577
8578 2010-03-21  Bruno Haible  <bruno@clisp.org>
8579
8580         New module 'unlockpt'.
8581         * lib/unlockpt.c: New file, from glibc with modifications.
8582         * m4/unlockpt.m4: New file.
8583         * modules/unlockpt: New file.
8584         * lib/stdlib.in.h (unlockpt): New declaration.
8585         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8586         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8587         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8588         HAVE_UNLOCKPT.
8589         * doc/posix-functions/unlockpt.texi: Mention the new module.
8590         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8591         * config/srclist.txt: Add unlockpt.c (commented).
8592
8593 2010-03-21  Jim Meyering  <meyering@redhat.com>
8594
8595         maint.mk: prohibit inclusion of "intprops.h" without use
8596         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8597
8598 2010-03-21  Bruno Haible  <bruno@clisp.org>
8599
8600         New module 'grantpt'.
8601         * lib/grantpt.c: New file, from glibc with modifications.
8602         * m4/grantpt.m4: New file.
8603         * modules/grantpt: New file.
8604         * lib/stdlib.in.h (grantpt): New declaration.
8605         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8606         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8607         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8608         HAVE_GRANTPT.
8609         * doc/posix-functions/grantpt.texi: Mention the new module.
8610         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8611         * config/srclist.txt: Add grantpt.c (commented).
8612
8613 2010-03-21  Bruno Haible  <bruno@clisp.org>
8614
8615         New module 'pt_chown'.
8616         * lib/pt_chown.c: New file, from glibc with modifications.
8617         * lib/pty-private.h: New file, from glibc with modifications.
8618         * modules/pt_chown: New file.
8619         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8620
8621 2010-03-21  Bruno Haible  <bruno@clisp.org>
8622
8623         Tests for module 'ptsname'.
8624         * modules/ptsname-tests: New file.
8625         * tests/test-ptsname.c: New file.
8626
8627         New module 'ptsname'.
8628         * lib/ptsname.c: New file, from glibc with modifications.
8629         * m4/ptsname.m4: New file.
8630         * modules/ptsname: New file.
8631         * lib/stdlib.in.h (ptsname): New declaration.
8632         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8633         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8634         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8635         HAVE_PTSNAME.
8636         * doc/posix-functions/ptsname.texi: Mention the new module.
8637         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8638         * config/srclist.txt: Add ptsname.c (commented).
8639
8640 2010-03-21  Bruno Haible  <bruno@clisp.org>
8641
8642         Tests for module 'ttyname_r'.
8643         * modules/ttyname_r-tests: New file.
8644         * tests/test-ttyname_r.c: New file.
8645
8646         New module 'ttyname_r'.
8647         * lib/ttyname_r.c: New file.
8648         * m4/ttyname_r.m4: New file.
8649         * modules/ttyname_r: New file.
8650         * lib/unistd.in.h (ttyname_r): New declaration.
8651         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8652         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8653         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8654         HAVE_TTYNAME_R.
8655         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8656         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8657
8658 2010-03-20  Bruno Haible  <bruno@clisp.org>
8659
8660         signal: Undefine macro definitions in C++ mode.
8661         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8662         sigfillset): Undefine macro definitions from the system header in C++
8663         mode.
8664         Reported by John W. Eaton <jwe@gnu.org>.
8665
8666 2010-03-20  Bruno Haible  <bruno@clisp.org>
8667
8668         Ensure no #include statements inside extern "C" { ... }.
8669         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8670         contain #include statements.
8671         * lib/time.in.h: Likewise.
8672
8673 2010-03-20  Bruno Haible  <bruno@clisp.org>
8674
8675         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8676         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8677         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8678         Reported by John W. Eaton <jwe@gnu.org>.
8679
8680 2010-03-20  Bruno Haible  <bruno@clisp.org>
8681
8682         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8683         Reported by Jim Meyering.
8684
8685 2010-03-20  Bruno Haible  <bruno@clisp.org>
8686
8687         pipe: Set errno upon failure.
8688         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8689         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8690         errno value in error message.
8691
8692 2010-03-20  Bruno Haible  <bruno@clisp.org>
8693             Jim Meyering  <meyering@redhat.com>
8694
8695         lchown: Avoid "unused variable" warning.
8696         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8697
8698 2010-03-20  Bruno Haible  <bruno@clisp.org>
8699
8700         Work around unlink() bug on MacOS X 10.5.6.
8701         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8702         attempting to unlink a parent directory.
8703         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8704         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8705         activate for the replacement function.
8706         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8707
8708 2010-03-20  Bruno Haible  <bruno@clisp.org>
8709
8710         Fix link errors on Solaris 8.
8711         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8712         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8713
8714 2010-03-19  Jim Meyering  <meyering@redhat.com>
8715
8716         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8717         The _LIBC implementation of build_range_exp correctly honors the
8718         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8719         However, the non-_LIBC implementation would ignore that syntax-bit
8720         flag and return REG_ERANGE unconditionally.
8721         This change makes it honor that flag.
8722         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8723         Make two pointer parameters "const".
8724         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8725         (parse_bracket_exp): Update caller.
8726
8727         regex.m4: correct the reversed range endpoint ([b-a]) test
8728         * m4/regex.m4: When requiring that [b-a] evoke failure,
8729         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8730         test pass once again for x86-based systems.
8731
8732 2010-03-19  Bruno Haible  <bruno@clisp.org>
8733
8734         scandir: Fix link error on Solaris 8.
8735         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8736         macros.
8737
8738 2010-03-19  Bruno Haible  <bruno@clisp.org>
8739
8740         getusershell: Fix documentation.
8741         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8742         module.
8743         * doc/glibc-functions/setusershell.texi: Likewise.
8744
8745         getusershell: Provide declaration, missing on Solaris 9.
8746         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8747         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8748         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8749         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8751         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8752         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8753         HAVE_GETUSERSHELL.
8754         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8755
8756 2010-03-19  Bruno Haible  <bruno@clisp.org>
8757
8758         wctype: Provide iswblank function.
8759         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8760         exists and is fine.
8761         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8762         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8763         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8764         * doc/posix-functions/iswblank.texi: Update.
8765
8766 2010-03-19  Bruno Haible  <bruno@clisp.org>
8767
8768         Tests of module 'pty' in C++ mode.
8769         * modules/pty-tests: New file.
8770         * tests/test-pty-c++.cc: New file.
8771         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8772
8773 2010-03-19  Eric Blake  <eblake@redhat.com>
8774
8775         logb: fix documentation
8776         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8777         1.5 declaration bug.
8778
8779         forkpty, openpty: prefer glibc's const-safe prototype
8780         * lib/forkpty.c (rpl_forkpty): New file.
8781         * lib/openpty.c (rpl_openpty): Likewise.
8782         * modules/forkpty (Files): Distribute it.
8783         * modules/openpty (Files): Likewise.
8784         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8785         check...
8786         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8787         replacement for for non-const BSD signature.
8788         * modules/pty (Makefile.am): Substitute witnesses.
8789         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8790         * tests/test-forkpty.c: Update signature check.
8791         * tests/test-openpty.c: Likewise.
8792         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8793         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8794
8795         forkpty, openpty: split functions into new modules
8796         * modules/pty (Makefile.am): Substitute new witnesses.
8797         (Libraries): Move library detection...
8798         * modules/forkpty: ...into new module.
8799         * modules/openpty: Another new module.
8800         * modules/pty-tests: Rename and split...
8801         * modules/forkpty-tests: ...to this...
8802         * modules/openpty-tests: ...and this.
8803         * tests/test-pty.c: Rename and split...
8804         * tests/test-forkpty.c: ...to this...
8805         * tests/test-openpty.c: ...and this.
8806         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8807         (gl_PTY): Split library searching...
8808         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8809         (gl_FORKPTY, gl_OPENPTY): New macros.
8810         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8811         * NEWS: Mention the split.
8812         * MODULES.html.sh (Misc): Document the modules.
8813         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8814         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8815
8816         pty: improve replacement header
8817         * lib/pty.in.h: New file.
8818         * modules/pty (Files): Ship it.
8819         (Makefile.am): Always build replacement.
8820         * m4/pty.m4: Rename...
8821         * m4/pty_h.m4: ...to this.
8822         (gl_PTY): Modernize setting of witness macros; update check of
8823         forkpty to take proper advantage of cache.
8824         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8825
8826         getopt: avoid compiler warning
8827         * lib/getopt.c (attribute_hidden): Remove unused macro.
8828
8829 2010-03-18  Bruno Haible  <bruno@clisp.org>
8830
8831         Fix link errors on Solaris 8.
8832         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8833         * modules/search-tests (test_search_c___LDADD): Likewise.
8834         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8835         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8836         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8837         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8838         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8839         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8840         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8841
8842 2010-03-18  Bruno Haible  <bruno@clisp.org>
8843
8844         Fix bug introduced on 2010-03-14.
8845         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8846         (gl_SPAWN_H): Require it.
8847         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8848         Reported by Simon Josefsson.
8849
8850 2010-03-18  Bruno Haible  <bruno@clisp.org>
8851
8852         Fix typo introduced on 2009-12-31.
8853         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8854         posix_spawn_file_actions_adddup2.
8855
8856 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8857         and Eric Blake  <eblake@redhat.com>
8858
8859         test-vc-list-files-git: make more robust
8860         * tests/test-vc-list-files-git.sh: Unset problematic environment
8861         variables.  Chain commands together.
8862
8863 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
8864
8865         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
8866         `AC_CHECK_DECL' invocation.
8867
8868 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
8869
8870         * lib/inttostr.c (inttostr): Make sure the invocation of verify
8871         appears before executable statements. Suggested by Petr Sumbera
8872         <Petr.Sumbera@Sun.COM>.
8873
8874 2010-03-14  Bruno Haible  <bruno@clisp.org>
8875
8876         * tests/test-flock.c (test_exclusive): Comment out a test that causes
8877         portability problems. Instead use a simpler test.
8878         (main): Check that invalid arguments are rejected only on Linux.
8879
8880 2010-03-14  Bruno Haible  <bruno@clisp.org>
8881
8882         Fix bug introduced on 2009-12-31.
8883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8884         gl_PREREQ_SYS_H_WINSOCK2 always.
8885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
8886         SYS_SOCKET_H variable.
8887         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
8888         Update comments.
8889         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
8890         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8891         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8892         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8893         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8894
8895 2010-03-14  Bruno Haible  <bruno@clisp.org>
8896
8897         Fix values returned by sinl, cosl.
8898         * lib/trigl.h: Add specification comments.
8899         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
8900         that combines the values from the precomputed table with the values of
8901         the Chebyshev polynomials.
8902
8903 2010-03-14  Bruno Haible  <bruno@clisp.org>
8904
8905         Fix compilation error when modules 'posix_spawn[p]' are not used.
8906         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
8907         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
8908
8909 2010-03-14  Bruno Haible  <bruno@clisp.org>
8910
8911         Fix compilation error on mingw when module 'time_r' is not used.
8912         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
8913         is 1.
8914         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
8915         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8916         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
8917         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
8918
8919 2010-03-14  Bruno Haible  <bruno@clisp.org>
8920
8921         Fix compilation error with Sun C.
8922         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
8923         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
8924         instead of GCC specific ULONG_LONG_MAX.
8925         * lib/xstrtoll.c: Likewise.
8926         * lib/xstrtoull.c: Likewise.
8927
8928 2010-03-13  Bruno Haible  <bruno@clisp.org>
8929
8930         Allow the user to disable C++ code and tests.
8931         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
8932         (gl_PROG_ANSI_CXX): Require it.
8933
8934 2010-03-13  Bruno Haible  <bruno@clisp.org>
8935
8936         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
8937         cases.
8938
8939 2010-03-13  Bruno Haible  <bruno@clisp.org>
8940
8941         Test that gnulib does not break the standard C++ headers.
8942         * tests/test-locale-c++2.cc: New file.
8943         * modules/locale-tests (Files): Add it.
8944         (Makefile.am): Compile it for test-locale-c++.
8945         * tests/test-math-c++2.cc: New file.
8946         * modules/math-tests (Files): Add it.
8947         (Makefile.am): Compile it for test-math-c++.
8948         * tests/test-signal-c++2.cc: New file.
8949         * modules/signal-tests (Files): Add it.
8950         (Makefile.am): Compile it for test-signal-c++.
8951         * tests/test-stdio-c++2.cc: New file.
8952         * modules/stdio-tests (Files): Add it.
8953         (Makefile.am): Compile it for test-stdio-c++.
8954         * tests/test-stdlib-c++2.cc: New file.
8955         * modules/stdlib-tests (Files): Add it.
8956         (Makefile.am): Compile it for test-stdlib-c++.
8957         * tests/test-string-c++2.cc: New file.
8958         * modules/string-tests (Files): Add it.
8959         (Makefile.am): Compile it for test-string-c++.
8960         * tests/test-time-c++2.cc: New file.
8961         * modules/time-tests (Files): Add it.
8962         (Makefile.am): Compile it for test-time-c++.
8963         Reported by John W. Eaton <jwe@gnu.org>.
8964
8965 2010-03-13  Bruno Haible  <bruno@clisp.org>
8966
8967         * gnulib-tool (func_usage): Clarify which options are available for
8968         --create-testdir and --create-megatestdir.
8969
8970 2010-03-13  Bruno Haible  <bruno@clisp.org>
8971
8972         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
8973         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
8974         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
8975         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8976         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
8977         when appropriate.
8978         Reported by Jim Meyering.
8979
8980 2010-03-12  Simon Josefsson  <simon@josefsson.org>
8981
8982         * gnulib-tool (func_import): Explain origin of code.
8983
8984 2010-03-12  Bruno Haible  <bruno@clisp.org>
8985
8986         Fix problem with automake's definition of CXXLINK.
8987         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
8988         Reported by Simon Josefsson and Ludovic Courtès.
8989
8990 2010-03-12  Bruno Haible  <bruno@clisp.org>
8991
8992         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
8993         stable releases.
8994
8995 2010-03-11  Bruno Haible  <bruno@clisp.org>
8996
8997         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
8998         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
8999         whether the system provides one variant or multiple variants of the
9000         function.
9001         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9002         C++ compilers.
9003         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9004         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9005         Reported by Jim Meyering.
9006
9007 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9008
9009         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9010
9011 2010-03-08  Bruno Haible  <bruno@clisp.org>
9012
9013         gnulib-tool: Add support for --libtool in --create-testdir.
9014         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9015         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9016
9017 2010-03-08  Eric Blake  <eblake@redhat.com>
9018
9019         gnulib-tool.texi: mention possibility of git submodule
9020         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9021         submodules.
9022         * doc/.gitignore: Ignore another generated file.
9023
9024 2010-03-08  Karl Berry  <karl@gnu.org>
9025
9026         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9027         of committing gnulib files while skipping others.
9028
9029 2010-03-07  Bruno Haible  <bruno@clisp.org>
9030
9031         Tests of module 'wctype' in C++ mode.
9032         * tests/test-wctype-c++.cc: New file.
9033         * modules/wctype-tests (Files): Add it and tests/signature.h.
9034         (Depends-on): Add ansi-c++-opt.
9035         (Makefile.am): Arrange to compile and run test-wctype-c++.
9036
9037         Tests of module 'wchar' in C++ mode.
9038         * tests/test-wchar-c++.cc: New file.
9039         * modules/wchar-tests (Files): Add it and tests/signature.h.
9040         (Depends-on): Add ansi-c++-opt.
9041         (Makefile.am): Arrange to compile and run test-wchar-c++.
9042         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9043         gl_MODULE_INDICATOR.
9044
9045         Tests of module 'unistd' in C++ mode.
9046         * tests/test-unistd-c++.cc: New file.
9047         * modules/unistd-tests (Files): Add it and tests/signature.h.
9048         (Depends-on): Add ansi-c++-opt.
9049         (Makefile.am): Arrange to compile and run test-unistd-c++.
9050         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9051         gl_MODULE_INDICATOR.
9052
9053         Tests of module 'time' in C++ mode.
9054         * tests/test-time-c++.cc: New file.
9055         * modules/time-tests (Files): Add it and tests/signature.h.
9056         (Depends-on): Add ansi-c++-opt.
9057         (Makefile.am): Arrange to compile and run test-time-c++.
9058         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9059
9060         Tests of module 'sys_time' in C++ mode.
9061         * tests/test-sys_time-c++.cc: New file.
9062         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9063         (Depends-on): Add ansi-c++-opt.
9064         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9065         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9066         gl_MODULE_INDICATOR.
9067
9068         Tests of module 'sys_stat' in C++ mode.
9069         * tests/test-sys_stat-c++.cc: New file.
9070         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9071         (Depends-on): Add ansi-c++-opt.
9072         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9074         gl_MODULE_INDICATOR.
9075
9076         Tests of module 'sys_socket' in C++ mode.
9077         * tests/test-sys_socket-c++.cc: New file.
9078         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9079         (Depends-on): Add ansi-c++-opt.
9080         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9082         gl_MODULE_INDICATOR.
9083
9084         Tests of module 'sys_select' in C++ mode.
9085         * tests/test-sys_select-c++.cc: New file.
9086         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9087         (Depends-on): Add ansi-c++-opt.
9088         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9089         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9090         gl_MODULE_INDICATOR.
9091
9092         Tests of module 'sys_ioctl' in C++ mode.
9093         * tests/test-sys_ioctl-c++.cc: New file.
9094         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9095         (Depends-on): Add ansi-c++-opt.
9096         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9097         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9098         gl_MODULE_INDICATOR.
9099
9100         Tests of module 'string' in C++ mode.
9101         * tests/test-string-c++.cc: New file.
9102         * modules/string-tests (Files): Add it and tests/signature.h.
9103         (Depends-on): Add ansi-c++-opt.
9104         (Makefile.am): Arrange to compile and run test-string-c++.
9105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9106         gl_MODULE_INDICATOR.
9107
9108         Tests of module 'stdlib' in C++ mode.
9109         * tests/test-stdlib-c++.cc: New file.
9110         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9111         (Depends-on): Add ansi-c++-opt.
9112         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9113         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9114         gl_MODULE_INDICATOR.
9115
9116         Tests of module 'stdio' in C++ mode.
9117         * tests/test-stdio-c++.cc: New file.
9118         * modules/stdio-tests (Files): Add it and tests/signature.h.
9119         (Depends-on): Add ansi-c++-opt.
9120         (Makefile.am): Arrange to compile and run test-stdio-c++.
9121         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9122         gl_MODULE_INDICATOR.
9123
9124         Tests of module 'spawn' in C++ mode.
9125         * tests/test-spawn-c++.cc: New file.
9126         * modules/spawn-tests (Files): Add it and tests/signature.h.
9127         (Depends-on): Add ansi-c++-opt.
9128         (Makefile.am): Arrange to compile and run test-spawn-c++.
9129         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9130         gl_MODULE_INDICATOR.
9131
9132         Tests of module 'signal' in C++ mode.
9133         * tests/test-signal-c++.cc: New file.
9134         * modules/signal-tests (Files): Add it and tests/signature.h.
9135         (Depends-on): Add ansi-c++-opt.
9136         (Makefile.am): Arrange to compile and run test-signal-c++.
9137         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9138         gl_MODULE_INDICATOR.
9139
9140         Tests of module 'search' in C++ mode.
9141         * tests/test-search-c++.cc: New file.
9142         * modules/search-tests (Files): Add it and tests/signature.h.
9143         (Depends-on): Add ansi-c++-opt.
9144         (Makefile.am): Arrange to compile and run test-search-c++.
9145         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9146         gl_MODULE_INDICATOR.
9147
9148         Tests of module 'math' in C++ mode.
9149         * tests/test-math-c++.cc: New file.
9150         * modules/math-tests (Files): Add it and tests/signature.h.
9151         (Depends-on): Add ansi-c++-opt.
9152         (Makefile.am): Arrange to compile and run test-math-c++.
9153         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9154
9155         Tests of module 'locale' in C++ mode.
9156         * tests/test-locale-c++.cc: New file.
9157         * modules/locale-tests (Files): Add it and tests/signature.h.
9158         (Depends-on): Add ansi-c++-opt.
9159         (Makefile.am): Arrange to compile and run test-locale-c++.
9160         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9161         gl_MODULE_INDICATOR.
9162
9163         Tests of module 'langinfo' in C++ mode.
9164         * tests/test-langinfo-c++.cc: New file.
9165         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9166         (Depends-on): Add ansi-c++-opt.
9167         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9168         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9169         gl_MODULE_INDICATOR.
9170
9171         Tests of module 'iconv-h' in C++ mode.
9172         * tests/test-iconv-h-c++.cc: New file.
9173         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9174         (Depends-on): Add ansi-c++-opt.
9175         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9176
9177         Tests of module 'glob' in C++ mode.
9178         * tests/test-glob-c++.cc: New file.
9179         * modules/glob-tests (Files): Add it.
9180         (Depends-on): Add ansi-c++-opt.
9181         (Makefile.am): Arrange to compile and run test-glob-c++.
9182
9183         Tests of module 'fcntl-h' in C++ mode.
9184         * tests/test-fcntl-h-c++.cc: New file.
9185         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9186         (Depends-on): Add ansi-c++-opt.
9187         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9188         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9189         gl_MODULE_INDICATOR.
9190
9191         Tests of module 'dirent' in C++ mode.
9192         * tests/test-dirent-c++.cc: New file.
9193         * modules/dirent-tests (Files): Add it and tests/signature.h.
9194         (Depends-on): Add ansi-c++-opt.
9195         (Makefile.am): Arrange to compile and run test-dirent-c++.
9196         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9197         gl_MODULE_INDICATOR.
9198
9199         New module 'ansi-c++-opt'.
9200         * modules/ansi-c++-opt: New file.
9201         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9202
9203         Document C++ namespace mode.
9204         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9205
9206         wctype: Avoid #define replacements in C++ mode.
9207         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9208         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9209         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9210         In C++, define a namespaced alias symbol.
9211         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9212         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9213         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9214         rule.
9215
9216         wchar: Avoid #define replacements in C++ mode.
9217         * lib/wchar.in.h: Include c++defs.h.
9218         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9219         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9220         symbol.
9221         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9222         * modules/wchar (Depends-on): Add c++defs.
9223         (Makefile.am): Update wchar.h rule.
9224
9225         unistd: Avoid #define replacements in C++ mode.
9226         * lib/unistd.in.h: Include c++defs.h.
9227         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9228         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9229         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9230         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9231         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9232         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9233         symbol.
9234         (environ): Update.
9235         * modules/unistd (Depends-on): Add c++defs.
9236         (Makefile.am): Update unistd.h rule.
9237
9238         time: Avoid #define replacements in C++ mode.
9239         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9240         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9241         define a namespaced alias symbol.
9242         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9243         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9244         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9245         * modules/time (Depends-on): Add c++defs, warn-on-use.
9246         (Makefile.am): Update time.h rule.
9247         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9248         * modules/nanosleep (configure.ac): Likewise.
9249         * modules/strptime (configure.ac): Likewise.
9250         * modules/timegm (configure.ac): Likewise.
9251
9252         sys_time: Avoid #define replacements in C++ mode.
9253         * lib/sys_time.in.h: Include c++defs.h.
9254         (gettimeofday): In C++, define a namespaced alias symbol.
9255         * modules/sys_time (Depends-on): Add c++defs.
9256         (Makefile.am): Update sys/time.h rule.
9257
9258         sys_stat: Avoid #define replacements in C++ mode.
9259         * lib/sys_stat.in.h: Include c++defs.h.
9260         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9261         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9262         namespaced alias symbol.
9263         In C++, define a namespaced alias symbol.
9264         * modules/sys_stat (Depends-on): Add c++defs.
9265         (Makefile.am): Update sys/stat.h rule.
9266
9267         sys_socket: Avoid #define replacements in C++ mode.
9268         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9269         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9270         definitions also when the system has a <sys/socket.h>.
9271         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9272         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9273         In C++, define a namespaced alias symbol.
9274         * modules/sys_socket (Depends-on): Add c++defs.
9275         (Makefile.am): Update sys/socket.h rule.
9276
9277         sys_select: Avoid #define replacements in C++ mode.
9278         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9279         definitions also when the system has a <sys/select.h>.
9280         (select): In C++, define a namespaced alias symbol.
9281         * modules/sys_select (Depends-on): Add c++defs.
9282         (Makefile.am): Update sys/select.h rule.
9283
9284         sys_ioctl: Avoid #define replacements in C++ mode.
9285         * lib/sys_ioctl.in.h: Include c++defs.h.
9286         (ioctl): In C++, define a namespaced alias symbol.
9287         * modules/sys_ioctl (Depends-on): Add c++defs.
9288         (Makefile.am): Update sys/ioctl.h rule.
9289
9290         string: Avoid #define replacements in C++ mode.
9291         * lib/string.in.h: Include c++defs.h.
9292         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9293         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9294         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9295         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9296         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9297         * modules/string (Depends-on): Add c++defs.
9298         (Makefile.am): Update string.h rule.
9299
9300         stdlib: Avoid #define replacements in C++ mode.
9301         * lib/stdlib.in.h: Include c++defs.h.
9302         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9303         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9304         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9305         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9306         symbol.
9307         * modules/stdlib (Depends-on): Add c++defs.
9308         (Makefile.am): Update stdlib.h rule.
9309
9310         stdio: Avoid #define replacements in C++ mode.
9311         * lib/stdio.in.h: Include c++defs.h.
9312         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9313         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9314         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9315         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9316         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9317         namespaced alias symbol.
9318         * modules/stdio (Depends-on): Add c++defs.
9319         (Makefile.am): Update stdio.h rule.
9320
9321         spawn: Avoid #define replacements in C++ mode.
9322         * lib/spawn.in.h: Include c++defs.h.
9323         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9324         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9325         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9326         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9327         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9328         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9329         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9330         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9331         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9332         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9333         In C++, define a namespaced alias symbol.
9334         * modules/spawn (Depends-on): Add c++defs.
9335         (Makefile.am): Update spawn.h rule.
9336
9337         signal: Avoid #define replacements in C++ mode.
9338         * lib/signal.in.h: Include c++defs.h.
9339         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9340         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9341         namespaced alias symbol.
9342         * modules/signal (Depends-on): Add c++defs.
9343         (Makefile.am): Update signal.h rule.
9344
9345         search: Avoid #define replacements in C++ mode.
9346         * lib/search.in.h: Include c++defs.h.
9347         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9348         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9349         symbol.
9350         * modules/search (Depends-on): Add c++defs.
9351         (Makefile.am): Update search.h rule.
9352
9353         math: Avoid #define replacements in C++ mode.
9354         * lib/math.in.h: Include c++defs.h.
9355         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9356         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9357         trunc, truncl): In C++, define a namespaced alias symbol.
9358         * modules/math (Depends-on): Add c++defs.
9359         (Makefile.am): Update math.h rule.
9360
9361         locale: Avoid #define replacements in C++ mode.
9362         * lib/locale.in.h: Include c++defs.h.
9363         (duplocale): In C++, define a namespaced alias symbol.
9364         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9365         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9366         * modules/locale (Depends-on): Add c++defs.
9367         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9368
9369         langinfo: Avoid #define replacements in C++ mode.
9370         * lib/langinfo.in.h: Include c++defs.h.
9371         (nl_langinfo): In C++, define a namespaced alias symbol.
9372         * modules/langinfo (Depends-on): Add c++defs.
9373         (Makefile.am): Update langinfo.h rule.
9374
9375         iconv-h: Avoid #define replacements in C++ mode.
9376         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9377         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9378         symbol.
9379         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9380         whenever iconv is present.
9381         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9382         (Makefile.am): Update iconv.h rule.
9383
9384         glob: Avoid #define replacements in C++ mode.
9385         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9386         (_gl_glob_errfunc_fn): New type.
9387         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9388         symbol.
9389         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9390         (Makefile.am): Update glob.h rule.
9391
9392         fcntl-h: Avoid #define replacements in C++ mode.
9393         * lib/fcntl.in.h: Include c++defs.h.
9394         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9395         * modules/fcntl-h (Depends-on): Add c++defs.
9396         (Makefile.am): Update fcntl.h rule.
9397
9398         dirent: Avoid #define replacements in C++ mode.
9399         * lib/dirent.in.h: Include c++defs.h.
9400         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9401         namespaced alias symbol.
9402         (dirfd): Update declaration.
9403         * modules/dirent (Depends-on): Add c++defs.
9404         (Makefile.am): Update dirent.h rule.
9405
9406         ctype: Make it usable in C++ code.
9407         * lib/ctype.in.h: Include c++defs.h.
9408         (isblank): Declare as extern "C".
9409         * modules/ctype (Depends-on): Add c++defs.
9410         (Makefile.am): Update ctype.h rule.
9411
9412         New module 'c++defs'.
9413         * modules/c++defs: New file.
9414         * build-aux/c++defs.h: New file.
9415         Reported by John W. Eaton <jwe@gnu.org>.
9416
9417 2010-03-07  Bruno Haible  <bruno@clisp.org>
9418
9419         logb: Provide missing declaration for Cygwin.
9420         * lib/math.in.h (logb): New declaration.
9421         * m4/logb.m4: New file.
9422         * modules/logb (Files): Add m4/logb.m4.
9423         (Depends-on): Add math.
9424         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9425         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9427         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9428         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9429
9430 2010-03-07  Bruno Haible  <bruno@clisp.org>
9431
9432         Fix test-cond link error.
9433         * tests/test-cond.c: Include <stdio.h>.
9434
9435 2010-03-07  Bruno Haible  <bruno@clisp.org>
9436
9437         Fix test-dirent-safer link error.
9438         * modules/dirent-safer-tests (Makefile.am): Define
9439         test_dirent_safer_LDADD.
9440
9441 2010-03-07  Bruno Haible  <bruno@clisp.org>
9442
9443         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9444         among default module list.
9445
9446 2010-03-07  Bruno Haible  <bruno@clisp.org>
9447
9448         Fix link error on platforms with GNU libiconv.
9449         * modules/unistr/u8-strcoll-tests (Makefile): Define
9450         test_u8_strcoll_LDADD.
9451         * modules/unistr/u16-strcoll-tests (Makefile): Define
9452         test_u16_strcoll_LDADD.
9453         * modules/unistr/u32-strcoll-tests (Makefile): Define
9454         test_u32_strcoll_LDADD.
9455
9456 2010-03-07  Bruno Haible  <bruno@clisp.org>
9457
9458         Use POSIX declarations for socket functions.
9459         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9460         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9461         rpl_sendto): Change declaration to match POSIX.
9462         * lib/connect.c (rpl_connect): Likewise.
9463         * lib/accept.c (rpl_accept): Likewise.
9464         * lib/bind.c (rpl_bind): Likewise.
9465         * lib/getpeername.c (rpl_getpeername): Likewise.
9466         * lib/getsockname.c (rpl_getsockname): Likewise.
9467         * lib/recv.c (rpl_recv): Likewise.
9468         * lib/send.c (rpl_send): Likewise.
9469         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9470         * lib/sendto.c (rpl_sendto): Likewise.
9471
9472 2010-03-06  Bruno Haible  <bruno@clisp.org>
9473
9474         Clarify access, euidaccess, faccessat.
9475         * doc/posix-functions/faccessat.texi: Mention security problem under
9476         "Other problems", not "Portability problems".
9477         * doc/posix-functions/access.texi: Likewise. Mention a related security
9478         problem.
9479         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9480         * lib/euidaccess.c: Add comments about platforms.
9481         * lib/unistd.in.h (access, euidaccess): Add warnings.
9482
9483 2010-03-07  Bruno Haible  <bruno@clisp.org>
9484
9485         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9486         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9487         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9488         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9489         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9490         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9491         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9492         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9493         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9495         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9496         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9497         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9498         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9499         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9500         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9501         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9502         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9503         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9504         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9505         Likewise.
9506         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9507         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9508         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9509         Likewise.
9510         * tests/test-spawn.c (main): Make it work when
9511         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9512
9513 2010-03-07  Bruno Haible  <bruno@clisp.org>
9514
9515         Fix incorrect Makefile.am generation in German locale.
9516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9517         Execute sed command with character range in C locale.
9518
9519 2010-03-06  Bruno Haible  <bruno@clisp.org>
9520
9521         Tests for module 'iconv-h'.
9522         * modules/iconv-h-tests: New file.
9523         * tests/test-iconv-h.c: New file.
9524
9525         New module 'iconv-h'.
9526         * modules/iconv-h: New file.
9527         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9528         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9529         (configure.ac): Remove gl_ICONV_H.
9530         (Makefile.am): Remove rule for iconv.h.
9531
9532 2010-03-06  Bruno Haible  <bruno@clisp.org>
9533
9534         More consistent naming of *.m4 files.
9535         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9536         * modules/wctype (Files): Update.
9537
9538         More consistent naming of *.m4 files.
9539         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9540         * modules/wchar (Files): Update.
9541
9542 2010-03-06  Jim Meyering  <meyering@redhat.com>
9543
9544         euidaccess: relax license to LGPLv2+
9545         * modules/euidaccess (License): Relax to LGPLv2+.
9546
9547 2010-03-06  Bruno Haible  <bruno@clisp.org>
9548
9549         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9550         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9551         (Makefile.am): Augment lib_SOURCES instead.
9552
9553 2010-03-04  Jim Meyering  <meyering@redhat.com>
9554
9555         utime: remove obsolete module
9556         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9557         unnecessary for years, and has been marked as obsolete for 10 months.
9558         * modules/utime: Remove file.
9559         * lib/utime.c: Remove file.
9560         * m4/utime.m4: Remove file.
9561         * m4/utimes-null.m4: Remove file.
9562         * doc/posix-functions/utime.texi (utime): Remove reference to
9563         the module.  Move the sole "fixed by gnulib" item into the
9564         "problems not fixed by Gnulib" list.
9565         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9566
9567 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9568
9569         * modules/exit (License): Relax license to LGPLv2+.
9570         (Status): Mark as obsolete.
9571         * NEWS: Mention deprecated 'exit' module.
9572         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9573         of now obsolete 'exit'.
9574
9575 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9576
9577         fts-lgpl: remove unused module
9578         * modules/fts-lgpl: Remove.
9579         * MODULES.html.sh (func_all_modules): Adjust.
9580         * check-module (find_included_lib_files): Adjust.
9581         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9582
9583 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9584
9585         copy-acl: enhance Solaris ACL error handling
9586         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9587         * lib/set-mode-acl.c (qset_acl): Likewise.
9588
9589 2010-03-02  Bruno Haible  <bruno@clisp.org>
9590
9591         spawn: Don't override the system defined values on FreeBSD 8.
9592         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9593         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9594         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9595         if HAVE_POSIX_SPAWN is 1.
9596         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9597
9598 2010-03-01  Bruno Haible  <bruno@clisp.org>
9599
9600         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9601         regarding Automake.
9602
9603 2010-02-25  Bruno Haible  <bruno@clisp.org>
9604
9605         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9606         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9607         setting, not afterwards.
9608         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9609
9610 2010-02-24  Eric Blake  <eblake@redhat.com>
9611
9612         bootstrap, git-version-gen: use timestamp
9613         * build-aux/git-version-gen (scriptversion): Force UTC.
9614         * build-aux/bootstrap (scriptversion): New variable.
9615
9616         bootstrap: allow older git
9617         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9618         older than 1.6.4.  Requested by the libvirt project.
9619
9620 2010-02-23  Eric Blake  <eblake@redhat.com>
9621
9622         warn-on-use: work with old autoconf
9623         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9624         AS_VAR semantics of autoconf 2.60.
9625         Reported by Bruno Haible.
9626
9627         bootstrap: improve some comments
9628         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9629         clarification comments.
9630
9631         gettimeofday: provide correct function
9632         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9633         when replacement is declared, otherwise provide gettimeofday.
9634         Reported by Michael Goffioul.
9635
9636 2010-02-23  Jim Meyering  <meyering@redhat.com>
9637
9638         lib-ignore: relax license to "unlimited", not LGPLv2+
9639         * modules/lib-ignore (License): Relax to "unlimited".
9640
9641 2010-02-23  Jim Meyering  <meyering@redhat.com>
9642
9643         lib-ignore: relax license to LGPLv2+
9644         * modules/lib-ignore (License): Relax to LGPLv2+.
9645
9646 2010-02-22  Eric Blake  <eblake@redhat.com>
9647
9648         lseek: avoid bash 3.2 broken pipe bug
9649         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9650         warning from bash 3.2.
9651         Reported by Ben Pfaff, with analysis from Bruno Haible.
9652
9653         bootstrap: support non-FSF copyright holder
9654         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9655         bootstrap.conf override of COPYRIGHT_HOLDER.
9656         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9657
9658         bootstrap: interoperate with gettext 0.14.1
9659         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9660
9661         bootstrap: allow for alternate submodule location
9662         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9663         hardcoding submodule location.
9664         (gnulib_mk): Allow direct use of Makefile.am.
9665
9666         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9667         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9668         rather than reconfiguring where the submodule points.
9669
9670         gettimeofday: restore support for platforms that lack function
9671         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9672         replacement if function is missing.
9673         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9674         * modules/sys_time (Makefile.am): Substitute it.
9675         * lib/sys_time.in.h (gettimeofday): Check it.
9676         Reported by Michael Goffioul.
9677
9678 2010-02-21  Bruno Haible  <bruno@clisp.org>
9679
9680         * lib/stdio.in.h (obstack_printf): Fix typo.
9681
9682 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9683
9684         vc-list-files: use bzr ls's -R option
9685         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9686         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9687
9688 2010-02-21  Jim Meyering  <meyering@redhat.com>
9689
9690         init.sh: fix EXEEXT shims to work also for names like test-prog
9691         * tests/init.sh: Re-exec a better shell, when needed.
9692         If the current shell lacks support for posix $(...), an init.sh-using
9693         test will now try to find a shell that supports that.  If EXEEXT is
9694         nonempty, we also require support for hyphen-in-alias-name and shell
9695         substitutions like ${var#glob}.  Failure to find such a shell results
9696         in a skipped test.
9697
9698 2010-02-21  Bruno Haible  <bruno@clisp.org>
9699
9700         Really work around around "broken pipe" error message from bash 3.2.
9701         * gnulib-tool (func_reset_sigpipe): Remove function.
9702         (echo): In bash 3.2, define to a function that uses printf.
9703         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9704
9705 2010-02-20  Bruno Haible  <bruno@clisp.org>
9706
9707         Restore support for automake 1.9.6 with autoconf 2.61.
9708         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9709         Reported by James Youngman <jay@gnu.org>.
9710
9711 2010-02-20  Bruno Haible  <bruno@clisp.org>
9712
9713         Improve *printf warning condition.
9714         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9715         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9716         and the function is overridden due to SIGPIPE emulation.
9717
9718 2010-02-20  Bruno Haible  <bruno@clisp.org>
9719
9720         * lib/stdio.in.h: Tweak comments.
9721
9722 2010-02-19  Bruno Haible  <bruno@clisp.org>
9723
9724         Make it easier to find modules. New gnulib-tool option '--find'.
9725         * gnulib-tool: New option --find.
9726         (func_usage): Document it.
9727         (func_sanitize_modulelist): New function, extracted from
9728         func_all_modules.
9729         (func_all_modules): Invoke it.
9730         * doc/gnulib-tool.texi (Which modules?): New node.
9731
9732 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9733
9734         * lib/sys_select.in.h: Provide select replacement even if
9735         sys/select.h exists on a system, for Interix.
9736
9737 2010-02-18  Jim Meyering  <meyering@redhat.com>
9738
9739         init.sh: don't use $(...) just yet
9740         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9741         to accommodate e.g., Solaris' /bin/sh.
9742
9743 2010-02-17  Bruno Haible  <bruno@clisp.org>
9744
9745         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9746         Reported by Ludovic Courtès <ludo@gnu.org>.
9747
9748 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9749
9750         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9751         linking with -lintl.
9752
9753 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9754
9755         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9756         if not provided by the system's netdb.h.  Reported by
9757         ludo@gnu.org (Ludovic Courtès).
9758
9759 2010-02-15  Jim Meyering  <meyering@redhat.com>
9760
9761         init.sh: improve portability and efficiency
9762         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9763         "dummy" in a for loop.
9764         Use '!', not '^' to select the complement of a character set used
9765         in a "case" statement.
9766         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9767         Suggestions from Eric Blake.
9768
9769         init.sh: automatically accommodate programs with the .exe suffix
9770         Automatically arrange for an invocation of "prog" to execute the
9771         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9772         may use the simpler "prog", yet still work when built on a system
9773         that requires specifying the added suffix.
9774         Do this by constructing a function named "prog" that invokes
9775         "prog.exe" for each .exe file in selected directories.
9776         * tests/init.sh (find_exe_basenames_): New function.
9777         (create_exe_shim_functions_): New function.
9778         (path_prepend_): Use it.
9779
9780         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9781         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9782         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9783
9784 2010-02-14  Jim Meyering  <meyering@redhat.com>
9785
9786         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9787         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9788         (sc_prohibit_hash_pjw_without_use): New rule.
9789
9790         maint.mk: allow the default upload destination dir to be overridden
9791         * top/maint.mk (upload_dest_dir_): Define with a default that
9792         preserves the status quo.
9793         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9794         Reported by Peter Simons.
9795
9796         maint.mk: prohibit inclusion of "hash.h" without_use
9797         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9798
9799 2010-02-10  Jim Meyering  <meyering@redhat.com>
9800
9801         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9802         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9803
9804 2010-02-09  Eric Blake  <ebb9@byu.net>
9805         and Bruno Haible  <bruno@clisp.org>
9806
9807         obstack-printf-posix: ensure declaration
9808         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9809         extracted from gl_FUNC_OBSTACK_PRINTF.
9810         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9811         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9812         Likewise.
9813         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9814         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9815         0.
9816
9817 2010-02-08  Bruno Haible  <bruno@clisp.org>
9818
9819         gnulib-tool: Fix typo in 2010-02-07 commit.
9820         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9821         Reported by Eric Blake.
9822
9823 2010-02-07  Bruno Haible  <bruno@clisp.org>
9824
9825         gnulib-tool: Fix up caching patches.
9826         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9827         option --no-cache. Use associative arrays when supported by the shell.
9828         (sed_comments): New variable.
9829         (modcache): Renamed from do_cache.
9830         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9831         abbreviate unnecessarily.
9832         (have_associative): New variable.
9833         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9834         way also for ksh and zsh.
9835         (func_init_sed_convert_to_cache_statements): New function, extracted
9836         from func_cache_lookup_module. Add support for associative arrays.
9837         Don't set the c_MODULE_cached variable here. Ignore all lines before
9838         the first field header. Remove only the final newline, not all trailing
9839         newlines. Support empty fields correctly. Limit the use of 'eval' to
9840         assignments.
9841         (func_get_description, func_get_status, func_get_notice,
9842         func_get_applicability, func_get_filelist, func_get_dependencies,
9843         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9844         func_get_automake_snippet, func_get_include_directive,
9845         func_get_link_directive, func_get_license, func_get_maintainer):
9846         Update documentation. List the unoptimized code first. Add support for
9847         associative arrays. Limit the use of 'eval' to assignments.
9848         (func_get_applicability): Undo stylistic pessimisations.
9849         (func_get_automake_snippet, func_get_include_directive): Reduce code
9850         duplication.
9851         (func_modules_transitive_closure, func_modules_add_dummy,
9852         func_modules_notice, func_modules_to_filelist, func_add_file,
9853         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9854         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9855         func_create_testdir, func_create_megatestdir): Update documentation.
9856
9857 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9858
9859         * gnulib-tool (func_cache_lookup_module): Store the module name
9860         belonging to the cache variable; error out if two different
9861         module names map to the same cache variable name.
9862
9863 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9864
9865         gnulib-tool: Make caching optional.
9866         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
9867         Update matching short versions of --no-changelog.
9868         (func_usage): Update.
9869         (sed_extract_cache_prog): Renamed from ...
9870         (sed_extract_prog): ... this; revert to old extraction script.
9871         (func_get_description, func_get_status)
9872         (func_get_notice, func_get_applicability, func_get_filelist)
9873         (func_get_dependencies, func_get_autoconf_early_snippet)
9874         (func_get_autoconf_snippet, func_get_automake_snippet)
9875         (func_get_include_directive, func_get_link_directive)
9876         (func_get_license, func_get_maintainer): If $do_cache is false,
9877         use old, non-caching extraction scripts.
9878         Suggestion by Bruno Haible.
9879
9880 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9881
9882         gnulib-tool: cache module metainformation.
9883         * gnulib-tool (sed_extract_prog): Match newline before each
9884         header, and rewrite header to a shell variable suffix.
9885         (func_cache_var, func_cache_lookup_module): New functions,
9886         to turn a module name into a cache variable prefix, and to
9887         look up and cache module metainformation.
9888         (func_get_description, func_get_status)
9889         (func_get_notice, func_get_applicability, func_get_filelist)
9890         (func_get_dependencies, func_get_autoconf_early_snippet)
9891         (func_get_autoconf_snippet, func_get_automake_snippet)
9892         (func_get_include_directive, func_get_link_directive)
9893         (func_get_license, func_get_maintainer): Use
9894         func_cache_lookup_module.
9895
9896 2010-02-07  Bruno Haible  <bruno@clisp.org>
9897
9898         fnctl: Fix missing dependency.
9899         * modules/fcntl (Depends-on): Add getdtablesize.
9900         Reported by John W. Eaton <jwe@gnu.org>.
9901
9902 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9903
9904         Argp: fix recognition of short alias options.
9905
9906         * lib/argp-parse.c (convert_options): Fix improper use of
9907         `|' between character values.
9908         * tests/test-argp.c (group1_option): New alias option
9909         --read (-r).
9910         (group1_parser): Special handling for 'r'.
9911         (test15): New test case.
9912         (test_fun): Add test15.
9913         * tests/test-argp-2.sh: Update expected --help and --usage
9914         outputs.
9915
9916 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
9917
9918         * tests/test-argp.c: Fix indentation.
9919
9920 2010-02-04  Eric Blake  <ebb9@byu.net>
9921
9922         gettimeofday: expose type of second argument
9923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
9924         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
9925         * tests/test-gettimeofday.c: Use it to silence warning.
9926         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
9927         the issue.
9928
9929 2010-02-03  Jim Meyering  <meyering@redhat.com>
9930
9931         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
9932         * lib/regcomp.c (TYPE_SIGNED): Define.
9933         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
9934
9935         regcomp.c: avoid a new -Wshadow warning
9936         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
9937
9938 2010-02-01  Jim Meyering  <meyering@redhat.com>
9939
9940         removing useless parentheses in cpp #define directives
9941         For motivation, see commit c0221df4, "define STREQ(a,b)
9942         consistently, removing useless parentheses"
9943         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
9944         * lib/mountlist.c (MNT_IGNORE): Likewise.
9945         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
9946
9947 2010-02-01  Eric Blake  <ebb9@byu.net>
9948
9949         sys_time: use link-warning
9950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
9951         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
9952         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
9953         * modules/sys_time (Depends-on): Add warn-on-use.
9954         (Makefile.am): Always build replacement.
9955         (configure.ac): Update substitutions.
9956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
9957         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
9958         bother with SYS_TIME_H.
9959         * modules/gettimeofday (configure.ac): Declare indicator.
9960         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
9961         in use.
9962
9963         closein-tests: silence compiler warning
9964         * tests/test-closein.c (main): Ignore fread result.
9965         * modules/closein-tests (Depends-on): Add ignore-value.
9966
9967         tests: silence warning about system return
9968         * tests/test-areadlink-with-size.c (main): Ignore system result.
9969         * tests/test-areadlink.c (main): Likewise.
9970         * tests/test-areadlinkat-with-size.c (main): Likewise.
9971         * tests/test-areadlinkat.c (main): Likewise.
9972         * tests/test-canonicalize-lgpl.c (main): Likewise.
9973         * tests/test-canonicalize.c (main): Likewise.
9974         * tests/test-chown.c (main): Likewise.
9975         * tests/test-fchownat.c (main): Likewise.
9976         * tests/test-fdutimensat.c (main): Likewise.
9977         * tests/test-fstatat.c (main): Likewise.
9978         * tests/test-futimens.c (main): Likewise.
9979         * tests/test-lchown.c (main): Likewise.
9980         * tests/test-link.c (main): Likewise.
9981         * tests/test-linkat.c (main): Likewise.
9982         * tests/test-lstat.c (main): Likewise.
9983         * tests/test-mkdir.c (main): Likewise.
9984         * tests/test-mkdirat.c (main): Likewise.
9985         * tests/test-mkfifo.c (main): Likewise.
9986         * tests/test-mkfifoat.c (main): Likewise.
9987         * tests/test-mknod.c (main): Likewise.
9988         * tests/test-readlink.c (main): Likewise.
9989         * tests/test-remove.c (main): Likewise.
9990         * tests/test-rename.c (main): Likewise.
9991         * tests/test-renameat.c (main): Likewise.
9992         * tests/test-rmdir.c (main): Likewise.
9993         * tests/test-symlink.c (main): Likewise.
9994         * tests/test-symlinkat.c (main): Likewise.
9995         * tests/test-unlink.c (main): Likewise.
9996         * tests/test-unlinkat.c (main): Likewise.
9997         * tests/test-utimens.c (main): Likewise.
9998         * tests/test-utimensat.c (main): Likewise.
9999         * modules/areadlink-tests (Depends-on): Add ignore-value.
10000         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10001         * modules/areadlinkat-tests (Depends-on): Likewise.
10002         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10003         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10004         * modules/canonicalize-tests (Depends-on): Likewise.
10005         * modules/chown-tests (Depends-on): Likewise.
10006         * modules/fdutimensat-tests (Depends-on): Likewise.
10007         * modules/futimens-tests (Depends-on): Likewise.
10008         * modules/lchown-tests (Depends-on): Likewise.
10009         * modules/link-tests (Depends-on): Likewise.
10010         * modules/linkat-tests (Depends-on): Likewise.
10011         * modules/lstat-tests (Depends-on): Likewise.
10012         * modules/mkdir-tests (Depends-on): Likewise.
10013         * modules/mkfifo-tests (Depends-on): Likewise.
10014         * modules/mkfifoat-tests (Depends-on): Likewise.
10015         * modules/mknod-tests (Depends-on): Likewise.
10016         * modules/openat-tests (Depends-on): Likewise.
10017         * modules/readlink-tests (Depends-on): Likewise.
10018         * modules/remove-tests (Depends-on): Likewise.
10019         * modules/rename-tests (Depends-on): Likewise.
10020         * modules/renameat-tests (Depends-on): Likewise.
10021         * modules/rmdir-tests (Depends-on): Likewise.
10022         * modules/symlink-tests (Depends-on): Likewise.
10023         * modules/symlinkat-tests (Depends-on): Likewise.
10024         * modules/unlink-tests (Depends-on): Likewise.
10025         * modules/utimens-tests (Depends-on): Likewise.
10026         * modules/utimensat-tests (Depends-on): Likewise.
10027
10028 2010-01-31  Bruno Haible  <bruno@clisp.org>
10029
10030         Perform the same test for many <math.h> functions.
10031         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10032         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10033         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10034         of gl_MATHFUNC.
10035         * modules/acos (configure.ac): Likewise.
10036         * modules/asin (configure.ac): Likewise.
10037         * modules/atan (configure.ac): Likewise.
10038         * modules/atan2 (configure.ac): Likewise.
10039         * modules/cbrt (configure.ac): Likewise.
10040         * modules/copysign (configure.ac): Likewise.
10041         * modules/cos (configure.ac): Likewise.
10042         * modules/cosh (configure.ac): Likewise.
10043         * modules/erf (configure.ac): Likewise.
10044         * modules/erfc (configure.ac): Likewise.
10045         * modules/exp (configure.ac): Likewise.
10046         * modules/fmod (configure.ac): Likewise.
10047         * modules/hypot (configure.ac): Likewise.
10048         * modules/j0 (configure.ac): Likewise.
10049         * modules/j1 (configure.ac): Likewise.
10050         * modules/jn (configure.ac): Likewise.
10051         * modules/lgamma (configure.ac): Likewise.
10052         * modules/log (configure.ac): Likewise.
10053         * modules/log10 (configure.ac): Likewise.
10054         * modules/log1p (configure.ac): Likewise.
10055         * modules/pow (configure.ac): Likewise.
10056         * modules/remainder (configure.ac): Likewise.
10057         * modules/sin (configure.ac): Likewise.
10058         * modules/sinh (configure.ac): Likewise.
10059         * modules/tan (configure.ac): Likewise.
10060         * modules/tanh (configure.ac): Likewise.
10061         * modules/y0 (configure.ac): Likewise.
10062         * modules/y1 (configure.ac): Likewise.
10063         * modules/yn (configure.ac): Likewise.
10064         Suggested by Paolo Bonzini.
10065
10066 2010-01-31  Bruno Haible  <bruno@clisp.org>
10067
10068         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10069
10070 2010-01-31  Bruno Haible  <bruno@clisp.org>
10071
10072         Work around getdelim() bug on FreeBSD 8.0.
10073         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10074         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10075         not work.
10076         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10077         is 1.
10078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10079         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10080         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10081         a non-zero size.
10082         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10083
10084 2010-01-31  Bruno Haible  <bruno@clisp.org>
10085
10086         Work around getline() bug on FreeBSD 8.0.
10087         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10088         and a non-zero size.
10089         * tests/test-getline.c (main): Likewise.
10090         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10091         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10092
10093 2010-01-28  Eric Blake  <ebb9@byu.net>
10094
10095         regex: fix build failure
10096         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10097         platforms.
10098
10099 2010-01-28  Jim Meyering  <meyering@redhat.com>
10100
10101         regex: do not ignore memory allocation failure
10102         * lib/regex_internal.c (create_cd_newstate): Detect
10103         re_node_set_init_copy failure.   Extracted from glibc commit
10104         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10105
10106         regex: sync more white-space changes from libc
10107         * lib/regex_internal.c: White-space only changes.
10108         * lib/regexec.c: Likewise.
10109
10110         regex: add many uses of __attribute_warn_unused_result__
10111         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10112         * lib/regexec.c: Likewise.
10113         Extracted from a messy glibc commit.
10114
10115         regcomp.c: spelling and merge-artifact from glibc
10116         * lib/regcomp.c: Merge remainder of glibc's
10117         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10118
10119         regcomp.c: sync white-space changes from glibc
10120         * lib/regcomp.c: Merge to accommodate white space
10121         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10122
10123         regcomp.c: do not ignore internal return values
10124         * lib/regcomp.c: Do not ignore internal return values.
10125         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10126         but without its white-space changes and spelling fixes.
10127
10128         regex_internal.h: define __attribute_warn_unused_result__
10129         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10130
10131         maint: add a syntax-check rule to check for vulnerable Makefile.in
10132         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10133
10134 2010-01-27  Jim Meyering  <meyering@redhat.com>
10135
10136         ncftpput-ftp: clean up spaces
10137         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10138         Remove trailing blanks.
10139
10140 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10141
10142         * build-aux/git-version-gen: Fix copyright statement.
10143         * build-aux/gnupload: Likewise.
10144         * tests/test-arcfour.c: Likewise.
10145         * tests/test-arctwo.c: Likewise.
10146         * tests/test-count-one-bits.c: Likewise.
10147         * tests/test-crc.c: Likewise.
10148         * tests/test-des.c: Likewise.
10149         * tests/test-gc-arcfour.c: Likewise.
10150         * tests/test-gc-arctwo.c: Likewise.
10151         * tests/test-gc-des.c: Likewise.
10152         * tests/test-gc-hmac-md5.c: Likewise.
10153         * tests/test-gc-hmac-sha1.c: Likewise.
10154         * tests/test-gc-md2.c: Likewise.
10155         * tests/test-gc-md4.c: Likewise.
10156         * tests/test-gc-md5.c: Likewise.
10157         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10158         * tests/test-gc-rijndael.c: Likewise.
10159         * tests/test-gc-sha1.c: Likewise.
10160         * tests/test-gc.c: Likewise.
10161         * tests/test-gethostname.c: Likewise.
10162         * tests/test-gettimeofday.c: Likewise.
10163         * tests/test-hash.c: Likewise.
10164         * tests/test-hmac-md5.c: Likewise.
10165         * tests/test-hmac-sha1.c: Likewise.
10166         * tests/test-md2.c: Likewise.
10167         * tests/test-md4.c: Likewise.
10168         * tests/test-md5.c: Likewise.
10169         * tests/test-memchr.c: Likewise.
10170         * tests/test-memchr2.c: Likewise.
10171         * tests/test-memcmp.c: Likewise.
10172         * tests/test-memmem.c: Likewise.
10173         * tests/test-memrchr.c: Likewise.
10174         * tests/test-rawmemchr.c: Likewise.
10175         * tests/test-read-file.c: Likewise.
10176         * tests/test-rijndael.c: Likewise.
10177         * tests/test-sockets.c: Likewise.
10178         * tests/test-strchrnul.c: Likewise.
10179         * tests/test-strstr.c: Likewise.
10180         * tests/test-strtod.c: Likewise.
10181         * build-aux/ncftpput-ftp: Likewise.
10182
10183 2010-01-26  Eric Blake  <ebb9@byu.net>
10184
10185         ignore-value: update recommended header name
10186         * modules/ignore-value (Include): Only use <> for headers that
10187         exist in glibc.
10188
10189 2010-01-26  Jim Meyering  <meyering@redhat.com>
10190
10191         test-userspec.c: avoid compiler warnings
10192         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10193         and "initialization discards qualifiers..." warnings.
10194         Put the first "uid" in its own scope, and make char* members "const".
10195
10196 2010-01-25  Bruno Haible  <bruno@clisp.org>
10197
10198         gnulib-tool: Make warning diagnostics consistent.
10199         * gnulib-tool (func_warning): New function.
10200         Use it everywhere where gnulib-tool produces output to stderr and it is
10201         not a fatal error.
10202
10203 2010-01-25  Bruno Haible  <bruno@clisp.org>
10204
10205         Fix test dependencies.
10206         * modules/xstrtol-tests (Depends-on): Add inttypes.
10207         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10208
10209 2010-01-25 Pádraig Brady <P@draigBrady.com>
10210
10211         syntax-check: detect incorrect boolean macro values in config.h
10212         * modules/maintainer-makefile (configure.ac): Parameterize the location
10213         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10214         The logic is from Eric Blake and the location indicated by Jim Meyering.
10215         Note the more natural CONFIG_HEADER name is prohibited by automake
10216         for backwards compatibility reasons.
10217         * top/maint.mk (sc_Wundef_boolean): New rule.
10218
10219 2010-01-25  Jim Meyering  <meyering@redhat.com>
10220
10221         bootstrap: detect MacOS 10.6's shasum, too
10222         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10223         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10224
10225 2010-01-23  Jim Meyering  <meyering@redhat.com>
10226
10227         xstrtoll: new module
10228         * modules/xstrtoll: New file.
10229         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10230         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10231         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10232         ./configure fails if you use this module and lack "long long".
10233         * modules/xstrtoll-tests: New module.
10234         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10235         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10236         new init.sh-based test framework.
10237
10238 2010-01-24  Bruno Haible  <bruno@clisp.org>
10239
10240         Tests for module 'yn'.
10241         * modules/yn-tests: New file.
10242         * tests/test-yn.c: New file.
10243
10244         Tests for module 'y1'.
10245         * modules/y1-tests: New file.
10246         * tests/test-y1.c: New file.
10247
10248         Tests for module 'y0'.
10249         * modules/y0-tests: New file.
10250         * tests/test-y0.c: New file.
10251
10252         Tests for module 'tanh'.
10253         * modules/tanh-tests: New file.
10254         * tests/test-tanh.c: New file.
10255
10256         Tests for module 'tan'.
10257         * modules/tan-tests: New file.
10258         * tests/test-tan.c: New file.
10259
10260         Tests for module 'sqrt'.
10261         * modules/sqrt-tests: New file.
10262         * tests/test-sqrt.c: New file.
10263
10264         Tests for module 'sinh'.
10265         * modules/sinh-tests: New file.
10266         * tests/test-sinh.c: New file.
10267
10268         Tests for module 'sin'.
10269         * modules/sin-tests: New file.
10270         * tests/test-sin.c: New file.
10271
10272         Tests for module 'rint'.
10273         * modules/rint-tests: New file.
10274         * tests/test-rint.c: New file.
10275
10276         Tests for module 'remainder'.
10277         * modules/remainder-tests: New file.
10278         * tests/test-remainder.c: New file.
10279
10280         Tests for module 'pow'.
10281         * modules/pow-tests: New file.
10282         * tests/test-pow.c: New file.
10283
10284         Tests for module 'nextafter'.
10285         * modules/nextafter-tests: New file.
10286         * tests/test-nextafter.c: New file.
10287
10288         Tests for module 'modf'.
10289         * modules/modf-tests: New file.
10290         * tests/test-modf.c: New file.
10291
10292         Tests for module 'logb'.
10293         * modules/logb-tests: New file.
10294         * tests/test-logb.c: New file.
10295
10296         Tests for module 'log1p'.
10297         * modules/log1p-tests: New file.
10298         * tests/test-log1p.c: New file.
10299
10300         Tests for module 'log10'.
10301         * modules/log10-tests: New file.
10302         * tests/test-log10.c: New file.
10303
10304         Tests for module 'log'.
10305         * modules/log-tests: New file.
10306         * tests/test-log.c: New file.
10307
10308         Tests for module 'lgamma'.
10309         * modules/lgamma-tests: New file.
10310         * tests/test-lgamma.c: New file.
10311
10312         Tests for module 'ldexp'.
10313         * modules/ldexp-tests: New file.
10314         * tests/test-ldexp.c: New file.
10315
10316         Tests for module 'jn'.
10317         * modules/jn-tests: New file.
10318         * tests/test-jn.c: New file.
10319
10320         Tests for module 'j1'.
10321         * modules/j1-tests: New file.
10322         * tests/test-j1.c: New file.
10323
10324         Tests for module 'j0'.
10325         * modules/j0-tests: New file.
10326         * tests/test-j0.c: New file.
10327
10328         Tests for module 'hypot'.
10329         * modules/hypot-tests: New file.
10330         * tests/test-hypot.c: New file.
10331
10332         Tests for module 'fmod'.
10333         * modules/fmod-tests: New file.
10334         * tests/test-fmod.c: New file.
10335
10336         Tests for module 'fabs'.
10337         * modules/fabs-tests: New file.
10338         * tests/test-fabs.c: New file.
10339
10340         Tests for module 'exp'.
10341         * modules/exp-tests: New file.
10342         * tests/test-exp.c: New file.
10343
10344         Tests for module 'erfc'.
10345         * modules/erfc-tests: New file.
10346         * tests/test-erfc.c: New file.
10347
10348         Tests for module 'erf'.
10349         * modules/erf-tests: New file.
10350         * tests/test-erf.c: New file.
10351
10352         Tests for module 'cosh'.
10353         * modules/cosh-tests: New file.
10354         * tests/test-cosh.c: New file.
10355
10356         Tests for module 'cos'.
10357         * modules/cos-tests: New file.
10358         * tests/test-cos.c: New file.
10359
10360         Tests for module 'copysign'.
10361         * modules/copysign-tests: New file.
10362         * tests/test-copysign.c: New file.
10363
10364         Tests for module 'cbrt'.
10365         * modules/cbrt-tests: New file.
10366         * tests/test-cbrt.c: New file.
10367
10368         Tests for module 'atan2'.
10369         * modules/atan2-tests: New file.
10370         * tests/test-atan2.c: New file.
10371
10372         Tests for module 'atan'.
10373         * modules/atan-tests: New file.
10374         * tests/test-atan.c: New file.
10375
10376         Tests for module 'asin'.
10377         * modules/asin-tests: New file.
10378         * tests/test-asin.c: New file.
10379
10380         Tests for module 'acos'.
10381         * modules/acos-tests: New file.
10382         * tests/test-acos.c: New file.
10383
10384 2010-01-24  Bruno Haible  <bruno@clisp.org>
10385
10386         Fix tests for common <math.h> functions.
10387         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10388         code snippet that references the function pointer, rather than merely
10389         calling the function. Substitute the FUNC_LIBM variable.
10390         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10391         * modules/acos (configure.ac): Likewise.
10392         * modules/asin (configure.ac): Likewise.
10393         * modules/atan (configure.ac): Likewise.
10394         * modules/atan2 (configure.ac): Likewise.
10395         * modules/cbrt (configure.ac): Likewise.
10396         * modules/copysign (configure.ac): Likewise.
10397         * modules/cos (configure.ac): Likewise.
10398         * modules/cosh (configure.ac): Likewise.
10399         * modules/erf (configure.ac): Likewise.
10400         * modules/erfc (configure.ac): Likewise.
10401         * modules/exp (configure.ac): Likewise.
10402         * modules/fabs (configure.ac): Likewise.
10403         * modules/fmod (configure.ac): Likewise.
10404         * modules/hypot (configure.ac): Likewise.
10405         * modules/j0 (configure.ac): Likewise.
10406         * modules/j1 (configure.ac): Likewise.
10407         * modules/jn (configure.ac): Likewise.
10408         * modules/ldexp (configure.ac): Likewise.
10409         * modules/lgamma (configure.ac): Likewise.
10410         * modules/log (configure.ac): Likewise.
10411         * modules/log10 (configure.ac): Likewise.
10412         * modules/log1p (configure.ac): Likewise.
10413         * modules/logb (configure.ac): Likewise.
10414         * modules/modf (configure.ac): Likewise.
10415         * modules/nextafter (configure.ac): Likewise.
10416         * modules/pow (configure.ac): Likewise.
10417         * modules/remainder (configure.ac): Likewise.
10418         * modules/rint (configure.ac): Likewise.
10419         * modules/sin (configure.ac): Likewise.
10420         * modules/sinh (configure.ac): Likewise.
10421         * modules/tan (configure.ac): Likewise.
10422         * modules/tanh (configure.ac): Likewise.
10423         * modules/y0 (configure.ac): Likewise.
10424         * modules/y1 (configure.ac): Likewise.
10425         * modules/yn (configure.ac): Likewise.
10426
10427 2010-01-24  Bruno Haible  <bruno@clisp.org>
10428
10429         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10430         * tests/test-acosl.c (x): New variable.
10431         (main): Store argument in x and fetch it from x.
10432         * tests/test-asinl.c (x): New variable.
10433         (main): Store argument in x and fetch it from x.
10434         * tests/test-atanl.c (x): New variable.
10435         (main): Store argument in x and fetch it from x.
10436         * tests/test-cosl.c (x): New variable.
10437         (main): Store argument in x and fetch it from x.
10438         * tests/test-expl.c (x): New variable.
10439         (main): Store argument in x and fetch it from x.
10440         * tests/test-logl.c (x): New variable.
10441         (main): Store argument in x and fetch it from x.
10442         * tests/test-sinl.c (x): New variable.
10443         (main): Store argument in x and fetch it from x.
10444         * tests/test-sqrtl.c (x): New variable.
10445         (main): Store argument in x and fetch it from x.
10446         * tests/test-tanl.c (x): New variable.
10447         (main): Store argument in x and fetch it from x.
10448
10449 2010-01-24  Bruno Haible  <bruno@clisp.org>
10450
10451         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10452         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10453         assignments to the initial TESTS_ENVIRONMENT.
10454         * doc/gnulib.texi (Unit test modules): Document it.
10455         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10456         TESTS_ENVIRONMENT.
10457         * modules/btowc-tests (Makefile.am): Likewise.
10458         * modules/c-stack-tests (Makefile.am): Likewise.
10459         * modules/c-strcase-tests (Makefile.am): Likewise.
10460         * modules/copy-file-tests (Makefile.am): Likewise.
10461         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10462         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10463         * modules/mbrtowc-tests (Makefile.am): Likewise.
10464         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10465         * modules/mbscasestr-tests (Makefile.am): Likewise.
10466         * modules/mbschr-tests (Makefile.am): Likewise.
10467         * modules/mbscspn-tests (Makefile.am): Likewise.
10468         * modules/mbsinit-tests (Makefile.am): Likewise.
10469         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10470         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10471         * modules/mbspbrk-tests (Makefile.am): Likewise.
10472         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10473         * modules/mbsrchr-tests (Makefile.am): Likewise.
10474         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10475         * modules/mbsspn-tests (Makefile.am): Likewise.
10476         * modules/mbsstr-tests (Makefile.am): Likewise.
10477         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10478         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10479         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10480         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10481         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10482         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10483         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10484         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10485         * modules/wcrtomb-tests (Makefile.am): Likewise.
10486         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10487         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10488         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10489         assignments from TESTS_ENVIRONMENT.
10490         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10491         augmentation.
10492         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10493         * modules/atexit-tests (Makefile.am): Likewise.
10494         * modules/binary-io-tests (Makefile.am): Likewise.
10495         * modules/closein-tests (Makefile.am): Likewise.
10496         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10497         * modules/exclude-tests (Makefile.am): Likewise.
10498         * modules/fflush-tests (Makefile.am): Likewise.
10499         * modules/fpending-tests (Makefile.am): Likewise.
10500         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10501         * modules/freadahead-tests (Makefile.am): Likewise.
10502         * modules/freadptr-tests (Makefile.am): Likewise.
10503         * modules/freadseek-tests (Makefile.am): Likewise.
10504         * modules/fseek-tests (Makefile.am): Likewise.
10505         * modules/fseeko-tests (Makefile.am): Likewise.
10506         * modules/ftell-tests (Makefile.am): Likewise.
10507         * modules/ftello-tests (Makefile.am): Likewise.
10508         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10509         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10510         * modules/lseek-tests (Makefile.am): Likewise.
10511         * modules/parse-duration-tests (Makefile.am): Likewise.
10512         * modules/perror-tests (Makefile.am): Likewise.
10513         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10514         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10515         * modules/pipe-tests (Makefile.am): Likewise.
10516         * modules/pread-tests (Makefile.am): Likewise.
10517         * modules/printf-posix-tests (Makefile.am): Likewise.
10518         * modules/select-tests (Makefile.am): Likewise.
10519         * modules/sigpipe-tests (Makefile.am): Likewise.
10520         * modules/tsearch-tests (Makefile.am): Likewise.
10521         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10522         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10523         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10524         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10525         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10526         * modules/version-etc-tests (Makefile.am): Likewise.
10527         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10528         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10529         * modules/xalloc-die-tests (Makefile.am): Likewise.
10530         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10531         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10532         * modules/xstrtol-tests (Makefile.am): Likewise.
10533         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10534         * modules/yesno-tests (Makefile.am): Likewise.
10535         Suggested by Jim Meyering.
10536
10537 2010-01-24  Bruno Haible  <bruno@clisp.org>
10538
10539         More documentation.
10540         * doc/gnulib.texi (Writing modules): New chapter.
10541         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10542         the new chapter.
10543
10544 2010-01-24  Jim Meyering  <meyering@redhat.com>
10545
10546         maint.mk: do not prepend "./" after filtering
10547         * top/maint.mk (_prepend_srcdir_prefix): New variable
10548         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10549         "./" when $(srcdir) is ".".
10550
10551         define STREQ(a,b) consistently, removing useless parentheses
10552         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10553         since the only risk is that "a" or "b" contains an unparenthesized
10554         comma, but if either did that, STREQ would have 3 or more arguments.
10555         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10556         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10557         * lib/hash-triple.c (STREQ): Likewise.
10558         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10559         * lib/getugroups.c (STREQ): Likewise.
10560
10561 2010-01-23  Jim Meyering  <meyering@redhat.com>
10562
10563         maint.mk: fix syntax-check in a non-srcdir build directory
10564         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10565         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10566
10567 2010-01-22  Jim Meyering  <meyering@redhat.com>
10568
10569         userspec: add unit tests
10570         * tests/test-userspec.c: New file.
10571         * modules/userspec-tests: Likewise.
10572
10573 2010-01-21  Jim Meyering  <meyering@redhat.com>
10574
10575         maint.mk: handle source file names containing "." robustly
10576         * top/maint.mk (_dot_escaped_srcdir): Define.
10577         (VC_LIST): Use it in LHS of sed substitution.
10578
10579 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10580
10581         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10582         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10583         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10584         from a non-srcdir build.
10585
10586 2010-01-20  Eric Blake  <ebb9@byu.net>
10587
10588         warn-on-use: use instead of link-warning
10589         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10590         * modules/unistd (Depends-on, Makefile.am): Likewise.
10591         * modules/arpa_inet (Depends-on): Replace link-warning with
10592         warn-on-use.
10593         (Makefile.am): Update rules accordingly.
10594         * modules/ctype (Depends-on, Makefile.am): Likewise.
10595         * modules/dirent (Depends-on, Makefile.am): Likewise.
10596         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10597         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10598         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10599         * modules/locale (Depends-on, Makefile.am): Likewise.
10600         * modules/math (Depends-on, Makefile.am): Likewise.
10601         * modules/search (Depends-on, Makefile.am): Likewise.
10602         * modules/signal (Depends-on, Makefile.am): Likewise.
10603         * modules/spawn (Depends-on, Makefile.am): Likewise.
10604         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10605         * modules/string (Depends-on, Makefile.am): Likewise.
10606         * modules/strings (Depends-on, Makefile.am): Likewise.
10607         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10608         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10609         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10610         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10611         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10612         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10613         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10614         * modules/wchar (Depends-on, Makefile.am): Likewise.
10615         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10616         should be poisoned.
10617         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10618         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10619         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10620         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10621         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10622         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10623         * m4/math_h.m4 (gl_MATH_H): Likewise.
10624         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10625         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10626         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10627         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10628         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10629         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10630         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10631         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10632         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10636         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10638         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10639         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10640         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10641         GL_LINK_WARNING.
10642         * lib/ctype.in.h: Likewise.
10643         * lib/dirent.in.h: Likewise.
10644         * lib/fcntl.in.h: Likewise.
10645         * lib/inttypes.in.h: Likewise.
10646         * lib/langinfo.in.h: Likewise.
10647         * lib/locale.in.h: Likewise.
10648         * lib/math.in.h: Likewise.
10649         * lib/search.in.h: Likewise.
10650         * lib/signal.in.h: Likewise.
10651         * lib/spawn.in.h: Likewise.
10652         * lib/stdio.in.h: Likewise.
10653         * lib/stdlib.in.h: Likewise.
10654         * lib/string.in.h: Likewise.
10655         * lib/strings.in.h: Likewise.
10656         * lib/sys_file.in.h: Likewise.
10657         * lib/sys_ioctl.in.h: Likewise.
10658         * lib/sys_select.in.h: Likewise.
10659         * lib/sys_socket.in.h: Likewise.
10660         * lib/sys_stat.in.h: Likewise.
10661         * lib/sys_times.in.h: Likewise.
10662         * lib/sys_utsname.in.h: Likewise.
10663         * lib/unistd.in.h: Likewise.
10664         * lib/wchar.in.h: Likewise.
10665
10666 2010-01-20  Bruno Haible  <bruno@clisp.org>
10667
10668         Avoid duplicate -lm.
10669         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10670         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10671         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10672         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10673         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10674         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10675         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10676         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10677         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10678         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10679         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10680         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10681         Reported by Paolo Bonzini.
10682
10683 2010-01-19  Bruno Haible  <bruno@clisp.org>
10684
10685         langinfo, nl_langinfo: Relicense under LGPLv2+.
10686         * modules/langinfo (License): Change to LGPLv2+.
10687         * modules/nl_langinfo (License): Likewise.
10688         Patch by David Lutterkort <lutter@redhat.com>.
10689
10690 2010-01-19  Bruno Haible  <bruno@clisp.org>
10691
10692         Avoid compilation error with cc on OSF/1 5.1.
10693         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10694         statement, not before.
10695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10696
10697 2010-01-18  Bruno Haible  <bruno@clisp.org>
10698
10699         Avoid a link error due to the __printf__ symbol.
10700         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10701         and 2.6.x.
10702         (__format__, __printf__): Remove definitions.
10703         * lib/argp-fmtstream.h: Likewise.
10704         * lib/argp.h: Likewise.
10705         * lib/error.h: Likewise.
10706         * lib/vasnprintf.h: Likewise.
10707         * lib/xprintf.h: Likewise.
10708         * lib/xvasprintf.h: Likewise.
10709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10710
10711 2010-01-18  Bruno Haible  <bruno@clisp.org>
10712
10713         Tests for module 'tanl'.
10714         * modules/tanl-tests: New file.
10715         * tests/test-tanl.c: New file.
10716
10717         Tests for module 'sqrtl'.
10718         * modules/sqrtl-tests: New file.
10719         * tests/test-sqrtl.c: New file.
10720
10721         Tests for module 'sinl'.
10722         * modules/sinl-tests: New file.
10723         * tests/test-sinl.c: New file.
10724
10725         Tests for module 'logl'.
10726         * modules/logl-tests: New file.
10727         * tests/test-logl.c: New file.
10728
10729         Tests for module 'expl'.
10730         * modules/expl-tests: New file.
10731         * tests/test-expl.c: New file.
10732
10733         Tests for module 'cosl'.
10734         * modules/cosl-tests: New file.
10735         * tests/test-cosl.c: New file.
10736
10737         Tests for module 'atanl'.
10738         * modules/atanl-tests: New file.
10739         * tests/test-atanl.c: New file.
10740
10741         Tests for module 'asinl'.
10742         * modules/asinl-tests: New file.
10743         * tests/test-asinl.c: New file.
10744
10745         Tests for module 'acosl'.
10746         * modules/acosl-tests: New file.
10747         * tests/test-acosl.c: New file.
10748
10749         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10750         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10751         tanl): Use the standard gnulib idiom.
10752         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10753         * lib/sinl.c: Likewise.
10754         * lib/tanl.c: Don't include trigl.c.
10755         (kernel_tanl): Make static.
10756         * lib/sincosl.c: Include trigl.h first.
10757         * lib/trigl.c: Likewise.
10758         * m4/acosl.m4: New file.
10759         * m4/asinl.m4: New file.
10760         * m4/atanl.m4: New file.
10761         * m4/cosl.m4: New file.
10762         * m4/expl.m4: New file.
10763         * m4/logl.m4: New file.
10764         * m4/sinl.m4: New file.
10765         * m4/sqrtl.m4: New file.
10766         * m4/tanl.m4: New file.
10767         * m4/mathl.m4: Remove file.
10768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10769         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10770         Don't initialize GNULIB_MATHL.
10771         * modules/acosl: New file.
10772         * modules/asinl: New file.
10773         * modules/atanl: New file.
10774         * modules/cosl: New file.
10775         * modules/expl: New file.
10776         * modules/logl: New file.
10777         * modules/sinl: New file.
10778         * modules/sqrtl: New file.
10779         * modules/tanl: New file.
10780         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10781         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10782         substitute GNULIB_MATHL.
10783         * modules/mathl: Rewritten.
10784         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10785         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10786         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10787         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10788         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10789         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10790         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10791         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10792         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10793
10794 2010-01-18  Bruno Haible  <bruno@clisp.org>
10795
10796         sqrt: Make gl_FUNC_SQRT requirable.
10797         * m4/sqrt.m4: New file.
10798         * modules/sqrt (Files): Add it.
10799         (configure.ac): Invoke gl_FUNC_SQRT.
10800
10801 2010-01-18  Bruno Haible  <bruno@clisp.org>
10802
10803         New modules for common <math.h> functions.
10804         * m4/mathfunc.m4: New file.
10805         * modules/acos: New file.
10806         * modules/asin: New file.
10807         * modules/atan: New file.
10808         * modules/atan2: New file.
10809         * modules/cbrt: New file.
10810         * modules/copysign: New file.
10811         * modules/cos: New file.
10812         * modules/cosh: New file.
10813         * modules/erf: New file.
10814         * modules/erfc: New file.
10815         * modules/exp: New file.
10816         * modules/fabs: New file.
10817         * modules/fmod: New file.
10818         * modules/hypot: New file.
10819         * modules/j0: New file.
10820         * modules/j1: New file.
10821         * modules/jn: New file.
10822         * modules/ldexp: New file.
10823         * modules/lgamma: New file.
10824         * modules/log: New file.
10825         * modules/log10: New file.
10826         * modules/log1p: New file.
10827         * modules/logb: New file.
10828         * modules/modf: New file.
10829         * modules/nextafter: New file.
10830         * modules/pow: New file.
10831         * modules/remainder: New file.
10832         * modules/rint: New file.
10833         * modules/sin: New file.
10834         * modules/sinh: New file.
10835         * modules/sqrt: New file.
10836         * modules/tan: New file.
10837         * modules/tanh: New file.
10838         * modules/y0: New file.
10839         * modules/y1: New file.
10840         * modules/yn: New file.
10841         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10842         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10843         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10844         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10845         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10846         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10847         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10848         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10849         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10850         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10851         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10852         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10853         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10854         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10855         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10856         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10857         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10858         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10859         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10860         * doc/posix-functions/log.texi: Mention the 'log' module.
10861         * doc/posix-functions/log10.texi: Mention the 'log10' module.
10862         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
10863         * doc/posix-functions/logb.texi: Mention the 'logb' module.
10864         * doc/posix-functions/modf.texi: Mention the 'modf' module.
10865         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
10866         * doc/posix-functions/pow.texi: Mention the 'pow' module.
10867         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
10868         * doc/posix-functions/rint.texi: Mention the 'rint' module.
10869         * doc/posix-functions/sin.texi: Mention the 'sin' module.
10870         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
10871         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
10872         * doc/posix-functions/tan.texi: Mention the 'tan' module.
10873         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
10874         * doc/posix-functions/y0.texi: Mention the 'y0' module.
10875         * doc/posix-functions/y1.texi: Mention the 'y1' module.
10876         * doc/posix-functions/yn.texi: Mention the 'yn' module.
10877
10878 2010-01-18  Jim Meyering  <meyering@redhat.com>
10879
10880         ignore-value: relax license to LGPLv2+
10881         * modules/ignore-value (License): Relax to LGPLv2+.
10882
10883         getdate: don't leak when TZ contains two or more '"'s
10884         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
10885         double quote in TZ after the first one.
10886
10887         readtokens: do not leak internal token_lengths buffer
10888         * lib/readtokens.c (readtokens): Free the local, lengths,
10889         when the supplied "token_lengths" parameter is NULL.
10890
10891 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10892
10893         Fix a couple of missing LIBTHREAD link failures on AIX.
10894         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
10895         $(LIBTHREAD).
10896         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
10897
10898         Link test-poll against INET_PTON_LIB.
10899         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
10900         for inet_pton on Solaris 10.
10901
10902 2010-01-17  Bruno Haible  <bruno@clisp.org>
10903
10904         unistdio/*-sprintf: Fix typo in module description.
10905         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
10906         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
10907         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
10908         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
10909         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
10910         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
10911         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
10912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10913
10914 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10915
10916         gnulib-tool: fix filelist for AIX, HP-UX ksh.
10917         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
10918         variables in shell case patterns, for AIX and HP-UX ksh.
10919
10920         Split large sed scripts, for HP-UX sed.
10921         * modules/stdio: Split sed scripts around 50 sed commands,
10922         to avoid HP-UX limit of 99 commands, in the near future.
10923         * modules/string: Likewise.
10924         * modules/unistd: Likewise.
10925
10926         gnulib-tool: avoid writing in the current directory.
10927         * gnulib-tool (func_emit_lib_Makefile_am)
10928         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
10929         not in the current directory, so concurrent gnulib-tool
10930         instances do not interfere.
10931
10932 2010-01-16  Jim Meyering  <meyering@redhat.com>
10933
10934         doc: update users.txt
10935         * users.txt: Add grep.
10936         (diffutils, gzip): Update URLs.
10937
10938 2010-01-12  Bruno Haible  <bruno@clisp.org>
10939
10940         posix_spawn: Avoid test failure on Cygwin.
10941         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
10942         characters.
10943         Reported by Simon Josefsson.
10944
10945 2010-01-12  Bruno Haible  <bruno@clisp.org>
10946
10947         * tests/test-cond.c (main): When skipping the test, show the reason.
10948
10949 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10950
10951         * lib/striconv.c (str_cd_iconv): Avoid if before free.
10952
10953 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10954
10955         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
10956         VC_LIST_ALWAYS_EXCLUDE_REGEX.
10957
10958 2010-01-12  Eric Blake  <ebb9@byu.net>
10959
10960         build: guarantee AS_VAR_IF
10961         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
10962         (gl_AS_VAR_IF): Move...
10963         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
10964         Reported by Simon Josefsson.
10965
10966 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10967
10968         * lib/stdio.in.h: Fix typo.
10969
10970 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10971
10972         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
10973         libgpg-error.
10974
10975 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10976
10977         * tests/test-xalloc-die.sh: Use $EXEEXT.
10978
10979 2010-01-12  Simon Josefsson  <simon@josefsson.org>
10980             Bruno Haible  <bruno@clisp.org>
10981
10982         getlogin, getlogin_r: Avoid test failure.
10983         * tests/test-getlogin.c: Include <stdio.h>.
10984         (main): Skip the test when the function fails because stdin is not a
10985         tty.
10986         * tests/test-getlogin_r.c: Include <stdio.h>.
10987         (main): Skip the test when the function fails because stdin is not a
10988         tty.
10989
10990 2010-01-11  Eric Blake  <ebb9@byu.net>
10991
10992         tests: avoid more large file warnings
10993         * tests/test-fflush.c: Avoid warning about ftell use.
10994         * tests/test-fseek.c: Avoid warning about fseek use.
10995
10996 2010-01-10  Bruno Haible  <bruno@clisp.org>
10997
10998         nproc: Work better on Linux when /proc and /sys are not mounted.
10999         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11000         as lower bound when, on glibc/Linux systems,
11001         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11002         Suggested by Pádraig Brady <P@draigbrady.com>.
11003         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11004
11005         nproc: Refactor.
11006         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11007         extracted from num_processors.
11008         (num_processors): Call it.
11009
11010 2010-01-11  Jim Meyering  <meyering@redhat.com>
11011
11012         utimecmp: avoid new warning from upcoming gcc-4.5.0
11013         * lib/utimecmp.c (BILLION): Define using #define rather than an
11014         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11015
11016 2010-01-11  Eric Blake  <ebb9@byu.net>
11017
11018         math: add portability warnings for classification macros
11019         * modules/math (Depends-on): Add warn-on-use.
11020         (Makefile.am): Provide new substitutions.
11021         * m4/math_h.m4 (gl_MATH_H): Require inline.
11022         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11023         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11024         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11025         implement warnings.
11026
11027         unistd: warn on use of environ without module
11028         * modules/unistd (Depends-on): Add warn-on-use.
11029         (Makefile.am): Provide new substitutions.
11030         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11031         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11032
11033         stdio: warn on suspicious uses
11034         * modules/stdio (Depends-on): Add warn-on-use.
11035         (Makefile.am): Provide new substitutions.
11036         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11037         fseeko.
11038         * lib/stdio.in.h (gets): Always warn on use.
11039         (fseek, ftell): Adjust when warnings are issued, and honor
11040         _GL_NO_LARGE_FILES as a way to silence the warning.
11041         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11042         any warning about large file offsets.
11043         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11044         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11045         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11046         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11047         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11048         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11049         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11050         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11051
11052         warn-on-use: new module
11053         * modules/warn-on-use: New file.
11054         * build-aux/warn-on-use.h: Likewise.
11055         * m4/warn-on-use.m4: Likewise.
11056         * MODULES.html.sh (Support for building): Mention it.
11057
11058 2010-01-10  Bruno Haible  <bruno@clisp.org>
11059
11060         Tests for module 'unistr/u32-strdup'.
11061         * modules/unistr/u32-strdup-tests: New file.
11062         * tests/unistr/test-u32-strdup.c: New file.
11063
11064         Tests for module 'unistr/u16-strdup'.
11065         * modules/unistr/u16-strdup-tests: New file.
11066         * tests/unistr/test-u16-strdup.c: New file.
11067
11068         Tests for module 'unistr/u8-strdup'.
11069         * modules/unistr/u8-strdup-tests: New file.
11070         * tests/unistr/test-u8-strdup.c: New file.
11071         * tests/unistr/test-strdup.h: New file.
11072
11073         Tests for module 'unistr/u32-strncmp'.
11074         * modules/unistr/u32-strncmp-tests: New file.
11075         * tests/unistr/test-u32-strncmp.c: New file.
11076
11077         Tests for module 'unistr/u16-strncmp'.
11078         * modules/unistr/u16-strncmp-tests: New file.
11079         * tests/unistr/test-u16-strncmp.c: New file.
11080
11081         Tests for module 'unistr/u8-strncmp'.
11082         * modules/unistr/u8-strncmp-tests: New file.
11083         * tests/unistr/test-u8-strncmp.c: New file.
11084         * tests/unistr/test-strncmp.h: New file.
11085
11086         Tests for module 'unistr/u32-strcoll'.
11087         * modules/unistr/u32-strcoll-tests: New file.
11088         * tests/unistr/test-u32-strcoll.c: New file.
11089
11090         Tests for module 'unistr/u16-strcoll'.
11091         * modules/unistr/u16-strcoll-tests: New file.
11092         * tests/unistr/test-u16-strcoll.c: New file.
11093
11094         Tests for module 'unistr/u8-strcoll'.
11095         * modules/unistr/u8-strcoll-tests: New file.
11096         * tests/unistr/test-u8-strcoll.c: New file.
11097
11098         Tests for module 'unistr/u32-strcmp'.
11099         * modules/unistr/u32-strcmp-tests: New file.
11100         * tests/unistr/test-u32-strcmp.c: New file.
11101         * tests/unistr/test-u32-strcmp.h: New file.
11102
11103         Tests for module 'unistr/u16-strcmp'.
11104         * modules/unistr/u16-strcmp-tests: New file.
11105         * tests/unistr/test-u16-strcmp.c: New file.
11106         * tests/unistr/test-u16-strcmp.h: New file.
11107
11108         Tests for module 'unistr/u8-strcmp'.
11109         * modules/unistr/u8-strcmp-tests: New file.
11110         * tests/unistr/test-u8-strcmp.c: New file.
11111         * tests/unistr/test-u8-strcmp.h: New file.
11112         * tests/unistr/test-strcmp.h: New file.
11113
11114         Tests for module 'unistr/u32-strncat'.
11115         * modules/unistr/u32-strncat-tests: New file.
11116         * tests/unistr/test-u32-strncat.c: New file.
11117
11118         Tests for module 'unistr/u16-strncat'.
11119         * modules/unistr/u16-strncat-tests: New file.
11120         * tests/unistr/test-u16-strncat.c: New file.
11121
11122         Tests for module 'unistr/u8-strncat'.
11123         * modules/unistr/u8-strncat-tests: New file.
11124         * tests/unistr/test-u8-strncat.c: New file.
11125         * tests/unistr/test-strncat.h: New file.
11126
11127         Tests for module 'unistr/u32-strcat'.
11128         * modules/unistr/u32-strcat-tests: New file.
11129         * tests/unistr/test-u32-strcat.c: New file.
11130
11131         Tests for module 'unistr/u16-strcat'.
11132         * modules/unistr/u16-strcat-tests: New file.
11133         * tests/unistr/test-u16-strcat.c: New file.
11134
11135         Tests for module 'unistr/u8-strcat'.
11136         * modules/unistr/u8-strcat-tests: New file.
11137         * tests/unistr/test-u8-strcat.c: New file.
11138         * tests/unistr/test-strcat.h: New file.
11139
11140         Tests for module 'unistr/u32-stpncpy'.
11141         * modules/unistr/u32-stpncpy-tests: New file.
11142         * tests/unistr/test-u32-stpncpy.c: New file.
11143
11144         Tests for module 'unistr/u16-stpncpy'.
11145         * modules/unistr/u16-stpncpy-tests: New file.
11146         * tests/unistr/test-u16-stpncpy.c: New file.
11147
11148         Tests for module 'unistr/u8-stpncpy'.
11149         * modules/unistr/u8-stpncpy-tests: New file.
11150         * tests/unistr/test-u8-stpncpy.c: New file.
11151         * tests/unistr/test-stpncpy.h: New file.
11152
11153         Tests for module 'unistr/u32-strncpy'.
11154         * modules/unistr/u32-strncpy-tests: New file.
11155         * tests/unistr/test-u32-strncpy.c: New file.
11156
11157         Tests for module 'unistr/u16-strncpy'.
11158         * modules/unistr/u16-strncpy-tests: New file.
11159         * tests/unistr/test-u16-strncpy.c: New file.
11160
11161         Tests for module 'unistr/u8-strncpy'.
11162         * modules/unistr/u8-strncpy-tests: New file.
11163         * tests/unistr/test-u8-strncpy.c: New file.
11164         * tests/unistr/test-strncpy.h: New file.
11165
11166         Tests for module 'unistr/u32-stpcpy'.
11167         * modules/unistr/u32-stpcpy-tests: New file.
11168         * tests/unistr/test-u32-stpcpy.c: New file.
11169
11170         Tests for module 'unistr/u16-stpcpy'.
11171         * modules/unistr/u16-stpcpy-tests: New file.
11172         * tests/unistr/test-u16-stpcpy.c: New file.
11173
11174         Tests for module 'unistr/u8-stpcpy'.
11175         * modules/unistr/u8-stpcpy-tests: New file.
11176         * tests/unistr/test-u8-stpcpy.c: New file.
11177         * tests/unistr/test-stpcpy.h: New file.
11178
11179         Tests for module 'unistr/u32-strcpy'.
11180         * modules/unistr/u32-strcpy-tests: New file.
11181         * tests/unistr/test-u32-strcpy.c: New file.
11182
11183         Tests for module 'unistr/u16-strcpy'.
11184         * modules/unistr/u16-strcpy-tests: New file.
11185         * tests/unistr/test-u16-strcpy.c: New file.
11186
11187         Tests for module 'unistr/u8-strcpy'.
11188         * modules/unistr/u8-strcpy-tests: New file.
11189         * tests/unistr/test-u8-strcpy.c: New file.
11190         * tests/unistr/test-strcpy.h: New file.
11191
11192         Tests for module 'unistr/u32-strnlen'.
11193         * modules/unistr/u32-strnlen-tests: New file.
11194         * tests/unistr/test-u32-strnlen.c: New file.
11195
11196         Tests for module 'unistr/u16-strnlen'.
11197         * modules/unistr/u16-strnlen-tests: New file.
11198         * tests/unistr/test-u16-strnlen.c: New file.
11199
11200         Tests for module 'unistr/u8-strnlen'.
11201         * modules/unistr/u8-strnlen-tests: New file.
11202         * tests/unistr/test-u8-strnlen.c: New file.
11203         * tests/unistr/test-strnlen.h: New file.
11204
11205         Tests for module 'unistr/u32-strlen'.
11206         * modules/unistr/u32-strlen-tests: New file.
11207         * tests/unistr/test-u32-strlen.c: New file.
11208
11209         Tests for module 'unistr/u16-strlen'.
11210         * modules/unistr/u16-strlen-tests: New file.
11211         * tests/unistr/test-u16-strlen.c: New file.
11212
11213         Tests for module 'unistr/u8-strlen'.
11214         * modules/unistr/u8-strlen-tests: New file.
11215         * tests/unistr/test-u8-strlen.c: New file.
11216
11217         Tests for module 'unistr/u32-prev'.
11218         * modules/unistr/u32-prev-tests: New file.
11219         * tests/unistr/test-u32-prev.c: New file.
11220
11221         Tests for module 'unistr/u16-prev'.
11222         * modules/unistr/u16-prev-tests: New file.
11223         * tests/unistr/test-u16-prev.c: New file.
11224
11225         Tests for module 'unistr/u8-prev'.
11226         * modules/unistr/u8-prev-tests: New file.
11227         * tests/unistr/test-u8-prev.c: New file.
11228
11229         Tests for module 'unistr/u32-next'.
11230         * modules/unistr/u32-next-tests: New file.
11231         * tests/unistr/test-u32-next.c: New file.
11232
11233         Tests for module 'unistr/u16-next'.
11234         * modules/unistr/u16-next-tests: New file.
11235         * tests/unistr/test-u16-next.c: New file.
11236
11237         Tests for module 'unistr/u8-next'.
11238         * modules/unistr/u8-next-tests: New file.
11239         * tests/unistr/test-u8-next.c: New file.
11240
11241         Tests for module 'unistr/u32-strmbtouc'.
11242         * modules/unistr/u32-strmbtouc-tests: New file.
11243         * tests/unistr/test-u32-strmbtouc.c: New file.
11244
11245         Tests for module 'unistr/u16-strmbtouc'.
11246         * modules/unistr/u16-strmbtouc-tests: New file.
11247         * tests/unistr/test-u16-strmbtouc.c: New file.
11248
11249         Tests for module 'unistr/u8-strmbtouc'.
11250         * modules/unistr/u8-strmbtouc-tests: New file.
11251         * tests/unistr/test-u8-strmbtouc.c: New file.
11252
11253         Tests for module 'unistr/u32-strmblen'.
11254         * modules/unistr/u32-strmblen-tests: New file.
11255         * tests/unistr/test-u32-strmblen.c: New file.
11256
11257         Tests for module 'unistr/u16-strmblen'.
11258         * modules/unistr/u16-strmblen-tests: New file.
11259         * tests/unistr/test-u16-strmblen.c: New file.
11260
11261         Tests for module 'unistr/u8-strmblen'.
11262         * modules/unistr/u8-strmblen-tests: New file.
11263         * tests/unistr/test-u8-strmblen.c: New file.
11264
11265         Tests for module 'unistr/u32-cpy-alloc'.
11266         * modules/unistr/u32-cpy-alloc-tests: New file.
11267         * tests/unistr/test-u32-cpy-alloc.c: New file.
11268
11269         Tests for module 'unistr/u16-cpy-alloc'.
11270         * modules/unistr/u16-cpy-alloc-tests: New file.
11271         * tests/unistr/test-u16-cpy-alloc.c: New file.
11272
11273         Tests for module 'unistr/u8-cpy-alloc'.
11274         * modules/unistr/u8-cpy-alloc-tests: New file.
11275         * tests/unistr/test-u8-cpy-alloc.c: New file.
11276         * tests/unistr/test-cpy-alloc.h: New file.
11277
11278         Tests for module 'unistr/u32-mbsnlen'.
11279         * modules/unistr/u32-mbsnlen-tests: New file.
11280         * tests/unistr/test-u32-mbsnlen.c: New file.
11281
11282         Tests for module 'unistr/u16-mbsnlen'.
11283         * modules/unistr/u16-mbsnlen-tests: New file.
11284         * tests/unistr/test-u16-mbsnlen.c: New file.
11285
11286         Tests for module 'unistr/u8-mbsnlen'.
11287         * modules/unistr/u8-mbsnlen-tests: New file.
11288         * tests/unistr/test-u8-mbsnlen.c: New file.
11289
11290         Tests for module 'unistr/u32-chr'.
11291         * modules/unistr/u32-chr-tests: New file.
11292         * tests/unistr/test-u32-chr.c: New file.
11293
11294         Tests for module 'unistr/u16-chr'.
11295         * modules/unistr/u16-chr-tests: New file.
11296         * tests/unistr/test-u16-chr.c: New file.
11297
11298         Tests for module 'unistr/u8-chr'.
11299         * modules/unistr/u8-chr-tests: New file.
11300         * tests/unistr/test-u8-chr.c: New file.
11301         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11302
11303         Tests for module 'unistr/u32-cmp2'.
11304         * modules/unistr/u32-cmp2-tests: New file.
11305         * tests/unistr/test-u32-cmp2.c: New file.
11306
11307         Tests for module 'unistr/u16-cmp2'.
11308         * modules/unistr/u16-cmp2-tests: New file.
11309         * tests/unistr/test-u16-cmp2.c: New file.
11310
11311         Tests for module 'unistr/u8-cmp2'.
11312         * modules/unistr/u8-cmp2-tests: New file.
11313         * tests/unistr/test-u8-cmp2.c: New file.
11314         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11315
11316         Tests for module 'unistr/u32-cmp'.
11317         * modules/unistr/u32-cmp-tests: New file.
11318         * tests/unistr/test-u32-cmp.c: New file.
11319
11320         Tests for module 'unistr/u16-cmp'.
11321         * modules/unistr/u16-cmp-tests: New file.
11322         * tests/unistr/test-u16-cmp.c: New file.
11323
11324         Tests for module 'unistr/u8-cmp'.
11325         * modules/unistr/u8-cmp-tests: New file.
11326         * tests/unistr/test-u8-cmp.c: New file.
11327         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11328
11329         Tests for module 'unistr/u32-set'.
11330         * modules/unistr/u32-set-tests: New file.
11331         * tests/unistr/test-u32-set.c: New file.
11332
11333         Tests for module 'unistr/u16-set'.
11334         * modules/unistr/u16-set-tests: New file.
11335         * tests/unistr/test-u16-set.c: New file.
11336
11337         Tests for module 'unistr/u8-set'.
11338         * modules/unistr/u8-set-tests: New file.
11339         * tests/unistr/test-u8-set.c: New file.
11340         * tests/unistr/test-set.h: New file.
11341
11342         Tests for module 'unistr/u32-move'.
11343         * modules/unistr/u32-move-tests: New file.
11344         * tests/unistr/test-u32-move.c: New file.
11345
11346         Tests for module 'unistr/u16-move'.
11347         * modules/unistr/u16-move-tests: New file.
11348         * tests/unistr/test-u16-move.c: New file.
11349
11350         Tests for module 'unistr/u8-move'.
11351         * modules/unistr/u8-move-tests: New file.
11352         * tests/unistr/test-u8-move.c: New file.
11353         * tests/unistr/test-move.h: New file.
11354
11355         Tests for module 'unistr/u32-cpy'.
11356         * modules/unistr/u32-cpy-tests: New file.
11357         * tests/unistr/test-u32-cpy.c: New file.
11358
11359         Tests for module 'unistr/u16-cpy'.
11360         * modules/unistr/u16-cpy-tests: New file.
11361         * tests/unistr/test-u16-cpy.c: New file.
11362
11363         Tests for module 'unistr/u8-cpy'.
11364         * modules/unistr/u8-cpy-tests: New file.
11365         * tests/unistr/test-u8-cpy.c: New file.
11366         * tests/unistr/test-cpy.h: New file.
11367
11368 2010-01-09  Bruno Haible  <bruno@clisp.org>
11369
11370         Tests for module 'unistr/u32-uctomb'.
11371         * modules/unistr/u32-uctomb-tests: New file.
11372         * tests/unistr/test-u32-uctomb.c: New file.
11373
11374         Tests for module 'unistr/u16-uctomb'.
11375         * modules/unistr/u16-uctomb-tests: New file.
11376         * tests/unistr/test-u16-uctomb.c: New file.
11377
11378         Tests for module 'unistr/u8-uctomb'.
11379         * modules/unistr/u8-uctomb-tests: New file.
11380         * tests/unistr/test-u8-uctomb.c: New file.
11381
11382         Tests for module 'unistr/u32-mbtoucr'.
11383         * modules/unistr/u32-mbtoucr-tests: New file.
11384         * tests/unistr/test-u32-mbtoucr.c: New file.
11385
11386         Tests for module 'unistr/u16-mbtoucr'.
11387         * modules/unistr/u16-mbtoucr-tests: New file.
11388         * tests/unistr/test-u16-mbtoucr.c: New file.
11389
11390         Tests for module 'unistr/u8-mbtoucr'.
11391         * modules/unistr/u8-mbtoucr-tests: New file.
11392         * tests/unistr/test-u8-mbtoucr.c: New file.
11393
11394         Tests for module 'unistr/u32-mbtouc'.
11395         * modules/unistr/u32-mbtouc-tests: New file.
11396         * tests/unistr/test-u32-mbtouc.c: New file.
11397
11398         Tests for module 'unistr/u16-mbtouc'.
11399         * modules/unistr/u16-mbtouc-tests: New file.
11400         * tests/unistr/test-u16-mbtouc.c: New file.
11401
11402         Tests for module 'unistr/u8-mbtouc'.
11403         * modules/unistr/u8-mbtouc-tests: New file.
11404         * tests/unistr/test-u8-mbtouc.c: New file.
11405
11406         Tests for module 'unistr/u32-mbtouc-unsafe'.
11407         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11408         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11409         * tests/unistr/test-u32-mbtouc.h: New file.
11410
11411         Tests for module 'unistr/u16-mbtouc-unsafe'.
11412         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11413         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11414         * tests/unistr/test-u16-mbtouc.h: New file.
11415
11416         Tests for module 'unistr/u8-mbtouc-unsafe'.
11417         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11418         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11419         * tests/unistr/test-u8-mbtouc.h: New file.
11420
11421         Tests for module 'unistr/u32-mblen'.
11422         * modules/unistr/u32-mblen-tests: New file.
11423         * tests/unistr/test-u32-mblen.c: New file.
11424
11425         Tests for module 'unistr/u16-mblen'.
11426         * modules/unistr/u16-mblen-tests: New file.
11427         * tests/unistr/test-u16-mblen.c: New file.
11428
11429         Tests for module 'unistr/u8-mblen'.
11430         * modules/unistr/u8-mblen-tests: New file.
11431         * tests/unistr/test-u8-mblen.c: New file.
11432
11433         Tests for module 'unistr/u32-to-u16'.
11434         * modules/unistr/u32-to-u16-tests: New file.
11435         * tests/unistr/test-u32-to-u16.c: New file.
11436
11437         Tests for module 'unistr/u32-to-u8'.
11438         * modules/unistr/u32-to-u8-tests: New file.
11439         * tests/unistr/test-u32-to-u8.c: New file.
11440
11441         Tests for module 'unistr/u16-to-u32'.
11442         * modules/unistr/u16-to-u32-tests: New file.
11443         * tests/unistr/test-u16-to-u32.c: New file.
11444
11445         Tests for module 'unistr/u16-to-u8'.
11446         * modules/unistr/u16-to-u8-tests: New file.
11447         * tests/unistr/test-u16-to-u8.c: New file.
11448
11449         Tests for module 'unistr/u8-to-u32'.
11450         * modules/unistr/u8-to-u32-tests: New file.
11451         * tests/unistr/test-u8-to-u32.c: New file.
11452
11453         Tests for module 'unistr/u8-to-u16'.
11454         * modules/unistr/u8-to-u16-tests: New file.
11455         * tests/unistr/test-u8-to-u16.c: New file.
11456
11457         Tests for module 'unistr/u32-check'.
11458         * modules/unistr/u32-check-tests: New file.
11459         * tests/unistr/test-u32-check.c: New file.
11460
11461         Tests for module 'unistr/u16-check'.
11462         * modules/unistr/u16-check-tests: New file.
11463         * tests/unistr/test-u16-check.c: New file.
11464
11465         Tests for module 'unistr/u8-check'.
11466         * modules/unistr/u8-check-tests: New file.
11467         * tests/unistr/test-u8-check.c: New file.
11468
11469         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11470         (category_equals): New function.
11471         (main): Add more tests.
11472         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11473
11474         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11475
11476 2010-01-10  Bruno Haible  <bruno@clisp.org>
11477
11478         unistr/u*-strcoll: Try harder to distinguish different strings.
11479         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11480         compare s1 and s2 to see if they are different.
11481
11482 2010-01-10  Bruno Haible  <bruno@clisp.org>
11483
11484         unistr/u*-stpncpy: Fix the return value.
11485         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11486         description of the return value consistent with stpncpy in glibc.
11487         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11488         written non-NUL unit.
11489
11490 2010-01-10  Bruno Haible  <bruno@clisp.org>
11491
11492         unistr/u*-next: Add missing dependencies.
11493         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11494         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11495         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11496
11497 2010-01-10  Bruno Haible  <bruno@clisp.org>
11498
11499         unistr/u8-mbsnlen: Fix return value for incomplete character.
11500         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11501         u8_mblen.
11502         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11503         Remove unistr/u8-mblen.
11504         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11505         u16_mblen.
11506         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11507         Remove unistr/u16-mblen.
11508
11509 2010-01-10  Bruno Haible  <bruno@clisp.org>
11510
11511         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11512         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11513         Reported by Brian Gough <bjg@gnu.org> and
11514         Chris Clayton <chris2553@googlemail.com> via
11515         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11516
11517 2010-01-09  Bruno Haible  <bruno@clisp.org>
11518
11519         unistr/u16-to-u32: Reject invalid input.
11520         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11521         u16_mbtouc.
11522         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11523         Remove unistr/u16-mbtouc.
11524
11525         unistr/u16-to-u8: Reject invalid input.
11526         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11527         u16_mbtouc.
11528         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11529         Remove unistr/u16-mbtouc.
11530
11531         unistr/u8-to-u32: Reject invalid input.
11532         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11533         u8_mbtouc.
11534         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11535         Remove unistr/u8-mbtouc.
11536
11537         unistr/u8-to-u16: Reject invalid input.
11538         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11539         u8_mbtouc.
11540         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11541         Remove unistr/u8-mbtouc.
11542
11543 2010-01-09  Bruno Haible  <bruno@clisp.org>
11544
11545         Tests for module 'getlogin'.
11546         * modules/getlogin-tests: New file.
11547         * tests/test-getlogin.c: New file.
11548
11549         New module 'getlogin'.
11550         * lib/unistd.in.h (getlogin): New declaration.
11551         * lib/getlogin.c: New file.
11552         * m4/getlogin.m4: New file.
11553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11554         HAVE_GETLOGIN.
11555         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11556         HAVE_GETLOGIN.
11557         * modules/getlogin: New file.
11558         * doc/posix-functions/getlogin.texi: Mention the new module.
11559         Reported by John W. Eaton <jwe@gnu.org>.
11560
11561 2010-01-09  Bruno Haible  <bruno@clisp.org>
11562
11563         getlogin_r: Support for native Windows.
11564         * lib/getlogin_r.c: Include <windows.h>
11565         (getlogin_r): Implement for native Windows.
11566         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11567         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11568         via John W. Eaton <jwe@gnu.org>.
11569
11570 2010-01-09  Bruno Haible  <bruno@clisp.org>
11571
11572         getlogin_r: Small fixes.
11573         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11574         succeeds.
11575         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11576         before testing whether getlogin_r is declared. No need to set
11577         HAVE_DECL_GETLOGIN_R to 1.
11578         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11579
11580 2010-01-09  Bruno Haible  <bruno@clisp.org>
11581
11582         * lib/unistd.in.h (getlogin_r): Add comment.
11583
11584 2010-01-09  Bruno Haible  <bruno@clisp.org>
11585
11586         Tests for module 'getlogin_r'.
11587         * modules/getlogin_r-tests: New file.
11588         * tests/test-getlogin_r.c: New file.
11589
11590 2010-01-09  Jim Meyering  <meyering@redhat.com>
11591
11592         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11593         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11594         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11595
11596 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11597
11598         * lib/dup2.c (rpl_dup2): Improve comment.
11599
11600 2010-01-08  Eric Blake  <ebb9@byu.net>
11601
11602         maint.mk: allow packages to add makefile @@ exceptions
11603         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11604         (sc_makefile_check): Rename...
11605         (sc_makefile_at_at_check): ...to this, and use hook.
11606
11607         dup2: work around mingw bug
11608         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11609         Reported by Simon Josefsson.
11610
11611 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11612
11613         glob: Fix C++ compilation.
11614         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11615         C++.
11616
11617 2010-01-07  Bruno Haible  <bruno@clisp.org>
11618
11619         Fix indentation of wctype.in.h, broken since 2007-01-06.
11620         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11621
11622 2010-01-07  Bruno Haible  <bruno@clisp.org>
11623
11624         mbslen: Avoid collision with system function.
11625         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11626         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11627         * m4/mbslen.m4: New file.
11628         * modules/mbslen (Files): Add it.
11629         (configure.ac): Invoke gl_MBSLEN.
11630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11631         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11632         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11633         via Ian Beckwith <ianb@erislabs.net>.
11634
11635 2010-01-07  Bruno Haible  <bruno@clisp.org>
11636
11637         dirent: Document the last fix.
11638         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11639
11640 2010-01-07  Bruno Haible  <bruno@clisp.org>
11641
11642         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11643         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11644         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11645         va_list are defined.
11646         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11647         Reported by Eric Blake.
11648
11649 2010-01-07  Bruno Haible  <bruno@clisp.org>
11650
11651         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11652         * modules/xlist (Depends-on): Add 'list',
11653         * modules/xoset (Depends-on): Add 'oset'.
11654         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11655
11656 2010-01-07  Bruno Haible  <bruno@clisp.org>
11657
11658         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11659         * doc/posix-functions/strncasecmp.texi: Likewise.
11660
11661 2010-01-07  Bruno Haible  <bruno@clisp.org>
11662
11663         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11664
11665 2010-01-07  John W. Eaton  <jwe@octave.org>
11666
11667         wctype: allow C++ use
11668         * lib/wctype.in.h: Add extern "C" block for C++.
11669
11670 2010-01-06  Eric Blake  <ebb9@byu.net>
11671
11672         maint.mk: detect incorrect GFDL usage
11673         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11674
11675 2010-01-06  Jim Meyering  <meyering@redhat.com>
11676         and Eric Blake  <ebb9@byu.net>
11677
11678         maint.mk: ignore multi-line copyright in NEWS
11679         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11680
11681 2010-01-06  Eric Blake  <ebb9@byu.net>
11682
11683         select: add missing dependency
11684         * modules/select-tests (Depends-on): Move sockets dependency...
11685         * modules/select (Depends-on): ...here.
11686         Reported by Ian Beckwith.
11687
11688         doc: regenerate INSTALL
11689         * doc/INSTALL: Reflect recent autoconf update.
11690         * doc/INSTALL.ISO: Likewise.
11691         * doc/INSTALL.UTF-8: Likewise.
11692
11693         pread: fix compilation on glibc
11694         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11695         Reported by Ralf Wildenhues.
11696
11697         dirent: fix test failure
11698         * lib/dirent.in.h (includes): Guarantee ino_t.
11699         Reported by Ralf Wildenhues.
11700
11701 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11702
11703         linkat, renameat: avoid bad free
11704         * lib/at-func2.c (at_func2): Fix typo.
11705         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11706
11707 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11708
11709         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11710         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11711         to avoid failure of symlink test later.
11712
11713 2010-01-06  Eric Blake  <ebb9@byu.net>
11714
11715         stdio, unistd: guarantee ssize_t
11716         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11717         2008 are exposed when needed.
11718         * lib/stdio.in.h (includes): Likewise.
11719         Reported by Ralf Wildenhues.
11720
11721 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11722
11723         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11724         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11725         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11726
11727 2010-01-06  Jim Meyering  <meyering@redhat.com>
11728
11729         readtokens: this module *does* require xalloc.h
11730         It uses only functions that were omitted by the old syntax-check rule.
11731         * lib/readtokens.c: Include "xalloc.h" once again.
11732         * modules/readtokens (Depends-on): Add xalloc.
11733         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11734
11735 2010-01-05  Eric Blake  <ebb9@byu.net>
11736
11737         maint: support 'make announcement' from a VPATH build
11738         * top/maint.mk (announcement): Look for correct NEWS file.
11739
11740 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11741
11742         utimens (fdutimens): ignore a negative FD, per contract
11743         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11744         when we have a valid file descriptor.  Otherwise, using a brand
11745         new glibc (with just-patched futimens that now fails with EBADF)
11746         would cause this function to fail with ENOSYS.
11747         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11748         See also http://bugzilla.redhat.com/552320.
11749
11750 2010-01-05  Eric Blake  <ebb9@byu.net>
11751
11752         strcase: document what it provides
11753         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11754         gnulib module.
11755         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11756         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11757
11758 2010-01-05  Jim Meyering  <meyering@redhat.com>
11759
11760         maint: remove useless inclusions of "xalloc.h"
11761         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11762         * lib/readtokens.c: Likewise.
11763         * lib/same.c: Likewise.
11764         * modules/getloadavg (Depends-on): Remove xalloc.
11765         * modules/readtokens: Likewise.
11766         * modules/same: Likewise.
11767
11768         maint.mk: include 4 more function names in alloca.h-checking regexp
11769         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11770         regexp.  Before, we would give a false-positive (saying alloca.h
11771         is included unnecessarily) when the only uses involved omitted symbols.
11772
11773         xalloc.h: use consistent formatting
11774         * lib/xalloc.h: Move declarations to start in the first column.
11775
11776 2010-01-05  Eric Blake  <ebb9@byu.net>
11777
11778         mkdir: avoid xalloc
11779         * lib/mkdir.c (includes): Drop unused header.
11780         Reported by John W. Eaton.
11781
11782 2010-01-04  Jim Meyering  <meyering@redhat.com>
11783
11784         nl_langinfo: avoid configure-time syntax error
11785         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11786         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11787         the empty string.  Don't let that provoke a shell syntax error.
11788
11789         regcomp, regexec, fnmatch: avoid array bounds read error
11790         * lib/regcomp.c (build_equiv_class): From glibc:
11791         Use only the low 24 bits of a findidx return value as an index
11792         into the weights array.  Patch by Ulrich Drepper:
11793         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11794         * lib/regexec.c (check_node_accept_bytes): Likewise.
11795         * lib/fnmatch_loop.c (FCT): Likewise.
11796
11797         regcomp: skip collseq lookup when there are no rules
11798         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11799         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11800
11801         regcomp: recognize ill-formed { } expressions
11802         * lib/regcomp.c (parse_dup_op): From glibc:
11803         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11804
11805         regcomp: fix typo in comment
11806         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11807         s/satisfy/satisfies/.
11808
11809         regcomp: sync from glibc: remove dead store
11810         * lib/regcomp.c (duplicate_node_closure): Remove useless
11811         search_duplicated_node call and dead store.
11812
11813         regcomp: sync from glibc; always use nl_langinfo
11814         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11815         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11816         * modules/regex (Depends-on): Add nl_langinfo.
11817
11818 2010-01-04  Eric Blake  <ebb9@byu.net>
11819
11820         fdopendir: fix configure test
11821         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11822
11823 2010-01-01  Bruno Haible  <bruno@clisp.org>
11824
11825         wchar: Remove unused configure check.
11826         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11827
11828 2010-01-01  Eric Blake  <ebb9@byu.net>
11829
11830         headers: make check of system header explicit
11831         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11832         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11833         ourselves.
11834         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11837         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11838         internals.
11839         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11840         missing.
11841         Suggested by Bruno Haible.
11842
11843 2010-01-01  Jim Meyering  <meyering@redhat.com>
11844
11845         ChangeLog: tweak to eliminate unnecessary copyright line
11846         * ChangeLog: Remove a copyright line that was mistakenly updated
11847         by today's update-copyright run.  Reported by Eric Blake.
11848
11849         test-update-copyright: don't let envvar setting cause test failure
11850         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11851
11852 2010-01-01  Bruno Haible  <bruno@clisp.org>
11853
11854         localename: Avoid gcc warning.
11855         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11856         function if it is not used.
11857
11858 2010-01-01  Jim Meyering  <meyering@redhat.com>
11859
11860         update nearly all FSF copyright year lists to include 2010
11861         Use the same procedure as for 2009, outlined in
11862         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
11863
11864         version-etc: set COPYRIGHT_YEAR to 2010
11865         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
11866
11867 2009-12-31  Eric Blake  <ebb9@byu.net>
11868
11869         doc: correct availability of cygwin 1.5.x getopt
11870         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
11871         variables.
11872         * doc/posix-functions/opterr.texi (opterr): Likewise.
11873         * doc/posix-functions/optind.texi (optind): Likewise.
11874         * doc/posix-functions/optopt.texi (optopt): Likewise.
11875         * doc/posix-functions/tzname.texi (tzname): Likewise.
11876
11877         openat: update maintainer
11878         * modules/openat (Maintainer): Add myself.
11879
11880         utimens: avoid shadowing warning
11881         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
11882         buffers into one, to avoid shadowing, as well as avoiding a
11883         redundant stat.
11884         Reported by Jim Meyering.
11885
11886         test-dup2: avoid compiler warning
11887         * tests/test-dup2.c (is_inheritable): Only define if used.
11888
11889 2010-01-01  Bruno Haible  <bruno@clisp.org>
11890
11891         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
11892         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
11893         defined, use wctomb instead of wcrtomb.
11894
11895 2010-01-01  Bruno Haible  <bruno@clisp.org>
11896
11897         iconv: Reject native Solaris iconv.
11898         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
11899         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
11900
11901 2009-12-31  Bruno Haible  <bruno@clisp.org>
11902
11903         * tests/test-signal.c (main): Remove test of 'SIG'.
11904
11905 2009-12-31  Bruno Haible  <bruno@clisp.org>
11906
11907         spawn: Fix incomplete fix.
11908         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11909         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11910         warnings for GNULIB_POSIXCHECK again.
11911         Reported by Eric Blake.
11912
11913 2009-12-31  Bruno Haible  <bruno@clisp.org>
11914
11915         Avoid namespace pollution on glibc systems.
11916         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
11917         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
11918         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
11919         glibc systems.
11920
11921 2009-12-31  Bruno Haible  <bruno@clisp.org>
11922
11923         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
11924         (gl_REPLACE_WCHAR_H): Turn into a no-op.
11925         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
11926         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11927         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11928         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11929         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11930
11931 2009-12-31  Bruno Haible  <bruno@clisp.org>
11932
11933         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
11934         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
11935         afterwards.
11936
11937 2009-12-31  Bruno Haible  <bruno@clisp.org>
11938
11939         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
11940         SYS_UTSNAME_H.
11941
11942 2009-12-31  Bruno Haible  <bruno@clisp.org>
11943
11944         spawn: Fix misapplied patch.
11945         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
11946         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
11947         warnings for GNULIB_POSIXCHECK.
11948
11949 2009-12-31  Bruno Haible  <bruno@clisp.org>
11950
11951         times: Update after sys_times changed.
11952         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
11953         * modules/times (Files): Add it.
11954         (configure.ac): Invoke gl_FUNC_TIMES.
11955
11956 2009-12-31  Bruno Haible  <bruno@clisp.org>
11957
11958         Use AC_C_INLINE where necessary.
11959         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
11960         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
11961         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11962         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
11963         * m4/mbfile.m4 (gl_MBFILE): Likewise.
11964         * m4/mbiter.m4 (gl_MBITER): Likewise.
11965         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11966         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11967         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
11968         * modules/u64 (configure.ac): Likewise.
11969
11970 2009-12-31  Bruno Haible  <bruno@clisp.org>
11971
11972         Use AC_C_INLINE instead of module 'inline' where possible.
11973         * modules/inline (Description): Clarify purpose.
11974         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
11975         * modules/count-one-bits (Depends-on): Remove inline.
11976         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
11977         * modules/openat (Depends-on): Remove inline.
11978         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
11979         instead of depending on module 'inline'.
11980         * modules/filevercmp (Depends-on, configure.ac): Likewise.
11981         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
11982         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
11983         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
11984         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
11985         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
11986         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
11987         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
11988         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
11989         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
11990         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
11991         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
11992         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
11993         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
11994         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
11995         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
11996         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
11997         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
11998         Likewise.
11999         * modules/unictype/property-ascii-hex-digit (Depends-on,
12000         configure.ac): Likewise.
12001         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12002         configure.ac): Likewise.
12003         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12004         configure.ac): Likewise.
12005         * modules/unictype/property-bidi-block-separator (Depends-on,
12006         configure.ac): Likewise.
12007         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12008         configure.ac): Likewise.
12009         * modules/unictype/property-bidi-common-separator (Depends-on,
12010         configure.ac): Likewise.
12011         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12012         Likewise.
12013         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12014         configure.ac): Likewise.
12015         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12016         configure.ac): Likewise.
12017         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12018         configure.ac): Likewise.
12019         * modules/unictype/property-bidi-european-digit (Depends-on,
12020         configure.ac): Likewise.
12021         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12022         configure.ac): Likewise.
12023         * modules/unictype/property-bidi-left-to-right (Depends-on,
12024         configure.ac): Likewise.
12025         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12026         configure.ac): Likewise.
12027         * modules/unictype/property-bidi-other-neutral (Depends-on,
12028         configure.ac): Likewise.
12029         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12030         Likewise.
12031         * modules/unictype/property-bidi-segment-separator (Depends-on,
12032         configure.ac): Likewise.
12033         * modules/unictype/property-bidi-whitespace (Depends-on,
12034         configure.ac): Likewise.
12035         * modules/unictype/property-combining (Depends-on, configure.ac):
12036         Likewise.
12037         * modules/unictype/property-composite (Depends-on, configure.ac):
12038         Likewise.
12039         * modules/unictype/property-currency-symbol (Depends-on,
12040         configure.ac): Likewise.
12041         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12042         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12043         Likewise.
12044         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12045         configure.ac): Likewise.
12046         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12047         Likewise.
12048         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12049         Likewise.
12050         * modules/unictype/property-extender (Depends-on, configure.ac):
12051         Likewise.
12052         * modules/unictype/property-format-control (Depends-on, configure.ac):
12053         Likewise.
12054         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12055         Likewise.
12056         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12057         Likewise.
12058         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12059         Likewise.
12060         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12061         Likewise.
12062         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12063         Likewise.
12064         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12065         Likewise.
12066         * modules/unictype/property-id-start (Depends-on, configure.ac):
12067         Likewise.
12068         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12069         Likewise.
12070         * modules/unictype/property-ids-binary-operator (Depends-on,
12071         configure.ac): Likewise.
12072         * modules/unictype/property-ids-trinary-operator (Depends-on,
12073         configure.ac): Likewise.
12074         * modules/unictype/property-ignorable-control (Depends-on,
12075         configure.ac): Likewise.
12076         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12077         Likewise.
12078         * modules/unictype/property-join-control (Depends-on, configure.ac):
12079         Likewise.
12080         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12081         Likewise.
12082         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12083         Likewise.
12084         * modules/unictype/property-logical-order-exception (Depends-on,
12085         configure.ac): Likewise.
12086         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12087         Likewise.
12088         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12089         * modules/unictype/property-non-break (Depends-on, configure.ac):
12090         Likewise.
12091         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12092         Likewise.
12093         * modules/unictype/property-numeric (Depends-on, configure.ac):
12094         Likewise.
12095         * modules/unictype/property-other-alphabetic (Depends-on,
12096         configure.ac): Likewise.
12097         * modules/unictype/property-other-default-ignorable-code-point
12098         (Depends-on, configure.ac): Likewise.
12099         * modules/unictype/property-other-grapheme-extend (Depends-on,
12100         configure.ac): Likewise.
12101         * modules/unictype/property-other-id-continue (Depends-on,
12102         configure.ac): Likewise.
12103         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12104         Likewise.
12105         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12106         Likewise.
12107         * modules/unictype/property-other-math (Depends-on, configure.ac):
12108         Likewise.
12109         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12110         Likewise.
12111         * modules/unictype/property-paired-punctuation (Depends-on,
12112         configure.ac): Likewise.
12113         * modules/unictype/property-paragraph-separator (Depends-on,
12114         configure.ac): Likewise.
12115         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12116         Likewise.
12117         * modules/unictype/property-pattern-white-space (Depends-on,
12118         configure.ac): Likewise.
12119         * modules/unictype/property-private-use (Depends-on, configure.ac):
12120         Likewise.
12121         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12122         Likewise.
12123         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12124         Likewise.
12125         * modules/unictype/property-radical (Depends-on, configure.ac):
12126         Likewise.
12127         * modules/unictype/property-sentence-terminal (Depends-on,
12128         configure.ac): Likewise.
12129         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12130         Likewise.
12131         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12132         * modules/unictype/property-terminal-punctuation (Depends-on,
12133         configure.ac): Likewise.
12134         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12135         Likewise.
12136         * modules/unictype/property-unassigned-code-value (Depends-on,
12137         configure.ac): Likewise.
12138         * modules/unictype/property-unified-ideograph (Depends-on,
12139         configure.ac): Likewise.
12140         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12141         Likewise.
12142         * modules/unictype/property-variation-selector (Depends-on,
12143         configure.ac): Likewise.
12144         * modules/unictype/property-white-space (Depends-on, configure.ac):
12145         Likewise.
12146         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12147         Likewise.
12148         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12149         Likewise.
12150         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12151         Likewise.
12152         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12153         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12154         Likewise.
12155
12156 2009-12-31  Bruno Haible  <bruno@clisp.org>
12157
12158         Remove unnecessary AC_C_INLINE invocation.
12159         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12160         since 2009-08-21.
12161
12162 2009-12-31  Jim Meyering  <meyering@redhat.com>
12163
12164         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12165         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12166         With this change, we can all remove the gpg_key_ID = ... definition
12167         from our respective cfg.mk files.
12168
12169         maint.mk: create announcement template in ~/, not in /tmp
12170         * top/maint.mk (emit_upload_commands): Adjust.
12171         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12172         Remove temporary file, .ci-msg.
12173
12174 2009-12-31  Eric Blake  <ebb9@byu.net>
12175
12176         link-warning: always build headers with link warnings
12177         * modules/arpa_inet (Makefile.am): Always build replacement
12178         header.
12179         * modules/ctype (Makefile.am): Likewise.
12180         * modules/dirent (Makefile.am): Likewise.
12181         * modules/inttypes (Makefile.am): Likewise.
12182         * modules/langinfo (Makefile.am): Likewise.
12183         * modules/locale (Makefile.am): Likewise.
12184         * modules/spawn (Makefile.am): Likewise.
12185         * modules/sys_file (Makefile.am): Likewise.
12186         * modules/sys_ioctl (Makefile.am): Likewise.
12187         * modules/sys_select (Makefile.am): Likewise.
12188         * modules/sys_socket (Makefile.am): Likewise.
12189         * modules/sys_times (Makefile.am): Likewise.
12190         * modules/sys_utsname (Makefile.am): Likewise.
12191         * modules/sys_wait (Makefile.am): Likewise.
12192         * modules/wchar (Makefile.am): Likewise.
12193         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12194         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12195         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12196         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12197         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12198         Likewise.
12199         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12200         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12201         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12202         Likewise.
12203         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12204         Likewise.
12205         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12206         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12207         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12209         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12210         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12211         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12212         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12213         (gl_WCHAR_H_DEFAULTS): Likewise.
12214
12215 2009-12-31  Eric Blake  <ebb9@byu.net>
12216
12217         signal, spawn: use link warnings
12218         * lib/signal.in.h (sigset_t): Make unconditional.
12219         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12220         (sigpending, sigprocmask, sigaction): Add link warnings.
12221         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12222         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12223         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12224         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12225         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12226         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12227         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12228         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12229         (posix_spawn_file_actions_destroy)
12230         (posix_spawn_file_actions_addopen)
12231         (posix_spawn_file_actions_addclose)
12232         (posix_spawn_file_actions_adddup2): Likewise.
12233         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12234         * tests/test-signal.c (main): Enhance test.
12235
12236         spawn: improve wrapper support
12237         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12238         (gl_SPAWN_H_DEFAULTS): New defaults.
12239         * modules/spawn (Makefile.am): Substitute them.
12240         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12241         Only declare if missing or broken.
12242
12243         sys_times, sys_utsname: use include_next
12244         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12245         header.
12246         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12248         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12249         * modules/sys_times (Depends-on): Add include_next.
12250         (Makefile.am): Substitute additional values.
12251         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12252         * lib/sys_times.in.h (includes): Include native header, if
12253         available.
12254         * lib/sys_utsname.in.h (includes): Likewise.
12255         * tests/test-sys_times.c (main): Enhance test.
12256
12257         fdutimensat: revert prior patch
12258         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12259         utimens.h.
12260         Reported by Bruno Haible.
12261
12262 2009-12-30  Eric Blake  <ebb9@byu.net>
12263
12264         sys_wait: drop link-warning dependency
12265         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12266         link-warning efforts.
12267         * lib/sys_wait.in.h: Likewise.
12268
12269         fdutimensat: remove bogus dependency
12270         * modules/fdutimensat (Depends-on): Drop inline.
12271
12272         unistd: fix typo
12273         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12274
12275 2009-12-30  Bruno Haible  <bruno@clisp.org>
12276
12277         Fix compilation error with Solaris cc.
12278         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12279         * lib/unicase/u16-is-invariant.c: Likewise.
12280         * lib/unicase/u32-is-invariant.c: Likewise.
12281         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12282
12283 2009-12-30  Bruno Haible  <bruno@clisp.org>
12284
12285         Fix test crash.
12286         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12287         locales.
12288         Reported by Simon Josefsson <simon@josefsson.org>.
12289
12290 2009-12-30  Bruno Haible  <bruno@clisp.org>
12291
12292         Fix compilation error on most platforms.
12293         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12294         Reported by Simon Josefsson <simon@josefsson.org>
12295         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12296
12297 2009-12-30  Eric Blake  <ebb9@byu.net>
12298
12299         futimens, utimensat: work around ntfs-3g bug
12300         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12301         a ctime bug is present, and expand workaround to cover ntfs-3g.
12302         * lib/utimens.c (fdutimens, lutimens): Likewise.
12303         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12304         (validate_timespec): Adjust return value.
12305         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12306         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12307         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12308
12309 2009-12-29  Eric Blake  <ebb9@byu.net>
12310
12311         link-warning: make usage consistent
12312         * modules/ctype (Depends-on): Add link-warning.
12313         (Makefile.am): Update rules accordingly.
12314         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12315         * modules/locale (Depends-on, Makefile.am): Likewise.
12316         * modules/sys_file (Makefile.am): Likewise.
12317         * modules/getopt-posix (Makefile.am): Delete unused link warning
12318         efforts.
12319         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12320         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12321         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12322         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12323
12324         stdio: remove unused variables
12325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12326         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12327         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12328
12329         tests: test more substitute headers
12330         * modules/ctype-tests: New file.
12331         * modules/dirent-tests: Likewise.
12332         * modules/spawn-tests: Likewise.
12333         * modules/sys_file-tests: Likewise.
12334         * modules/sys_ioctl-tests: Likewise.
12335         * modules/sys_wait-tests: Likewise.
12336         * tests/test-ctype.c: Likewise.
12337         * tests/test-dirent.c: Likewise.
12338         * tests/test-spawn.c: Likewise.
12339         * tests/test-sys_file.c: Likewise.
12340         * tests/test-sys_ioctl.c: Likewise.
12341         * tests/test-sys_wait.c: Likewise.
12342         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12343         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12344         whether or not flock is in use.
12345
12346         tests: remove License section from module
12347         * modules/arpa_inet-tests: Remove unneeded section.
12348         * modules/byteswap-tests: Likewise.
12349         * modules/ceilf-tests: Likewise.
12350         * modules/ceill-tests: Likewise.
12351         * modules/crypto/des-tests: Likewise.
12352         * modules/crypto/gc-arcfour-tests: Likewise.
12353         * modules/crypto/gc-arctwo-tests: Likewise.
12354         * modules/crypto/gc-des-tests: Likewise.
12355         * modules/crypto/gc-hmac-md5-tests: Likewise.
12356         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12357         * modules/crypto/gc-md2-tests: Likewise.
12358         * modules/crypto/gc-md4-tests: Likewise.
12359         * modules/crypto/gc-md5-tests: Likewise.
12360         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12361         * modules/crypto/gc-rijndael-tests: Likewise.
12362         * modules/crypto/gc-sha1-tests: Likewise.
12363         * modules/crypto/gc-tests: Likewise.
12364         * modules/crypto/md2-tests: Likewise.
12365         * modules/crypto/md4-tests: Likewise.
12366         * modules/fcntl-h-tests: Likewise.
12367         * modules/floorf-tests: Likewise.
12368         * modules/floorl-tests: Likewise.
12369         * modules/frexp-nolibm-tests: Likewise.
12370         * modules/frexp-tests: Likewise.
12371         * modules/frexpl-nolibm-tests: Likewise.
12372         * modules/frexpl-tests: Likewise.
12373         * modules/getaddrinfo-tests: Likewise.
12374         * modules/inttypes-tests: Likewise.
12375         * modules/isfinite-tests: Likewise.
12376         * modules/isinf-tests: Likewise.
12377         * modules/ldexpl-tests: Likewise.
12378         * modules/locale-tests: Likewise.
12379         * modules/math-tests: Likewise.
12380         * modules/netdb-tests: Likewise.
12381         * modules/netinet_in-tests: Likewise.
12382         * modules/printf-frexp-tests: Likewise.
12383         * modules/printf-frexpl-tests: Likewise.
12384         * modules/priv-set-tests: Likewise.
12385         * modules/random_r-tests: Likewise.
12386         * modules/round-tests: Likewise.
12387         * modules/roundf-tests: Likewise.
12388         * modules/roundl-tests: Likewise.
12389         * modules/search-tests: Likewise.
12390         * modules/select-tests: Likewise.
12391         * modules/signal-tests: Likewise.
12392         * modules/stdbool-tests: Likewise.
12393         * modules/stddef-tests: Likewise.
12394         * modules/stdint-tests: Likewise.
12395         * modules/stdio-tests: Likewise.
12396         * modules/stdlib-tests: Likewise.
12397         * modules/string-tests: Likewise.
12398         * modules/strings-tests: Likewise.
12399         * modules/sys_select-tests: Likewise.
12400         * modules/sys_socket-tests: Likewise.
12401         * modules/sys_stat-tests: Likewise.
12402         * modules/sys_time-tests: Likewise.
12403         * modules/sys_utsname-tests: Likewise.
12404         * modules/sysexits-tests: Likewise.
12405         * modules/time-tests: Likewise.
12406         * modules/trunc-tests: Likewise.
12407         * modules/truncf-tests: Likewise.
12408         * modules/truncl-tests: Likewise.
12409         * modules/tsearch-tests: Likewise.
12410         * modules/unistd-tests: Likewise.
12411         * modules/wchar-tests: Likewise.
12412         * modules/wctype-tests: Likewise.
12413
12414         tests: fix license on several tests
12415         * tests/test-des.c: Update to GPLv3+.
12416         * tests/test-flock.c: Likewise.
12417         * tests/test-fsync.c: Likewise.
12418         * tests/test-futimens.h: Likewise.
12419         * tests/test-gc-arcfour.c: Likewise.
12420         * tests/test-gc-arctwo.c: Likewise.
12421         * tests/test-gc-des.c: Likewise.
12422         * tests/test-gc-hmac-md5.c: Likewise.
12423         * tests/test-gc-hmac-sha1.c: Likewise.
12424         * tests/test-gc-md2.c: Likewise.
12425         * tests/test-gc-md4.c: Likewise.
12426         * tests/test-gc-md5.c: Likewise.
12427         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12428         * tests/test-gc-rijndael.c: Likewise.
12429         * tests/test-gc-sha1.c: Likewise.
12430         * tests/test-gc.c: Likewise.
12431         * tests/test-getcwd.c: Likewise.
12432         * tests/test-link.c: Likewise.
12433         * tests/test-link.h: Likewise.
12434         * tests/test-lutimens.h: Likewise.
12435         * tests/test-md2.c: Likewise.
12436         * tests/test-md4.c: Likewise.
12437         * tests/test-mkdir.h: Likewise.
12438         * tests/test-rename.c: Likewise.
12439         * tests/test-rename.h: Likewise.
12440         * tests/test-safe-alloc.c: Likewise.
12441         * tests/test-utimens-common.h: Likewise.
12442         * tests/test-utimens.h: Likewise.
12443
12444         maint: sync license texts
12445         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12446         * doc/gpl-3.0.texi: Revert copyright year update.
12447         * doc/lgpl-3.0.texi: Likewise.
12448
12449 2009-12-29  Jim Meyering  <meyering@redhat.com>
12450
12451         update nearly all FSF copyright year lists to include 2009
12452         The files named by the following are exempted:
12453             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12454               test -f "$dst" && { echo "$dst"; continue; }
12455               test -d "$dst" || continue
12456               echo "$dst"/$(basename "$src")
12457             done > exempt
12458             git ls-files tests/unictype >> exempt
12459         In the remaining files, convert to all-interval notation if
12460         - there is already at least one year interval like 2000-2003
12461         - the file is maintained by me
12462         - the file is in lib/uni*/, where that style already prevails
12463         Otherwise, use update-copyright's default.
12464
12465 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12466         and Eric Blake  <ebb9@byu.net>
12467
12468         tests: don't require debug system() to pass
12469         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12470         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12471         * tests/test-unlink.h (test_unlink_func): Likewise.
12472         * tests/test-fstatat.c (main): ...into callers.
12473         * tests/test-lstat.c (main): Likewise.
12474         * tests/test-rmdir.c (main): Likewise.
12475         * tests/test-unlink.c (main): Likewise.
12476         * tests/test-unlinkat.c (main): Likewise.
12477         * tests/test-areadlink-with-size.c (main): Don't require a
12478         debug-only system call to pass, aiding cross-testing to mingw.
12479         * tests/test-areadlink.c (main): Likewise.
12480         * tests/test-areadlinkat-with-size.c (main): Likewise.
12481         * tests/test-areadlinkat.c (main): Likewise.
12482         * tests/test-canonicalize-lgpl.c (main): Likewise.
12483         * tests/test-canonicalize.c (main): Likewise.
12484         * tests/test-chown.c (main): Likewise.
12485         * tests/test-fchownat.c (main): Likewise.
12486         * tests/test-lchown.c (main): Likewise.
12487         * tests/test-fdutimensat.c (main): Likewise.
12488         * tests/test-futimens.c (main): Likewise.
12489         * tests/test-link.c (main): Likewise.
12490         * tests/test-linkat.c (main): Likewise.
12491         * tests/test-mkdir.c (main): Likewise.
12492         * tests/test-mkdirat.c (main): Likewise.
12493         * tests/test-mkfifo.c (main): Likewise.
12494         * tests/test-mkfifoat.c (main): Likewise.
12495         * tests/test-mknod.c (main): Likewise.
12496         * tests/test-readlink.c (main): Likewise.
12497         * tests/test-remove.c (main): Likewise.
12498         * tests/test-rename.c (main): Likewise.
12499         * tests/test-renameat.c (main): Likewise.
12500         * tests/test-symlink.c (main): Likewise.
12501         * tests/test-symlinkat.c (main): Likewise.
12502         * tests/test-utimens.c (main): Likewise.
12503         * tests/test-utimensat.c (main): Likewise.
12504
12505 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12506
12507         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12508         on $(UNUSED_PARAMETER_H) to avoid build failure.
12509
12510 2009-12-28  Jim Meyering  <meyering@redhat.com>
12511
12512         update-copyright: you may specify a max. line length other than 72
12513         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12514
12515         maint: use consistent FSF copyright line syntax
12516         * lib/posixtm.c: Add missing comma in FSF copyright line.
12517         * lib/posixtm.h: Likewise.
12518         * lib/getugroups.c: Add missing ", Inc.".
12519
12520         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12521         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12522         FSF copyright line.  Remove trailing blanks.
12523
12524 2009-12-28  Eric Blake  <ebb9@byu.net>
12525
12526         test-dup2: reduce dependencies
12527         * modules/cloexec (Configure.ac): Set witness.
12528         * modules/dup2-tests (Depends-on): Drop cloexec.
12529         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12530         not present.
12531         Suggested by Bruno Haible.
12532
12533 2009-12-26  Bruno Haible  <bruno@clisp.org>
12534
12535         Remove an unneeded dependency.
12536         * modules/fseterr (Depends-on): Remove dup2.
12537
12538 2009-12-26  Eric Blake  <ebb9@byu.net>
12539
12540         tests: use macros.h in more places
12541         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12542         (ASSERT_STREAM): Provide default of stderr.
12543         * tests/test-dirent-safer.c: Include macros.h, using alternate
12544         stream for assertions.
12545         * tests/test-dup-safer.c: Likewise.
12546         * tests/test-freopen-safer.c: Likewise.
12547         * tests/test-getopt.c: Likewise.
12548         * tests/test-openat-safer.c: Likewise.
12549         * tests/test-pipe.c: Likewise.
12550         * tests/test-popen-safer.c: Likewise.
12551         * modules/dirent-safer-tests (Files): Include macros.h.
12552         * modules/unistd-safer-tests (Files): Likewise.
12553         * modules/freopen-safer-tests (Files): Likewise.
12554         * modules/getopt-posix-tests (Files): Likewise.
12555         * modules/openat-safer-tests (Files): Likewise.
12556         * modules/pipe-tests (Files): Likewise.
12557
12558 2009-12-26  Bruno Haible  <bruno@clisp.org>
12559
12560         javacomp: Portability fix.
12561         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12562         that it also works on Solaris.
12563
12564 2009-12-26  Bruno Haible  <bruno@clisp.org>
12565
12566         localename: Fix storage allocation of gl_locale_name_thread's result.
12567         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12568         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12569         all platforms that have 'uselocale'.
12570         (gl_locale_name_thread_unsafe): New function, extracted from
12571         gl_locale_name_thread.
12572         (gl_locale_name_thread): Call struniq on all platforms that have
12573         'uselocale'.
12574         * tests/test-localename.c (test_locale_name_thread): Check that the
12575         resulting strings are permanently allocated.
12576         * modules/localename-tests (Depends-on): Add strdup.
12577
12578 2009-12-26  Bruno Haible  <bruno@clisp.org>
12579
12580         * tests/test-localename.c (categories): Fill in the strings.
12581
12582 2009-12-26  Jim Meyering  <meyering@redhat.com>
12583
12584         isdir: complete the removal of m4/isdir.m4
12585         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12586
12587         isdir: clean up, since at least grep still uses it
12588         * lib/isdir.c: Include "isdir.h".
12589         (S_ISDIR): Remove now-unneeded definition.
12590         * modules/isdir (Files): Add lib/isdir.h.
12591         * lib/isdir.h: New file, with declaration.
12592         * m4/isdir.m4: Remove file -- unneeded.
12593
12594 2009-12-25  Bruno Haible  <bruno@clisp.org>
12595
12596         selinux-h: Make generated .h files standalone.
12597         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12598         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12599         * lib/se-selinux.in.h: Likewise.
12600         * modules/selinux-h (Depends-on): Add unused-parameter.
12601         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12602         selinux/selinux.h and selinux/context.h.
12603         Suggested by Eric Blake.
12604
12605 2009-12-25  Bruno Haible  <bruno@clisp.org>
12606
12607         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12608         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12609         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12610         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12611         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12612
12613 2009-12-24  Bruno Haible  <bruno@clisp.org>
12614
12615         openat: Fix warning.
12616         * lib/openat-proc.c: Include <unistd.h>.
12617
12618 2009-12-24  Bruno Haible  <bruno@clisp.org>
12619
12620         New module 'unused-parameter'.
12621         * build-aux/unused-parameter.h: New file, extracted from earlier
12622         gnulib-common.m4.
12623         * modules/unused-parameter: New file.
12624         * lib/unistr.h: Include unused-parameter.h.
12625         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12626         _GL_UNUSED.
12627         * modules/unistr/base (Depends-on): Add unused-parameter.
12628
12629 2009-12-24  Bruno Haible  <bruno@clisp.org>
12630
12631         Add missing dependencies to 'extensions' module.
12632         * m4/extensions.m4: Add comment.
12633         * modules/accept4 (Depends-on): Add extensions.
12634         * modules/dup3 (Depends-on): Likewise.
12635         * modules/fcntl (Depends-on): Likewise.
12636         * modules/futimens (Depends-on): Likewise.
12637         * modules/mknod (Depends-on): Likewise.
12638         * modules/pipe2 (Depends-on): Likewise.
12639         * modules/stat-time (Depends-on): Likewise.
12640         * modules/strcasestr-simple (Depends-on): Likewise.
12641         * modules/strsignal (Depends-on): Likewise.
12642         * modules/utimensat (Depends-on): Likewise.
12643         * modules/localcharset (Depends-on): Likewise. Needed because of
12644         gl_FCNTL_O_FLAGS.
12645         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12646         AC_TYPE_MBSTATE_T.
12647         * modules/wcsnrtombs (Depends-on): Likewise.
12648         * modules/wcsrtombs (Depends-on): Likewise.
12649
12650 2009-12-24  Bruno Haible  <bruno@clisp.org>
12651
12652         binary-io: Avoid gcc warning due to SET_BINARY.
12653         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12654         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12655
12656 2009-12-24  Bruno Haible  <bruno@clisp.org>
12657
12658         Avoid future namespace pollution on glibc systems.
12659         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12660         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12661         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12662         glibc systems.
12663
12664 2009-12-24  Bruno Haible  <bruno@clisp.org>
12665
12666         Refactor common macros used in tests.
12667         * tests/macros.h: New file.
12668         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12669         and/or <stdlib.h>, if appropriate.
12670         (ASSERT, SIZEOF): Remove macros.
12671         * tests/test-areadlink-with-size.c: Likewise.
12672         * tests/test-areadlinkat.c: Likewise.
12673         * tests/test-areadlinkat-with-size.c: Likewise.
12674         * tests/test-argmatch.c: Likewise.
12675         * tests/test-argv-iter.c: Likewise.
12676         * tests/test-array-mergesort.c: Likewise.
12677         * tests/test-array_list.c: Likewise.
12678         * tests/test-array_oset.c: Likewise.
12679         * tests/test-avltree_list.c: Likewise.
12680         * tests/test-avltree_oset.c: Likewise.
12681         * tests/test-avltreehash_list.c: Likewise.
12682         * tests/test-base64.c: Likewise.
12683         * tests/test-binary-io.c: Likewise.
12684         * tests/test-bitrotate.c: Likewise.
12685         * tests/test-btowc.c: Likewise.
12686         * tests/test-byteswap.c: Likewise.
12687         * tests/test-c-ctype.c: Likewise.
12688         * tests/test-c-stack.c: Likewise.
12689         * tests/test-c-strcasecmp.c: Likewise.
12690         * tests/test-c-strcasestr.c: Likewise.
12691         * tests/test-c-strncasecmp.c: Likewise.
12692         * tests/test-c-strstr.c: Likewise.
12693         * tests/test-canonicalize-lgpl.c: Likewise.
12694         * tests/test-canonicalize.c: Likewise.
12695         * tests/test-carray_list.c: Likewise.
12696         * tests/test-ceilf1.c: Likewise.
12697         * tests/test-ceilf2.c: Likewise.
12698         * tests/test-ceill.c: Likewise.
12699         * tests/test-chown.c: Likewise.
12700         * tests/test-cloexec.c: Likewise.
12701         * tests/test-copy-acl.c: Likewise.
12702         * tests/test-copy-file.c: Likewise.
12703         * tests/test-count-one-bits.c: Likewise.
12704         * tests/test-dprintf-posix.c: Likewise.
12705         * tests/test-dup2.c: Likewise.
12706         * tests/test-dup3.c: Likewise.
12707         * tests/test-duplocale.c: Likewise.
12708         * tests/test-fbufmode.c: Likewise.
12709         * tests/test-fchdir.c: Likewise.
12710         * tests/test-fchownat.c: Likewise.
12711         * tests/test-fcntl-safer.c: Likewise.
12712         * tests/test-fcntl.c: Likewise.
12713         * tests/test-fdopendir.c: Likewise.
12714         * tests/test-fdutimensat.c: Likewise.
12715         * tests/test-fflush2.c: Likewise.
12716         * tests/test-file-has-acl.c: Likewise.
12717         * tests/test-filevercmp.c: Likewise.
12718         * tests/test-flock.c: Likewise.
12719         * tests/test-floorf1.c: Likewise.
12720         * tests/test-floorf2.c: Likewise.
12721         * tests/test-floorl.c: Likewise.
12722         * tests/test-fnmatch.c: Likewise.
12723         * tests/test-fopen.h: Likewise.
12724         * tests/test-fpending.c: Likewise.
12725         * tests/test-fprintf-posix.c: Likewise.
12726         * tests/test-fpurge.c: Likewise.
12727         * tests/test-freadable.c: Likewise.
12728         * tests/test-freadahead.c: Likewise.
12729         * tests/test-freading.c: Likewise.
12730         * tests/test-freadptr.c: Likewise.
12731         * tests/test-freadptr2.c: Likewise.
12732         * tests/test-freadseek.c: Likewise.
12733         * tests/test-freopen.c: Likewise.
12734         * tests/test-frexp.c: Likewise.
12735         * tests/test-frexpl.c: Likewise.
12736         * tests/test-fseek.c: Likewise.
12737         * tests/test-fseeko.c: Likewise.
12738         * tests/test-fstatat.c: Likewise.
12739         * tests/test-fstrcmp.c: Likewise.
12740         * tests/test-fsync.c: Likewise.
12741         * tests/test-ftell.c: Likewise.
12742         * tests/test-ftello.c: Likewise.
12743         * tests/test-func.c: Likewise.
12744         * tests/test-futimens.c: Likewise.
12745         * tests/test-fwritable.c: Likewise.
12746         * tests/test-fwriting.c: Likewise.
12747         * tests/test-getcwd.c: Likewise.
12748         * tests/test-getdate.c: Likewise.
12749         * tests/test-getdelim.c: Likewise.
12750         * tests/test-getdtablesize.c: Likewise.
12751         * tests/test-getgroups.c: Likewise.
12752         * tests/test-getline.c: Likewise.
12753         * tests/test-getndelim2.c: Likewise.
12754         * tests/test-glob.c: Likewise.
12755         * tests/test-hash.c: Likewise.
12756         * tests/test-i-ring.c: Likewise.
12757         * tests/test-iconv-utf.c: Likewise.
12758         * tests/test-iconv.c: Likewise.
12759         * tests/test-idpriv-drop.c: Likewise.
12760         * tests/test-idpriv-droptemp.c: Likewise.
12761         * tests/test-inet_ntop.c: Likewise.
12762         * tests/test-inet_pton.c: Likewise.
12763         * tests/test-isblank.c: Likewise.
12764         * tests/test-isfinite.c: Likewise.
12765         * tests/test-isinf.c: Likewise.
12766         * tests/test-isnan.c: Likewise.
12767         * tests/test-isnand.h: Likewise.
12768         * tests/test-isnanf.h: Likewise.
12769         * tests/test-isnanl.h: Likewise.
12770         * tests/test-lchown.c: Likewise.
12771         * tests/test-ldexpl.c: Likewise.
12772         * tests/test-link.c: Likewise.
12773         * tests/test-linkat.c: Likewise.
12774         * tests/test-linked_list.c: Likewise.
12775         * tests/test-linkedhash_list.c: Likewise.
12776         * tests/test-localename.c: Likewise.
12777         * tests/test-lseek.c: Likewise.
12778         * tests/test-lstat.c: Likewise.
12779         * tests/test-mbmemcasecmp.c: Likewise.
12780         * tests/test-mbmemcasecoll.c: Likewise.
12781         * tests/test-mbrtowc.c: Likewise.
12782         * tests/test-mbscasecmp.c: Likewise.
12783         * tests/test-mbscasestr1.c: Likewise.
12784         * tests/test-mbscasestr2.c: Likewise.
12785         * tests/test-mbscasestr3.c: Likewise.
12786         * tests/test-mbscasestr4.c: Likewise.
12787         * tests/test-mbschr.c: Likewise.
12788         * tests/test-mbscspn.c: Likewise.
12789         * tests/test-mbsinit.c: Likewise.
12790         * tests/test-mbsncasecmp.c: Likewise.
12791         * tests/test-mbsnrtowcs.c: Likewise.
12792         * tests/test-mbspbrk.c: Likewise.
12793         * tests/test-mbspcasecmp.c: Likewise.
12794         * tests/test-mbsrchr.c: Likewise.
12795         * tests/test-mbsrtowcs.c: Likewise.
12796         * tests/test-mbsspn.c: Likewise.
12797         * tests/test-mbsstr1.c: Likewise.
12798         * tests/test-mbsstr2.c: Likewise.
12799         * tests/test-mbsstr3.c: Likewise.
12800         * tests/test-memchr.c: Likewise.
12801         * tests/test-memchr2.c: Likewise.
12802         * tests/test-memcmp.c: Likewise.
12803         * tests/test-memmem.c: Likewise.
12804         * tests/test-memrchr.c: Likewise.
12805         * tests/test-mkdir.c: Likewise.
12806         * tests/test-mkdirat.c: Likewise.
12807         * tests/test-mkfifo.c: Likewise.
12808         * tests/test-mkfifoat.c: Likewise.
12809         * tests/test-mknod.c: Likewise.
12810         * tests/test-nanosleep.c: Likewise.
12811         * tests/test-nl_langinfo.c: Likewise.
12812         * tests/test-obstack-printf.c: Likewise.
12813         * tests/test-open.c: Likewise.
12814         * tests/test-openat.c: Likewise.
12815         * tests/test-pipe-filter-gi1.c: Likewise.
12816         * tests/test-pipe-filter-gi2-main.c: Likewise.
12817         * tests/test-pipe-filter-ii1.c: Likewise.
12818         * tests/test-pipe-filter-ii2-main.c: Likewise.
12819         * tests/test-pipe2.c: Likewise.
12820         * tests/test-popen.h: Likewise.
12821         * tests/test-posixtm.c: Likewise.
12822         * tests/test-pread.c: Likewise.
12823         * tests/test-printf-frexp.c: Likewise.
12824         * tests/test-printf-frexpl.c: Likewise.
12825         * tests/test-printf-posix.c: Likewise.
12826         * tests/test-priv-set.c: Likewise.
12827         * tests/test-quotearg.c: Likewise.
12828         * tests/test-random_r.c: Likewise.
12829         * tests/test-rawmemchr.c: Likewise.
12830         * tests/test-rbtree_list.c: Likewise.
12831         * tests/test-rbtree_oset.c: Likewise.
12832         * tests/test-rbtreehash_list.c: Likewise.
12833         * tests/test-readlink.c: Likewise.
12834         * tests/test-remove.c: Likewise.
12835         * tests/test-rename.c: Likewise.
12836         * tests/test-renameat.c: Likewise.
12837         * tests/test-rmdir.c: Likewise.
12838         * tests/test-round1.c: Likewise.
12839         * tests/test-roundf1.c: Likewise.
12840         * tests/test-roundl.c: Likewise.
12841         * tests/test-safe-alloc.c: Likewise.
12842         * tests/test-sameacls.c: Likewise.
12843         * tests/test-set-mode-acl.c: Likewise.
12844         * tests/test-setenv.c: Likewise.
12845         * tests/test-sigaction.c: Likewise.
12846         * tests/test-signbit.c: Likewise.
12847         * tests/test-sleep.c: Likewise.
12848         * tests/test-snprintf-posix.c: Likewise.
12849         * tests/test-snprintf.c: Likewise.
12850         * tests/test-sprintf-posix.c: Likewise.
12851         * tests/test-stat-time.c: Likewise.
12852         * tests/test-stat.c: Likewise.
12853         * tests/test-strcasestr.c: Likewise.
12854         * tests/test-strchrnul.c: Likewise.
12855         * tests/test-strerror.c: Likewise.
12856         * tests/test-striconv.c: Likewise.
12857         * tests/test-striconveh.c: Likewise.
12858         * tests/test-striconveha.c: Likewise.
12859         * tests/test-strsignal.c: Likewise.
12860         * tests/test-strstr.c: Likewise.
12861         * tests/test-strtod.c: Likewise.
12862         * tests/test-strverscmp.c: Likewise.
12863         * tests/test-symlink.c: Likewise.
12864         * tests/test-symlinkat.c: Likewise.
12865         * tests/test-trunc1.c: Likewise.
12866         * tests/test-trunc2.c: Likewise.
12867         * tests/test-truncf1.c: Likewise.
12868         * tests/test-truncf2.c: Likewise.
12869         * tests/test-truncl.c: Likewise.
12870         * tests/test-uname.c: Likewise.
12871         * tests/test-unlink.c: Likewise.
12872         * tests/test-unlinkat.c: Likewise.
12873         * tests/test-unsetenv.c: Likewise.
12874         * tests/test-usleep.c: Likewise.
12875         * tests/test-utimens.c: Likewise.
12876         * tests/test-utimensat.c: Likewise.
12877         * tests/test-vasnprintf-posix.c: Likewise.
12878         * tests/test-vasnprintf-posix2.c: Likewise.
12879         * tests/test-vasnprintf.c: Likewise.
12880         * tests/test-vasprintf-posix.c: Likewise.
12881         * tests/test-vasprintf.c: Likewise.
12882         * tests/test-vdprintf-posix.c: Likewise.
12883         * tests/test-vfprintf-posix.c: Likewise.
12884         * tests/test-vprintf-posix.c: Likewise.
12885         * tests/test-vsnprintf-posix.c: Likewise.
12886         * tests/test-vsnprintf.c: Likewise.
12887         * tests/test-vsprintf-posix.c: Likewise.
12888         * tests/test-wcrtomb.c: Likewise.
12889         * tests/test-wcsnrtombs.c: Likewise.
12890         * tests/test-wcsrtombs.c: Likewise.
12891         * tests/test-wctype.c: Likewise.
12892         * tests/test-wcwidth.c: Likewise.
12893         * tests/test-xfprintf-posix.c: Likewise.
12894         * tests/test-xmemdup0.c: Likewise.
12895         * tests/test-xprintf-posix.c: Likewise.
12896         * tests/test-xvasprintf.c: Likewise.
12897         * tests/unicase/test-locale-language.c: Likewise.
12898         * tests/unicase/test-mapping-part1.h: Likewise.
12899         * tests/unicase/test-predicate-part1.h: Likewise.
12900         * tests/unicase/test-u8-casecmp.c: Likewise.
12901         * tests/unicase/test-u8-casecoll.c: Likewise.
12902         * tests/unicase/test-u8-casefold.c: Likewise.
12903         * tests/unicase/test-u8-is-cased.c: Likewise.
12904         * tests/unicase/test-u8-is-casefolded.c: Likewise.
12905         * tests/unicase/test-u8-is-lowercase.c: Likewise.
12906         * tests/unicase/test-u8-is-titlecase.c: Likewise.
12907         * tests/unicase/test-u8-is-uppercase.c: Likewise.
12908         * tests/unicase/test-u8-tolower.c: Likewise.
12909         * tests/unicase/test-u8-totitle.c: Likewise.
12910         * tests/unicase/test-u8-toupper.c: Likewise.
12911         * tests/unicase/test-u16-casecmp.c: Likewise.
12912         * tests/unicase/test-u16-casecoll.c: Likewise.
12913         * tests/unicase/test-u16-casefold.c: Likewise.
12914         * tests/unicase/test-u16-is-cased.c: Likewise.
12915         * tests/unicase/test-u16-is-casefolded.c: Likewise.
12916         * tests/unicase/test-u16-is-lowercase.c: Likewise.
12917         * tests/unicase/test-u16-is-titlecase.c: Likewise.
12918         * tests/unicase/test-u16-is-uppercase.c: Likewise.
12919         * tests/unicase/test-u16-tolower.c: Likewise.
12920         * tests/unicase/test-u16-totitle.c: Likewise.
12921         * tests/unicase/test-u16-toupper.c: Likewise.
12922         * tests/unicase/test-u32-casecmp.c: Likewise.
12923         * tests/unicase/test-u32-casecoll.c: Likewise.
12924         * tests/unicase/test-u32-casefold.c: Likewise.
12925         * tests/unicase/test-u32-is-cased.c: Likewise.
12926         * tests/unicase/test-u32-is-casefolded.c: Likewise.
12927         * tests/unicase/test-u32-is-lowercase.c: Likewise.
12928         * tests/unicase/test-u32-is-titlecase.c: Likewise.
12929         * tests/unicase/test-u32-is-uppercase.c: Likewise.
12930         * tests/unicase/test-u32-tolower.c: Likewise.
12931         * tests/unicase/test-u32-totitle.c: Likewise.
12932         * tests/unicase/test-u32-toupper.c: Likewise.
12933         * tests/unicase/test-ulc-casecmp.c: Likewise.
12934         * tests/unicase/test-ulc-casecoll.c: Likewise.
12935         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
12936         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
12937         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
12938         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
12939         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
12940         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
12941         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
12942         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
12943         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
12944         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
12945         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
12946         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
12947         * tests/unictype/test-bidi_byname.c: Likewise.
12948         * tests/unictype/test-bidi_name.c: Likewise.
12949         * tests/unictype/test-bidi_of.c: Likewise.
12950         * tests/unictype/test-bidi_test.c: Likewise.
12951         * tests/unictype/test-block_list.c: Likewise.
12952         * tests/unictype/test-block_of.c: Likewise.
12953         * tests/unictype/test-block_test.c: Likewise.
12954         * tests/unictype/test-categ_and.c: Likewise.
12955         * tests/unictype/test-categ_and_not.c: Likewise.
12956         * tests/unictype/test-categ_byname.c: Likewise.
12957         * tests/unictype/test-categ_name.c: Likewise.
12958         * tests/unictype/test-categ_none.c: Likewise.
12959         * tests/unictype/test-categ_of.c: Likewise.
12960         * tests/unictype/test-categ_or.c: Likewise.
12961         * tests/unictype/test-categ_test_withtable.c: Likewise.
12962         * tests/unictype/test-combining.c: Likewise.
12963         * tests/unictype/test-decdigit.c: Likewise.
12964         * tests/unictype/test-digit.c: Likewise.
12965         * tests/unictype/test-mirror.c: Likewise.
12966         * tests/unictype/test-numeric.c: Likewise.
12967         * tests/unictype/test-pr_byname.c: Likewise.
12968         * tests/unictype/test-pr_test.c: Likewise.
12969         * tests/unictype/test-predicate-part1.h: Likewise.
12970         * tests/unictype/test-scripts.c: Likewise.
12971         * tests/unictype/test-sy_c_ident.c: Likewise.
12972         * tests/unictype/test-sy_java_ident.c: Likewise.
12973         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
12974         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
12975         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
12976         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
12977         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
12978         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
12979         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
12980         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
12981         * tests/uninorm/test-canonical-decomposition.c: Likewise.
12982         * tests/uninorm/test-compat-decomposition.c: Likewise.
12983         * tests/uninorm/test-composition.c: Likewise.
12984         * tests/uninorm/test-decomposing-form.c: Likewise.
12985         * tests/uninorm/test-decomposition.c: Likewise.
12986         * tests/uninorm/test-u8-nfc.c: Likewise.
12987         * tests/uninorm/test-u8-nfd.c: Likewise.
12988         * tests/uninorm/test-u8-nfkc.c: Likewise.
12989         * tests/uninorm/test-u8-nfkd.c: Likewise.
12990         * tests/uninorm/test-u8-normcmp.c: Likewise.
12991         * tests/uninorm/test-u8-normcoll.c: Likewise.
12992         * tests/uninorm/test-u16-nfc.c: Likewise.
12993         * tests/uninorm/test-u16-nfd.c: Likewise.
12994         * tests/uninorm/test-u16-nfkc.c: Likewise.
12995         * tests/uninorm/test-u16-nfkd.c: Likewise.
12996         * tests/uninorm/test-u16-normcmp.c: Likewise.
12997         * tests/uninorm/test-u16-normcoll.c: Likewise.
12998         * tests/uninorm/test-u32-nfc.c: Likewise.
12999         * tests/uninorm/test-u32-nfd.c: Likewise.
13000         * tests/uninorm/test-u32-nfkc.c: Likewise.
13001         * tests/uninorm/test-u32-nfkd.c: Likewise.
13002         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13003         * tests/uninorm/test-u32-normcmp.c: Likewise.
13004         * tests/uninorm/test-u32-normcoll.c: Likewise.
13005         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13006         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13007         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13008         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13009         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13010         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13011         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13012         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13013         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13014         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13015         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13016         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13017         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13018         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13019         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13020         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13021         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13022         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13023         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13024         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13025         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13026         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13027         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13028         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13029         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13030         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13031         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13032         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13033         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13034         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13035         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13036         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13037         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13038         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13039         * tests/uniwidth/test-u8-width.c: Likewise.
13040         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13041         * tests/uniwidth/test-u16-width.c: Likewise.
13042         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13043         * tests/uniwidth/test-u32-width.c: Likewise.
13044         * tests/uniwidth/test-uc_width.c: Likewise.
13045         * tests/uniwidth/test-uc_width2.c: Likewise.
13046         * modules/acl-tests (Files): Add tests/macros.h.
13047         * modules/areadlink-tests (Files): Likewise.
13048         * modules/areadlink-with-size-tests (Files): Likewise.
13049         * modules/areadlinkat-tests (Files): Likewise.
13050         * modules/areadlinkat-with-size-tests (Files): Likewise.
13051         * modules/argmatch-tests (Files): Likewise.
13052         * modules/argv-iter-tests (Files): Likewise.
13053         * modules/array-list-tests (Files): Likewise.
13054         * modules/array-mergesort-tests (Files): Likewise.
13055         * modules/array-oset-tests (Files): Likewise.
13056         * modules/avltree-list-tests (Files): Likewise.
13057         * modules/avltree-oset-tests (Files): Likewise.
13058         * modules/avltreehash-list-tests (Files): Likewise.
13059         * modules/base64-tests (Files): Likewise.
13060         * modules/binary-io-tests (Files): Likewise.
13061         * modules/bitrotate-tests (Files): Likewise.
13062         * modules/btowc-tests (Files): Likewise.
13063         * modules/byteswap-tests (Files): Likewise.
13064         * modules/c-ctype-tests (Files): Likewise.
13065         * modules/c-stack-tests (Files): Likewise.
13066         * modules/c-strcase-tests (Files): Likewise.
13067         * modules/c-strcasestr-tests (Files): Likewise.
13068         * modules/c-strstr-tests (Files): Likewise.
13069         * modules/canonicalize-lgpl-tests (Files): Likewise.
13070         * modules/canonicalize-tests (Files): Likewise.
13071         * modules/carray-list-tests (Files): Likewise.
13072         * modules/ceilf-tests (Files): Likewise.
13073         * modules/ceill-tests (Files): Likewise.
13074         * modules/chown-tests (Files): Likewise.
13075         * modules/cloexec-tests (Files): Likewise.
13076         * modules/copy-file-tests (Files): Likewise.
13077         * modules/count-one-bits-tests (Files): Likewise.
13078         * modules/dprintf-posix-tests (Files): Likewise.
13079         * modules/dup2-tests (Files): Likewise.
13080         * modules/dup3-tests (Files): Likewise.
13081         * modules/duplocale-tests (Files): Likewise.
13082         * modules/fbufmode-tests (Files): Likewise.
13083         * modules/fchdir-tests (Files): Likewise.
13084         * modules/fcntl-safer-tests (Files): Likewise.
13085         * modules/fcntl-tests (Files): Likewise.
13086         * modules/fdopendir-tests (Files): Likewise.
13087         * modules/fdutimensat-tests (Files): Likewise.
13088         * modules/fflush-tests (Files): Likewise.
13089         * modules/filevercmp-tests (Files): Likewise.
13090         * modules/flock-tests (Files): Likewise.
13091         * modules/floorf-tests (Files): Likewise.
13092         * modules/floorl-tests (Files): Likewise.
13093         * modules/fnmatch-tests (Files): Likewise.
13094         * modules/fopen-safer-tests (Files): Likewise.
13095         * modules/fopen-tests (Files): Likewise.
13096         * modules/fpending-tests (Files): Likewise.
13097         * modules/fprintf-posix-tests (Files): Likewise.
13098         * modules/fpurge-tests (Files): Likewise.
13099         * modules/freadable-tests (Files): Likewise.
13100         * modules/freadahead-tests (Files): Likewise.
13101         * modules/freading-tests (Files): Likewise.
13102         * modules/freadptr-tests (Files): Likewise.
13103         * modules/freadseek-tests (Files): Likewise.
13104         * modules/freopen-tests (Files): Likewise.
13105         * modules/frexp-nolibm-tests (Files): Likewise.
13106         * modules/frexp-tests (Files): Likewise.
13107         * modules/frexpl-nolibm-tests (Files): Likewise.
13108         * modules/frexpl-tests (Files): Likewise.
13109         * modules/fseek-tests (Files): Likewise.
13110         * modules/fseeko-tests (Files): Likewise.
13111         * modules/fstrcmp-tests (Files): Likewise.
13112         * modules/fsync-tests (Files): Likewise.
13113         * modules/ftell-tests (Files): Likewise.
13114         * modules/ftello-tests (Files): Likewise.
13115         * modules/func-tests (Files): Likewise.
13116         * modules/futimens-tests (Files): Likewise.
13117         * modules/fwritable-tests (Files): Likewise.
13118         * modules/fwriting-tests (Files): Likewise.
13119         * modules/getcwd-tests (Files): Likewise.
13120         * modules/getdate-tests (Files): Likewise.
13121         * modules/getdelim-tests (Files): Likewise.
13122         * modules/getdtablesize-tests (Files): Likewise.
13123         * modules/getgroups-tests (Files): Likewise.
13124         * modules/getline-tests (Files): Likewise.
13125         * modules/getndelim2-tests (Files): Likewise.
13126         * modules/glob-tests (Files): Likewise.
13127         * modules/hash-tests (Files): Likewise.
13128         * modules/i-ring-tests (Files): Likewise.
13129         * modules/iconv-tests (Files): Likewise.
13130         * modules/iconv_open-utf-tests (Files): Likewise.
13131         * modules/idpriv-drop-tests (Files): Likewise.
13132         * modules/idpriv-droptemp-tests (Files): Likewise.
13133         * modules/inet_ntop-tests (Files): Likewise.
13134         * modules/inet_pton-tests (Files): Likewise.
13135         * modules/isblank-tests (Files): Likewise.
13136         * modules/isfinite-tests (Files): Likewise.
13137         * modules/isinf-tests (Files): Likewise.
13138         * modules/isnan-tests (Files): Likewise.
13139         * modules/isnand-nolibm-tests (Files): Likewise.
13140         * modules/isnand-tests (Files): Likewise.
13141         * modules/isnanf-nolibm-tests (Files): Likewise.
13142         * modules/isnanf-tests (Files): Likewise.
13143         * modules/isnanl-nolibm-tests (Files): Likewise.
13144         * modules/isnanl-tests (Files): Likewise.
13145         * modules/lchown-tests (Files): Likewise.
13146         * modules/ldexpl-tests (Files): Likewise.
13147         * modules/link-tests (Files): Likewise.
13148         * modules/linkat-tests (Files): Likewise.
13149         * modules/linked-list-tests (Files): Likewise.
13150         * modules/linkedhash-list-tests (Files): Likewise.
13151         * modules/localename-tests (Files): Likewise.
13152         * modules/lseek-tests (Files): Likewise.
13153         * modules/lstat-tests (Files): Likewise.
13154         * modules/mbmemcasecmp-tests (Files): Likewise.
13155         * modules/mbmemcasecoll-tests (Files): Likewise.
13156         * modules/mbrtowc-tests (Files): Likewise.
13157         * modules/mbscasecmp-tests (Files): Likewise.
13158         * modules/mbscasestr-tests (Files): Likewise.
13159         * modules/mbschr-tests (Files): Likewise.
13160         * modules/mbscspn-tests (Files): Likewise.
13161         * modules/mbsinit-tests (Files): Likewise.
13162         * modules/mbsncasecmp-tests (Files): Likewise.
13163         * modules/mbsnrtowcs-tests (Files): Likewise.
13164         * modules/mbspbrk-tests (Files): Likewise.
13165         * modules/mbspcasecmp-tests (Files): Likewise.
13166         * modules/mbsrchr-tests (Files): Likewise.
13167         * modules/mbsrtowcs-tests (Files): Likewise.
13168         * modules/mbsspn-tests (Files): Likewise.
13169         * modules/mbsstr-tests (Files): Likewise.
13170         * modules/memchr-tests (Files): Likewise.
13171         * modules/memchr2-tests (Files): Likewise.
13172         * modules/memcmp-tests (Files): Likewise.
13173         * modules/memmem-tests (Files): Likewise.
13174         * modules/memrchr-tests (Files): Likewise.
13175         * modules/mkdir-tests (Files): Likewise.
13176         * modules/mkfifo-tests (Files): Likewise.
13177         * modules/mkfifoat-tests (Files): Likewise.
13178         * modules/mknod-tests (Files): Likewise.
13179         * modules/nanosleep-tests (Files): Likewise.
13180         * modules/nl_langinfo-tests (Files): Likewise.
13181         * modules/obstack-printf-tests (Files): Likewise.
13182         * modules/open-tests (Files): Likewise.
13183         * modules/openat-tests (Files): Likewise.
13184         * modules/pipe-filter-gi-tests (Files): Likewise.
13185         * modules/pipe-filter-ii-tests (Files): Likewise.
13186         * modules/pipe2-tests (Files): Likewise.
13187         * modules/popen-safer-tests (Files): Likewise.
13188         * modules/popen-tests (Files): Likewise.
13189         * modules/posixtm-tests (Files): Likewise.
13190         * modules/pread-tests (Files): Likewise.
13191         * modules/printf-frexp-tests (Files): Likewise.
13192         * modules/printf-frexpl-tests (Files): Likewise.
13193         * modules/printf-posix-tests (Files): Likewise.
13194         * modules/priv-set-tests (Files): Likewise.
13195         * modules/quotearg-tests (Files): Likewise.
13196         * modules/random_r-tests (Files): Likewise.
13197         * modules/rawmemchr-tests (Files): Likewise.
13198         * modules/rbtree-list-tests (Files): Likewise.
13199         * modules/rbtree-oset-tests (Files): Likewise.
13200         * modules/rbtreehash-list-tests (Files): Likewise.
13201         * modules/readlink-tests (Files): Likewise.
13202         * modules/remove-tests (Files): Likewise.
13203         * modules/rename-tests (Files): Likewise.
13204         * modules/renameat-tests (Files): Likewise.
13205         * modules/rmdir-tests (Files): Likewise.
13206         * modules/round-tests (Files): Likewise.
13207         * modules/roundf-tests (Files): Likewise.
13208         * modules/roundl-tests (Files): Likewise.
13209         * modules/safe-alloc-tests (Files): Likewise.
13210         * modules/setenv-tests (Files): Likewise.
13211         * modules/sigaction-tests (Files): Likewise.
13212         * modules/signbit-tests (Files): Likewise.
13213         * modules/sleep-tests (Files): Likewise.
13214         * modules/snprintf-posix-tests (Files): Likewise.
13215         * modules/snprintf-tests (Files): Likewise.
13216         * modules/sprintf-posix-tests (Files): Likewise.
13217         * modules/stat-tests (Files): Likewise.
13218         * modules/stat-time-tests (Files): Likewise.
13219         * modules/strcasestr-tests (Files): Likewise.
13220         * modules/strchrnul-tests (Files): Likewise.
13221         * modules/strerror-tests (Files): Likewise.
13222         * modules/striconv-tests (Files): Likewise.
13223         * modules/striconveh-tests (Files): Likewise.
13224         * modules/striconveha-tests (Files): Likewise.
13225         * modules/strsignal-tests (Files): Likewise.
13226         * modules/strstr-tests (Files): Likewise.
13227         * modules/strtod-tests (Files): Likewise.
13228         * modules/strverscmp-tests (Files): Likewise.
13229         * modules/symlink-tests (Files): Likewise.
13230         * modules/symlinkat-tests (Files): Likewise.
13231         * modules/trunc-tests (Files): Likewise.
13232         * modules/truncf-tests (Files): Likewise.
13233         * modules/truncl-tests (Files): Likewise.
13234         * modules/uname-tests (Files): Likewise.
13235         * modules/unicase/cased-tests (Files): Likewise.
13236         * modules/unicase/ignorable-tests (Files): Likewise.
13237         * modules/unicase/locale-language-tests (Files): Likewise.
13238         * modules/unicase/tolower-tests (Files): Likewise.
13239         * modules/unicase/totitle-tests (Files): Likewise.
13240         * modules/unicase/toupper-tests (Files): Likewise.
13241         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13242         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13243         * modules/unicase/u8-casefold-tests (Files): Likewise.
13244         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13245         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13246         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13247         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13248         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13249         * modules/unicase/u8-tolower-tests (Files): Likewise.
13250         * modules/unicase/u8-totitle-tests (Files): Likewise.
13251         * modules/unicase/u8-toupper-tests (Files): Likewise.
13252         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13253         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13254         * modules/unicase/u16-casefold-tests (Files): Likewise.
13255         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13256         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13257         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13258         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13259         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13260         * modules/unicase/u16-tolower-tests (Files): Likewise.
13261         * modules/unicase/u16-totitle-tests (Files): Likewise.
13262         * modules/unicase/u16-toupper-tests (Files): Likewise.
13263         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13264         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13265         * modules/unicase/u32-casefold-tests (Files): Likewise.
13266         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13267         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13268         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13269         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13270         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13271         * modules/unicase/u32-tolower-tests (Files): Likewise.
13272         * modules/unicase/u32-totitle-tests (Files): Likewise.
13273         * modules/unicase/u32-toupper-tests (Files): Likewise.
13274         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13275         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13276         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13277         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13278         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13279         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13280         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13281         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13282         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13283         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13284         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13285         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13286         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13287         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13288         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13289         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13290         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13291         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13292         * modules/unictype/block-list-tests (Files): Likewise.
13293         * modules/unictype/block-of-tests (Files): Likewise.
13294         * modules/unictype/block-test-tests (Files): Likewise.
13295         * modules/unictype/category-C-tests (Files): Likewise.
13296         * modules/unictype/category-Cc-tests (Files): Likewise.
13297         * modules/unictype/category-Cf-tests (Files): Likewise.
13298         * modules/unictype/category-Cn-tests (Files): Likewise.
13299         * modules/unictype/category-Co-tests (Files): Likewise.
13300         * modules/unictype/category-Cs-tests (Files): Likewise.
13301         * modules/unictype/category-L-tests (Files): Likewise.
13302         * modules/unictype/category-Ll-tests (Files): Likewise.
13303         * modules/unictype/category-Lm-tests (Files): Likewise.
13304         * modules/unictype/category-Lo-tests (Files): Likewise.
13305         * modules/unictype/category-Lt-tests (Files): Likewise.
13306         * modules/unictype/category-Lu-tests (Files): Likewise.
13307         * modules/unictype/category-M-tests (Files): Likewise.
13308         * modules/unictype/category-Mc-tests (Files): Likewise.
13309         * modules/unictype/category-Me-tests (Files): Likewise.
13310         * modules/unictype/category-Mn-tests (Files): Likewise.
13311         * modules/unictype/category-N-tests (Files): Likewise.
13312         * modules/unictype/category-Nd-tests (Files): Likewise.
13313         * modules/unictype/category-Nl-tests (Files): Likewise.
13314         * modules/unictype/category-No-tests (Files): Likewise.
13315         * modules/unictype/category-P-tests (Files): Likewise.
13316         * modules/unictype/category-Pc-tests (Files): Likewise.
13317         * modules/unictype/category-Pd-tests (Files): Likewise.
13318         * modules/unictype/category-Pe-tests (Files): Likewise.
13319         * modules/unictype/category-Pf-tests (Files): Likewise.
13320         * modules/unictype/category-Pi-tests (Files): Likewise.
13321         * modules/unictype/category-Po-tests (Files): Likewise.
13322         * modules/unictype/category-Ps-tests (Files): Likewise.
13323         * modules/unictype/category-S-tests (Files): Likewise.
13324         * modules/unictype/category-Sc-tests (Files): Likewise.
13325         * modules/unictype/category-Sk-tests (Files): Likewise.
13326         * modules/unictype/category-Sm-tests (Files): Likewise.
13327         * modules/unictype/category-So-tests (Files): Likewise.
13328         * modules/unictype/category-Z-tests (Files): Likewise.
13329         * modules/unictype/category-Zl-tests (Files): Likewise.
13330         * modules/unictype/category-Zp-tests (Files): Likewise.
13331         * modules/unictype/category-Zs-tests (Files): Likewise.
13332         * modules/unictype/category-and-not-tests (Files): Likewise.
13333         * modules/unictype/category-and-tests (Files): Likewise.
13334         * modules/unictype/category-byname-tests (Files): Likewise.
13335         * modules/unictype/category-name-tests (Files): Likewise.
13336         * modules/unictype/category-none-tests (Files): Likewise.
13337         * modules/unictype/category-of-tests (Files): Likewise.
13338         * modules/unictype/category-or-tests (Files): Likewise.
13339         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13340         * modules/unictype/combining-class-tests (Files): Likewise.
13341         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13342         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13343         * modules/unictype/ctype-blank-tests (Files): Likewise.
13344         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13345         * modules/unictype/ctype-digit-tests (Files): Likewise.
13346         * modules/unictype/ctype-graph-tests (Files): Likewise.
13347         * modules/unictype/ctype-lower-tests (Files): Likewise.
13348         * modules/unictype/ctype-print-tests (Files): Likewise.
13349         * modules/unictype/ctype-punct-tests (Files): Likewise.
13350         * modules/unictype/ctype-space-tests (Files): Likewise.
13351         * modules/unictype/ctype-upper-tests (Files): Likewise.
13352         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13353         * modules/unictype/decimal-digit-tests (Files): Likewise.
13354         * modules/unictype/digit-tests (Files): Likewise.
13355         * modules/unictype/mirror-tests (Files): Likewise.
13356         * modules/unictype/numeric-tests (Files): Likewise.
13357         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13358         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13359         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13360         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13361         Likewise.
13362         * modules/unictype/property-bidi-block-separator-tests (Files):
13363         Likewise.
13364         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13365         Likewise.
13366         * modules/unictype/property-bidi-common-separator-tests (Files):
13367         Likewise.
13368         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13369         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13370         Likewise.
13371         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13372         Likewise.
13373         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13374         Likewise.
13375         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13376         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13377         Likewise.
13378         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13379         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13380         Likewise.
13381         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13382         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13383         * modules/unictype/property-bidi-segment-separator-tests (Files):
13384         Likewise.
13385         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13386         * modules/unictype/property-byname-tests (Files): Likewise.
13387         * modules/unictype/property-combining-tests (Files): Likewise.
13388         * modules/unictype/property-composite-tests (Files): Likewise.
13389         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13390         * modules/unictype/property-dash-tests (Files): Likewise.
13391         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13392         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13393         Likewise.
13394         * modules/unictype/property-deprecated-tests (Files): Likewise.
13395         * modules/unictype/property-diacritic-tests (Files): Likewise.
13396         * modules/unictype/property-extender-tests (Files): Likewise.
13397         * modules/unictype/property-format-control-tests (Files): Likewise.
13398         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13399         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13400         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13401         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13402         * modules/unictype/property-hyphen-tests (Files): Likewise.
13403         * modules/unictype/property-id-continue-tests (Files): Likewise.
13404         * modules/unictype/property-id-start-tests (Files): Likewise.
13405         * modules/unictype/property-ideographic-tests (Files): Likewise.
13406         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13407         * modules/unictype/property-ids-trinary-operator-tests (Files):
13408         Likewise.
13409         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13410         * modules/unictype/property-iso-control-tests (Files): Likewise.
13411         * modules/unictype/property-join-control-tests (Files): Likewise.
13412         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13413         * modules/unictype/property-line-separator-tests (Files): Likewise.
13414         * modules/unictype/property-logical-order-exception-tests (Files):
13415         Likewise.
13416         * modules/unictype/property-lowercase-tests (Files): Likewise.
13417         * modules/unictype/property-math-tests (Files): Likewise.
13418         * modules/unictype/property-non-break-tests (Files): Likewise.
13419         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13420         * modules/unictype/property-numeric-tests (Files): Likewise.
13421         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13422         * modules/unictype/property-other-default-ignorable-code-point-tests
13423         (Files): Likewise.
13424         * modules/unictype/property-other-grapheme-extend-tests (Files):
13425         Likewise.
13426         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13427         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13428         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13429         * modules/unictype/property-other-math-tests (Files): Likewise.
13430         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13431         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13432         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13433         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13434         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13435         * modules/unictype/property-private-use-tests (Files): Likewise.
13436         * modules/unictype/property-punctuation-tests (Files): Likewise.
13437         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13438         * modules/unictype/property-radical-tests (Files): Likewise.
13439         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13440         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13441         * modules/unictype/property-space-tests (Files): Likewise.
13442         * modules/unictype/property-terminal-punctuation-tests (Files):
13443         Likewise.
13444         * modules/unictype/property-test-tests (Files): Likewise.
13445         * modules/unictype/property-titlecase-tests (Files): Likewise.
13446         * modules/unictype/property-unassigned-code-value-tests (Files):
13447         Likewise.
13448         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13449         * modules/unictype/property-uppercase-tests (Files): Likewise.
13450         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13451         * modules/unictype/property-white-space-tests (Files): Likewise.
13452         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13453         * modules/unictype/property-xid-start-tests (Files): Likewise.
13454         * modules/unictype/property-zero-width-tests (Files): Likewise.
13455         * modules/unictype/scripts-tests (Files): Likewise.
13456         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13457         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13458         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13459         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13460         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13461         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13462         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13463         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13464         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13465         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13466         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13467         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13468         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13469         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13470         * modules/uninorm/composition-tests (Files): Likewise.
13471         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13472         * modules/uninorm/decomposition-tests (Files): Likewise.
13473         * modules/uninorm/filter-tests (Files): Likewise.
13474         * modules/uninorm/nfc-tests (Files): Likewise.
13475         * modules/uninorm/nfd-tests (Files): Likewise.
13476         * modules/uninorm/nfkc-tests (Files): Likewise.
13477         * modules/uninorm/nfkd-tests (Files): Likewise.
13478         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13479         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13480         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13481         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13482         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13483         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13484         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13485         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13486         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13487         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13488         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13489         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13490         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13491         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13492         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13493         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13494         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13495         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13496         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13497         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13498         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13499         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13500         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13501         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13502         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13503         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13504         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13505         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13506         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13507         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13508         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13509         * modules/uniwidth/u8-width-tests (Files): Likewise.
13510         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13511         * modules/uniwidth/u16-width-tests (Files): Likewise.
13512         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13513         * modules/uniwidth/u32-width-tests (Files): Likewise.
13514         * modules/uniwidth/width-tests (Files): Likewise.
13515         * modules/unlink-tests (Files): Likewise.
13516         * modules/unsetenv-tests (Files): Likewise.
13517         * modules/usleep-tests (Files): Likewise.
13518         * modules/utimens-tests (Files): Likewise.
13519         * modules/utimensat-tests (Files): Likewise.
13520         * modules/vasnprintf-posix-tests (Files): Likewise.
13521         * modules/vasnprintf-tests (Files): Likewise.
13522         * modules/vasprintf-posix-tests (Files): Likewise.
13523         * modules/vasprintf-tests (Files): Likewise.
13524         * modules/vdprintf-posix-tests (Files): Likewise.
13525         * modules/vfprintf-posix-tests (Files): Likewise.
13526         * modules/vprintf-posix-tests (Files): Likewise.
13527         * modules/vsnprintf-posix-tests (Files): Likewise.
13528         * modules/vsnprintf-tests (Files): Likewise.
13529         * modules/vsprintf-posix-tests (Files): Likewise.
13530         * modules/wcrtomb-tests (Files): Likewise.
13531         * modules/wcsnrtombs-tests (Files): Likewise.
13532         * modules/wcsrtombs-tests (Files): Likewise.
13533         * modules/wctype-tests (Files): Likewise.
13534         * modules/wcwidth-tests (Files): Likewise.
13535         * modules/xmemdup0-tests (Files): Likewise.
13536         * modules/xprintf-posix-tests (Files): Likewise.
13537         * modules/xvasprintf-tests (Files): Likewise.
13538
13539 2009-12-24  Eric Blake  <ebb9@byu.net>
13540
13541         test-nanosleep: fix typo
13542         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13543         patch.
13544         Reported by Bruno Haible.
13545
13546 2009-12-24  Bruno Haible  <bruno@clisp.org>
13547
13548         Reduce namespace pollution on glibc systems.
13549         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13550         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13551         systems.
13552         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13553         <getopt.h> on glibc systems.
13554         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13555         systems.
13556         * lib/fcntl.c: Include <unistd.h> here instead.
13557
13558 2009-12-24  Bruno Haible  <bruno@clisp.org>
13559
13560         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13561
13562 2009-12-24  Eric Blake  <ebb9@byu.net>
13563
13564         tests: add signature checks
13565         * tests/signature.h (SIGNATURE_CHECK): New file.
13566         * modules/atexit-tests (Files): Use it.
13567         * modules/btowc-tests (Files): Likewise.
13568         * modules/canonicalize-lgpl-tests (Files): Likewise.
13569         * modules/ceilf-tests (Files): Likewise.
13570         * modules/ceill-tests (Files): Likewise.
13571         * modules/chown-tests (Files): Likewise.
13572         * modules/dprintf-posix-tests (Files): Likewise.
13573         * modules/dup2-tests (Files): Likewise.
13574         * modules/dup3-tests (Files): Likewise.
13575         * modules/duplocale-tests (Files): Likewise.
13576         * modules/fchdir-tests (Files): Likewise.
13577         * modules/fcntl-tests (Files): Likewise.
13578         * modules/fdopendir-tests (Files): Likewise.
13579         * modules/fflush-tests (Files): Likewise.
13580         * modules/flock-tests (Files): Likewise.
13581         * modules/floorf-tests (Files): Likewise.
13582         * modules/floorl-tests (Files): Likewise.
13583         * modules/fnmatch-tests (Files): Likewise.
13584         * modules/fopen-tests (Files): Likewise.
13585         * modules/fprintf-posix-tests (Files): Likewise.
13586         * modules/freopen-tests (Files): Likewise.
13587         * modules/frexp-nolibm-tests (Files): Likewise.
13588         * modules/frexp-tests (Files): Likewise.
13589         * modules/frexpl-nolibm-tests (Files): Likewise.
13590         * modules/frexpl-tests (Files): Likewise.
13591         * modules/fseek-tests (Files): Likewise.
13592         * modules/fseeko-tests (Files): Likewise.
13593         * modules/fsync-tests (Files): Likewise.
13594         * modules/ftell-tests (Files): Likewise.
13595         * modules/ftello-tests (Files): Likewise.
13596         * modules/futimens-tests (Files): Likewise.
13597         * modules/getaddrinfo-tests (Files): Likewise.
13598         * modules/getcwd-tests (Files): Likewise.
13599         * modules/getdelim-tests (Files): Likewise.
13600         * modules/getdtablesize-tests (Files): Likewise.
13601         * modules/getgroups-tests (Files): Likewise.
13602         * modules/gethostname-tests (Files): Likewise.
13603         * modules/getline-tests (Files): Likewise.
13604         * modules/getopt-posix-tests (Files): Likewise.
13605         * modules/gettimeofday-tests (Files): Likewise.
13606         * modules/glob-tests (Files): Likewise.
13607         * modules/iconv-tests (Files): Likewise.
13608         * modules/inet_ntop-tests (Files): Likewise.
13609         * modules/inet_pton-tests (Files): Likewise.
13610         * modules/isblank-tests (Files): Likewise.
13611         * modules/lchown-tests (Files): Likewise.
13612         * modules/ldexpl-tests (Files): Likewise.
13613         * modules/link-tests (Files): Likewise.
13614         * modules/linkat-tests (Files): Likewise.
13615         * modules/lseek-tests (Files): Likewise.
13616         * modules/lstat-tests (Files): Likewise.
13617         * modules/mbrtowc-tests (Files): Likewise.
13618         * modules/mbsinit-tests (Files): Likewise.
13619         * modules/mbsnrtowcs-tests (Files): Likewise.
13620         * modules/mbsrtowcs-tests (Files): Likewise.
13621         * modules/memchr-tests (Files): Likewise.
13622         * modules/memcmp-tests (Files): Likewise.
13623         * modules/memmem-tests (Files): Likewise.
13624         * modules/memrchr-tests (Files): Likewise.
13625         * modules/mkdir-tests (Files): Likewise.
13626         * modules/mkfifo-tests (Files): Likewise.
13627         * modules/mkfifoat-tests (Files): Likewise.
13628         * modules/mknod-tests (Files): Likewise.
13629         * modules/nanosleep-tests (Files): Likewise.
13630         * modules/nl_langinfo-tests (Files): Likewise.
13631         * modules/obstack-printf-tests (Files): Likewise.
13632         * modules/open-tests (Files): Likewise.
13633         * modules/openat-tests (Files): Likewise.
13634         * modules/perror-tests (Files): Likewise.
13635         * modules/pipe2-tests (Files): Likewise.
13636         * modules/poll-tests (Files): Likewise.
13637         * modules/popen-tests (Files): Likewise.
13638         * modules/posix_spawn-tests (Files): Likewise.
13639         * modules/posix_spawnp-tests (Files): Likewise.
13640         * modules/pread-tests (Files): Likewise.
13641         * modules/printf-posix-tests (Files): Likewise.
13642         * modules/pty-tests (Files): Likewise.
13643         * modules/random_r-tests (Files): Likewise.
13644         * modules/rawmemchr-tests (Files): Likewise.
13645         * modules/readlink-tests (Files): Likewise.
13646         * modules/remove-tests (Files): Likewise.
13647         * modules/rename-tests (Files): Likewise.
13648         * modules/renameat-tests (Files): Likewise.
13649         * modules/rmdir-tests (Files): Likewise.
13650         * modules/round-tests (Files): Likewise.
13651         * modules/roundf-tests (Files): Likewise.
13652         * modules/roundl-tests (Files): Likewise.
13653         * modules/select-tests (Files): Likewise.
13654         * modules/setenv-tests (Files): Likewise.
13655         * modules/sigaction-tests (Files): Likewise.
13656         * modules/sleep-tests (Files): Likewise.
13657         * modules/snprintf-posix-tests (Files): Likewise.
13658         * modules/snprintf-tests (Files): Likewise.
13659         * modules/sprintf-posix-tests (Files): Likewise.
13660         * modules/stat-tests (Files): Likewise.
13661         * modules/strcasestr-tests (Files): Likewise.
13662         * modules/strchrnul-tests (Files): Likewise.
13663         * modules/strerror-tests (Files): Likewise.
13664         * modules/strsignal-tests (Files): Likewise.
13665         * modules/strstr-tests (Files): Likewise.
13666         * modules/strtod-tests (Files): Likewise.
13667         * modules/strverscmp-tests (Files): Likewise.
13668         * modules/symlink-tests (Files): Likewise.
13669         * modules/symlinkat-tests (Files): Likewise.
13670         * modules/times-tests (Files): Likewise.
13671         * modules/trunc-tests (Files): Likewise.
13672         * modules/truncf-tests (Files): Likewise.
13673         * modules/truncl-tests (Files): Likewise.
13674         * modules/tsearch-tests (Files): Likewise.
13675         * modules/uname-tests (Files): Likewise.
13676         * modules/unlink-tests (Files): Likewise.
13677         * modules/unsetenv-tests (Files): Likewise.
13678         * modules/usleep-tests (Files): Likewise.
13679         * modules/utimensat-tests (Files): Likewise.
13680         * modules/vasprintf-tests (Files): Likewise.
13681         * modules/vdprintf-posix-tests (Files): Likewise.
13682         * modules/vfprintf-posix-tests (Files): Likewise.
13683         * modules/vprintf-posix-tests (Files): Likewise.
13684         * modules/vsnprintf-posix-tests (Files): Likewise.
13685         * modules/vsnprintf-tests (Files): Likewise.
13686         * modules/vsprintf-posix-tests (Files): Likewise.
13687         * modules/wcrtomb-tests (Files): Likewise.
13688         * modules/wcsnrtombs-tests (Files): Likewise.
13689         * modules/wcsrtombs-tests (Files): Likewise.
13690         * modules/wcwidth-tests (Files): Likewise.
13691         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13692         * tests/test-isinf.c (isinf): Likewise.
13693         * tests/test-isnan.c (isnan): Likewise.
13694         * tests/test-signbit.c (signbit): Likewise.
13695         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13696         declaration, either as macro or with correct signature.
13697         (select): Ensure function under test is declared with correct
13698         signature in correct header.
13699         * tests/test-atexit.c (atexit): Likewise.
13700         * tests/test-btowc.c (btowc): Likewise.
13701         * tests/test-canonicalize-lgpl.c (realpath)
13702         (canonicalize_file_name): Likewise.
13703         * tests/test-ceilf1.c (ceilf): Likewise.
13704         * tests/test-ceill.c (ceill): Likewise.
13705         * tests/test-chown.c (chown): Likewise.
13706         * tests/test-dprintf-posix.c (dprintf): Likewise.
13707         * tests/test-dup2.c (dup2): Likewise.
13708         * tests/test-dup3.c (dup3): Likewise.
13709         * tests/test-duplocale.c (duplocale): Likewise.
13710         * tests/test-fchdir.c (fchdir): Likewise.
13711         * tests/test-fchownat.c (fchownat): Likewise.
13712         * tests/test-fcntl.c (fcntl): Likewise.
13713         * tests/test-fdopendir.c (fdopendir): Likewise.
13714         * tests/test-fflush.c (fflush): Likewise.
13715         * tests/test-flock.c (flock): Likewise.
13716         * tests/test-floorf1.c (floorf): Likewise.
13717         * tests/test-floorl.c (floorl): Likewise.
13718         * tests/test-fnmatch.c (fnmatch): Likewise.
13719         * tests/test-fopen.c (fopen): Likewise.
13720         * tests/test-fprintf-posix.c (fprintf): Likewise.
13721         * tests/test-freopen.c (freopen): Likewise.
13722         * tests/test-frexp.c (frexp): Likewise.
13723         * tests/test-frexpl.c (frexpl): Likewise.
13724         * tests/test-fseek.c (fseek): Likewise.
13725         * tests/test-fseeko.c (fseeko): Likewise.
13726         * tests/test-fstatat.c (fstatat): Likewise.
13727         * tests/test-fsync.c (fsync): Likewise.
13728         * tests/test-ftell.c (ftell): Likewise.
13729         * tests/test-ftello.c (ftello): Likewise.
13730         * tests/test-futimens.c (futimens): Likewise.
13731         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13732         (gai_strerror): Likewise.
13733         * tests/test-getcwd.c (getcwd): Likewise.
13734         * tests/test-getdelim.c (getdelim): Likewise.
13735         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13736         * tests/test-getgroups.c (getgroups): Likewise.
13737         * tests/test-gethostname.c (gethostname): Likewise.
13738         * tests/test-getline.c (getline): Likewise.
13739         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13740         Likewise.
13741         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13742         * tests/test-glob.c (glob, globfree): Likewise.
13743         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13744         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13745         * tests/test-inet_pton.c (inet_pton): Likewise.
13746         * tests/test-isblank.c (isblank): Likewise.
13747         * tests/test-lchown.c (lchown): Likewise.
13748         * tests/test-ldexpl.c (ldexpl): Likewise.
13749         * tests/test-link.c (link): Likewise.
13750         * tests/test-linkat.c (linkat): Likewise.
13751         * tests/test-lseek.c (lseek): Likewise.
13752         * tests/test-lstat.c (lstat): Likewise.
13753         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13754         * tests/test-mbsinit.c (mbsinit): Likewise.
13755         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13756         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13757         * tests/test-memchr.c (memchr): Likewise.
13758         * tests/test-memcmp.c (memcmp): Likewise.
13759         * tests/test-memmem.c (memmem): Likewise.
13760         * tests/test-memrchr.c (memrchr): Likewise.
13761         * tests/test-mkdir.c (mkdir): Likewise.
13762         * tests/test-mkdirat.c (mkdirat): Likewise.
13763         * tests/test-mkfifo.c (mkfifo): Likewise.
13764         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13765         * tests/test-mknod.c (mknod): Likewise.
13766         * tests/test-nanosleep.c (nanosleep): Likewise.
13767         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13768         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13769         Likewise.
13770         * tests/test-open.c (open): Likewise.
13771         * tests/test-openat.c (openat): Likewise.
13772         * tests/test-perror.c (perror): Likewise.
13773         * tests/test-pipe2.c (pipe2): Likewise.
13774         * tests/test-poll.c (poll): Likewise.
13775         * tests/test-popen.c (popen, pclose): Likewise.
13776         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13777         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13778         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13779         (posix_spawn_file_actions_destroy)
13780         (posix_spawn_file_actions_addclose)
13781         (posix_spawn_file_actions_addopen)
13782         (posix_spawn_file_actions_adddup2): Likewise.
13783         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13784         * tests/test-pread.c (pread): Likewise.
13785         * tests/test-printf-posix.c (printf): Likewise.
13786         * tests/test-pty.c (openpty, forkpty): Likewise.
13787         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13788         (random_r): Likewise.
13789         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13790         * tests/test-readlink.c (readlink): Likewise.
13791         * tests/test-remove.c (remove): Likewise.
13792         * tests/test-rename.c (rename): Likewise.
13793         * tests/test-renameat.c (renameat): Likewise.
13794         * tests/test-rmdir.c (rmdir): Likewise.
13795         * tests/test-round1.c (round): Likewise.
13796         * tests/test-roundf1.c (roundf): Likewise.
13797         * tests/test-roundl.c (roundl): Likewise.
13798         * tests/test-setenv.c (setenv): Likewise.
13799         * tests/test-sigaction.c (sigaction): Likewise.
13800         * tests/test-sleep.c (sleep): Likewise.
13801         * tests/test-snprintf.c (snprintf): Likewise.
13802         * tests/test-sprintf-posix.c (sprintf): Likewise.
13803         * tests/test-stat.c (stat): Likewise.
13804         * tests/test-stpncpy.c (stpncpy): Likewise.
13805         * tests/test-strcasestr.c (strcasestr): Likewise.
13806         * tests/test-strchrnul.c (strchrnul): Likewise.
13807         * tests/test-strerror.c (strerror): Likewise.
13808         * tests/test-strsignal.c (strsignal): Likewise.
13809         * tests/test-strstr.c (strstr): Likewise.
13810         * tests/test-strtod.c (strtod): Likewise.
13811         * tests/test-strverscmp.c (strverscmp): Likewise.
13812         * tests/test-symlink.c (symlink): Likewise.
13813         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13814         * tests/test-times.c (times): Likewise.
13815         * tests/test-trunc1.c (trunc): Likewise.
13816         * tests/test-truncf1.c (truncf): Likewise.
13817         * tests/test-truncl.c (truncl): Likewise.
13818         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13819         Likewise.
13820         * tests/test-uname.c (uname): Likewise.
13821         * tests/test-unlink.c (unlink): Likewise.
13822         * tests/test-unlinkat.c (unlinkat): Likewise.
13823         * tests/test-unsetenv.c (unsetenv): Likewise.
13824         * tests/test-usleep.c (usleep): Likewise.
13825         * tests/test-utimensat.c (utimensat): Likewise.
13826         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13827         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13828         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13829         * tests/test-vprintf-posix.c (vprintf): Likewise.
13830         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13831         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13832         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13833         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13834         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13835         * tests/test-wcwidth.c (wcwidth): Likewise.
13836
13837         build: pull in conditional headers during GNULIB_POSIXCHECK
13838         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13839         definitions from any conditionally-included headers.
13840         * lib/stdlib.in.h (includes): Likewise.
13841         * lib/unistd.in.h (includes): Likewise.
13842
13843 2009-12-24  Bruno Haible  <bruno@clisp.org>
13844
13845         * tests/test-argv-iter.c: Include header file being tested immediately
13846         after config.h.
13847         * tests/test-base64.c: Likewise.
13848         * tests/test-flock.c: Likewise.
13849         * tests/test-fsync.c: Likewise.
13850         * tests/test-getdate.c: Likewise.
13851         * tests/test-getndelim2.c: Likewise.
13852         * tests/test-isfinite.c: Likewise.
13853         * tests/test-isinf.c: Likewise.
13854         * tests/test-strerror.c: Likewise.
13855         * tests/test-strsignal.c: Likewise.
13856
13857 2009-12-23  Eric Blake  <ebb9@byu.net>
13858
13859         unistd: work around cygwin bug
13860         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
13861         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
13862         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13863
13864 2009-12-23  Bruno Haible  <bruno@clisp.org>
13865
13866         localename: More tests.
13867         * tests/test-localename.c (SIZEOF): New macro.
13868         (categories): New variable.
13869         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
13870         test_locale_name_default): Add test w.r.t. thread locale.
13871         (test_locale_name_thread): New function.
13872         (main): Invoke it.
13873
13874         localename: Make aware of thread locale.
13875         * lib/localename.h (gl_locale_name_thread): New declaration.
13876         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
13877         behaviour with respect to thread locale.
13878         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
13879         <langinfo.h>, glthread/lock.h.
13880         (SIZE_BITS): New macro.
13881         (string_hash): New function.
13882         (struct hash_node): New type.
13883         (HASH_TABLE_SIZE): New macro.
13884         (struniq_hash_table, struniq_lock): New variables.
13885         (struniq): New function.
13886         (gl_locale_name_thread): New function.
13887         (gl_locale_name): Invoke it.
13888         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
13889         * modules/localename (Depends-on): Add lock.
13890         Reported by Mike Gran <spk121@yahoo.com>.
13891
13892 2009-12-23  Eric Blake  <ebb9@byu.net>
13893
13894         va-args: new module
13895         * modules/va-args: New file.
13896         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
13897         * MODULES.html.sh (Core language properties): Mention it.
13898
13899         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
13900         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
13901         named alias for __attribute__((__unused__)).
13902         * lib/chown.c: Update client.
13903         * lib/fchmodat.c: Likewise.
13904         * lib/fts.c: Likewise.
13905         * lib/getdate.y: Likewise.
13906         * lib/getgroups.c: Likewise.
13907         * lib/getopt.c: Likewise.
13908         * lib/getugroups.c: Likewise.
13909         * lib/mkdir.c: Likewise.
13910         * lib/mkfifo.c: Likewise.
13911         * lib/mkfifoat.c: Likewise.
13912         * lib/mknod.c: Likewise.
13913         * lib/mknodat.c: Likewise.
13914         * lib/readlink.c: Likewise.
13915         * lib/se-context.in.h: Likewise.
13916         * lib/se-selinux.in.h: Likewise.
13917         * lib/sockets.c: Likewise.
13918         * lib/symlink.c: Likewise.
13919         * lib/symlinkat.c: Likewise.
13920         * lib/unicodeio.c: Likewise.
13921         * lib/unistr.h: Likewise.
13922         * tests/test-areadlink.c: Likewise.
13923         * tests/test-areadlinkat.c: Likewise.
13924         * tests/test-filenamecat.c: Likewise.
13925         * tests/test-fseeko.c: Likewise.
13926         * tests/test-ftello.c: Likewise.
13927         * tests/test-getdate.c: Likewise.
13928         * tests/test-getgroups.c: Likewise.
13929         * tests/test-gethostname.c: Likewise.
13930         * tests/test-quotearg.c: Likewise.
13931         * tests/test-version-etc.c: Likewise.
13932         * tests/test-xalloc-die.c: Likewise.
13933         * tests/test-xfprintf-posix.c: Likewise.
13934         * tests/test-xprintf-posix.c: Likewise.
13935         * tests/test-xvasprintf.c: Likewise.
13936
13937         tests: avoid compiler warnings
13938         * tests/test-fcntl.c (main): Delete unused parameters.
13939         * tests/test-freopen-safer.c (main): Likewise.
13940         * tests/test-xalloc-die.c (main): Mark unused parameters.
13941         * tests/test-fseeko.c (main): Likewise.
13942         * tests/test-ftello.c (main): Likewise.
13943         * tests/test-nanosleep.c (main): Avoid declaration warning.
13944         * tests/test-sleep.c (main): Likewise.
13945         * tests/test-unsetenv.c (main): Silence warning about string
13946         literal.
13947         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13948
13949 2009-12-23  Bruno Haible  <bruno@clisp.org>
13950
13951         * tests/test-localename.c (test_locale_name): New function, extracted
13952         from main. Also test mixed situations.
13953         (test_locale_name_posix, test_locale_name_environ,
13954         test_locale_name_default): New functions.
13955         (main): Invoke them all.
13956         * modules/localename-tests (configure.ac): Test for newlocale.
13957
13958 2009-12-23  Bruno Haible  <bruno@clisp.org>
13959
13960         unistd: Ensure getcwd gets declared before being overridden.
13961         * lib/unistd.in.h: Conditionally include <io.h>.
13962
13963 2009-12-22  Bruno Haible  <bruno@clisp.org>
13964
13965         wchar: Diagnose broken combination of glibc and gcc versions and flags.
13966         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
13967         (gl_WCHAR_H): Invoke it.
13968         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
13969         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
13970         Reported by Karl Berry <karl@freefriends.org>.
13971
13972 2009-12-22  Eric Blake  <ebb9@byu.net>
13973
13974         math, unistd: avoid redundant includes
13975         * lib/math.in.h (isnan): No need to re-include <math.h>.
13976         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
13977
13978         getsubopt: work around cygwin bug
13979         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
13980         avoid conflicting with system getsubopt.
13981         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
13982         bug.
13983
13984         getopt: synchronize from glibc
13985         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
13986         parameter order.  Adjust all callers.
13987         (_getopt_internal_r, main): Adjust quoting in error messages.
13988         Drop considerations for outdated POSIX 1003.2 error message.
13989         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
13990         callers.
13991         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
13992
13993         test-getopt: test stderr behavior
13994         * modules/getopt-posix-tests (Depends-on): Add dup2.
13995         * tests/test-getopt.c (ASSERT): Avoid stderr.
13996         (main): Move stderr to a temporary file.
13997         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
13998         Instead, add parameter to inform caller if output occurred.
13999         (test_getopt): Adjust all existing tests to expect silence, and
14000         add new tests of leading ":".
14001         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14002         glibc shortcomings with leading "-:" or "+:" in optstring.
14003         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14004         Likewise.
14005         * doc/posix-functions/getopt.texi (getopt): Likewise.
14006
14007         test-getopt: enhance test
14008         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14009         supports optind=0.
14010         * tests/test-getopt.c (OPTIND_MIN): Move...
14011         * tests/test-getopt.h (OPTIND_MIN): ...here.
14012         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14013         Require that optind=0 works, since modern BSD supports it in
14014         addition to optreset, and since coreutils expects it.
14015         (test_getopt_long_only): New test.
14016         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14017         glibc shortcomings with 'W;', and enforcement of optind=0.
14018         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14019         Likewise.
14020
14021 2009-12-21  Bruno Haible  <bruno@clisp.org>
14022
14023         localename: Improvements for MacOS X and Cygwin.
14024         * lib/localename.h (gl_locale_name_environ): New declaration.
14025         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14026         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14027         (gl_locale_name_posix): Invoke it.
14028         (gl_locale_name_default): Add comments. Use Windows native API also on
14029         Cygwin.
14030
14031 2009-12-21  Bruno Haible  <bruno@clisp.org>
14032
14033         Update list of Win32 locale ids.
14034         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14035         (LANG_SAMI): Renamed from LANG_SAAMI.
14036         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14037         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14038         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14039         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14040         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14041         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14042         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14043         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14044         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14045         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14046         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14047         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14048         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14049         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14050         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14051         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14052         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14053         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14054         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14055         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14056         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14057         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14058         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14059         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14060         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14061         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14062         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14063         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14064         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14065         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14066         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14067         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14068         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14069         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14070         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14071         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14072         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14073         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14074         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14075         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14076         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14077         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14078         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14079         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14080         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14081         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14082         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14083         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14084         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14085         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14086         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14087         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14088         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14089         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14090         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14091         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14092         Add more languages and countries for Sami, Sorbian. Add more countries
14093         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14094         for Pashto. Change country for Syriac, Tswana.
14095
14096 2009-12-21  Eric Blake  <ebb9@byu.net>
14097
14098         test-utimens: avoid spurious failure
14099         * tests/test-chown.h (nap): Factor...
14100         * tests/nap.h: ...into new file.
14101         * tests/test-lchown.h (nap): Avoid duplication.
14102         * tests/test-utimens-common.h (nap): Use shared implementation,
14103         necessary on file systems with 1-second resolution.
14104         * modules/chown-tests (Files): Include new file.
14105         * modules/fdutimensat-tests (Files): Likewise.
14106         * modules/futimens-tests (Files): Likewise.
14107         * modules/lchown-tests (Files): Likewise.
14108         * modules/openat-tests (Files): Likewise.
14109         * modules/utimens-tests (Files): Likewise.
14110         * modules/utimensat-tests (Files): Likewise.
14111
14112 2009-12-19  Eric Blake  <ebb9@byu.net>
14113
14114         futimens, utimensat: work around Linux bug
14115         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14116         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14117         * lib/utimensat.c (rpl_utimensat): Work around it.
14118         * lib/futimens.c (rpl_futimens): Adjust comment.
14119
14120         utimens: work around Linux ctime bug
14121         * lib/utimens.c (detect_ctime_bug): New helper function.
14122         (update_timespec): Differentiate between workaround needed for
14123         this bug vs. what is needed for systems that lack utimensat.
14124         (fdutimens, lutimens): Work around bug.
14125
14126         utimens: check for ctime update
14127         * tests/test-utimens-common.h (check_ctime): Define.
14128         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14129         * tests/test-futimens.h (test_futimens): Likewise.
14130         * tests/test-lutimens.h (test_lutimens): Likewise.
14131         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14132         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14133
14134 2009-12-19  Bruno Haible  <bruno@clisp.org>
14135
14136         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14137         * tests/test-dprintf-posix2.sh: New file.
14138         * tests/test-dprintf-posix2.c: New file.
14139         * modules/dprintf-posix-tests (Files): Add them.
14140         (configure.ac): Check for getrlimit and setrlimit.
14141         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14142
14143 2009-12-19  Bruno Haible  <bruno@clisp.org>
14144
14145         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14146         * tests/test-fprintf-posix3.sh: New file.
14147         * tests/test-fprintf-posix3.c: New file.
14148         * modules/fprintf-posix-tests (Files): Add them.
14149         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14150
14151 2009-12-19  Eric Blake  <ebb9@byu.net>
14152
14153         dirfd: fix prototype
14154         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14155         * lib/dirfd.c (dirfd): Likewise.
14156
14157         canonicalize: reduce memory usage
14158         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14159         allocation to size.
14160         Reported by Solar Designer <solar@openwall.com>.
14161
14162 2009-12-19  Bruno Haible  <bruno@clisp.org>
14163
14164         New module attribute 'Applicability'.
14165         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14166         * gnulib-tool: New option --extract-applicability.
14167         (func_usage): Document it.
14168         (sed_extract_prog): Recognize it.
14169         (func_get_applicability): New function.
14170         (func_import): Generalize handling of 'link-warning' module.
14171         * modules/link-warning (Applicability): New section.
14172         * modules/arg-nonnull (Applicability): New section.
14173         Repoted by Simon Josefsson <simon@josefsson.org>.
14174
14175 2009-12-19  Bruno Haible  <bruno@clisp.org>
14176
14177         fflush: tweak
14178         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14179         * lib/fseeko.c (rpl_fseeko): Likewise.
14180
14181 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14182
14183         * lib/gl_list.h: Fix typo in comment.
14184
14185 2009-12-16  Eric Blake  <ebb9@byu.net>
14186
14187         fcntl: use to simplify other modules
14188         * modules/cloexec (Depends-on): Add fcntl.
14189         * modules/fchdir (Depends-on): Likewise.
14190         * modules/fd-safer-flag (Depends-on): Likewise.
14191         * modules/unistd-safer (Depends-on): Likewise.
14192         * modules/dup3 (configure.ac): Set module indicator.
14193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14194         missing.
14195         * lib/fchdir.c (_gl_register_dup): Fix comment.
14196         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14197         * lib/dup-safer.c (dup_safer): Likewise.
14198         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14199         * lib/dup3.c (dup3): Likewise.
14200         * tests/test-fchdir.c (main): Enhance test.
14201         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14202
14203         fcntl: port portions of fcntl to mingw
14204         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14205         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14206         replacement for mingw.
14207         * modules/fcntl (Description): Update.
14208         (Depends-on): Add dup2.
14209         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14210         * modules/fcntl-h (Makefile.am): Substitute it.
14211         * lib/fcntl.in.h (fcntl): Update declaration.
14212         (F_DUPFD, F_GETFD): New macros, when needed.
14213         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14214         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14215         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14216         we now guarantee.
14217
14218         fcntl: work around cygwin bug in F_DUPFD
14219         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14220         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14221         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14222         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14223         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14224
14225         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14226         * modules/fcntl (Files): List new files.
14227         (configure.ac): Run a test.
14228         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14229         * lib/fcntl.c (rpl_fcntl): Likewise.
14230         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14231         (gl_FCNTL_H): Always replace fcntl.h.
14232         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14233         * lib/fcntl.in.h (fcntl): Declare replacement.
14234         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14235         needed, plus a witness.
14236         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14237         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14238         * tests/test-fcntl.c: New file.
14239         * modules/fcntl-tests: Likewise.
14240
14241         binary-io: avoid potential compilation warning
14242         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14243         directives.
14244
14245         fflush: avoid compilation error on NetBSD
14246         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14247         between off_t and fpos_t, since the latter is sometimes a struct.
14248         * lib/fseeko.c (rpl_fseeko): Likewise.
14249         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14250
14251 2009-12-15  Eric Blake  <ebb9@byu.net>
14252
14253         fcntl-h, stdio, sys_ioctl: fix declarations
14254         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14255         function must not take arguments.
14256         * lib/sys_ioctl.in.h (ioctl): Likewise.
14257         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14258         (open): Add a link warning.
14259
14260 2009-12-15  Jim Meyering  <meyering@redhat.com>
14261
14262         areadlink, areadlink-with-size: relax license to LGPLv2+
14263         * modules/areadlink (License): Relax to LGPLv2+.
14264         * modules/areadlink-with-size (License): Likewise.
14265
14266 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14267             Bruno Haible  <bruno@clisp.org>
14268
14269         *printf: Fix memory leak.
14270         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14271         * lib/vfprintf.c (vfprintf): Likewise.
14272         * lib/dprintf.c (dprintf): Likewise.
14273         * lib/vdprintf.c (vdprintf): Likewise.
14274
14275 2009-12-14  Eric Blake  <ebb9@byu.net>
14276
14277         accept4: adjust module dependencies
14278         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14279
14280         utimens: one more try at avoiding compiler warning
14281         * lib/utimens.c (lutimens): Lower scope of result.
14282
14283 2009-12-13  Bruno Haible  <bruno@clisp.org>
14284
14285         Move the malloc checking from module 'list' to new module 'xlist'.
14286         * modules/xlist: New file.
14287         * lib/gl_xlist.h: New file.
14288         * lib/gl_xlist.c: New file.
14289         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14290         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14291         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14292         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14293         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14294         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14295         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14296         gl_sortedlist_nx_add): New declarations.
14297         (struct gl_list_implementation): Rename and change methods accordingly.
14298         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14299         (gl_list_nx_create): Renamed from gl_list_create.
14300         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14301         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14302         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14303         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14304         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14305         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14306         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14307         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14308         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14309         gl_list_create_empty.
14310         (gl_list_nx_create): Renamed from gl_list_create.
14311         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14312         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14313         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14314         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14315         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14316         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14317         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14318         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14319         * lib/gl_array_list.c: Don't include xalloc.h.
14320         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14321         NULL upon out-of-memory.
14322         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14323         out-of-memory.
14324         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14325         Change return type to 'int'.
14326         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14327         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14328         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14329         upon out-of-memory.
14330         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14331         upon out-of-memory.
14332         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14333         upon out-of-memory.
14334         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14335         upon out-of-memory.
14336         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14337         out-of-memory.
14338         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14339         Update.
14340         (gl_array_list_implementation): Update.
14341         * lib/gl_carray_list.c: Don't include xalloc.h.
14342         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14343         Return NULL upon out-of-memory.
14344         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14345         out-of-memory.
14346         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14347         Change return type to 'int'.
14348         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14349         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14350         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14351         upon out-of-memory.
14352         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14353         upon out-of-memory.
14354         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14355         out-of-memory.
14356         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14357         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14358         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14359         Update.
14360         (gl_carray_list_implementation): Update.
14361         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14362         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14363         gl_linked_create_empty. Return NULL upon out-of-memory.
14364         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14365         out-of-memory.
14366         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14367         Change return type to 'int'. Return -1 upon out-of-memory.
14368         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14369         out-of-memory.
14370         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14371         upon out-of-memory.
14372         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14373         upon out-of-memory.
14374         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14375         NULL upon out-of-memory.
14376         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14377         upon out-of-memory.
14378         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14379         out-of-memory.
14380         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14381         Update.
14382         * lib/gl_linked_list.c: Don't include xalloc.h.
14383         (gl_linked_list_implementation): Update.
14384         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14385         (add_to_bucket): Change return type to 'int'.
14386         (gl_linkedhash_list_implementation): Update.
14387         * lib/gl_anytree_list1.h (free_subtree): New function.
14388         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14389         gl_tree_create_empty. Return NULL upon out-of-memory.
14390         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14391         Change return type to 'int'. Return -1 upon out-of-memory.
14392         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14393         out-of-memory.
14394         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14395         (gl_tree_remove_node): New function, moved here from
14396         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14397         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14398         Update.
14399         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14400         malloc, not xmalloc. Return NULL upon out-of-memory.
14401         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14402         out-of-memory.
14403         (gl_tree_remove_node_from_tree): New function, extracted from
14404         gl_tree_remove_node.
14405         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14406         upon out-of-memory.
14407         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14408         out-of-memory.
14409         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14410         upon out-of-memory.
14411         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14412         upon out-of-memory.
14413         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14414         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14415         not xmalloc. Return NULL upon out-of-memory.
14416         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14417         out-of-memory.
14418         (gl_tree_remove_node_from_tree): New function, extracted from
14419         gl_tree_remove_node.
14420         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14421         upon out-of-memory.
14422         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14423         out-of-memory.
14424         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14425         upon out-of-memory.
14426         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14427         upon out-of-memory.
14428         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14429         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14430         gl_anytree_list1.h before gl_anyavltree_list2.h.
14431         (gl_avltree_list_implementation): Update.
14432         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14433         gl_anytree_list1.h before gl_anyavltree_list2.h.
14434         (gl_rbtree_list_implementation): Update.
14435         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14436         Change return type to 'int'. Return -1 upon out-of-memory. Use
14437         __builtin_expect.
14438         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14439         (gl_avltreehash_list_implementation): Update.
14440         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14441         (gl_rbtreehash_list_implementation): Update.
14442         * modules/array-list (Depends-on): Remove xalloc.
14443         * modules/carray-list (Depends-on): Likewise.
14444         * modules/linked-list (Depends-on): Likewise.
14445         * modules/linkedhash-list (Depends-on): Likewise.
14446         * modules/avltree-list (Depends-on): Likewise.
14447         * modules/rbtree-list (Depends-on): Likewise.
14448         * modules/avltreehash-list (Depends-on): Likewise.
14449         * modules/rbtreehash-list (Depends-on): Likewise.
14450
14451         * modules/xsublist: New file.
14452         * lib/gl_xsublist.h: New file.
14453         * lib/gl_xsublist.c: New file.
14454         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14455         (gl_sublist_nx_create): New declaration.
14456         * lib/gl_sublist.c: Don't include xalloc.h.
14457         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14458         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14459         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14460         Change return type to 'int'. Return -1 upon out-of-memory.
14461         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14462         upon out-of-memory.
14463         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14464         NULL upon out-of-memory.
14465         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14466         upon out-of-memory.
14467         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14468         NULL upon out-of-memory.
14469         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14470         NULL upon out-of-memory.
14471         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14472         upon out-of-memory.
14473         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14474         (gl_sublist_list_implementation): Update.
14475         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14476         upon out-of-memory.
14477         * modules/sublist (Depends-on): Remove xalloc.
14478
14479         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14480         * tests/test-carray_list.c: Likewise.
14481         * tests/test-linked_list.c: Likewise.
14482         * tests/test-linkedhash_list.c: Likewise.
14483         * tests/test-avltree_list.c: Likewise.
14484         * tests/test-rbtree_list.c: Likewise.
14485         * tests/test-avltreehash_list.c: Likewise.
14486         * tests/test-rbtreehash_list.c: Likewise.
14487         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14488         * modules/carray-list-tests (Makefile.am): Likewise.
14489         * modules/linked-list-tests (Makefile.am): Likewise.
14490         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14491         * modules/avltree-list-tests (Makefile.am): Likewise.
14492         * modules/rbtree-list-tests (Makefile.am): Likewise.
14493         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14494         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14495
14496         * NEWS: Mention the changes.
14497
14498         * lib/clean-temp.c: Include gl_xlist.h.
14499         * modules/clean-temp (Depends-on): Add xlist.
14500
14501         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14502         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14503
14504         * tests/test-array_oset.c: Include gl_xlist.h.
14505         * modules/array-oset-tests (Depends-on): Add xlist.
14506
14507         Reported by José E. Marchesi <jemarch@gnu.org>.
14508
14509 2009-12-13  Bruno Haible  <bruno@clisp.org>
14510
14511         Move the malloc checking from module 'oset' to new module 'xoset'.
14512         * modules/xoset: New file.
14513         * lib/gl_xoset.h: New file.
14514         * lib/gl_xoset.c: New file.
14515         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14516         declarations.
14517         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14518         (struct gl_oset_implementation): Rename and change methods accordingly.
14519         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14520         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14521         'int'. Mark as __warn_unused_result__.
14522         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14523         gl_oset_create_empty.
14524         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14525         'int'.
14526         * lib/gl_array_oset.c: Don't include xalloc.h.
14527         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14528         malloc, not xmalloc.
14529         (grow): Change return type to 'int'. Don't call xalloc_die.
14530         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14531         to 'int'.
14532         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14533         'int'.
14534         (gl_array_oset_implementation): Update.
14535         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14536         gl_tree_create_empty.
14537         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14538         'int'.
14539         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14540         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14541         xmalloc.
14542         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14543         not xmalloc.
14544         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14545         xmalloc.
14546         (gl_avltree_oset_implementation): Update.
14547         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14548         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14549         xmalloc.
14550         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14551         not xmalloc.
14552         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14553         xmalloc.
14554         (gl_rbtree_oset_implementation): Update.
14555         * modules/array-oset (Depends-on): Remove xalloc.
14556         * modules/avltree-oset (Depends-on): Likewise.
14557         * modules/rbtree-oset (Depends-on): Likewise.
14558         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14559         * tests/test-avltree_oset.c: Likewise.
14560         * tests/test-rbtree_oset.c: Likewise.
14561         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14562         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14563         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14564         * NEWS: Mention the change.
14565
14566 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14567
14568         maint.mk: allow a project to override release-prep commands
14569         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14570         commands into a new rule.
14571         (release-prep): New rule.
14572         (release-prep-hook): New overridable variable.
14573
14574 2009-12-13  Bruno Haible  <bruno@clisp.org>
14575
14576         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14577
14578 2009-12-13  Jim Meyering  <meyering@redhat.com>
14579
14580         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14581         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14582
14583 2009-12-12  Bruno Haible  <bruno@clisp.org>
14584
14585         duplocale: Tweak.
14586         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14587
14588 2009-12-12  Karl Berry  <karl@gnu.org>
14589
14590         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14591
14592 2009-12-12  Bruno Haible  <bruno@clisp.org>
14593
14594         * m4/po.m4: Undo incorrect untabification.
14595
14596 2009-12-12  Bruno Haible  <bruno@clisp.org>
14597
14598         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14599         * modules/c-strtod (Depends-on): Add locale.
14600         * modules/c-strtold (Depends-on): Likewise.
14601
14602 2009-12-12  Bruno Haible  <bruno@clisp.org>
14603
14604         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14605
14606 2009-12-11  Eric Blake  <ebb9@byu.net>
14607
14608         setenv: relax requirement in light of POSIX ruling
14609         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14610         not NULL.
14611         * tests/test-setenv.c (main): Relax test.
14612         * tests/test-unsetenv.c (main): Likewise.
14613         * doc/posix-functions/setenv.texi (setenv): Document this.
14614         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14615
14616 2009-12-11  Bruno Haible  <bruno@clisp.org>
14617
14618         New module 'fd-safer-flag'.
14619         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14620         * lib/dup-safer.c (dup_safer_flag): Remove function.
14621         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14622         * lib/fd-safer.c (fd_safer_flag): Remove function.
14623         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14624         * modules/cloexec (configure.ac): Drop indicator macro.
14625         * modules/fd-safer-flag: New file.
14626         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14627         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14628         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14629
14630 2009-12-11  Bruno Haible  <bruno@clisp.org>
14631
14632         Tests for module 'nl_langinfo'.
14633         * modules/nl_langinfo-tests: New file.
14634         * tests/test-nl_langinfo.sh: New file.
14635         * tests/test-nl_langinfo.c: New file.
14636
14637         New module 'nl_langinfo'.
14638         * lib/nl_langinfo.c: New file.
14639         * m4/nl_langinfo.m4: New file.
14640         * modules/nl_langinfo: New file.
14641         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14642
14643 2009-12-11  Bruno Haible  <bruno@clisp.org>
14644
14645         Tests for module 'langinfo'.
14646         * modules/langinfo-tests: New file.
14647         * tests/test-langinfo.c: New file.
14648
14649         New module 'langinfo'.
14650         * lib/langinfo.in.h: New file.
14651         * m4/langinfo_h.m4: New file.
14652         * modules/langinfo: New file.
14653         * doc/posix-headers/langinfo.texi: Mention the new module.
14654
14655 2009-12-11  Bruno Haible  <bruno@clisp.org>
14656
14657         * lib/config.charset: Untabify.
14658
14659 2009-12-11  Bruno Haible  <bruno@clisp.org>
14660
14661         * modules/unistd-safer (configure.ac): Drop indicator macro.
14662
14663 2009-12-11  Bruno Haible  <bruno@clisp.org>
14664
14665         Move pipe2-safer code to its own file.
14666         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14667         * lib/pipe-safer.c (pipe2_safer): Remove function.
14668         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14669         (Makefile.am): Add it to lib_SOURCES.
14670
14671 2009-12-10  Bruno Haible  <bruno@clisp.org>
14672
14673         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14674
14675 2009-12-10  Bruno Haible  <bruno@clisp.org>
14676
14677         Declare which arguments expect non-NULL values, for GCC and clang.
14678         * build-aux/arg-nonnull.h: New file.
14679         * modules/arg-nonnull: New file.
14680         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14681         (inet_ntop, inet_pton): Use it.
14682         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14683         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14684         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14685         (open, openat): Use it.
14686         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14687         (fnmatch): Use it.
14688         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14689         (getopt, getopt_long, getopt_long_only): Use it.
14690         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14691         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14692         Use it.
14693         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14694         (iconv_open): Use it.
14695         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14696         (strtoimax, strtoumax): Use it.
14697         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14698         (duplocale): Use it.
14699         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14700         (frexp, frexpl): Use it.
14701         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14702         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14703         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14704         (tsearch, tfind, tdelete, twalk): Use it.
14705         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14706         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14707         sigpending): Use it.
14708         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14709         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14710         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14711         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14712         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14713         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14714         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14715         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14716         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14717         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14718         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14719         Use it.
14720         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14721         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14722         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14723         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14724         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14725         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14726         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14727         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14728         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14729         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14730         strtoull, unsetenv): Use it.
14731         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14732         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14733         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14734         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14735         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14736         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14737         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14738         (strcasecmp, strncasecmp): Use it.
14739         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14740         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14741         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14742         rpl_setsockopt): Use it.
14743         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14744         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14745         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14746         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14747         (gettimeofday): Use it.
14748         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14749         (times): Use it.
14750         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14751         (uname): Use it.
14752         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14753         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14754         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14755         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14756         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14757         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14758         unlinkat, write): Use it.
14759         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14760         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14761         * lib/argv-iter.h: Include arg-nonnull.h.
14762         (_ATTRIBUTE_NONNULL_): Remove macro.
14763         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14764         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14765         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14766         optimization.
14767         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14768         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14769         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14770         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14771         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14772         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14773         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14774         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14775         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14776         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14777         * modules/dirent (Depends-on): Add arg-nonnull.
14778         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14779         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14780         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14781         * modules/fnmatch (Depends-on): Add arg-nonnull.
14782         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14783         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14784         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14785         * modules/glob (Depends-on): Add arg-nonnull.
14786         (Makefile.am): Insert arg-nonnull.h into glob.h.
14787         * modules/iconv_open (Depends-on): Add arg-nonnull.
14788         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14789         * modules/inttypes (Depends-on): Add arg-nonnull.
14790         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14791         * modules/locale (Depends-on): Add arg-nonnull.
14792         (Makefile.am): Insert arg-nonnull.h into locale.h.
14793         * modules/math (Depends-on): Add arg-nonnull.
14794         (Makefile.am): Insert arg-nonnull.h into math.h.
14795         * modules/netdb (Depends-on): Add arg-nonnull.
14796         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14797         * modules/search (Depends-on): Add arg-nonnull.
14798         (Makefile.am): Insert arg-nonnull.h into search.h.
14799         * modules/signal (Depends-on): Add arg-nonnull.
14800         (Makefile.am): Insert arg-nonnull.h into signal.h.
14801         * modules/spawn (Depends-on): Add arg-nonnull.
14802         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14803         * modules/stdio (Depends-on): Add arg-nonnull.
14804         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14805         * modules/stdlib (Depends-on): Add arg-nonnull.
14806         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14807         * modules/string (Depends-on): Add arg-nonnull.
14808         (Makefile.am): Insert arg-nonnull.h into string.h.
14809         * modules/strings (Depends-on): Add arg-nonnull.
14810         (Makefile.am): Insert arg-nonnull.h into strings.h.
14811         * modules/sys_socket (Depends-on): Add arg-nonnull.
14812         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14813         * modules/sys_stat (Depends-on): Add arg-nonnull.
14814         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14815         * modules/sys_time (Depends-on): Add arg-nonnull.
14816         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14817         * modules/sys_times (Depends-on): Add arg-nonnull.
14818         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14819         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14820         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14821         * modules/time (Depends-on): Add arg-nonnull.
14822         (Makefile.am): Insert arg-nonnull.h into time.h.
14823         * modules/unistd (Depends-on): Add arg-nonnull.
14824         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14825         * modules/wchar (Depends-on): Add arg-nonnull.
14826         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14827         * modules/argv-iter (Depends-on): Add arg-nonnull.
14828         * tests/test-canonicalize.c (null_ptr): New function.
14829         (main): Use it.
14830         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14831         (main): Use it.
14832         * tests/test-memmem.c (null_ptr): New function.
14833         (main): Use it.
14834         Reported by Jim Meyering.
14835
14836 2009-12-10  Bruno Haible  <bruno@clisp.org>
14837
14838         Use spaces for indentation, not tabs.
14839         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14840         * m4/*.m4: Untabify.
14841         * build-aux/*.h: Untabify.
14842         * tests/**/*.[hc]: Untabify.
14843         * README: New section "Indent with spaces, not TABs", based on
14844         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14845         * NEWS: Mention the change.
14846
14847 2009-12-10  Bruno Haible  <bruno@clisp.org>
14848
14849         pty test: Fix link error.
14850         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14851         test_pty_LDADD.
14852
14853 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14854
14855         * modules/pty: New file.
14856         * modules/pty-tests: New file.
14857         * m4/pty.m4: New file.
14858         * tests/test-pty.c: New file.
14859         * doc/glibc-headers/pty.texi: Modified.
14860         * doc/glibc-functions/forkpty.texi: Modified.
14861         * doc/glibc-functions/openpty.texi: Modified.
14862
14863 2009-12-10  Bruno Haible  <bruno@clisp.org>
14864
14865         Avoid syntax error in C++ mode.
14866         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
14867
14868 2009-12-10  Bruno Haible  <bruno@clisp.org>
14869
14870         Use sed with option -e.
14871         * gnulib-tool (func_version, func_emit_copyright_notice,
14872         func_emit_initmacro_end, func_import, func_create_testdir): Pass
14873         option -e to sed.
14874         * modules/link-warning (Makefile.am): Likewise.
14875
14876 2009-12-10  Jim Meyering  <meyering@redhat.com>
14877
14878         mgetgroups: do not write bytes beyond end of malloc'd buffer
14879         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
14880         username, we call getgroups with a one-element-shorter buffer,
14881         but still told it the length was original, max_n_groups.
14882
14883 2009-12-09  Eric Blake  <ebb9@byu.net>
14884
14885         cloexec: relax license
14886         * modules/cloexec (Maintainer): Add myself.
14887         (License): Use LGPL, not GPL.
14888
14889         link-warning: optimize generation
14890         * modules/link-warning (Makefile.am): Reduce process usage.
14891
14892 2009-12-09  Bruno Haible  <bruno@clisp.org>
14893
14894         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
14895         workaround was added on 2009-11-17.
14896
14897 2009-12-09  Jim Meyering  <meyering@redhat.com>
14898             Bruno Haible  <bruno@clisp.org>
14899
14900         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
14901         * modules/link-warning (Makefile.am): Make the comment-removing sed
14902         command more robust in the face of bootstrap-prepended comment lines.
14903
14904 2009-12-09  Bruno Haible  <bruno@clisp.org>
14905
14906         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
14907         most one group.
14908
14909 2009-12-09  Simon Josefsson <simon@josefsson.org>
14910             Bruno Haible  <bruno@clisp.org>
14911
14912         * build-aux/link-warning.h: Add copyright notice.
14913         * modules/link-warning (Makefile.am): Generate link-warning.h from
14914         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
14915         * NEWS: Mention change in link-warning module.
14916         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
14917         * modules/dirent (Makefile.am): Add dependency to dirent.h.
14918         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
14919         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
14920         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
14921         * modules/math (Makefile.am): Add dependency to math.h.
14922         * modules/search (Makefile.am): Add dependency to search.h.
14923         * modules/signal (Makefile.am): Add dependency to signal.h.
14924         * modules/spawn (Makefile.am): Add dependency to spawn.h.
14925         * modules/stdio (Makefile.am): Add dependency to stdio.h.
14926         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
14927         * modules/string (Makefile.am): Add dependency to string.h.
14928         * modules/strings (Makefile.am): Add dependency to strings.h.
14929         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
14930         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
14931         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
14932         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
14933         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
14934         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
14935         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
14936         * modules/unistd (Makefile.am): Add dependency to unistd.h.
14937         * modules/wchar (Makefile.am): Add dependency to wchar.h.
14938
14939 2009-12-09  Bruno Haible  <bruno@clisp.org>
14940
14941         fchdir: Optimize away rpl_fstat when possible.
14942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
14943         REPLACE_OPEN_DIRECTORY.
14944         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
14945
14946 2009-12-09  Bruno Haible  <bruno@clisp.org>
14947
14948         * lib/fchdir.c: Update comment.
14949
14950 2009-12-09  Bruno Haible  <bruno@clisp.org>
14951
14952         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
14953
14954 2009-12-08  Eric Blake  <ebb9@byu.net>
14955
14956         fchdir: avoid memory leak on re-registration.
14957         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
14958
14959 2009-12-08  Jim Meyering  <meyering@redhat.com>
14960
14961         init.sh: avoid Solaris 10 /bin/sh portability problem
14962         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
14963         sourced script:
14964           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
14965           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
14966           bar
14967         tests/init.sh relied on that, accepting a --set-path=DIR argument,
14968         and two tests used that idiom.
14969         * tests/init.sh: Update suggested usage comments.
14970         (path_prepend_): New function, to be used in place
14971         of the --src-path=DIR option.
14972         (setup_): Move PATH-prepending code into path_prepend_.
14973         * tests/test-pread.sh: Adapt to new usage.
14974         * tests/test-xalloc-die.sh: Likewise.
14975
14976 2009-12-08  Simon Josefsson  <simon@josefsson.org>
14977
14978         * doc/gnulib.texi (Glibc pty.h): Add.
14979         * doc/glibc-functions/forkpty.texi: Add.
14980         * doc/glibc-functions/openpty.texi: Add.
14981         Suggested by Bruno Haible.
14982
14983 2009-12-08  Eric Blake  <ebb9@byu.net>
14984
14985         fchdir: fix logic bugs
14986         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
14987         * tests/test-fchdir.c (main): Enhance test.
14988         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
14989         is in use.
14990
14991         dup2: fix logic bugs
14992         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
14993         REPLACE_DUP2 to decide when rpl_dup2 is needed.
14994         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
14995         exists.
14996         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
14997
14998 2009-12-07  Eric Blake  <ebb9@byu.net>
14999
15000         unlink: fix m4 detection
15001         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15002
15003         unistd-safer: add unit test
15004         * modules/unistd-safer-tests: New file.
15005         * tests/test-dup-safer.c: Likewise.
15006         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15007         * tests/test-dup2.c (setmode): Likewise.
15008         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15009
15010         cloexec: preserve text vs. binary across dup_cloexec
15011         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15012         mode.
15013         * modules/dup2-tests (Depends-on): Add binary-io.
15014         * modules/cloexec-tests (Depends-on): Likewise.
15015         * tests/test-dup2.c (setmode, is_mode): New helpers.
15016         (main): Add tests that translation mode is preserved.
15017         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15018         Reported by Bruno Haible.
15019
15020         mgetgroups: reduce duplicate listings
15021         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15022         resulting array.
15023         * tests/test-chown.h (test_chown): Simplify client.
15024         * tests/test-lchown.h (test_lchown): Likewise.
15025
15026 2009-12-06  Bruno Haible  <bruno@clisp.org>
15027
15028         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15029         value.
15030
15031 2009-12-06  Bruno Haible  <bruno@clisp.org>
15032
15033         * lib/progname.c: Include stdio.h, stdlib.h.
15034         (set_program_name): Reject a NULL argument.
15035
15036 2009-12-05  Eric Blake  <ebb9@byu.net>
15037
15038         pipe2-safer: new module
15039         * modules/pipe2-safer: New file.
15040         * lib/unistd-safer.h (pipe2_safer): New prototype.
15041         * lib/unistd--.h (pipe2): New wrapper.
15042         * lib/pipe-safer.c (pipe2_safer): New function.
15043         * modules/pipe (Depends-on): Add pipe2-safer.
15044         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15045
15046         stdlib-safer: preserve cloexec flag for mkostemp[s]
15047         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15048         fd_safer_flag.
15049
15050         unistd-safer: allow preservation of cloexec status via flag
15051         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15052         prototypes.
15053         * lib/dup-safer.c (dup_safer_flag): New function.
15054         * lib/fd-safer.c (fd_safer_flag): Likewise.
15055         * modules/cloexec (configure.ac): Set witness.
15056
15057         test-dup2: enhance test
15058         * modules/dup2-tests (Depends-on): Add cloexec.
15059         * tests/test-dup2.c (main): Enhance test.
15060
15061         cloexec: add dup_cloexec
15062         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15063         header and comments.
15064         * lib/cloexec.c (set_cloexec_flag): Add comments.
15065         (dup_cloexec): New function, with mingw implementation borrowed
15066         from...
15067         * lib/w32spawn.h (dup_noinherit): ...here.
15068         * modules/execute (Depends-on): Add cloexec.
15069         * modules/pipe (Depends-on): Likewise.
15070         * modules/cloexec (Depends-on): Add dup2.
15071         * modules/cloexec-tests (Files): New file.
15072         * tests/test-cloexec.c: Likewise.
15073
15074         test-xalloc-die: fix test for mingw
15075         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15076         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15077         directory and .exe suffix off argv[0] output.
15078
15079         test-fseeko: fix test for mingw
15080         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15081         than undefining fseek, so test will pass on mingw.
15082
15083 2009-12-05  Bruno Haible  <bruno@clisp.org>
15084
15085         * lib/progname.h (set_program_name): Clarify specification.
15086         * lib/progname.c (set_program_name): Likewise.
15087         Reported by Jim Meyering.
15088
15089 2009-12-05  Jim Meyering  <meyering@redhat.com>
15090
15091         maint.mk: backslash-escape parens in default regexp
15092         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15093         backslash-escape the literal parentheses.
15094
15095         maint.mk: news-date-check: use grep -E
15096         * top/maint.mk (today): Define a Make variable, not a...
15097         (news-date-check): ...shell variable.
15098         (news-date-regexp): Use the Make variable.
15099         Use grep's -E option.  Change the failing diagnostic to mention
15100         the variable, $(news-date-regexp).
15101
15102 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15103
15104         maintainer-makefile: allow customization of NEWS entry format
15105         * top/maint.mk (news-date-regexp): New overridable variable.
15106         (news-date-check): Use it.
15107
15108 2009-12-04  Eric Blake  <ebb9@byu.net>
15109
15110         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15111         * lib/mgetgroups.h (xgetgroups): New prototype.
15112         * lib/mgetgroups.c (xgetgroups): New wrapper.
15113         (mgetgroups): Handle ENOSYS.
15114         * modules/mgetgroups (Depends-on): Add realloc.
15115         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15116
15117         mgetgroups: avoid argument promotion issues with -1
15118         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15119         for invalid gid_t.
15120         * tests/test-chown.h (getegid, test_chown): Likewise.
15121         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15122
15123 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15124
15125         exclude: Fix header file problems.
15126         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15127
15128 2009-12-01  Jim Meyering  <meyering@redhat.com>
15129
15130         fts: fts_open: do not let an empty string cause immediate failure
15131         This is required in support of GNU rm, for which the command
15132         "rm A '' B" must process and remove both A and B, in spite of
15133         the empty string argument.
15134         * lib/fts.c (fts_open): Do not let the presence of an empty string
15135         cause fts_open to fail immediately.  Most fts-using tools must be
15136         able to process all arguments, in order, and can be expected to
15137         diagnose such arguments themselves.
15138
15139 2009-11-30  Eric Blake  <ebb9@byu.net>
15140
15141         utimens: fix compilation error
15142         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15143         Declare variable at right scope.
15144
15145 2009-11-29  Jim Meyering  <meyering@redhat.com>
15146
15147         bootstrap: handle perl-5.11's changed --version output
15148         * build-aux/bootstrap (get_version): Handle perl separately,
15149         since perl-5.11's --version output is different.
15150
15151 2009-11-28  Jim Meyering  <meyering@redhat.com>
15152
15153         userspec: depend on the inttostr module, too
15154         * modules/userspec (Depends-on): Add inttostr.
15155
15156         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15157         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15158         number of MAXUID when it evaluates to (uid_t) -1.
15159         Likewise for group ID.  Reported by Matt McCutchen in
15160         <http://savannah.gnu.org/bugs/?28113>
15161
15162         userspec: reformat to use spaces, not TABs
15163         * lib/userspec.c: Expand TABs to spaces.
15164         Add Emacs' "indent-tabs-mode: nil" hint.
15165
15166 2009-11-27  Eric Blake  <ebb9@byu.net>
15167
15168         getopt-gnu: flush out another BSD bug
15169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15170         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15171         flush out BSD bug.
15172         * tests/test-getopt.h (test_getopt): End lists with NULL.
15173         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15174         (test_getopt_long_posix): Enhance test.
15175         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15176         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15177         getopt-gnu.
15178         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15179         Likewise.
15180
15181 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15182
15183         * modules/idpriv-droptemp-tests (Notice): Fix text.
15184
15185 2009-11-27  Jim Meyering  <meyering@redhat.com>
15186
15187         test-xalloc-die: avoid spurious failure due to libtool argv difference
15188         In a libtool-enabled project, this test would fail due to a difference
15189         in the emitted program name, e.g.,
15190         -test-xalloc-die: memory exhausted
15191         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15192         Use program to avoid that.
15193         * modules/xalloc-die-tests (Depends-on): Add progname.
15194         * tests/test-xalloc-die.c: Include progname.h".
15195         (program_name): Remove decl.
15196         (main): Call set_program_name.
15197         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15198
15199 2009-11-26  Richard Jones  <rjones@redhat.com>
15200
15201         w32sock: leave win32 error in place.
15202         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15203
15204 2009-11-26  Eric Blake  <ebb9@byu.net>
15205
15206         init.sh: suggest to use skip_ and fail_ functions in comments
15207         * tests/init.sh: Add a sentence.
15208
15209 2009-11-25  Bruno Haible  <bruno@clisp.org>
15210
15211         init.sh: add documentation in comments
15212         * tests/init.sh: Add some developer and user documentation.
15213
15214 2009-11-26  Jim Meyering  <meyering@redhat.com>
15215
15216         init.sh: accommodate even those who specify bogus srcdir manually
15217         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15218         configure-time tests to be sanitized, so that there is no need to
15219         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15220         (with no double quotes) suffices.  However, since tests may be
15221         invoked manually, and since you may explicitly set srcdir to the
15222         name of a directory containing spaces, do quote its uses here.
15223         * tests/test-pread.sh: Likewise.
15224         Suggested by Bruno Haible.
15225
15226         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15227         * tests/test-pread.sh: Write no data into the pipe, because
15228         test-pread actually reads none.  This avoids a diagnostic,
15229         "bash: echo: write error: Broken pipe", that arises in the unusual
15230         event something is ignoring SIGPIPE, and might be interpreted
15231         as some sort of failure.  Reported by Bruno Haible.
15232
15233 2009-11-25  Jim Meyering  <meyering@redhat.com>
15234
15235         test-pread: cover failure with ESPIPE and EINVAL
15236         * tests/test-pread.c (main): Test for failure, too.
15237         * tests/test-pread.sh: Invoke with stdin on a pipe.
15238         Suggested by Eric Blake.
15239
15240         pread: improvement and fix
15241         * modules/pread (Depends-on): Depend on lseek, for portability to
15242         e.g., mingw.  Suggested by Eric Blake.
15243         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15244
15245         unistd.in.h: correct declaration of pread
15246         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15247         Reported by Richard W.M. Jones.
15248
15249         test-pread.sh: distribute the test script
15250         * modules/pread-tests (Files): Include test-pread.sh.
15251
15252         test-pread.sh: clean up
15253         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15254         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15255         That is unnecessary, since it's always ".".
15256         Suggestion from Eric Blake.
15257
15258         test-pread.sh: make executable
15259         * tests/test-pread.sh: Set executable bit.
15260         Reported by Eric Blake.
15261
15262         correct typo in test-pread.sh
15263         * tests/test-pread.sh: Add #! line.
15264
15265         test pread
15266         * tests/test-pread.c: New file.
15267         * tests/test-pread.sh: Likewise.
15268         * modules/pread-tests: Likewise.
15269
15270         pread: new module
15271         * modules/pread: New file.
15272         * lib/unistd.in.h (pread): Define/declare.
15273         * lib/pread.c (pread): New file.
15274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15275         * modules/unistd (Makefile.am): Substitute witnesses.
15276         * doc/posix-functions/pread.texi (pread): Update.
15277         * MODULES.html.sh: Add pread.
15278
15279 2009-11-25  Jim Meyering  <meyering@redhat.com>
15280
15281         tests/init.sh: new file to be used via most *.sh tests
15282         * tests/init.sh: New file.
15283
15284 2009-11-25  Eric Blake  <ebb9@byu.net>
15285
15286         utimens: work around older Linux failure with symlinks
15287         * lib/utimens.c (lutimensat_works_really): New variable.
15288         (fdutimens, lutimens): Use it to manage kernels that support
15289         nanosecond times on files, but not on symlinks.
15290         Reported by OndÅ™ej Vašík.
15291
15292         utimes: fix configure grammar
15293         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15294
15295 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15296
15297         regex: Fix fastmap for multibyte character ranges.
15298         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15299         characters when a multibyte character range is included.
15300
15301 2009-11-22  Andy Wingo  <wingo@pobox.com>
15302
15303         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15304         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15305
15306 2009-11-24  Bruno Haible  <bruno@clisp.org>
15307
15308         doc: Most *_l functions exist in MacOS X 10.5.
15309         * doc/posix-functions/duplocale.texi: Update platforms list.
15310         * doc/posix-functions/freelocale.texi: Likewise.
15311         * doc/posix-functions/newlocale.texi: Likewise.
15312         * doc/posix-functions/uselocale.texi: Likewise.
15313         * doc/posix-functions/isalnum_l.texi: Likewise.
15314         * doc/posix-functions/isalpha_l.texi: Likewise.
15315         * doc/posix-functions/isblank_l.texi: Likewise.
15316         * doc/posix-functions/iscntrl_l.texi: Likewise.
15317         * doc/posix-functions/isdigit_l.texi: Likewise.
15318         * doc/posix-functions/isgraph_l.texi: Likewise.
15319         * doc/posix-functions/islower_l.texi: Likewise.
15320         * doc/posix-functions/isprint_l.texi: Likewise.
15321         * doc/posix-functions/ispunct_l.texi: Likewise.
15322         * doc/posix-functions/isspace_l.texi: Likewise.
15323         * doc/posix-functions/isupper_l.texi: Likewise.
15324         * doc/posix-functions/iswalnum_l.texi: Likewise.
15325         * doc/posix-functions/iswalpha_l.texi: Likewise.
15326         * doc/posix-functions/iswblank_l.texi: Likewise.
15327         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15328         * doc/posix-functions/iswctype_l.texi: Likewise.
15329         * doc/posix-functions/iswdigit_l.texi: Likewise.
15330         * doc/posix-functions/iswgraph_l.texi: Likewise.
15331         * doc/posix-functions/iswlower_l.texi: Likewise.
15332         * doc/posix-functions/iswprint_l.texi: Likewise.
15333         * doc/posix-functions/iswpunct_l.texi: Likewise.
15334         * doc/posix-functions/iswspace_l.texi: Likewise.
15335         * doc/posix-functions/iswupper_l.texi: Likewise.
15336         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15337         * doc/posix-functions/isxdigit_l.texi: Likewise.
15338         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15339         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15340         * doc/posix-functions/strcoll_l.texi: Likewise.
15341         * doc/posix-functions/strfmon_l.texi: Likewise.
15342         * doc/posix-functions/strftime_l.texi: Likewise.
15343         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15344         * doc/posix-functions/strxfrm_l.texi: Likewise.
15345         * doc/posix-functions/tolower_l.texi: Likewise.
15346         * doc/posix-functions/toupper_l.texi: Likewise.
15347         * doc/posix-functions/towctrans_l.texi: Likewise.
15348         * doc/posix-functions/towlower_l.texi: Likewise.
15349         * doc/posix-functions/towupper_l.texi: Likewise.
15350         * doc/posix-functions/wcscoll_l.texi: Likewise.
15351         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15352         * doc/posix-functions/wctrans_l.texi: Likewise.
15353         * doc/posix-functions/wctype_l.texi: Likewise.
15354         * doc/glibc-functions/strptime_l.texi: Likewise.
15355         * doc/glibc-functions/strtod_l.texi: Likewise.
15356         * doc/glibc-functions/strtof_l.texi: Likewise.
15357         * doc/glibc-functions/strtol_l.texi: Likewise.
15358         * doc/glibc-functions/strtold_l.texi: Likewise.
15359         * doc/glibc-functions/strtoll_l.texi: Likewise.
15360         * doc/glibc-functions/strtoul_l.texi: Likewise.
15361         * doc/glibc-functions/strtoull_l.texi: Likewise.
15362         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15363         * doc/glibc-functions/wcstod_l.texi: Likewise.
15364         * doc/glibc-functions/wcstof_l.texi: Likewise.
15365         * doc/glibc-functions/wcstol_l.texi: Likewise.
15366         * doc/glibc-functions/wcstold_l.texi: Likewise.
15367         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15368         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15369         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15370
15371 2009-11-24  Bruno Haible  <bruno@clisp.org>
15372
15373         duplocale: Fix logic bug.
15374         * lib/duplocale.c: Don't include <langinfo.h>.
15375         (_NL_LOCALE_NAME): Remove macro.
15376         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15377         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15378
15379 2009-11-23  Jim Meyering  <meyering@redhat.com>
15380
15381         test-update-copyright: don't hard-code /usr/bin/perl
15382         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15383         perl to print the current year.  Gilles Espinasse reported that
15384         the replaced use of perl was hard-coded as /usr/bin/perl.
15385
15386 2009-11-23  Bruno Haible  <bruno@clisp.org>
15387
15388         duplocale: Add support for glibc 2.3.x.
15389         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15390
15391 2009-11-22  Bruno Haible  <bruno@clisp.org>
15392
15393         vasnprintf: Tiny optimization.
15394         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15395         MacOS X.
15396
15397 2009-11-22  Bruno Haible  <bruno@clisp.org>
15398
15399         Tests for module 'duplocale'.
15400         * modules/duplocale-tests: New file.
15401         * tests/test-duplocale.c: New file.
15402
15403         New module 'duplocale'.
15404         * m4/duplocale.m4: New file.
15405         * lib/locale.in.h (duplocale): New declaration.
15406         * lib/duplocale.c: New file.
15407         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15408         gl_LOCALE_H_DEFAULTS): New macros.
15409         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15410         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15411         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15412         REPLACE_DUPLOCALE.
15413         * modules/duplocale: New file.
15414         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15415
15416 2009-11-22  Bruno Haible  <bruno@clisp.org>
15417
15418         * modules/locale-tests (configure.ac): Test for newlocale function.
15419         * tests/test-locale.c: When the system has extended locale functions,
15420         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15421
15422         locale: Make locale_t available when possible.
15423         * lib/locale.in.h: Include <xlocale.h> when it exists.
15424         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15425         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15426         * modules/locale (Depends-on): Add extensions.
15427         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15428         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15429
15430 2009-11-22  Bruno Haible  <bruno@clisp.org>
15431
15432         Add comments.
15433         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15434         invocation.
15435         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15436         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15437         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15438
15439 2009-11-22  Bruno Haible  <bruno@clisp.org>
15440
15441         error: account for the possibility of freopen (stdout).
15442         * lib/error.c: Include <unistd.h>.
15443         (flush_stdout): New function, extracted from error and error_at_line.
15444         Determine stdout's fd dynamically.
15445         (error, error_at_line): Invoke flush_stdout.
15446         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15447         * modules/error (Depends-on): Add unistd.
15448
15449 2009-11-22  Bruno Haible  <bruno@clisp.org>
15450
15451         diffseq: Add comment.
15452         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15453
15454 2009-11-22  Jim Meyering  <meyering@redhat.com>
15455
15456         c-stack: avoid defining an unused static function
15457         * lib/c-stack.c (find_stack_direction): Do not define this function
15458         when it will not be used.
15459
15460         diffseq: avoid spurious gcc warnings
15461         * lib/diffseq.h (IF_LINT2): Define.
15462         (compareseq): Use it to initialize two members of "part".
15463         This avoids two used-uninitialized warnings.
15464
15465 2009-11-21  Jim Meyering  <meyering@redhat.com>
15466
15467         c-stack: avoid "ignoring return value of `write'" warning
15468         * lib/c-stack.c: Include "ignore-value.h".
15469         (die): Explicitly ignore each write return value.
15470         * modules/c-stack (Depends-on): Add ignore-value.
15471
15472 2009-11-21  Bruno Haible  <bruno@clisp.org>
15473
15474         diffseq: reduce scope of variable 'best'.
15475         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15476         variable, earlier used for two different purposes.
15477
15478 2009-11-21  Jim Meyering  <meyering@redhat.com>
15479
15480         diffseq: remove useless assignment to "best"
15481         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15482         assignment.  At that point "best" is already guaranteed to be zero.
15483
15484 2009-11-20  Eric Blake  <ebb9@byu.net>
15485
15486         build: mention ftp redirector in release announcements
15487         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15488         values that used to come from cfg.mk; mention FTP redirect URL.
15489         * build-aux/announce-gen: Mention the mirror list.
15490         Suggested by Karl Berry.
15491
15492         nanosleep: improve port to mingw
15493         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15495         LIB_NANOSLEEP, but only when needed.
15496         * modules/select (Link): Document LIBSOCKET.
15497         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15498         enough.
15499
15500         nanosleep: work around cygwin bug
15501         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15502         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15503         bug.
15504         (getnow): Delete, not needed.
15505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15506         LIB_CLOCK_GETTIME.
15507         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15508         clock-time, gettime.
15509         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15510         bug.
15511         * modules/nanosleep-tests: New test.
15512         * tests/test-nanosleep.c: New file.
15513
15514         sleep: work around cygwin bug
15515         * lib/sleep.c (rpl_sleep): Work around the bug.
15516         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15517         (gl_PREREQ_SLEEP): Delete unused macro.
15518         * modules/sleep (Depends-on): Add verify.
15519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15520         * modules/unistd (Makefile.am): Substitute witness.
15521         * lib/unistd.in.h (sleep): Update prototype.
15522         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15523         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15524         * modules/sleep-tests (Depends-on): Check for alarm.
15525
15526 2009-11-20  Jim Meyering  <meyering@redhat.com>
15527
15528         maint.mk: improve sc_prohibit_magic_number_exit
15529         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15530         so it does not match uses like System.exit(1).
15531         Add comments showing how to correct all offenders.
15532
15533 2009-11-19  Eric Blake  <ebb9@byu.net>
15534
15535         xalloc-die-tests: add missing library
15536         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15537
15538         test-xvasprintf: silence compiler warnings
15539         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15540         empty string from gcc.
15541
15542 2009-11-19  Jim Meyering  <meyering@redhat.com>
15543
15544         xfreopen: new module, from coreutils
15545         * modules/xfreopen: New module.
15546         * lib/xfreopen.c: New file.
15547         * lib/xfreopen.h: New file.
15548         * MODULES.html.sh (File stream based Input/Output"): Add it.
15549
15550 2009-11-19  Eric Blake  <ebb9@byu.net>
15551
15552         manywarnings: depend on warnings
15553         * modules/manywarnings (Depends-on): Add warnings.
15554
15555         build: avoid compiler warnings
15556         * lib/select.c (rpl_select): Delete unused variable.
15557         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15558
15559 2009-11-18  Eric Blake  <ebb9@byu.net>
15560
15561         tests: avoid false negative with --with-packager
15562         * tests/test-version-etc.sh: Discard packager information.
15563         * tests/test-argp-version-etc-1.sh: Likewise.
15564         Reported by Mike Frysinger.
15565
15566         utimens: fix regression on Solaris
15567         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15568         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15569         can only change fd timestamps via futimesat.  Instead, use an
15570         additional witness macro to avoid BSD bug.
15571         Reported by Jim Meyering.
15572
15573 2009-11-17  Eric Blake  <ebb9@byu.net>
15574
15575         usleep: use it to simplify tests
15576         * modules/stat-time-tests (Depends-on): Add usleep.
15577         (configure.ac): Drop usleep check.
15578         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15579         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15580         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15581         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15582         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15583         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15584         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15585         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15586         Likewise.
15587         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15588         * tests/test-lchown.h (nap): Likewise.
15589         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15590         * tests/test-stat-time.c (nap): Likewise.
15591         * tests/test-utimens-common.h (nap): Update comments.
15592
15593         usleep: new module
15594         * modules/usleep: New file.
15595         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15596         * lib/usleep.c (usleep): Likewise.
15597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15598         * modules/unistd (Makefile.am): Substitute witnesses.
15599         * lib/unistd.in.h (usleep): Add declaration.
15600         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15601         * MODULES.html.sh (Date and time): Likewise.
15602         * modules/usleep-tests (Depends-on): New test.
15603         * tests/test-usleep.c: New file.
15604
15605         chown: work around OpenBSD bug
15606         * lib/chown.c (rpl_chown): Work around the bug.
15607         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15608         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15609         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15610         * modules/chown (Depends-on): Add stdbool.
15611         * modules/lchown (Depends-on): Likewise.
15612         * doc/posix-functions/chown.texi (chown): Document the bug.
15613         * doc/posix-functions/lchown.texi (lchown): Likewise.
15614         * tests/test-lchown.h (test_chown): Relax test.
15615
15616         mkstemp: avoid conflict with C++ keyword template
15617         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15618         * lib/mkostemp.c (mkostemp): Likewise.
15619         * lib/mkostemps.c (mkostemps): Likewise.
15620         * lib/mkstemp.c (mkstemp): Likewise.
15621         * lib/mkstemps.c (mkstemps): Likewise.
15622
15623         xalloc-die-tests: optimize
15624         * tests/test-xalloc-die.sh: Reduce number of processes.
15625
15626 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15627
15628         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15629         patch from ludo@gnu.org (Ludovic Courtès).
15630
15631 2009-11-17  Jim Meyering  <meyering@redhat.com>
15632
15633         version-etc: use proper license string
15634         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15635         * modules/version-etc-fsf: Likewise.
15636
15637 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15638
15639         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15640         printed to stdout.  Deal with EOL differences.
15641
15642 2009-11-17  Eric Blake  <ebb9@byu.net>
15643
15644         unsetenv: work around Solaris bug
15645         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15646         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15647         Reported by Jim Meyering.
15648
15649         vasnprintf: avoid compiler warnings
15650         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15651         variables.
15652         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15653
15654 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15655
15656         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15657         settings since xalloc-die is no longer the self test,
15658         xalloc-die.sh is.
15659
15660 2009-11-17  Jim Meyering  <meyering@redhat.com>
15661
15662         test-xalloc-die.sh: make the code agree with the commit log
15663         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15664         at the end, just in case you happen to have a test-xalloc-die
15665         program in some other PATH directory.
15666
15667         test-xalloc-die.sh: fix a portability bug
15668         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15669         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15670         Otherwise, argv[0] (as often seen in diagnostics) would be too
15671         system-dependent, sometimes with, and sometimes without the leading "./".
15672
15673         version-etc-fsf: relax license to LGPLv3+
15674         * modules/version-etc-fsf (License): Relax license.
15675
15676 2009-11-16  Eric Blake  <ebb9@byu.net>
15677
15678         xalloc-die-tests: avoid printing null pointer
15679         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15680         shell script.
15681         * tests/test-xalloc-die.c (program_name): Declare.
15682         * tests/test-xalloc-die.sh (tmpfiles): New file.
15683
15684         setenv, unsetenv: work around various bugs
15685         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15686         (setenv) [HAVE_SETENV]: Work around bugs.
15687         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15688         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15689         for bugs.
15690         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15691         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15693         * modules/stdlib (Makefile.am): Update substitutions.
15694         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15695         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15696         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15697         * modules/setenv-tests: New test.
15698         * modules/unsetenv-tests: Likewise.
15699         * tests/test-setenv.c: New file.
15700         * tests/test-unsetenv.c: Likewise.
15701
15702 2009-11-16  Jim Meyering  <meyering@redhat.com>
15703
15704         version-etc: relax license to LGPLv3+
15705         * modules/version-etc (License): Relax license.
15706
15707         better AC_REQUIRE expanded-before-required-warning avoidance
15708         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15709         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15710         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15711         which is no longer needed.
15712
15713 2009-11-16  Eric Blake  <ebb9@byu.net>
15714
15715         test-freading: clean up temporary file
15716         * tests/test-freading.c (main): Remove file on success, and use
15717         ASSERT more liberally.
15718         Reported by Jim Meyering.
15719
15720 2009-11-16  Jim Meyering  <meyering@redhat.com>
15721
15722         avoid new AC_REQUIRE expanded-before-required warnings
15723         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15724         merely using it.
15725         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15726         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15727
15728 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15729
15730         * tests/test-xalloc-die.c: New file.
15731         * modules/xalloc-die-tests: New file.
15732         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15733         XFAIL_TESTS so it can be appended by modules.
15734
15735 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15736
15737         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15738         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15739
15740 2009-11-14  Eric Blake  <ebb9@byu.net>
15741
15742         fnmatch: avoid compiler warning
15743         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15744         to silence compiler warning about mismatch signedness in ?:.
15745         Reported by Robert Millan.
15746
15747         intprops: add double-inclusion guard
15748         * lib/intprops.h: Allow idempotent includes.
15749         Suggested by Bruce Korb.
15750
15751         openat: detect Solaris fchownat bug
15752         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15753         penalizing glibc chownat when only lchownat is broken.
15754         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15755         trailing slash bugs.
15756         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15757         * modules/openat-tests (Files): Include more files.
15758         (Depends-on): Add mgetgroups, sleep, stat-time.
15759         (configure.ac): Add additional checks.
15760         (Makefile.am): Build new test.
15761         * tests/test-fchownat.c: New file.
15762
15763         lchown: detect Solaris and FreeBSD bug
15764         * lib/lchown.c (rpl_lchown): Work around bug.
15765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15767         * modules/unistd (Makefile.am): Populate it.
15768         * lib/unistd.in.h (lchown): Update declaration.
15769         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15770         * modules/lchown-tests: New file.
15771         * tests/test-lchown.h (test_lchown): Likewise.
15772         * tests/test-lchown.c (main): Likewise.
15773
15774         chown: detect Solaris and FreeBSD bug
15775         * lib/chown.c (rpl_chown): Work around bug.
15776         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15777         (gl_PREREQ_CHOWN): Delete.
15778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15779         * modules/unistd (Makefile.am): Populate it.
15780         * lib/unistd.in.h (chown): Update declaration.
15781         * lib/lchown.c (chown): Update client.
15782         * modules/lchown (Depends-on): Add lstat.
15783         * doc/posix-functions/chown.texi (chown): Document the bug.
15784         * doc/posix-functions/getgroups.texi (getgroups): Document
15785         getgroups pitfall.
15786         * modules/chown-tests: New file.
15787         * tests/test-chown.h (test_chown): Likewise.
15788         * tests/test-chown.c (main): Likewise.
15789
15790 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15791
15792         gnulib-tool: correctly detect absence of m4 directories
15793         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15794
15795 2009-11-14  Jim Meyering  <meyering@redhat.com>
15796
15797         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15798         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15799
15800 2009-11-14  John W. Eaton  <jwe@gnu.org>
15801
15802         strftime.h: wrap funtion declaration in extern "C" block
15803         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15804
15805 2009-11-13  Eric Blake  <ebb9@byu.net>
15806
15807         getgroups: avoid compiler warning
15808         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15809
15810         getgroups: work around FreeBSD bug
15811         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15812         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15813         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15814         * tests/test-getgroups.c (main): Fix buffer overrun.
15815
15816         getgroups: avoid compilation failure
15817         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15818         * modules/getgroups (Depends-on): Add stdint.
15819
15820 2009-11-13  Jim Meyering  <meyering@redhat.com>
15821
15822         test-getgroups: avoid compilation failure
15823         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15824
15825 2009-11-13  Eric Blake  <ebb9@byu.net>
15826
15827         mgetgroups: new module, taken from coreutils
15828         * modules/mgetgroups: New file.
15829         * lib/mgetgroups.h: Likewise.
15830         * lib/mgetgroups.c (mgetgroups): Likewise.
15831         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15832         * MODULES.html.sh (Users and groups): Mention it.
15833
15834         getgroups: don't expose GETGROUPS_T to user
15835         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15836         an element at a time if GETGROUPS_T is wrong size.
15837         * lib/getugroups.h (getugroups): Change signature.
15838         * lib/unistd.in.h (getgroups): Likewise.
15839         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15840         signature needs fixing.
15841         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15842         AC_TYPE_GETGROUPS.
15843         * modules/group-member (Depends-on): Add getgroups.
15844         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15845         (group_member): Rely on getgroups replacement.
15846         * lib/getugroups.c (getugroups): Use gid_t.
15847         * tests/test-getgroups.c (main): Likewise.
15848         * NEWS: Mention the signature change.
15849         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15850         problem with signature.
15851         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15852         GETGROUPS_T is still useful for setgroups.
15853
15854         getgroups, getugroups: provide stubs for mingw
15855         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15856         * lib/getugroups.c (getugroups): Likewise.
15857         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15858         function.  Modernize replacement scheme.
15859         (gl_PREREQ_GETGROUPS): Delete.
15860         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
15861         * modules/getgroups (configure.ac): Declare witness.
15862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15863         * modules/unistd (Depends-on): Substitute witness.
15864         * lib/unistd.in.h (getgroups): Declare replacement.
15865
15866         getgroups: avoid calling exit
15867         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
15868         drop xalloc.
15869         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
15870         dependencies.
15871         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
15872         exiting, in the rare case of malloc failure.
15873
15874         getgroups: fix logic error
15875         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
15876         has more than 20 groups.
15877         * modules/getgroups-tests: New test.
15878         * tests/test-getgroups.c: New file.
15879
15880 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15881
15882         * tests/test-base64.c: Improve.
15883
15884 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15885
15886         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
15887         Blake <ebb9@byu.net>.
15888
15889 2009-11-13  Simon Josefsson  <simon@josefsson.org>
15890
15891         * tests/test-xvasprintf.c: Add %s%s related checks.
15892
15893 2009-11-12  Eric Blake  <ebb9@byu.net>
15894
15895         version-etc: match standards.texi style
15896         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
15897         and use <> only for URLs.
15898
15899 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
15900
15901         fts: do not fail on a submount during traversal
15902         * lib/fts.c (fts_build): Read the stat info again after opening
15903         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
15904         Original report at http://bugzilla.redhat.com/501848.
15905
15906 2009-11-12  Jim Meyering  <meyering@redhat.com>
15907
15908         bootstrap: sync from coreutils
15909         * build-aux/bootstrap (bootstrap_epilogue): New function.
15910         Use git_modules_config in one more place.  This make bootstrap's
15911         --gnulib-srcdir option more useful for testing.
15912
15913         bootstrap: generalize autoheader check
15914         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
15915         AC_CONFIG_HEADERS.
15916
15917 2009-11-11  Eric Blake  <ebb9@byu.net>
15918
15919         mkfifoat: use new modules for Solaris and BSD bugs
15920         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
15921         * lib/mkfifoat.c (mknodat): Split...
15922         * lib/mknodat.c (mknodat): ...into new file.
15923         * modules/mkfifoat (Files): Ship new file.
15924         (Depends-on): Add mkfifo, mknod.
15925         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
15926         (Depends-on): Add symlink.
15927         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
15928         redundant with test_mkfifo.h.
15929         (do_mkfifoat, do_mknodat): New helpers.
15930
15931         mknod: new module
15932         * modules/mknod: New file.
15933         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
15934         * lib/mknod.c (mknod): Likewise.
15935         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15936         defaults.
15937         * modules/sys_stat (Makefile.am): Substitute them.
15938         * lib/sys_stat.in.h (mknod): Declare replacement.
15939         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15940         Document it.
15941         * doc/posix-functions/mknod.texi (mknod): Likewise.
15942         * modules/mknod-tests: New test.
15943         * tests/test-mknod.c: Likewise.
15944
15945         mkfifo: new module
15946         * modules/mkfifo: New file.
15947         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
15948         * lib/mkfifo.c (mkfifo): Likewise.
15949         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
15950         defaults.
15951         * modules/sys_stat (Makefile.am): Substitute them.
15952         * lib/sys_stat.in.h (mkfifo): Declare replacement.
15953         * MODULES.html.sh (Support for systems lacking POSIX:2008):
15954         Document it.
15955         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
15956         * modules/mkfifo-tests: New test.
15957         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
15958         from test-mkfifoat.c.
15959         * tests/test-mkfifo.c: New file.
15960
15961         readlink: detect FreeBSD bug
15962         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
15963         slash on symlink.
15964         * doc/posix-functions/readlink.texi (readlink): Document the bug.
15965         * tests/test-readlink.h (test_readlink): Enhance test.
15966
15967         symlink: detect FreeBSD bug
15968         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
15969         slash on symlink.
15970         * doc/posix-functions/symlink.texi (symlink): Document the bug.
15971         * tests/test-symlink.h (test_symlink): Enhance test.
15972
15973 2009-11-10  Eric Blake  <ebb9@byu.net>
15974
15975         link: detect FreeBSD bug
15976         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
15977         symlink.
15978         * doc/posix-functions/link.texi (link): Document the bug.
15979         * tests/test-link.h (test_link): Enhance test.
15980         * tests/test-linkat.c (main): Update caller.
15981
15982         unlink, remove: detect FreeBSD bug
15983         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
15984         slash on symlink.
15985         * doc/posix-functions/unlink.texi (unlink): Document the bug.
15986         * doc/posix-functions/remove.texi (remove): Likewise.
15987         * tests/test-unlink.h (test_unlink): Enhance test.
15988         * tests/test-remove.c (main): Likewise.
15989
15990 2009-11-09  Eric Blake  <ebb9@byu.net>
15991
15992         rename: detect FreeBSD bug
15993         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
15994         slash on symlink.
15995         * modules/renameat-tests (Depends-on): Add filenamecat.
15996         * tests/test-rename.h (test_rename): Allow one more errno.
15997         * tests/test-renameat.c (main): Likewise.
15998         * doc/posix-functions/rename.texi (rename): Document the bug.
15999
16000         open: detect FreeBSD bug
16001         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16002         symlink.
16003         * doc/posix-functions/open.texi (open): Document the bug.
16004         * doc/posix-functions/utimes.texi (utimes): Likewise.
16005         * tests/test-open.h (test_open): Add parameters, and test symlink
16006         handling.
16007         * tests/test-open.c (main): Adjust caller.
16008         * tests/test-fcntl-safer.c (main): Likewise.
16009         * modules/open-tests (Depends-on): Add stdbool, symlink.
16010         * modules/fcntl-safer-tests (Depends-on): Likewise.
16011         * tests/test-openat.c (main): Add test-open tests.
16012
16013         stat: detect FreeBSD bug
16014         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16015         symlink.
16016         * doc/posix-functions/stat.texi (stat): Document the bug.
16017         * tests/test-stat.h (test_stat_func): Add argument.
16018         * tests/test-stat.c (main): Adjust caller.
16019         * tests/test-fstatat.c (main): Likewise.
16020         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16021         Reported by Jim Meyering.
16022
16023 2009-11-09  James Youngman  <jay@gnu.org>
16024
16025         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16026         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16027
16028 2009-11-08  Jim Meyering  <meyering@redhat.com>
16029
16030         utimens: remove invalid futimesat call
16031         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16032         It used the file descriptor of the target file as the DIR_FD
16033         parameter and NULL as the file name.  That caused failure with
16034         errno == EFAULT on FreeBSD-8.0-rc2
16035
16036 2009-11-07  Eric Blake  <ebb9@byu.net>
16037
16038         fflush, freadseek: use fseeko, not fseek
16039         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16040         (clear_ungetc_buffer): Avoid potential problems on large files.
16041         * lib/freadseek.c (freadseek): Likewise.
16042         * modules/freadseek (Depends-on): Add fseeko.
16043         * modules/fseek (configure.ac): Set a witness.
16044         * tests/test-fflush.c (main): Use fseeko.
16045         * tests/test-fpurge.c (fseek): Disable link warning.
16046         * tests/test-freadable.c (fseek): Likewise.
16047         * tests/test-freading.c (fseek): Likewise.
16048         * tests/test-fseeko.c (fseek): Likewise.
16049         * tests/test-ftell.c (fseek): Likewise.
16050         * tests/test-ftello.c (fseek): Likewise.
16051         * tests/test-fwritable.c (fseek): Likewise.
16052         * tests/test-fwriting.c (fseek): Likewise.
16053
16054 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16055
16056         * modules/memchr (Depends-on): Drop getpagesize dependency.
16057
16058 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16059
16060         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16061         Reported by Ludovic Courtès.
16062         * build-aux/pmccabe2html: Improve example usage.
16063         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16064
16065 2009-11-06  Jim Meyering  <meyering@redhat.com>
16066
16067         do-release-commit-and-tag: New module.
16068         Automate the release-commit and tag process.
16069         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16070         * modules/do-release-commit-and-tag: New file.
16071         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16072
16073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16074
16075         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16076         because test-select.c uses inet_pton.
16077
16078 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16079
16080         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16081         GETADDRINFO_LIB.  Bump serial number.
16082         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16083         Suggested by Eric Blake <ebb9@byu.net>.
16084
16085 2009-11-05  Eric Blake  <ebb9@byu.net>
16086
16087         strtod: detect darwin bug
16088         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16089         Reported by Leo Davis.
16090
16091         freopen-safer: new module
16092         * modules/freopen-safer: New module.
16093         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16094         * lib/freopen-safer.c (freopen_safer): New file.
16095         * lib/stdio-safer.h (freopen_safer): New declaration.
16096         * lib/stdio--.h (freopen): New override.
16097         * MODULES.html.sh (File stream based Input/Output): Mention it.
16098         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16099         freopen-safer module.
16100         * doc/posix-functions/stderr.texi (stderr): Likewise.
16101         * doc/posix-functions/stdin.texi (stdin): Likewise.
16102         * doc/posix-functions/stdout.texi (stdout): Likewise.
16103         * modules/freopen-safer-tests: New test.
16104         * tests/test-reopen-safer.c: New file.
16105
16106 2009-11-05  Jim Meyering  <meyering@redhat.com>
16107
16108         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16109         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16110
16111 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16112
16113         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16114
16115 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16116
16117         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16118
16119 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16120
16121         Fix link error.
16122         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16123         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16124
16125 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16126
16127         * tests/test-func.c: Also test value of __func__.
16128
16129 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16130
16131         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16132         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16133
16134 2009-11-05  Bruno Haible  <bruno@clisp.org>
16135
16136         Fix link error.
16137         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16138         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16139         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16140
16141 2009-11-05  Bruno Haible  <bruno@clisp.org>
16142
16143         Tests for module 'inet_pton'.
16144         * modules/inet_pton-tests: New file.
16145         * tests/test-inet_pton.c: New file.
16146
16147 2009-11-05  Bruno Haible  <bruno@clisp.org>
16148
16149         Tests for module 'inet_ntop'.
16150         * modules/inet_ntop-tests: New file.
16151         * tests/test-inet_ntop.c: New file.
16152
16153 2009-11-04  Eric Blake  <ebb9@byu.net>
16154
16155         stdlib-safer: wrap all mkstemp variants
16156         * modules/mkostemp (configure.ac): Set witness.
16157         * modules/mkostemps (configure.ac): Likewise.
16158         * modules/mkstemps (configure.ac): Likewise.
16159         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16160         (mkstemps_safer): Wrap more functions.
16161         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16162         wrapping.
16163         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16164         (mkstemps_safer): Implement the wrappers.
16165
16166         mkstemps, mkostemps: new modules
16167         * modules/mkostemps: New module.
16168         * modules/mkstemps: Likewise.
16169         * lib/mkostemps.c (mkostemps): New file.
16170         * lib/mkstemps.c (mkstemps): Likewise.
16171         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16172         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16174         * modules/stdlib (Makefile.am): Substitute them.
16175         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16176         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16177         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16178         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16179         * MODULES.html.sh (File system functions): Mention them.
16180
16181         tempname: resync from glibc
16182         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16183         same values for __GT_FILE as glibc.  Abort even when assertions
16184         are disabled.
16185         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16186         match its value otherwise.  Allow idempotent inclusion.
16187         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16188         * lib/mkostemp.c (mkostemp): Likewise.
16189         * lib/mkstemp.c (mkstemp): Likewise.
16190         * lib/tmpfile.c (tmpfile): Likewise.
16191         * NEWS: Document this.
16192
16193         utimens: fix use of futimens on older Linux
16194         * lib/utimens.c (fdutimens): Use updated, rather than original,
16195         timespec to avoid bug in older Linux kernel.
16196         Reported by Simon Josefsson.
16197
16198 2009-11-04  Bruno Haible  <bruno@clisp.org>
16199
16200         Make num_processors more flexible and consistent.
16201         * lib/nproc.h (enum nproc_query): New type.
16202         (num_processors): Add a 'query' argument.
16203         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16204         (num_processors): Add a 'query' argument. Test the value of the
16205         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16206         mingw, count the number of CPUs available for the current process.
16207         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16208         Check for sched_getaffinity and sched_getaffinity_np.
16209         * modules/nproc (Depends-on): Add c-ctype, extensions.
16210         * NEWS: Mention the change.
16211
16212 2009-11-03  Bruno Haible  <bruno@clisp.org>
16213
16214         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16215
16216 2009-11-03  Jim Meyering  <meyering@redhat.com>
16217
16218         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16219         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16220         if it is defined.
16221
16222 2009-11-02  Eric Blake  <ebb9@byu.net>
16223
16224         mktime, timegm: share common declaration
16225         * lib/mktime-internal.h: New file.
16226         * lib/mktime.c: Use it rather than open-coding a declaration.
16227         * lib/timegm.c: Likewise.
16228         * modules/mktime (Files): Ship it.
16229         * modules/timegm (Files): Likewise.
16230         Suggested by Bruno Haible.
16231
16232         test-update-copyright: update test to match script changes
16233         * tests/test-update-copyright.sh: Avoid hard-coding perl
16234         location.  Don't update *.bak created by earlier runs.
16235
16236 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16237             Simon Josefsson  <simon@josefsson.org>
16238             Bruno Haible  <bruno@clisp.org>
16239
16240         Fix link error on Solaris 8.
16241         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16242         also in libnsl. Define also INET_PTON_LIB.
16243         * modules/inet_pton (Link): New section.
16244
16245 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16246             Bruno Haible  <bruno@clisp.org>
16247
16248         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16249         * modules/inet_ntop (Link): New section.
16250         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16251
16252 2009-11-02  Eric Blake  <ebb9@byu.net>
16253
16254         maint: avoid compiler warnings in m4 macros
16255         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16256         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16257
16258 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16259
16260         * m4/pmccabe2html.m4: Remove file.
16261         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16262         function.  Change maintainer.
16263         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16264         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16265         Courtès).
16266
16267 2009-10-31  Eric Blake  <ebb9@byu.net>
16268
16269         fseeko: fix m4 regression
16270         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16271         regression from 2009-10-27.
16272         Reported by Ralf Wildenhues.
16273
16274 2009-10-31  Jim Meyering  <meyering@redhat.com>
16275
16276         inttostr: aesthetics and improved (compile-time) safety
16277         Define inttype_is_signed rather than inttype_is_unsigned,
16278         since the sole use is via "#if inttype_is_signed".
16279         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16280         inttype_is_unsigned.
16281         * lib/offtostr.c (inttype_is_signed): Likewise.
16282         * lib/uinttostr.c (inttype_is_signed): Likewise.
16283         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16284         * lib/inttostr.c (inttostr): Use verify to cross-check the
16285         inttype_is_signed value and the signedness of the actual type.
16286         * modules/inttostr (Depends-on): Add verify.
16287
16288 2009-10-30  Eric Blake  <ebb9@byu.net>
16289
16290         build: avoid compiler warnings
16291         * lib/fchmodat.c (lchmod): Mark unused variables.
16292         * lib/getopt.c (_getopt_initialize): Likewise.
16293         * lib/mktime.c (__mktime_internal): Provide prototype.
16294         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16295         older gcc that do not understand #pragma GCC diagnostic.
16296         * lib/uinttostr.c (inttype_is_unsigned): Define.
16297         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16298
16299 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16300
16301         stat: fix compilation on AIX
16302         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16303         only see struct stat64.
16304
16305 2009-10-30  Eric Blake  <ebb9@byu.net>
16306
16307         exclude: make more robust
16308         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16309         rather than masking a coding bug.
16310         Suggested by Bruno Haible.
16311
16312 2009-10-30  Jim Meyering  <meyering@redhat.com>
16313
16314         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16315         Rather than putting #!/usr/bin/perl on the first line,
16316         start with a variant of what's recommended by "man perlrun" that
16317         invokes the first "perl" program from your shell's search path.
16318         * build-aux/gitlog-to-changelog: Replace #!... as above.
16319         Add a "Local Variables" perl mode setting.
16320         Prompted by a patch from Ludovic Courtès.
16321         Improved by Eric Blake.
16322         * build-aux/useless-if-before-free: Likewise.
16323         * build-aux/announce-gen: Likewise.
16324         * build-aux/update-copyright: Likewise.
16325
16326 2009-10-29  Eric Blake  <ebb9@byu.net>
16327
16328         filenamecat-lgpl: adjust clients
16329         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16330         filenamecat.
16331         * modules/renameat (Depends-on): Likewise.
16332
16333         filenamecat: split into filenamecat-lgpl
16334         * modules/filenamecat-lgpl: New module.
16335         * modules/filenamecat (Files): Move library-safe files into
16336         filenamecat-lgpl.
16337         (Depends-on): Add filenamecat-lgpl.
16338         (configure.ac): Declare witness.
16339         * lib/filenamecat.h (file_name_concat): Only declare when using
16340         GPL module.
16341         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16342         Move...
16343         * lib/filenamecat-lgpl.c: ...into new file.
16344         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16345         (gl_FILE_NAME_CONCAT): Use it.
16346         * MODULES.html.sh (File system functions): Mention new module.
16347
16348         argp: avoid memory leak
16349         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16350         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16351         base_name, since the latter malloc()s and can call exit().
16352         Leak introduced 2006-07-03.
16353
16354         dirname-lgpl: adjust clients that don't need full dirname
16355         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16356         * modules/filenamecat (Depends-on): Likewise.
16357         * modules/linkat (Depends-on): Likewise.
16358         * modules/mkancesdirs (Depends-on): Likewise.
16359         * modules/mkdir (Depends-on): Likewise.
16360         * modules/openat (Depends-on): Likewise.
16361         * modules/savewd (Depends-on): Likewise.
16362         * modules/rename (Depends-on): Likewise.
16363         (License): Relax license.
16364         * modules/mkdir-tests (Depends-on): Drop progname.
16365         (Makefile.am): Delete unneeded LDADD.
16366         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16367
16368         dirname: split into dirname-lgpl
16369         * modules/dirname-lgpl: New module.
16370         * modules/dirname (Files): Move library-safe files into
16371         dirname-lgpl.
16372         (Depends-on): Add dirname-lgpl.
16373         (configure.ac): Declare witness.
16374         * modules/double-slash-root (License): Relax license.
16375         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16376         module.
16377         * lib/dirname.c (dir_len, mdir_name): Move...
16378         * lib/dirname-lgpl.c: ...into new file.
16379         * lib/basename.c (last_component, base_len): Move...
16380         * lib/basename-lgpl.c: ...into new file.
16381         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16382         (gl_DIRNAME): Use it.
16383         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16384         Mention new module.
16385         * modules/dirname-tests (Depends-on): Add progname.
16386         * tests/test-dirname.c (program_name): Delete.
16387
16388         mkdir: make safe for libraries
16389         * modules/mkdir (Depends-on): Drop xalloc.
16390         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16391         exit.
16392
16393         tests: avoid some compiler warnings
16394         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16395         literals.
16396         * tests/test-memchr.c (main): Avoid type mismatch.
16397         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16398         * tests/test-base64.c (main): Likewise.
16399         * tests/test-getdelim.c (main): Likewise.
16400         * tests/test-gethostname.c (main): Likewise.
16401         * tests/test-getline.c (main): Likewise.
16402         * tests/test-netinet_in.c (main): Likewise.
16403         * tests/test-select.c (open_server_socket, main): Likewise.
16404         * tests/test-select-stdin.c (main): Likewise.
16405         * tests/test-sockets.c (main): Likewise.
16406         * tests/test-strsignal.c (main): Likewise.
16407         * tests/test-sys_select.c (main): Likewise.
16408         * tests/test-sys_socket.c (main): Likewise.
16409         * tests/test-u64.c (main): Likewise.
16410         * tests/test-xfprintf-posix.c (main): Likewise.
16411         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16412
16413         sockets: avoid compiler warning
16414         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16415
16416         maint: detect usage(1) and other suspicious exits
16417         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16418
16419 2009-10-29  Jim Meyering  <meyering@redhat.com>
16420
16421         timespec: long-to-int truncation could make timespec_cmp malfunction
16422         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16423         a multiple of 2^32 nanoseconds as no difference.
16424
16425 2009-10-28  Jim Meyering  <meyering@redhat.com>
16426
16427         fprintftime: wrap macro code argument in "do {...} while(0)"
16428         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16429         cpy macro must be a statement that can be followed by a semicolon.
16430         Now that the else clause contains a comment and is hence longer
16431         than one line, I require curly braces.  That in turn requires
16432         that we wrap this code block in the standard do...while(0).
16433
16434         fprintftime: remove stray semicolon from previous change
16435         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16436
16437         fprintftime: avoid a warning about ignored fwrite return value
16438         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16439         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16440         that is unsafe.
16441         * modules/fprintftime (Depends-on): Add ignore-value.
16442
16443         exclude: avoid an unwarranted warning
16444         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16445
16446 2009-10-27  Eric Blake  <ebb9@byu.net>
16447
16448         fseek: avoid compilation failure when fflush is replaced
16449         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16450         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16451         module is in use.
16452         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16453         module is not in use; since REPLACE_FSEEK worked otherwise.
16454         (GNULIB_FTELLO): Likewise for ftell.
16455         Reported by Ian Beckwith and others.
16456
16457 2009-10-27  Bruno Haible  <bruno@clisp.org>
16458
16459         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16460         Reported by Jim Meyering.
16461
16462 2009-10-27  Jim Meyering  <jim@meyering.net>
16463             Bruno Haible  <bruno@clisp.org>
16464
16465         Avoid warning despite dropping the return value of fwrite.
16466         * lib/unicodeio.c: Include ignore-value.h.
16467         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16468         * modules/unicodeio (Depends-on): Add ignore-value.
16469
16470 2009-10-26  Eric Blake  <ebb9@byu.net>
16471
16472         areadlinkat: fix fallback path
16473         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16474         pointer and zero.
16475
16476 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16477
16478         Use a better IO block size for modern systems
16479         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16480         * lib/md2.c: Likewise.
16481         * lib/md4.c: Likewise.
16482         * lib/md5.c: Likewise.
16483         * lib/sha1.c: Likewise.
16484         * lib/sha256.c: Likewise.
16485         * lib/sha512.c: Likewise.
16486
16487 2009-10-22  Eric Blake  <ebb9@byu.net>
16488
16489         tests: avoid several compiler warnings
16490         * tests/test-getcwd.c (main): Avoid buffer underflow.
16491         * tests/test-getdate.c (main): String literals are not safe with
16492         putenv, so use setenv.  Declare unused argument.
16493         * modules/getdate-tests (Depends-on): Add setenv.
16494         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16495         problems with string literals in char *.
16496         * tests/test-hash.c (main): Avoid shadowing declaration.
16497         (insert_new): Treat string literals as char const *.
16498         * tests/test-getopt.h (test_getopt): Likewise.
16499         (getopt_loop): Alter types to minimize casting elsewhere.
16500         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16501         (test_getopt_long_posix): Likewise.
16502         (do_getopt_long): Add wrapper to minimize casting.
16503         * tests/test-atexit.c (clear_temp_file): Use void.
16504         * tests/test-areadlink-with-size.c (main): Declare unused
16505         arguments.
16506         * tests/test-areadlink.c (main): Likewise.
16507         * tests/test-areadlinkat-with-size.c (main): Likewise.
16508         * tests/test-areadlinkat.c (main): Likewise.
16509         * tests/test-canonicalize-lgpl.c (main): Likewise.
16510         * tests/test-canonicalize.c (main): Likewise.
16511         * tests/test-dirent-safer.c (main): Likewise.
16512         * tests/test-dirname.c (main): Likewise.
16513         * tests/test-dup2.c (main): Likewise.
16514         * tests/test-fchdir.c (main): Likewise.
16515         * tests/test-fcntl-h.c (main): Likewise.
16516         * tests/test-fcntl-safer.c (main): Likewise.
16517         * tests/test-fdopendir.c (main): Likewise.
16518         * tests/test-fdutimensat.c (main): Likewise.
16519         * tests/test-fflush.c (main): Likewise.
16520         * tests/test-filenamecat.c (main): Likewise.
16521         * tests/test-filevercmp.c (main): Likewise.
16522         * tests/test-fopen-safer.c (main): Likewise.
16523         * tests/test-fopen.c (main): Likewise.
16524         * tests/test-fpending.c (main): Likewise.
16525         * tests/test-fpurge.c (main): Likewise.
16526         * tests/test-freading.c (main): Likewise.
16527         * tests/test-fstatat.c (main): Likewise.
16528         * tests/test-fsync.c (main): Likewise.
16529         * tests/test-futimens.c (main): Likewise.
16530         * tests/test-getndelim2.c (main): Likewise.
16531         * tests/test-gettimeofday.c (main): Likewise.
16532         * tests/test-getopt.c (main): Likewise.
16533         * tests/test-i-ring.c (main): Likewise.
16534         * tests/test-inttypes.c (main): Likewise.
16535         * tests/test-link.c (main): Likewise.
16536         * tests/test-lstat.c (main): Likewise.
16537         * tests/test-math.c (main): Likewise.
16538         * tests/test-md5.c (main): Likewise.
16539         * tests/test-memchr2.c (main): Likewise.
16540         * tests/test-memrchr.c (main): Likewise.
16541         * tests/test-mkdir.c (main): Likewise.
16542         * tests/test-mkdirat.c (main): Likewise.
16543         * tests/test-mkfifoat.c (main): Likewise.
16544         * tests/test-open.c (main): Likewise.
16545         * tests/test-openat-safer.c (main): Likewise.
16546         * tests/test-openat.c (main): Likewise.
16547         * tests/test-quotearg.c (main): Likewise.
16548         * tests/test-rawmemchr.c (main): Likewise.
16549         * tests/test-readlink.c (main): Likewise.
16550         * tests/test-remove.c (main): Likewise.
16551         * tests/test-rename.c (main): Likewise.
16552         * tests/test-renameat.c (main): Likewise.
16553         * tests/test-rmdir.c (main): Likewise.
16554         * tests/test-sha1.c (main): Likewise.
16555         * tests/test-signal.c (main): Likewise.
16556         * tests/test-sigaction.c (main): Likewise.
16557         * tests/test-stat.c (main): Likewise.
16558         * tests/test-stat-time.c (main): Likewise.
16559         * tests/test-stddef.c (main): Likewise.
16560         * tests/test-stdint.c (main): Likewise.
16561         * tests/test-stdio.c (main): Likewise.
16562         * tests/test-stdlib.c (main): Likewise.
16563         * tests/test-strchrnul.c (main): Likewise.
16564         * tests/test-strerror.c (main): Likewise.
16565         * tests/test-string.c (main): Likewise.
16566         * tests/test-strtod.c (main): Likewise.
16567         * tests/test-strverscmp.c (main): Likewise.
16568         * tests/test-symlink.c (main): Likewise.
16569         * tests/test-symlinkat.c (main): Likewise.
16570         * tests/test-sys_stat.c (main): Likewise.
16571         * tests/test-sys_time.c (main): Likewise.
16572         * tests/test-time.c (main): Likewise.
16573         * tests/test-unistd.c (main): Likewise.
16574         * tests/test-unlink.c (main): Likewise.
16575         * tests/test-unlinkat.c (main): Likewise.
16576         * tests/test-utimens.c (main): Likewise.
16577         * tests/test-utimensat.c (main): Likewise.
16578         * tests/test-version-etc.c (main): Likewise.
16579         * tests/test-wchar.c (main): Likewise.
16580         * tests/test-wctype.c (main): Likewise.
16581         * tests/test-xprintf-posix.c (main): Likewise.
16582         * tests/test-posixtm.c (main): Likewise.
16583         (STREQ): Delete unused macro.
16584         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16585         shadowed variables.
16586         * tests/test-memchr.c (main): Likewise.
16587
16588 2009-10-21  Eric Blake  <ebb9@byu.net>
16589
16590         areadlinkat: avoid failure on older glibc
16591         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16592         rather than mis-comparing 0 against FUNC_RESULT of char*.
16593
16594 2009-10-21  Bruno Haible  <bruno@clisp.org>
16595
16596         * modules/stpncpy (License): Relicense under LGPLv2+.
16597         Reported by David Lutterkort <lutter@redhat.com>.
16598
16599 2009-10-20  Eric Blake  <ebb9@byu.net>
16600
16601         utimensat: work around Solaris 9 bug
16602         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16603         has trailing slash bugs.
16604         * tests/test-lutimens.h (test_lutimens): Enhance test.
16605         * tests/test-utimens.h (test_utimens): Likewise.
16606         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16607         * doc/posix-functions/utimes.texi (utimes): Likewise.
16608         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16609         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16610         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16611         * doc/posix-functions/futimens.texi (futimens): Likewise.
16612
16613         fdutimensat: new module
16614         * modules/fdutimensat: New file.
16615         * lib/fdutimensat.c (fdutimensat): Likewise.
16616         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16617         * MODULES.html.sh (File system functions): Mention module.
16618         * modules/fdutimensat-tests: New test.
16619         * tests/test-fdutimensat.c: Likewise.
16620
16621         doc: regenerate INSTALL
16622         * doc/INSTALL: Reflect recent autoconf update.
16623         * doc/INSTALL.ISO: Likewise.
16624         * doc/INSTALL.UTF-8: Likewise.
16625
16626 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16627
16628         acl: warn if ACL support is not detected
16629         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16630
16631 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16632
16633         * lib/nproc.h: Add extern "C" block for C++.
16634
16635 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16636             Bruno Haible  <bruno@clisp.org>
16637
16638         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16639         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16640         * doc/posix-functions/isalpha.texi: Likewise.
16641         * doc/posix-functions/isblank.texi: Likewise.
16642         * doc/posix-functions/iscntrl.texi: Likewise.
16643         * doc/posix-functions/isdigit.texi: Likewise.
16644         * doc/posix-functions/isgraph.texi: Likewise.
16645         * doc/posix-functions/islower.texi: Likewise.
16646         * doc/posix-functions/isprint.texi: Likewise.
16647         * doc/posix-functions/ispunct.texi: Likewise.
16648         * doc/posix-functions/isspace.texi: Likewise.
16649         * doc/posix-functions/isupper.texi: Likewise.
16650         * doc/posix-functions/isxdigit.texi: Likewise.
16651
16652 2009-10-18  Bruno Haible  <bruno@clisp.org>
16653
16654         Tests for module 'isblank'.
16655         * modules/isblank-tests: New file.
16656         * tests/test-isblank.c: New file.
16657
16658         New module 'isblank'.
16659         * lib/isblank.c: New file.
16660         * m4/isblank.m4: New file.
16661         * modules/isblank: New file.
16662         * doc/posix-functions/isblank.texi: Mention the new module.
16663
16664 2009-10-18  Bruno Haible  <bruno@clisp.org>
16665
16666         New module 'ctype'.
16667         * lib/ctype.in.h: New file.
16668         * m4/ctype.m4: New file.
16669         * modules/ctype: New file.
16670         * doc/posix-headers/ctype.texi: Mention the new module.
16671
16672 2009-10-18  Jim Meyering  <meyering@redhat.com>
16673
16674         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16675         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16676         right after its initialization, rather than farther down.
16677         Keeping these in close proximity makes it easier to ensure
16678         that each such variable is initialized.  E.g.,
16679
16680             LIB_CLOCK_GETTIME=
16681             AC_SUBST([LIB_CLOCK_GETTIME])
16682
16683         This change also increments these serial numbers.
16684         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16687
16688 2009-10-18  Bruno Haible  <bruno@clisp.org>
16689
16690         Don't let environment variables perturb build.
16691         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16692         (gl_PREREQ_GETHRXTIME): ... not here.
16693
16694 2009-10-18  Bruno Haible  <bruno@clisp.org>
16695
16696         Avoid symlink attack in localcharset module.
16697         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16698         (O_NOFOLLOW): Define fallback.
16699         (get_charset_aliases): Don't open the file if it is a symbolic link.
16700         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16701         gl_FCNTL_H.
16702         (gl_FCNTL_H): Require it.
16703         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16704         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16705         Reported by Fergal Glynn <fglynn@veracode.com>.
16706
16707 2009-10-18  Bruno Haible  <bruno@clisp.org>
16708
16709         Implement nproc for mingw.
16710         * lib/nproc.c: Include <windows.h>
16711         (num_processors): On native Windows platforms, try GetSystemInfo.
16712
16713 2009-10-18  Bruno Haible  <bruno@clisp.org>
16714
16715         Implement nproc for IRIX.
16716         * lib/nproc.c: Include <sys/sysmp.h>.
16717         (num_processors): On IRIX systems, try sysmp.
16718         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16719
16720 2009-10-18  Bruno Haible  <bruno@clisp.org>
16721
16722         Implement nproc for HP-UX.
16723         * lib/nproc.c: Include <sys/pstat.h>
16724         (num_processors): On HP-UX systems, try pstat_getdynamic.
16725         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16726         pstat_getdynamic.
16727
16728 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16729             Bruno Haible  <bruno@clisp.org>
16730
16731         Implement nproc for NetBSD, OpenBSD.
16732         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16733         (ARRAY_SIZE): New macro.
16734         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16735         * m4/nproc.m4: New file.
16736         * modules/nproc (Files): Add m4/nproc.m4.
16737         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16738         (Makefile.am): Instead, augment lib_SOURCES.
16739
16740 2009-10-18  Bruno Haible  <bruno@clisp.org>
16741
16742         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16743         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16744         sys/param.h.
16745
16746 2009-10-16  Eric Blake  <ebb9@byu.net>
16747
16748         utimensat: new module
16749         * modules/utimensat: New file.
16750         * lib/utimensat.c (utimensat): Likewise.
16751         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16752         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16753         so we can work around Linux bugs.
16754         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16755         * modules/sys_stat (Makefile.am): Substitute them.
16756         * lib/sys_stat.in.h (utimensat): Declare it.
16757         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16758         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16759         * modules/utimensat-tests: New test.
16760         * tests/test-utimensat.c: Likewise.
16761
16762         utimens: let lutimens work on non-symlinks
16763         * lib/utimens.c (lutimens): Fall back to utimens rather than
16764         failing with ENOSYS, when file is not a symlink.
16765         (utimens): Reduce redirection.
16766         * tests/test-lutimens.h (test_lutimens): Update test to cover
16767         non-symlinks.
16768         * tests/test-utimens.h (test_utimens): Update test to cover
16769         symlinks.
16770         * tests/test-utimens.c (main): Update caller.
16771
16772         utimens: cache whether utimensat syscall works
16773         * lib/utimens.c (utimensat_works_really): New cache variable.
16774         (fdutimens, lutimens): Use it to avoid failing syscall.
16775
16776         test-stat-time, test-utimens: improve portability
16777         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16778         ext4 on alpha, and for cygwin.
16779         * tests/test-utimens-common.h: New file.
16780         (nap): Factor delays into single function.
16781         * tests/test-lutimens.h (test_lutimens): Use new header.
16782         * tests/test-futimens.h (test_futimens): Likewise.
16783         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16784         timestamps to occur from same machine, as was done previously for
16785         test_utimens.
16786         * modules/utimens-tests (Files): Ship new file.
16787         * modules/futimens-tests (Files): Likewise.
16788         Reported in part by Jim Meyering.
16789
16790         sys_stat: sort replacement declarations
16791         * lib/sys_stat.in.h: Sort declarations.
16792         * lib/futimens.c (futimens): Fix typo.
16793
16794 2009-10-15  Jim Meyering  <meyering@redhat.com>
16795
16796         don't let environment settings perturb build
16797         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16798         could cause a configure-time and/or build-time malfunction.
16799         Typically, a configure-time function-in-library test is performed
16800         via code like this:
16801
16802           LIB_VAR=
16803           AC_SUBST([LIB_VAR])
16804           prefix_saved_LIBS=$LIBS
16805             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16806                        [test "$ac_cv_search_FUNC" = "none required" ||
16807                         LIB_VAR=$ac_cv_search_FUNC])
16808           LIBS=$prefix_saved_LIBS
16809
16810         However, in each of the files affected by this change, the LIB_VAR=
16811         initialization was omitted.  Thus, when set in the environment, its
16812         value would propagate into generated Makefiles when FUNC is not found
16813         in LIB_NAME.
16814         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16815         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16817
16818 2009-10-14  Eric Blake  <ebb9@byu.net>
16819
16820         fchdir: avoid infinite recursion in mingw
16821         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16822         recursing.
16823
16824         test-stat-time: port to mingw
16825         * tests/test-stat-time.c (force_unlink): Return a value.
16826         (test_ctime) [W32]: Fix compilation error.
16827         (nap): Don't call usleep with too large an argument.  Use
16828         force_unlink.
16829         * doc/pastposix-functions/usleep.texi (usleep): Document the
16830         portability issue.
16831
16832 2009-10-13  Jim Meyering  <meyering@redhat.com>
16833
16834         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16835         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16836         * modules/pipe-filter-ii: Likewise.
16837         * modules/sys_socket-tests: Likewise.
16838         * modules/tsearch-tests: Likewise.
16839         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16840         (check): Depend on it.
16841
16842 2009-10-12  Eric Blake  <ebb9@byu.net>
16843
16844         utimens-tests: port to NFS file systems
16845         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16846         comparisons to avoid spurious failures from timestamp drift
16847         between NFS machines.
16848
16849 2009-10-12  Eric Blake  <ebb9@byu.net>
16850
16851         stat-time-tests: minor cleanups
16852         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16853         * tests/test-stat-time.c (nap): Separate assignment from call.
16854         Suggested by Paolo Bonzini and Bruno Haible.
16855
16856         sys_stat: guarantee struct timespec
16857         * lib/sys_stat.in.h (includes): Always include <time.h>
16858         * modules/sys_stat (Depends-on): Add time.
16859         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16860         mode_t permission values.
16861         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
16862         get at subsecond timestamps.
16863
16864 2009-10-10  Eric Blake  <ebb9@byu.net>
16865
16866         futimens: new module
16867         * modules/futimens: New file.
16868         * lib/futimens.c (futimens): Likewise.
16869         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
16870         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
16871         we can work around Linux bugs.
16872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16873         * modules/sys_stat (Makefile.am): Substitute them.
16874         * lib/sys_stat.in.h (futimens): Declare it.
16875         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16876         * doc/posix-functions/futimens.texi (futimens): Likewise.
16877         * modules/futimens-tests: New test.
16878         * tests/test-futimens.c: Likewise.
16879
16880         utimens: introduce fdutimens
16881         * lib/utimens.h (fdutimens): New prototype.
16882         * lib/utimens.c (gl_futimens): Move guts...
16883         (fdutimens): ...to new interface.
16884         * tests/test-utimens.c (do_fdutimens): Use it.
16885
16886         utimens: add UTIME_NOW and UTIME_OMIT support
16887         * lib/utimens.c (validate_timespec, update_timespec): New helper
16888         functions.
16889         (gl_futimens, lutimens): Use them.
16890         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
16891         stdbool, sys_stat.
16892         (Link): Mention resulting library dependency.
16893         * modules/utimecmp (Link): Likewise.
16894         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
16895         (Makefile.am): Pick up library dependency.
16896         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
16897         definition.
16898         * tests/test-sys_stat.c: Test the definitions.
16899         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
16900         * NEWS: Document library dependency.
16901
16902         utimecmp: support symlink timestamps
16903         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
16904         hashing when possible.  Use pathconf when available.
16905         (SYSCALL_RESOLUTION): Recognize tighter resolution.
16906         * modules/utimecmp (Depends-on): Add lstat.
16907
16908         utimens: add lutimens interface
16909         * lib/utimens.c (lutimens): New function.
16910         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
16911         * lib/utimens.h (lutimens): Declare new interface.
16912         * tests/test-utimens.c (main): Enhance test.
16913         * tests/test-lutimens.h (test_lutimens): New file.
16914         * modules/utimens-tests (Files): Distribute it.
16915         (Depends-on): Add symlink.
16916         (configure.ac): Check for usleep.
16917
16918         utimens: validate futimens usage
16919         * lib/utimens.c (gl_futimens): Require valid fd up front, using
16920         fewer syscalls on failure later on.  Avoid compiler warning on
16921         mingw.
16922         * modules/utimens (Depends-on): Add dup2.
16923
16924         utimens: add test
16925         * modules/utimens-tests: New test.
16926         * tests/test-utimens.h: New file.
16927         * tests/test-futimens.h: Likewise.
16928         * tests/test-utimens.c: Likewise.
16929
16930         doc: mention timestamp portability issues
16931         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
16932         instead.
16933         * doc/posix-functions/utime.texi (utime): Likewise.
16934         * doc/posix-functions/utimes.texi (utimes): Likewise.
16935         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
16936         instead.
16937         * doc/posix-functions/futimens.texi (futimens): Mention utimens
16938         module.
16939         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16940         Mention weakness with symlink timestamps.
16941         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
16942         to utimensat/futimens instead.
16943         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
16944
16945         test-dup2: enhance test
16946         * tests/test-dup2.c (main): Also check AT_FDCWD.
16947
16948         test-stat-time: avoid more spurious failures
16949         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
16950         xfs; and avoid race if the two timestamps cross quantization edge.
16951
16952         relocatable: prefer 'file system' over 'filesystem'
16953         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
16954         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
16955         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
16956         * doc/relocatable.texi (Enabling Relocatability): Likewise.
16957         * lib/relocatable.c (compute_curr_prefix): Likewise.
16958
16959 2009-10-10  Jim Meyering  <meyering@redhat.com>
16960
16961         stat-time-tests: check for the usleep function
16962         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
16963
16964 2009-10-10  Bruno Haible  <bruno@clisp.org>
16965
16966         * modules/xnanosleep: Put the Link section after the Include section.
16967
16968 2009-10-09  Eric Blake  <ebb9@byu.net>
16969
16970         dup2: work around FreeBSD 6.1 bug
16971         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
16972         * doc/posix-functions/dup2.texi (dup2): Document it.
16973         Reported by Nelson H. F. Beebe and Jim Meyering.
16974
16975         test-stat-time: port to buggy NFS clients
16976         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
16977         (test_ctime): Also skip test if mtime and ctime are skewed.
16978
16979         maint: prefer 'file system' over 'filesystem'
16980         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16981         * doc/posix-functions/lstat.texi (lstat): Likewise.
16982         * lib/file-has-acl.c (file_has_acl): Likewise.
16983         * lib/fwriteerror.c [TEST]: Likewise.
16984         * tests/test-areadlink.h (test_areadlink): Likewise.
16985         * tests/test-areadlinkat-with-size.c (main): Likewise.
16986         * tests/test-areadlinkat.c (main): Likewise.
16987         * tests/test-canonicalize-lgpl.c (main): Likewise.
16988         * tests/test-canonicalize.c (main): Likewise.
16989         * tests/test-fstatat.c (main): Likewise.
16990         * tests/test-linkat.c (main): Likewise.
16991         * tests/test-lstat.h (test_lstat_func): Likewise.
16992         * tests/test-mkdir.h (test_mkdir): Likewise.
16993         * tests/test-readlink.h (test_readlink): Likewise.
16994         * tests/test-remove.c (main): Likewise.
16995         * tests/test-rename.h (test_rename): Likewise.
16996         * tests/test-renameat.c (main): Likewise.
16997         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16998         * tests/test-symlink.h (test_symlink): Likewise.
16999         * tests/test-symlinkat.c (main): Likewise.
17000         * tests/test-unlink.h (test_unlink_func): Likewise.
17001         * tests/test-unlinkat.c (main): Likewise.
17002
17003         maint: make realtime library usage explicit
17004         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17005         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17006         * modules/settime (Link): Likewise.
17007         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17008
17009         test-stat-time: speed up execution
17010         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17011         warning on mingw.
17012         (nap): New helper function.
17013         (prepare_test): Use it to reduce sleep time.
17014         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17015         execution.
17016         * modules/stat-time-tests (configure.ac): Check for usleep.
17017
17018 2009-10-09  Jim Meyering  <meyering@redhat.com>
17019
17020         selinux-h: always use getfilecon wrappers
17021         * lib/getfilecon.c: New file.
17022         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17023         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17024         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17025         (fgetfilecon): Provide a stub.
17026         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17027         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17028         file unconditionally.
17029         When <selinux/selinux.h> is found, arrange to use wrappers.
17030         * modules/selinux-h (Files): Add getfilecon.c.
17031         (Makefile.am): Substitute include-next-related bits
17032         into the now-always-generated selinux/selinux.h file.
17033         * doc/glibc-functions/lgetfilecon.texi: New file.
17034         * doc/glibc-functions/fgetfilecon.texi: New file.
17035         * doc/glibc-functions/getfilecon.texi: New file.
17036         * doc/glibc-functions/getfilecon-desc.texi: New file.
17037         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17038         which to pull in the new files.
17039         * MODULES.html.sh (Misc): Add selinux-h.
17040
17041 2009-10-08  Jim Meyering  <meyering@redhat.com>
17042
17043         unistd: fix comment typo
17044         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17045
17046 2009-10-08  Eric Blake  <ebb9@byu.net>
17047
17048         areadlink: use SIZE_MAX consistently
17049         * modules/areadlink (Depends-on): Add stdint.
17050         * modules/areadlink-with-size (Depends-on): Likewise.
17051         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17052         gives NULL; drop sys/types, since unistd gives size_t; and add
17053         stdint for SIZE_MAX.
17054         (SIZE_MAX): Rely on headers.
17055         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17056         and add stdint.
17057         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17058         (SIZE_MAX): Likewise.
17059         (INITIAL_BUF_SIZE): Turn into enum.
17060         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17061
17062 2009-10-08  Jim Meyering  <meyering@redhat.com>
17063
17064         areadlinkat: avoid compilation failure
17065         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17066         Fix typo in comment.
17067
17068 2009-10-07  Eric Blake  <ebb9@byu.net>
17069
17070         areadlinkat-with-size: new module
17071         * modules/areadlinkat-with-size: New module.
17072         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17073         * lib/areadlink.h (areadlinkat): Declare it.
17074         * MODULES.html.sh (File system functions): Mention it.
17075         * modules/areadlinkat-with-size-tests: New test.
17076         * tests/test-areadlinkat-with-size.c: New file.
17077
17078         xreadlinkat: new module
17079         * modules/xreadlinkat: New module.
17080         * lib/xreadlinkat.c (xreadlinkat): New file.
17081         * lib/xreadlink.h (xreadlinkat): Declare it.
17082         * MODULES.html.sh (File system functions): Mention it.
17083
17084         areadlinkat: new module
17085         * lib/at-func.c (FUNC_FAIL): New define.
17086         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17087         * modules/areadlinkat: New module.
17088         * lib/linkat.c (areadlinkat): Move...
17089         * lib/areadlinkat.c (areadlinkat): ...to new file.
17090         * lib/areadlink.h (areadlinkat): Declare it.
17091         * modules/linkat (Depends-on): Add areadlinkat.
17092         * MODULES.html.sh (File system functions): Mention it.
17093         * modules/areadlinkat-tests: New test.
17094         * tests/test-areadlinkat.c: New file.
17095
17096         areadlink, areadlink-with-size: add tests
17097         * modules/areadlink-tests: New test.
17098         * modules/areadlink-with-size-tests: Likewise.
17099         * tests/test-areadlink.h: New file.
17100         * tests/test-areadlink.c: Likewise.
17101         * tests/test-areadlink-with-size.c: Likewise.
17102
17103         maint: minor cleanups
17104         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17105         _UNUSED_PARAMETER_ instead.
17106         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17107         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17108         * modules/linkat-tests (Files): Distribute test-link.h.
17109
17110         openat, utimens: whitespace cleanup
17111         * lib/openat.c: Prefer space throughout, rather than mix of 8
17112         spaces vs. tabs.
17113         * lib/at-func.c: Likewise.
17114         * lib/utimens.c: Likewise.
17115
17116         openat: avoid using wrong fd
17117         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17118         working directory chooses same fd.
17119         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17120
17121         mkdir, mkdirat: fix cygwin 1.5.x bug
17122         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17123         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17124         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17125         bug.
17126         (gl_PREREQ_MKDIR): Delete unused macro.
17127         * modules/mkdir (Files): Track file rename.
17128         (configure.ac): Update macro name.
17129         * modules/openat (Depends-on): Add mkdir.
17130         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17131
17132         mkdir, mkdirat: add tests
17133         * modules/mkdir-tests: New test.
17134         * tests/test-mkdir.h: New file.
17135         * tests/test-mkdir.c: Likewise.
17136         * tests/test-mkdirat.c: Likewise.
17137         * modules/openat-tests (Files): Add new files.
17138         (Makefile.am): Run new test.
17139
17140 2009-10-06  Eric Blake  <ebb9@byu.net>
17141
17142         doc: tweak *at function documentation
17143         * doc/posix-functions/faccessat.texi (faccessat): Mention
17144         known issue with replacement.
17145         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17146         * doc/posix-functions/linkat.texi (linkat): Likewise.
17147         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17148         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17149         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17150         * doc/posix-functions/renameat.texi (renameat): Likewise.
17151         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17152
17153         openat: fix GNU/Hurd bug in unlinkat
17154         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17155         broken.
17156         * doc/posix-functions/unlink.texi (unlink): Document this.
17157         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17158
17159         fdopendir: fix GNU/Hurd bug
17160         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17161         allowing non-directory fds.
17162         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17164         * modules/dirent (Makefile.am): Substitute it.
17165         * lib/dirent.in.h (fdopendir): Declare replacement.
17166         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17167         * tests/test-fdopendir.c (main): Test something other than
17168         /dev/null, since on Hurd that behaves like a directory.
17169
17170         test-symlink: port to GNU/Hurd
17171         * tests/test-symlink.h (test_symlink): Relax expected errno.
17172
17173         doc: tweak more cygwin information
17174         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17175         now compatible with glibc.
17176         * doc/posix-functions/getopt.texi (getopt): Likewise.
17177
17178         getopt-gnu: add another test
17179         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17180         guarantee behavior relied on by m4.
17181         * tests/test-getopt.c (main): Use it.
17182         * modules/getopt-posix-tests (Depends-on): Add setenv.
17183         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17184
17185         getopt: fix compilation on darwin
17186         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17187         include.
17188         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17189         Reported by Ludovic Courtès.
17190
17191 2009-10-06  Bruno Haible  <bruno@clisp.org>
17192
17193         * modules/size_max (Description): Discourage its use.
17194         Reported by Simon Josefsson.
17195
17196 2009-10-06  Jim Meyering  <meyering@redhat.com>
17197
17198         linkat: avoid compilation failure
17199         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17200
17201 2009-10-05  Eric Blake  <ebb9@byu.net>
17202
17203         linkat: support Linux 2.6.17
17204         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17205         linkat on Linux, but allow cache variable override.
17206         * lib/linkat.c (rpl_linkat): Define override.
17207         * modules/linkat (Depends-on): Add symlinkat.
17208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17209         * modules/unistd (Makefile.am): Substitute it.
17210         * lib/unistd.in.h (linkat): Declare replacement.
17211         Reported by Pádraig Brady.
17212
17213         quotearg: port test to systems with C.UTF-8 locale
17214         * tests/test-quotearg.c (struct result_strings): Add another
17215         member, differentiating between C.ASCII and C.UTF-8 handling.
17216         (compare_strings): Add parameter.
17217         (main): Adjust all callers.
17218
17219         getopt: avoid clash with FreeBSD _getopt_internal
17220         * lib/getopt.in.h (_getopt_internal): Override the name.
17221         * lib/getopt_int.h (includes): Pick up any overrides.
17222         Reported by Reuben Thomas.
17223
17224         hash: allow C89 compilation
17225         * lib/hash.c (check_tuning): Move declaration before statement.
17226         Reported by Reuben Thomas.
17227
17228 2009-10-05  Karl Berry  <karl@gnu.org>
17229
17230         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17231
17232 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17233             Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/uname.c (uname): Use a table-driven algorithm to compute
17236         Windows NT versions.
17237
17238 2009-10-04  Bruno Haible  <bruno@clisp.org>
17239
17240         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17241         program_invocation_short_name.
17242         * modules/progname (configure.ac): Test for presence of
17243         program_invocation_short_name.
17244         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17245
17246 2009-10-04  Bruno Haible  <bruno@clisp.org>
17247
17248         * lib/progname.c (set_program_name): Fix comment.
17249         Reported by Jim Meyering.
17250
17251 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17252             Bruno Haible  <bruno@clisp.org>
17253
17254         * lib/uname.c: Include <string.h>.
17255         (uname): Do only one call to GetVersionEx in the common case.
17256
17257 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17258             Bruno Haible  <bruno@clisp.org>
17259
17260         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17261         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17262         (uname): Add support for Windows CE and various non-x86 CPU types.
17263
17264 2009-10-03  Bruno Haible  <bruno@clisp.org>
17265
17266         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17267         invocation to tests/configure.ac.
17268         Reported by Ian Beckwith <ianb@erislabs.net>.
17269
17270 2009-10-02  Eric Blake  <ebb9@byu.net>
17271
17272         fchdir: avoid compiler warning
17273         * lib/fchdir.c (canonicalize_file_name)
17274         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17275
17276         test-open: support mingw errno values
17277         * tests/test-open.h (test_open): Relax test.
17278         * tests/test-fopen.h (test_fopen): Likewise.
17279         * tests/test-openat-safer.c (main): Likewise.
17280
17281         open: fix opening directory on mingw
17282         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17283
17284         test-open: on GNU/Hurd, /dev/null is a directory
17285         * tests/test-fopen.h (main): Rename...
17286         (test_fopen): ...to this.  Use a guaranteed non-directory when
17287         confirming open behavior on trailing slash.
17288         * tests/test-openat-safer.c (main): Likewise.
17289         * tests/test-open.h (main): Likewise....
17290         (test_open): ...to this.
17291         * tests/test-fopen.c (main): Adjust caller.
17292         * tests/test-fopen-safer.c (main): Likewise.
17293         * tests/test-open.c (main): Likewise.
17294         * tests/test-fcntl-safer.c (main): Likewise.
17295         Reported by Samuel Thibault.
17296
17297         rename, fchdir: don't ignore chdir failure
17298         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17299         * lib/rename.c (rpl_rename) [W32]: Likewise.
17300         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17301         an empty destination directory if source cannot be renamed,
17302         although there is still possibility for failure.
17303         * doc/posix-functions/rename.texi (rename): Document the race.
17304         Reported by Jim Meyering.
17305
17306         maint: cleanup whitespace in recent commits
17307         * lib/rename.c (rpl_rename): Remove tabs.
17308         * tests/test-link.h (test_link): Likewise.
17309         * lib/fchdir.c (get_name): Likewise.
17310         Reported by Jim Meyering.
17311
17312 2009-10-02  Ben Pfaff  <blp@gnu.org>
17313
17314         relocatable-prog-wrapper: Add missing dependency on
17315         double-slash-root.
17316         * modules/relocatable-prog-wrapper: Add dependency.
17317         Reported by Ian Beckwith <ianb@erislabs.net>.
17318
17319 2009-10-02  Eric Blake  <ebb9@byu.net>
17320
17321         renameat: fix Solaris bugs
17322         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17323         needed fixing.
17324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17325         * modules/stdio (Makefile.am): Substitute it.
17326         * lib/stdio.in.h (renameat): Declare replacement.
17327         * lib/renameat.c (rpl_renameat): Implement fix.
17328
17329         renameat: new module
17330         * modules/renameat: New file.
17331         * lib/renameat.c (renameat): Likewise.
17332         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17334         * modules/stdio (Makefile.am): Substitute them.
17335         * lib/stdio.in.h (renameat): Declare it.
17336         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17337         * doc/posix-functions/renameat.texi (renameat): Likewise.
17338         * modules/renameat-tests: New test.
17339         * tests/test-renameat.c: Likewise.
17340
17341         rename: fix mingw bugs
17342         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17343         directory overwrite bugs.
17344
17345         rename: fix another cygwin 1.5 bug
17346         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17347         checks.
17348         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17349         unnecessary cygwin workarounds.  Also work around bug with moving
17350         full directory onto an empty one.
17351         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17352
17353         rename-dest-slash: merge into rename module
17354         * modules/rename-dest-slash (Status): Mark obsolete.
17355         (Depends-on): Add rename.
17356         (Files): Let rename do it all.
17357         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17358         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17359         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17360         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17361         * lib/rename.c (rpl_rename): Update comments.
17362
17363         rename: fix cygwin 1.5.x bugs
17364         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17365         * lib/rename.c (rpl_rename): Work around them.
17366         * modules/rename (Depends-on): Add same-inode.
17367
17368         rename: fix Solaris 10 bug
17369         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17370         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17371         was the only bug.
17372
17373         rename: fix Solaris 9 bug
17374         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17375         on non-directory.  Avoid calling exit.
17376         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17377         strdup.
17378         * modules/rename-tests (Depends-on): Drop lstat.
17379         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17380         (gl_PREREQ_RENAME): Delete unused macro.
17381
17382         rename-dest-slash: fix NetBSD bug
17383         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17384         links.
17385         * modules/rename-dest-slash (Depends-on): Add same-inode.
17386
17387         rename-tests: new test, exposes several platform bugs
17388         * modules/rename-tests: New file.
17389         * tests/test-rename.h: Likewise.
17390         * tests/test-rename.c: Likewise.
17391         * doc/posix-functions/rename.texi (rename): Improve documentation,
17392         including bugs that will eventually be fixed in gnulib.
17393
17394 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17395
17396         * lib/uname.c: Include <stdlib.h>
17397         (uname): Assume version info is available.
17398
17399 2009-10-02  Jim Meyering  <meyering@redhat.com>
17400
17401         gnu-web-doc-update: correct --help output
17402         * build-aux/gnu-web-doc-update: Make --help output relevant.
17403
17404         gnu-web-doc-update: add standard options
17405         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17406
17407         gnu-web-doc-update: New module.
17408         Use this script to automatically update the on-line web documentation
17409         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17410         * modules/gnu-web-doc-update: New file, from coreutils.
17411         * build-aux/gnu-web-doc-update: New script.
17412
17413 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17414
17415         link: LoadLibrary is not needed.
17416         * lib/link.c: Use GetModuleHandle.
17417
17418 2009-10-01  Eric Blake  <ebb9@byu.net>
17419
17420         getopt: bump serial number
17421         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17422         change.
17423
17424         tests: tighten link, rmdir, and remove tests
17425         * tests/test-link.h (includes): No need to use <config.h> here.
17426         Clean up if directory hard link was created, otherwise test for
17427         trailing '.'.
17428         * tests/test-linkat.c (main): Simplify.
17429         * tests/test-remove.c (main): Enhance test for trailing '.'.
17430         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17431
17432 2009-10-01  Jim Meyering  <meyering@redhat.com>
17433
17434         maint.mk: requiring "make major" was annoying, for a "minor" release.
17435         What is intended is "stable", to contrast with alpha and beta,
17436         so require "make stable", not "make major".
17437         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17438         (get_tool_versions): Likewise.
17439         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17440
17441 2009-09-30  Ben Pfaff  <blp@gnu.org>
17442
17443         Fix broken build of replacement for Windows tmpfile().
17444         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17445         flags argument added along with the 'mkostemp' module.
17446
17447 2009-09-28  Bruno Haible  <bruno@clisp.org>
17448
17449         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17450         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17451         to 'remove_elt'.
17452         (gl_list_remove): Update.
17453         * lib/gl_list.c (gl_list_remove): Update.
17454         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17455         to 'remove_elt'.
17456         (gl_oset_remove): Update.
17457         * lib/gl_list.c (gl_oset_remove): Update.
17458         Reported by Eric Blake.
17459
17460 2009-09-28  Eric Blake  <ebb9@byu.net>
17461
17462         doc: mention yet more cygwin 1.7 status
17463         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17464         cygwin.
17465         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17466         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17467
17468         argp: fix test failure
17469         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17470         that are not upper-case.  Pass correct range to tolower.
17471
17472 2009-09-27  Jim Meyering  <meyering@redhat.com>
17473
17474         test-yesno: work around sparc-dash here-document infelicity
17475         Without this change, the literal \177 byte in a here document
17476         would make dash 0.5.5.1-3 access uninitialized memory.
17477         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17478         Instead, use a marker, "@", and filter through tr to create the desired
17479         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17480
17481 2009-09-27  Bruno Haible  <bruno@clisp.org>
17482
17483         Disable untested support for new flavours of ACLs on AIX.
17484         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17485         progress.
17486         * lib/set-mode-acl.c (qset_acl): Likewise.
17487
17488 2008-12-07  Bruno Haible  <bruno@clisp.org>
17489
17490         Add support for new flavours of ACLs on AIX. (Untested.)
17491         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17492         (file_has_acl): Add support for newer AIX.
17493         * lib/set-mode-acl.c (qset_acl): Likewise.
17494         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17495         Rainer Tammer <tammer@tammer.net>.
17496
17497 2009-09-26  Eric Blake  <ebb9@byu.net>
17498
17499         argp: fix compilation of getopt
17500         * lib/getopt.in.h (includes): Use different guard than glibc.
17501         Reported by Sergey Poznyakoff.
17502
17503         doc: mention more cygwin 1.7 status
17504         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17505         bug.
17506         * doc/posix-functions/execl.texi (execl): Likewise.
17507         * doc/posix-functions/execle.texi (execle): Likewise.
17508         * doc/posix-functions/execlp.texi (execlp): Likewise.
17509         * doc/posix-functions/execv.texi (execv): Likewise.
17510         * doc/posix-functions/execve.texi (execve): Likewise.
17511         * doc/posix-functions/execvp.texi (execvp): Likewise.
17512         * doc/glibc-functions/canonicalize_file_name.texi
17513         (canonicalize_file_name): Cygwin 1.7 now provides this.
17514         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17515         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17516         on AT_SYMLINK_NOFOLLOW.
17517
17518 2009-09-24  Eric Blake  <ebb9@byu.net>
17519
17520         test-linkat: make test more robust
17521         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17522
17523         getopt: fix inclusion guards for cygwin
17524         * modules/getopt-posix (Depends-on): Add include-next.
17525         (Makefile.am): Substitute more items in replacement header.
17526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17527         <getopt.h>.
17528         * lib/getopt.in.h (includes): Use split inclusion guard, and
17529         prefer <getopt.h> over include <unistd.h> when one is present.
17530         (option): Also override name of 'struct option'.
17531
17532         same-inode: revert prior change; it is not yet ready
17533         * NEWS: Undo mention of this change.
17534         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17535         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17536         * lib/cycle-check.c (cycle_check): Likewise.
17537         * lib/same.c (same_name): Likewise.
17538         * lib/at-func2.c (at_func2): Likewise.
17539
17540 2009-09-23  Eric Blake  <ebb9@byu.net>
17541
17542         linkat: new module
17543         * modules/linkat: New file.
17544         * lib/at-func2.c (at_func2): Likewise.
17545         * lib/linkat.c (linkat): Likewise.
17546         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17547         * lib/openat-priv.h (at_func2): Add declaration.
17548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17549         * modules/unistd (Makefile.am): Substitute them.
17550         * lib/unistd.in.h (linkat): Declare it.
17551         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17552         * doc/posix-functions/linkat.texi (linkat): Likewise.
17553         * doc/posix-functions/link.texi (link): Tweak wording.
17554         * tests/test-link.c (main): Move guts...
17555         * tests/test-link.h (test_link): ...into new file.
17556         * modules/linkat-tests: New test.
17557         * tests/test-linkat.c: Likewise.
17558         * modules/link-tests (Files): Ship new file.
17559         (Depends-on): Add stdbool.
17560
17561         dirname: add library-safe mdir_name
17562         * lib/dirname.h (mdir_name): New prototype.
17563         * lib/dirname.c (dir_name): Move guts...
17564         (mdir_name): ...to new function that avoids xalloc_die.
17565
17566         fchdir: another mingw fix
17567         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17568         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17569         on mingw (where it has not yet been ported), and make it optional
17570         elsewhere.
17571         (_gl_register_fd): Use it.
17572
17573         same-inode: make SAME_INODE tri-state, to port to mingw
17574         * NEWS: Mention this change.
17575         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17576         st_ino always being 0.
17577         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17578         * lib/cycle-check.c (cycle_check): Likewise.
17579         * lib/same.c (same_name): Likewise.
17580
17581         lstat: avoid mingw compilation error
17582         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17583         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17584         lstat ourselves.
17585         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17586         was adequate.
17587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17588         the checks for lstat.
17589         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17590
17591         link: fix test failure on Solaris 9
17592         * lib/link.c (rpl_link): Don't assume link will catch bogus
17593         trailing slash on source.
17594
17595         test-symlinkat: enhance test
17596         * tests/test-readlink.c (main): Move guts...
17597         * tests/test-readlink.h (test_readlink): ...into new file.
17598         * tests/test-symlink.c (main): Move guts...
17599         * tests/test-symlink.h (test_symlink): ...into new file.
17600         * tests/test-symlinkat.c (main): Use new files for further
17601         coverage.
17602         (do_symlink, do_readlink): New helper functions.
17603         * modules/symlink-tests (Files): Ship new file.
17604         (Depends-on): Add stdbool.
17605         * modules/readlink-tests (Files): Ship new file.
17606         (Depends-on): Add stdbool.
17607         * modules/symlinkat-tests (Files): Use new files.
17608
17609 2009-09-23  Eric Blake  <ebb9@byu.net>
17610
17611         readlink: document portability issue with symlink length
17612         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17613         systems have bogus st_size on symlinks, and mention the
17614         areadlink-with-size module.
17615         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17616         * doc/posix-functions/readlink.texi (readlink): Mention the
17617         areadlink module, and ERANGE failure.
17618         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17619         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17620
17621         readlink: fix Solaris 9 bug with trailing slash
17622         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17623         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17624         * doc/posix-functions/readlink.texi (readlink): Document this.
17625         * modules/readlink-tests: New test.
17626         * tests/test-readlink.c: Likewise.
17627
17628         readlink: fix cygwin 1.5.x bug with return type
17629         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17630         * lib/unistd.in.h (readlink): Use ssize_t.
17631         * lib/readlink.c (readlink): Likewise.
17632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17633         * modules/unistd (Makefile.am): Substitute it.
17634         * lib/unistd.in.h (readlink): Declare replacement.
17635         * doc/posix-functions/readlink.texi (readlink): Document this.
17636
17637         symlink: use throughout gnulib
17638         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17639         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17640         symlink is not used.
17641         * modules/symlinkat (Depends-on): Add symlink.
17642         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17643         * modules/canonicalize-tests (Depends-on): Likewise.
17644         * modules/lstat-tests (Depends-on): Likewise.
17645         * modules/openat-tests (Depends-on): Likewise.
17646         * modules/remove-tests (Depends-on): Likewise.
17647         * modules/rmdir-tests (Depends-on): Likewise.
17648         * modules/unlink-tests (Depends-on): Likewise.
17649         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17650         * tests/test-canonicalize.c (symlink): Likewise.
17651         * tests/test-fstatat.c (symlink): Likewise.
17652         * tests/test-lstat.c (symlink): Likewise.
17653         * tests/test-remove.c (symlink): Likewise.
17654         * tests/test-rmdir.c (symlink): Likewise.
17655         * tests/test-unlink.c (symlink): Likewise.
17656         * tests/test-unlinkat.c (symlink): Likewise.
17657
17658         symlink: new module, for Solaris 9 bug
17659         * modules/symlink: New file.
17660         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17661         * lib/symlink.c: Likewise.
17662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17663         * modules/unistd (Makefile.am): Substitute them.
17664         * lib/unistd.in.h (symlink): Declare replacement.
17665         * MODULES.html.sh (File system functions): Mention it.
17666         * doc/posix-functions/symlink.texi (symlink): Likewise.
17667         * modules/symlink-tests: New test.
17668         * tests/test-symlink.c: Likewise.
17669
17670 2009-09-23  Bruno Haible  <bruno@clisp.org>
17671
17672         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17673         when needed.
17674         Test case: gnulib-tool --import --with-tests atexit inttypes.
17675         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17676
17677 2009-09-23  Bruno Haible  <bruno@clisp.org>
17678
17679         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17680         subcommand, not in a subshell.
17681
17682 2009-09-22  Eric Blake  <ebb9@byu.net>
17683
17684         unistd: sort replacement declarations
17685         * lib/unistd.in.h: Sort declarations.
17686
17687         open, openat: minor optimization
17688         * lib/open.c (open): If open succeeded, len is non-zero.
17689         * lib/openat.c (rpl_openat): Likewise.
17690
17691         link-follow: ensure correct result
17692         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17693         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17694         distinguish between possible failures.
17695
17696 2009-09-21  Eric Blake  <ebb9@byu.net>
17697
17698         fts: avoid compiler warning
17699         * lib/fts.c (dirent_inode_sort_may_be_useful)
17700         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17701
17702 2009-09-19  Bruno Haible  <bruno@clisp.org>
17703
17704         * lib/progreloc.c (canonicalize_file_name): New declaration.
17705
17706 2009-09-19  Eric Blake  <ebb9@byu.net>
17707
17708         link: fix quoting
17709         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17710
17711         openat: fix openat bugs on Solaris 9
17712         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17713         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17714         * modules/openat (Depends-on): Add open.
17715         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17716         * modules/fcntl-h (Makefile.am): Substitute it.
17717         * lib/fcntl.in.h (openat): Declare replacement.
17718         * doc/posix-functions/openat.texi (openat): Document this.
17719
17720         openat: move fstatat and unlinkat into correct files
17721         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17722         compiled.
17723         * lib/openat.c (fstatat, unlinkat): Move...
17724         * lib/fstatat.c (fstatat): ...into correct files.
17725         * lib/unlinkat.c (unlinkat): Likewise.
17726
17727         openat: fix unlinkat bugs on Solaris 9
17728         * lib/unlinkat.c (unlinkat): New file.
17729         * modules/openat (Depends-on): Add unlink.
17730         (Files): Distribute it.
17731         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17732         trailing slash behavior is broken.
17733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17734         * modules/unistd (Makefile.am): Substitute it.
17735         * lib/unistd.in.h (unlinkat): Declare replacement.
17736         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17737
17738         openat: fix fstatat bugs on Solaris 9
17739         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17740         stat.
17741         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17742
17743         test-unlinkat: enhance test, to expose Solaris 9 bug
17744         * tests/test-unlink.c (main): Factor guts...
17745         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17746         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17747         * tests/test-rmdir.c (main): Adjust caller.
17748         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17749         (unlinker): New helper function.
17750         (rmdirat): Enhance check.
17751         * modules/rmdir-tests (Depends-on): Add stdbool.
17752         * modules/unlink-tests (Depends-on): Likewise.
17753         (Files): Add test-unlink.h.
17754         * modules/openat-tests (Files): Likewise.
17755         (Depends-on): Add unlinkdir.
17756
17757         test-fstatat: new test, to expose Solaris 9 bugs
17758         * tests/test-stat.c (main): Factor guts...
17759         * tests/test-stat.h (test_stat_func): ...into new file.
17760         * tests/test-lstat.c (main): Factor guts...
17761         * tests/test-lstat.h (test_lstat_func): ...into new file.
17762         * tests/test-fstatat.c: New file.
17763         * modules/stat-tests (Files): Add test-stat.h.
17764         * modules/lstat-tests (Files): Add test-lstat.h.
17765         (Depends-on): Add stdbool.
17766         * modules/openat-tests (Depends-on): Add pathmax.
17767         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17768         (Makefile.am): Run new test.
17769
17770         remove: new module, for mingw and Solaris 9 bugs
17771         * modules/remove: New file.
17772         * lib/remove.c: Likewise.
17773         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17775         * modules/stdio (Makefile.am): Use them.
17776         * lib/stdio.in.h (remove): Declare replacement.
17777         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17778         * doc/posix-functions/remove.texi (remove): Likewise.
17779         * modules/remove-tests: New test.
17780         * tests/test-remove.c: Likewise.
17781
17782         unlink: new module, for Solaris 9 bug
17783         * modules/unlink: New file.
17784         * lib/unlink.c: Likewise.
17785         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17787         * modules/unistd (Makefile.am): Use them.
17788         * lib/unistd.in.h (stat): Declare replacement.
17789         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17790         * doc/posix-functions/unlink.texi (unlink): Likewise.
17791         * modules/unlink-tests: New test.
17792         * tests/test-unlink.c: Likewise.
17793
17794         lstat: fix Solaris 9 bug
17795         * lib/lstat.c (lstat): Also check for trailing slash on
17796         non-symlink, non-directories.  Use stat module to simplify logic.
17797         * doc/posix-functions/lstat.texi (lstat): Document it.
17798         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17799         (configure.ac): Check for symlink.
17800         * tests/test-lstat.c (main): Add more tests.
17801
17802         stat: add as dependency to other modules
17803         * modules/chown (Depends-on): Add stat.
17804         * modules/euidaccess (Depends-on): Likewise.
17805         * modules/fchdir (Depends-on): Likewise.
17806         * modules/isdir (Depends-on): Likewise.
17807         * modules/link (Depends-on): Likewise.
17808         * modules/lstat (Depends-on): Likewise.
17809         * modules/mkdir-p (Depends-on): Likewise.
17810         * modules/modechange (Depends-on): Likewise.
17811         * modules/open (Depends-on): Likewise.
17812         * modules/readlink (Depends-on): Likewise.
17813         * modules/same (Depends-on): Likewise.
17814
17815         stat: fix Solaris 9 bug
17816         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17817         slash.
17818         * lib/stat.c (rpl_stat): Work around it.
17819         * doc/posix-functions/stat.texi (stat): Update documentation.
17820
17821         stat: new module, for mingw bug
17822         * modules/stat: New file.
17823         * lib/stat.c: Likewise.
17824         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17826         * modules/sys_stat (Makefile.am): Use them.
17827         * lib/sys_stat.in.h (stat): Declare replacement.
17828         * lib/openat.c (fstatat): Deal with lstat and stat being function
17829         macros.
17830         * modules/openat (Depends-on): Add inline.
17831         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17832         * doc/posix-functions/stat.texi (stat): Likewise.
17833         * modules/stat-tests: New test.
17834         * tests/test-stat.c: Likewise.
17835
17836 2009-09-19  Jim Meyering  <meyering@redhat.com>
17837
17838         syntax-check: detect unnecessary inclusion of canonicalize.h
17839         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17840
17841 2009-09-19  Eric Blake  <ebb9@byu.net>
17842
17843         canonicalize-lgpl: adjust clients to use correct header
17844         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17845         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17846         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17847         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17848         * lib/progreloc.c (includes): Likewise.
17849
17850 2009-09-19  Jim Meyering  <meyering@redhat.com>
17851
17852         test-posixtm.c: correct a comment
17853         * tests/test-posixtm.c: Correct first-line comment.
17854         Spotted by Eric Blake.
17855
17856 2009-09-16  Jim Meyering  <meyering@redhat.com>
17857
17858         posixtm-tests: make T const-correct; add a test case
17859         * tests/test-posixtm.c (T): Declare const.
17860         Add a test for -(2^31+1).
17861         Remove useless can-succeed-only-in-2002 test.
17862
17863         posixtm-tests: adjust the sole failing test
17864         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
17865         expected output matches what mktime now produces.  Cross-checked via
17866         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
17867
17868         posixtm: move #ifdef'd tests into a new module
17869         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
17870         * tests/test-posixtm.c: ... this new file.
17871         * modules/posixtm-tests: New module.
17872
17873 2009-09-19  Eric Blake  <ebb9@byu.net>
17874
17875         openat: simplify use of at-func.c
17876         * lib/at-func.c (includes): Include prerequisites here, to
17877         simplify requirements on client files.
17878         * lib/openat-priv.h: Add double-inclusion guard.
17879         * lib/faccessat.c (includes): Simplify.
17880         * lib/fchmodat.c (includes): Likewise.
17881         * lib/fchownat.c (includes): Likewise.
17882         * lib/mkdirat.c (includes): Likewise.
17883         * lib/mkfifoat.c (includes): Likewise.
17884         * lib/symlinkat.c (includes): Likewise.
17885
17886         openat: allow return of fd 0
17887         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
17888         * modules/save-cwd (Depends-on): Replace fcntl-safer with
17889         unistd-safer.
17890         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
17891         <fcntl.h>; this module does not leak fds.
17892         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
17893         must be allowed to return 0, leaving openat_safer to add the
17894         safety.
17895         (openat_permissive): Avoid writing to just-opened fd 2 if
17896         restoring the current directory fails.
17897         * lib/openat-die.c (openat_restore_fail): Add comment.
17898         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
17899         (save_cwd): Guarantee safe fd, but without use of open_safer.
17900         * tests/test-openat.c: New test.
17901         * modules/openat-tests (Files, Makefile.am): Distribute and build
17902         new file.
17903
17904         relocatable-prog-wrapper: fix build
17905         * modules/relocatable-prog-wrapper (Files): Update name of
17906         canonicalize m4 file, broken on 2009-09-17.
17907         Reported by emad hajjar <aleppos@hotmail.com>.
17908
17909 2009-09-19  Bruno Haible  <bruno@clisp.org>
17910
17911         * lib/safe-alloc.h: Use the standard header with GPL copyright.
17912         * lib/safe-alloc.c: Likewise.
17913         Reported by Ian Beckwith <ianb@erislabs.net>.
17914
17915 2009-09-18  Bruno Haible  <bruno@clisp.org>
17916
17917         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
17918         Reported by <erobles@sensacd.com.mx>.
17919
17920 2009-09-17  Eric Blake  <ebb9@byu.net>
17921
17922         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
17923         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
17924         slashes when checking if last component is missing.
17925         * tests/test-canonicalize.c (main): Test this.
17926
17927         canonicalize, canonicalize-lgpl: honor // if distinct from /
17928         * modules/canonicalize (Files): Add double-slash-root.m4.
17929         * modules/canonicalize-lgpl (Files): Likewise.
17930         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17931         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
17932         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
17933         fallback definition.
17934         (canonicalize_filename_mode): Use it to protect //.
17935         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
17936         (__realpath): Likewise.
17937         * tests/test-canonicalize.c (main): Test this.
17938         * tests/test-canonicalize-lgpl.c (main): Likewise.
17939         * modules/canonicalize-tests (Depends-on): Add same-inode.
17940         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17941
17942         canonicalize-lgpl: fix glibc bug with trailing slash
17943         * m4/canonicalize-lgpl.m4: Move contents...
17944         * m4/canonicalize.m4: ...here.
17945         (gl_CANONICALIZE_LGPL): Factor realpath check...
17946         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
17947         glibc 2.3.5 bug, fixed 2005-04-27.
17948         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
17949         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
17950         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
17951         * modules/canonicalize-lgpl (Files): Manage file rename.
17952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17953         * modules/stdlib (Makefile.am): Substitute witness.
17954         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
17955         is needed.
17956         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
17957         replacement is required.
17958         * lib/canonicalize.c (canonicalize_file_name): Likewise.
17959         * doc/glibc-functions/canonicalize_file_name.texi
17960         (canonicalize_file_name): Document this.
17961         * doc/posix-functions/realpath.texi (realpath): Likewise.
17962
17963         canonicalize-lgpl: reject non-directory with trailing slash
17964         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
17965         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
17966         catches failures in glibc 2.3.5.
17967         * tests/test-canonicalize.c (main): Likewise.
17968
17969         canonicalize-lgpl: use native realpath if it works
17970         * lib/canonicalize-lgpl.c (realpath): Guard with
17971         FUNC_REALPATH_WORKS.
17972         * lib/stdlib.in.h (realpath): Make declaration optional based on
17973         HAVE_REALPATH.
17974         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
17975         native realpath works.
17976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
17977         * modules/stdlib (Makefile.am): Substitute witness.
17978
17979         canonicalize, canonicalize-lgpl: use <stdlib.h>
17980         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
17981         (Include): Mention <stdlib.h>.
17982         (configure.ac): Mention functions we provide.
17983         * modules/canonicalize (configure.ac): Likewise.
17984         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
17985         realpath if canonicalize_file_name is missing.
17986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
17987         * modules/stdlib (Makefile.am): Substitute witnesses.
17988         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
17989         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
17990         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
17991         * NEWS: Document this.
17992         * doc/glibc-functions/canonicalize_file_name.texi
17993         (canonicalize_file_name): Likewise.
17994         * doc/posix-functions/realpath.texi (realpath): Likewise.
17995         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
17996
17997         test-canonicalize: consolidate into single C program
17998         * tests/test-canonicalize.sh: Delete; move setup into...
17999         * tests/test-canonicalize.c (main): ...the program, making it
18000         easier to run in debugger.  Add some tests.
18001         * modules/canonicalize-tests (Files): Remove unused file.
18002         (Depends-on): Add progname.
18003         (configure.ac, Makefile.am): Simplify.
18004
18005         test-canonicalize-lgpl: consolidate into single C program
18006         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18007         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18008         easier to run in debugger.  Add some tests.
18009         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18010         (configure.ac, Makefile.am): Simplify.
18011
18012         canonicalize: avoid resolvepath
18013         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18014         unnecessary checks.
18015         * lib/canonicalize.c (includes): Simplify.
18016         (canonicalize_file_name): Drop resolvepath implementation.
18017         * modules/canonicalize (Depends-on): Drop filenamecat.
18018
18019         canonicalize: don't lose errno
18020         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18021         over calls to free.
18022
18023         canonicalize: simplify errno handling
18024         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18025         assignment.
18026
18027         canonicalize, canonicalize-lgpl: update module dependencies
18028         * modules/canonicalize (Depends-on): Add extensions, lstat,
18029         pathmax, stdlib.
18030         (Files): Drop pathmax.h.
18031         (configure.ac): Adjust macro name.
18032         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18033         lstat, stdlib, sys_stat.
18034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18035         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18036         extensions.
18037         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18038         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18039         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18040         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18041         declaration, if available.
18042         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18043         we can rely on the readlink module.
18044         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18045         (includes): Use <unistd.h> unconditionally.
18046
18047 2009-09-17  Eric Blake  <ebb9@byu.net>
18048
18049         maint: make Include sections of modules consistent
18050         * modules/alloca: Use only header name; no need to list #include.
18051         * modules/alloca-opt: Likewise.
18052         * modules/arpa_inet: Likewise.
18053         * modules/canon-host: Likewise.
18054         * modules/configmake: Likewise.
18055         * modules/dirent: Likewise.
18056         * modules/eealloc: Likewise.
18057         * modules/environ: Likewise.
18058         * modules/fchdir: Likewise.
18059         * modules/fcntl: Likewise.
18060         * modules/fcntl-h: Likewise.
18061         * modules/gethrxtime: Likewise.
18062         * modules/gettime: Likewise.
18063         * modules/ignore-value: Likewise.
18064         * modules/inet_ntop: Likewise.
18065         * modules/inet_pton: Likewise.
18066         * modules/inttypes: Likewise.
18067         * modules/isnand-nolibm: Likewise.
18068         * modules/isnanf-nolibm: Likewise.
18069         * modules/mbchar: Likewise.
18070         * modules/mbfile: Likewise.
18071         * modules/mbiter: Likewise.
18072         * modules/mbuiter: Likewise.
18073         * modules/netdb: Likewise.
18074         * modules/netinet_in: Likewise.
18075         * modules/nproc: Likewise.
18076         * modules/pagealign_alloc: Likewise.
18077         * modules/poll: Likewise.
18078         * modules/printf-frexp: Likewise.
18079         * modules/pthread: Likewise.
18080         * modules/putenv: Likewise.
18081         * modules/random_r: Likewise.
18082         * modules/relocatable-prog: Likewise.
18083         * modules/search: Likewise.
18084         * modules/select: Likewise.
18085         * modules/selinux-h: Likewise.
18086         * modules/settime: Likewise.
18087         * modules/signal: Likewise.
18088         * modules/size_max: Likewise.
18089         * modules/socklen: Likewise.
18090         * modules/ssize_t: Likewise.
18091         * modules/stdarg: Likewise.
18092         * modules/stdbool: Likewise.
18093         * modules/stddef: Likewise.
18094         * modules/stdint: Likewise.
18095         * modules/stdio: Likewise.
18096         * modules/stdlib: Likewise.
18097         * modules/string: Likewise.
18098         * modules/strings: Likewise.
18099         * modules/sys_file: Likewise.
18100         * modules/sys_ioctl: Likewise.
18101         * modules/sys_select: Likewise.
18102         * modules/sys_socket: Likewise.
18103         * modules/sys_stat: Likewise.
18104         * modules/sys_time: Likewise.
18105         * modules/sys_times: Likewise.
18106         * modules/sys_utsname: Likewise.
18107         * modules/sys_wait: Likewise.
18108         * modules/sysexits: Likewise.
18109         * modules/time: Likewise.
18110         * modules/times: Likewise.
18111         * modules/tmpfile: Likewise.
18112         * modules/trim: Likewise.
18113         * modules/unistd: Likewise.
18114         * modules/wchar: Likewise.
18115         * modules/wctype: Likewise.
18116
18117 2009-09-17  Bruno Haible  <bruno@clisp.org>
18118
18119         Make getdate.y compile on QNX and NetBSD 5 / i386.
18120         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18121         TIME_T_FITS_IN_LONG_INT.
18122         * lib/getdate.y (long_time_t): New type.
18123         (relative_time): Change type of 'seconds' field to long_time_t.
18124         (get_date): Update types of local variables. Check against overflow
18125         during conversion from long_time_t to time_t.
18126         Reported by Matt Kraai <kraai@ftbfs.org>
18127         and Hasso Tepper <hasso@netbsd.org>.
18128
18129 2009-09-17  Bruno Haible  <bruno@clisp.org>
18130
18131         * modules/COPYING: Update copyright years.
18132         * modules/README: Likeiwse.
18133         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18134         Reported by Ian Beckwith <ianb@erislabs.net>.
18135
18136 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18137
18138         * users.txt: Update references for gnuit package.
18139
18140 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18141
18142         * m4/getdelim.m4: Fix typo in copyright line.
18143
18144 2009-09-17  Bruno Haible  <bruno@clisp.org>
18145
18146         * lib/atoll.c: Use the standard header with GPL copyright.
18147         * lib/argz.in.h: Likewise.
18148         * lib/glob.c: Likewise.
18149         * lib/glob-libc.h: Likewise.
18150         * lib/random_r.c: Likewise.
18151         * lib/siglist.h: Likewise.
18152         * lib/strsignal.c: Likewise.
18153         Reported by Ian Beckwith <ianb@erislabs.net>.
18154
18155 2009-09-17  Eric Blake  <ebb9@byu.net>
18156
18157         rmdir: ensure correct dependency order
18158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18159
18160 2009-09-17  Bruno Haible  <bruno@clisp.org>
18161
18162         Disable assertion that fails on NetBSD 5 / i386.
18163         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18164         Reported by Sam Steingold <sds@gnu.org>
18165         and Hasso Tepper <hasso@netbsd.org>.
18166
18167 2009-09-16  Eric Blake  <ebb9@byu.net>
18168
18169         unlinkdir: port to mingw
18170         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18171         on which no one can unlink a directory.
18172
18173         stdlib: sort witness names
18174         * modules/stdlib (Makefile.am): Sort replacements.
18175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18176         * lib/stdlib.in.h: Likewise.
18177
18178         parse-duration-tests: avoid link failure
18179         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18180         LIBINTL.
18181         Reported by Tom G. Christensen.
18182
18183         openat-tests: ensure unlinkat behaves like rmdir
18184         * tests/test-rmdir.c (main): Factor guts...
18185         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18186         * modules/rmdir-tests (Files): Ship new file.
18187         * modules/openat-tests: New test.
18188         * tests/test-unlinkat.c: Likewise.
18189
18190         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18191         * modules/rmdir-errno (Status, Notice): Now obsolete.
18192
18193         rmdir: work around cygwin 1.5.x and mingw bugs
18194         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18195         * lib/rmdir.c (rmdir): Work around it.
18196         * modules/rmdir (Status, Notice): No longer obsolete.
18197         (Files): Add dos.m4.
18198         (Depends-on): Add unistd.
18199         (configure.ac): Set witnesses.
18200         (License): Relax to LGPLv2+.
18201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18202         * modules/unistd (Makefile.am): Substitute witnesses.
18203         * lib/unistd.in.h (rmdir): Declare replacement.
18204         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18205         * modules/rmdir-tests: New tests.
18206         * tests/test-rmdir.c: Likewise.
18207
18208 2009-09-15  Eric Blake  <ebb9@byu.net>
18209
18210         fchdir: improve use of replacement functions
18211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18212         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18213         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18214         REPLACE_CLOSEDIR.
18215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18216         * modules/sys_stat (Makefile.am): Substitute correct witness.
18217         * modules/dirent (Makefile.am): Likewise.
18218         * modules/unistd (Makefile.am): Likewise.
18219         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18220         * lib/unistd.in.h (dup): Likewise.
18221         * lib/sys_stat.in.h (fstat): Likewise.
18222
18223         maint: ignore gnulib-tool temp files
18224         * .gitignore: Ignore files created during gnulib-tool --test.
18225
18226 2009-09-13  Jim Meyering  <meyering@redhat.com>
18227
18228         posixtm: don't reject a time that specify "60" as the number of seconds
18229         * lib/posixtm.c (posixtime): The code to reject invalid dates
18230         would also reject a time specified with the .60 suffix.
18231         But POSIX allows that, in order to accommodate leap seconds.
18232         So don't reject it.
18233         (main): Adjust tests accordingly.
18234         * modules/posixtm (Depends-on): Add stpcpy.
18235
18236 2009-09-11  Jim Meyering  <meyering@redhat.com>
18237
18238         announce-gen: include [$release_type] in emitted Subject:
18239         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18240         e.g., [stable] in the emitted Subject: line.
18241
18242 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18243
18244         Remove obsolete macros from several modules.
18245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18246         obsolete Autoconf macros with their modern counterparts.
18247         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18248         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18249         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18251         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18252         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18254         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18255         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18256         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18257         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18259         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18260         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18261         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18262         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18263         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18264         * m4/time_r.m4 (gl_TIME_R): Likewise.
18265         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18266         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18267         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18268
18269         Fix copyright header in build-aux scripts.
18270         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18271         recommendation.
18272         * build-aux/ncftpput-ftp: Likewise.
18273         * build-aux/update-copyright: Likewise.
18274
18275 2009-09-09  Eric Blake  <ebb9@byu.net>
18276
18277         test-link: allow Linux choice of errno
18278         * tests/test-link.c (main): Relax test for alternate error.
18279
18280         strndup: fix improper m4 caching
18281         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18282         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18283         (gl_PREREQ_STRNDUP): Delete.
18284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18285         * modules/string (Makefile.am): Substitute it.
18286         * lib/string.in.h (strndup): Modernize prototype.
18287
18288         getcwd: port to mingw
18289         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18290         different from the POSIX assumptions made throughout the getcwd
18291         module; fortunately, the mingw getcwd does not need replacement.
18292         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18293         * modules/getcwd-tests: New test.
18294         * tests/test-getcwd.c: Likewise.
18295
18296         link: fix platform bugs
18297         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18298         * lib/link.c (link): Work around them.  Fix related mingw bug.
18299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18300         * modules/unistd (Makefile.am): Substitute it.
18301         * lib/unistd.in.h (link): Declare replacement.
18302         * doc/posix-functions/link.texi (link): Document this.
18303         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18304
18305         test-link: consolidate into single C program, test more cases
18306         * tests/test-link.sh: Delete.
18307         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18308         at least Cygwin and Solaris.
18309         * modules/link-tests (Files): Remove unused file.
18310         (Depends-on): Add errno, sys_stat.
18311         (Makefile.am): Simplify.
18312
18313 2009-09-08  Bruno Haible  <bruno@clisp.org>
18314
18315         Work around towlower, towupper bug on mingw.
18316         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18317         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18318         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18319         * doc/posix-functions/towupper.texi: Likewise.
18320         Reported by Eric Blake.
18321
18322 2009-09-08  Jim Meyering  <meyering@redhat.com>
18323
18324         build: don't try to run autoheader if we don't use it
18325         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18326         is not used in configure.ac.
18327
18328 2009-09-08  Eric Blake  <ebb9@byu.net>
18329
18330         euidaccess: fix compilation error
18331         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18332
18333         rawmemchr: relax license
18334         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18335         okay.
18336         Reported by Jim Meyering.
18337
18338         mkfifoat: new module
18339         * modules/mkfifoat: New file.
18340         * lib/mkfifoat.c: Likewise.
18341         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18342         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18343         * modules/sys_stat (Makefile.am): Use them.
18344         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18345         * MODULES.html.sh (File system functions): Mention module.
18346         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18347         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18348         * modules/mkfifoat-tests: New test.
18349         * tests/test-mkfifoat.c: Likewise.
18350
18351         strchrnul: relax license
18352         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18353         okay.
18354         Reported by Jim Meyering.
18355
18356 2009-09-08  Eric Blake  <ebb9@byu.net>
18357
18358         fstatat: fix compilation on Solaris
18359         * lib/fstatat.c (includes): Add fcntl.h.
18360         Reported by Pádraig Brady.
18361
18362 2009-09-07  Eric Blake  <ebb9@byu.net>
18363
18364         rename: modernize replacement
18365         * modules/rename (Depends-on): Add stdio.
18366         (configure.ac): Declare witness.
18367         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18368         stdio take care of replacement.
18369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18370         * modules/stdio (Makefile.am): Substitute them.
18371         * lib/stdio.in.h (rename): Declare replacement.
18372         * lib/rename.c (includes): Allow cross-compilation to non-windows
18373         machines.
18374         * doc/posix-functions/rename.texi (rename): Improve
18375         documentation.
18376
18377         stdio: sort witness names
18378         * modules/stdio (Makefile.am): Sort replacements.
18379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18380         * lib/stdio.in.h: Likewise.
18381
18382         getcwd: minor cleanups
18383         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18384         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18385
18386         openat: provide more convenience names
18387         * modules/faccessat (configure.ac): Add C witness.
18388         * lib/unistd.in.h (readlinkat): Fix typo.
18389         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18390         convenience wrappers.
18391         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18392         wrappers in syntax checks.
18393
18394 2009-09-06  Eric Blake  <ebb9@byu.net>
18395
18396         doc: fix comments in recent patches
18397         * lib/faccessat.c: Mention correct function.
18398         * lib/fchmodat.c: Likewise.
18399         * lib/fchownat.c: Likewise.
18400         * lib/symlinkat.c: Likewise.
18401         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18402         constants.
18403
18404         faccessat, symlinkat: continue cleanup of previous patch
18405         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18406         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18407         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18409         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18410         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18411         set.
18412
18413 2009-09-06  Bruno Haible  <bruno@clisp.org>
18414
18415         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18416         (fstatat): Declare if GNULIB_FSTATAT is set.
18417         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18418         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18419         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18420         * modules/fcntl-h (Files): Remove m4/openat.m4.
18421         * modules/sys_stat (Files): Remove m4/openat.m4.
18422         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18423         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18424         * modules/unistd (Files): Remove m4/openat.m4.
18425         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18426         GNULIB_OPENAT.
18427         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18428         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18429         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18430         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18431         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18432         gl_OPENAT_DEFAULTS.
18433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18434         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18435         Don't require gl_OPENAT_DEFAULTS.
18436         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18437         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18438         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18439         (gl_OPENAT_DEFAULTS): Remove macro.
18440
18441 2009-09-06  Bruno Haible  <bruno@clisp.org>
18442
18443         * modules/openat (configure.ac): Remove unneeded witness.
18444
18445 2009-09-06  Bruno Haible  <bruno@clisp.org>
18446
18447         Set errno to ENOSYS when a function is entirely unsupported.
18448         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18449         EOPNOTSUPP.
18450         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18451         * modules/chown (Depends-on): Remove errno.
18452
18453 2009-09-06  Bruno Haible  <bruno@clisp.org>
18454
18455         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18456
18457 2009-09-06  Bruno Haible  <bruno@clisp.org>
18458
18459         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18460
18461 2009-09-06  Ben Pfaff  <blp@gnu.org>
18462             Bruno Haible  <bruno@clisp.org>
18463
18464         Work around a glibc bug in strtok_r.
18465         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18466         Undefine if UNDEFINE_STRTOK_R is set.
18467         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18469         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18471         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18472         UNDEFINE_STRTOK_R.
18473         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18474
18475 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18476
18477         exclude: minor fix
18478         * lib/exclude.c: Include wctype.h
18479
18480 2009-09-06  Akim Demaille  <demaille@gostai.com>
18481
18482         bootstrap: improve error message
18483         * build-aux/bootstrap (find_tool): Upon failure, report the list
18484         of candidates.
18485         Honor the initial value of the envvar.
18486
18487 2009-09-05  Eric Blake  <ebb9@byu.net>
18488
18489         symlinkat: new module
18490         * modules/symlinkat: New file.
18491         * lib/symlinkat.c: Likewise.
18492         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18494         * modules/unistd (Makefile.am): Use them.
18495         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18496         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18497         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18498         * MODULES.html.sh (File system functions): Mention module.
18499         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18500         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18501         * modules/symlinkat-tests: New test.
18502         * tests/test-symlinkat.c: Likewise.
18503
18504         test-openat-safer: add more checks
18505         * tests/test-openat-safer.c (main): Check more code paths.
18506
18507 2009-09-05  Jim Meyering  <meyering@redhat.com>
18508
18509         syntax-check: detect unnecessary inclusion of openat.h
18510         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18511
18512 2009-09-05  Bruno Haible  <bruno@clisp.org>
18513
18514         Support towlower, towupper.
18515         * doc/posix-functions/towlower.texi: Mention module wctype.
18516         * doc/posix-functions/towupper.texi: Likewise.
18517         * lib/wctype.in.h (towlower, towupper): New functions.
18518         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18519         (ASSERT): New macro.
18520         (e): New variable.
18521         (main): Test also towlower, towupper. Test WEOF argument.
18522         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18523
18524 2009-09-05  Bruno Haible  <bruno@clisp.org>
18525
18526         Fix conversion behaviour when the input is invalid.
18527         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18528         mark occurring in first pass of indirect conversion.
18529         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18530         input.
18531         Found by clang's static analyzer.
18532
18533 2009-09-05  Bruno Haible  <bruno@clisp.org>
18534
18535         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18536         where direct conversion is possible.
18537
18538 2009-09-04  Eric Blake  <ebb9@byu.net>
18539
18540         openat: fail with ENOENT on empty name
18541         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18542         buffer.
18543
18544         link-follow: fix logic bug in prior patch
18545         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18546         reversed sense of yes and no in prior patch.  Avoid confusing
18547         compilation failure with desired semantics.
18548
18549         link-follow: accomodate mingw and cross-compilation
18550         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18551         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18552         cross-compilation results to -1, to make linkat easier to
18553         implement when cross-compiling.  Trivially support mingw.
18554         * modules/link-follow (configure.ac): Call new name.
18555         * NEWS: Mention this.
18556
18557 2009-09-03  Eric Blake  <ebb9@byu.net>
18558
18559         faccessat: compile replacement
18560         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18561         needed.
18562
18563         fts: fix compilation error
18564         * lib/fts.c (includes): Re-add "openat.h", for
18565         openat_needs_fchdir.
18566
18567         faccessat: new module
18568         * modules/faccessat: New file.
18569         * lib/faccessat.c: Likewise.
18570         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18572         * modules/unistd (Makefile.am): Use it.
18573         * lib/unistd.in.h (faccessat): Declare it.
18574         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18575         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18576         * MODULES.html.sh (File system functions): Mention it.
18577         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18578         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18579
18580         euidaccess: prefer POSIX over non-standard implementation
18581         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18582         * lib/euidaccess.c (euidaccess): Use it if available.
18583
18584         openat: make template easier to use
18585         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18586         AT_FUNC_F2 to be undefined.
18587         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18588         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18589         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18590         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18591         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18592         Likewise.
18593         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18594         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18595         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18596         Likewise.
18597
18598         openat: declare in POSIX headers
18599         * NEWS: Mention this.
18600         * modules/openat (configure.ac): Declare witnesses.
18601         (Depends-on): Add fcntl-h, sys_stat, unistd.
18602         (Include): Mention correct headers.
18603         * modules/fcntl-h (Depends-on): Add link-warning.
18604         (Files): Add openat.m4.
18605         (Makefile.am): Substitute witnesses.
18606         * modules/sys_stat (Files, Makefile.am): Likewise.
18607         * modules/unistd (Files, Makefile.am): Likewise.
18608         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18609         (gl_OPENAT_DEFAULTS): New macro.
18610         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18613         (SYS_STAT_H): Remove unused variable.
18614         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18615         * lib/fcntl--.h (includes): Remove unneeded header.
18616         * lib/openat-safer.c (includes): Likewise.
18617         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18618         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18619         appropriate headers.
18620         (__OPENAT_PREFIX): Delete.
18621         * lib/fcntl.in.h (openat): Provide declaration.
18622         (AT_FDCWD): Fix Solaris bug.
18623         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18624         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18625         * lib/fchmodat.c (includes):  Adjust to find declaration.
18626         * lib/fchownat.c (includes): Likewise.
18627         * lib/mkdirat.c (includes): Likewise.
18628         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18629         still visible.
18630
18631 2009-09-02  Eric Blake  <ebb9@byu.net>
18632
18633         errno: use consistently
18634         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18635         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18636         * lib/canonicalize.c (ELOOP): Likewise.
18637         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18638         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18639         * lib/lchown.c (EOPNOTSUPP): Likewise.
18640         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18641         * lib/savewd.c (ESTALE): Likewise.
18642         * lib/settime.c (ENOSYS): Likewise.
18643         * lib/utimens.c (ENOSYS): Likewise.
18644         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18645         * lib/chdir-safer.c (ELOOP): Likewise.
18646         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18647         * modules/c-stack (Depends-on): Add errno.
18648         * modules/canonicalize (Depends-on): Likewise.
18649         * modules/chdir-safer (Depends-on): Likewise.
18650         * modules/fdopendir (Depends-on): Likewise.
18651         * modules/inet_ntop (Depends-on): Likewise.
18652         * modules/inet_pton (Depends-on): Likewise.
18653         * modules/lchown (Depends-on): Likewise.
18654         * modules/openat (Depends-on): Likewise.
18655         * modules/savewd (Depends-on): Likewise.
18656         * modules/settime (Depends-on): Likewise.
18657         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18658
18659         fts: avoid leaking fds
18660         * modules/fts (Depends-on): Add cloexec.
18661         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18662         flag.
18663
18664         fts: make directory fds more robust
18665         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18666         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18667
18668         backupfile, chdir-long, fts, savedir: make safer
18669         * lib/backupfile.c (includes): Use "dirent--.h", since
18670         numbered_backup can write to stderr during readdir.
18671         * lib/savedir.c (includes): Likewise.
18672         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18673         emulation can write to stderr on failure.
18674         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18675         * lib/getcwd.c: Document why opendir_safer is unused.
18676         * lib/glob.c: Likewise.
18677         * lib/scandir.c: Likewise.
18678         * lib/openat-proc.c: Likewise, for open_safer.
18679         * modules/backupfile (Depends-on): Add dirent-safer.
18680         * modules/savedir (Depends-on): Likewise.
18681         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18682         * modules/chdir-long (Depends-on): Add openat-safer.
18683
18684         openat-safer: new module
18685         * modules/openat-safer: New file.
18686         * lib/openat-safer.c: Likewise.
18687         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18688         * lib/fcntl-safer.h (openat_safer): Declare.
18689         * lib/fcntl--.h (openat): Override.
18690         * MODULES.html.sh (File descriptor based I/O): Mention it.
18691         * lib/openat.h: Add double-inclusion guards.
18692         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18693         "fcntl--.h", so we can implement openat.
18694         * modules/openat-safer-tests: New test.
18695         * tests/test-openat-safer.c: New file.
18696
18697         dirent-safer: new module
18698         * modules/dirent-safer: New file.
18699         * lib/dirent--.h: Likewise.
18700         * lib/dirent-safer.h: Likewise.
18701         * lib/opendir-safer.c: Likewise.
18702         * m4/dirent-safer.m4: Likewise.
18703         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18704         * modules/dirent-safer-tests: New test.
18705         * tests/test-dirent-safer.c: New file.
18706         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18707
18708         fdopendir: optimize on mingw
18709         * lib/unistd.in.h (_gl_directory_name): New prototype.
18710         * lib/fchdir.c (_gl_directory_name): Implement it.
18711         (fchdir): Use it to simplify implementation.
18712         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18713         fchdir, when available, to avoid calling [f]chdir().
18714
18715         fdopendir: split into its own module
18716         * lib/openat.c (fdopendir): Move...
18717         * lib/fdopendir.c: ...into new file.
18718         * modules/fdopendir: New module.
18719         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18720         * modules/openat (Depends-on): Add fdopendir.
18721         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18722         fdopendir here.
18723         * modules/savedir (Depends-on): Only need fdopendir, not full
18724         openat.
18725         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18726         * lib/openat.h (fdopendir): Drop prototype.
18727         * lib/dirent.in.h (fdopendir): Provide prototype.
18728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18729         * modules/dirent (Makefile.am): Substitute them.
18730         * MODULES.html.sh (File system functions): Mention it.
18731         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18732         * modules/fdopendir-tests: New file.
18733         * tests/test-fdopendir.c: Likewise.
18734
18735         fchdir: use more consistent macro convention
18736         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18737         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18738         REPLACE_FCHDIR, rather than relying on config.h macros.
18739         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18740         inside a single make-time REPLACE_FCHDIR block, rather than using
18741         the config.h FCHDIR_REPLACEMENT.
18742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18743         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18744         Manage fstat replacement.
18745         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18746         REPLACE_FCHDIR.
18747         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18748         (Makefile.am): Substitute REPLACE_FCHDIR.
18749         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18750         FCHDIR_REPLACEMENT.
18751         * lib/dup-safer.c (dup_safer): Likewise.
18752         * lib/dup2.c (rpl_dup2): Likewise.
18753         * lib/dup3.c (rpl_dup3): Likewise.
18754         * lib/open.c (rpl_open): Likewise.
18755
18756         fchdir: simplify error handling, and support dup3
18757         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18758         stdbool, malloc-posix, realloc-posix.
18759         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18760         (ensure_dirs_slot): Return false on allocation failure.
18761         (rpl_dup2): Delete.
18762         (_gl_register_dup): New function.
18763         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18764         (_gl_register_fd): Close fd on allocation failure.
18765         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18766         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18767         prototype.
18768         (rpl_dup2_fchdir): Delete prototype.
18769         * lib/open.c (open): Update caller.
18770         * lib/dup2.c (dup2): Track fchdir metadata.
18771         * lib/dup3.c (dup3): Likewise.
18772         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18774
18775 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18776
18777         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18778         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18779         don't pass arguments to AC_OUTPUT.
18780
18781 2009-09-02  Bruno Haible  <bruno@clisp.org>
18782
18783         * modules/mkdtemp (License): Relicense under LGPLv2+.
18784         Reported by Paolo Bonzini.
18785
18786 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18787
18788         Replace uses of obsolete autoconf macros in Jim's modules.
18789         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18790         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18791         can evoke a warning from autoconf when run with -Wobsolete
18792         enabled.  They were declared obsolete for good reasons (see
18793         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18794         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18795         should not continue using the deprecated macros.
18796         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18797         obsolete Autoconf macros with modern counterparts.
18798         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18799         * m4/dos.m4 (gl_AC_DOS): Likewise.
18800         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18801         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18802         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18803         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18804         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18805         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18806         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18807         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18808         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18809         Likewise.
18810         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18811         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18812         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18813         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18814         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18815         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18816
18817 2009-09-01  Eric Blake  <ebb9@byu.net>
18818
18819         fchdir: fix off-by-one bug in previous patch
18820         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18821         (_gl_unregister_fd): Delete useless if.
18822
18823 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18824
18825         maint.mk: sort the list of syntax-check rules
18826         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18827         easier to get a sense of progress when the rules are run sequentially
18828         and take a long time.
18829
18830 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18831
18832         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18833         * modules/netinet_in: Likewise.
18834         * modules/sys_file: Likewise.
18835         * modules/sys_ioctl: Likewise.
18836         * modules/sys_select: Likewise.
18837         * modules/sys_socket: Likewise.
18838         * modules/sys_stat: Likewise.
18839         * modules/sys_time: Likewise.
18840         * modules/sys_times: Likewise.
18841         * modules/sys_utsname: Likewise.
18842         * modules/sys_wait: Likewise.
18843
18844 2009-09-01  Jim Meyering  <meyering@redhat.com>
18845
18846         fts: help ensure that return values are not ignored
18847         * lib/fts_.h (__GNUC_PREREQ): Define.
18848         (__attribute_warn_unused_result__): Define.
18849         (fts_children, fts_close, fts_open, fts_read): Declare with
18850         __attribute_warn_unused_result__.
18851
18852         fts: fts_close now fails also when closing a dir file descriptor fails
18853         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18854         and propagate to caller, along with errno.
18855
18856         announce-gen: correct formatting in --help output
18857         * build-aux/announce-gen (usage): Move the one-line description in
18858         --help output "up", to where it belongs, just after Usage:.
18859
18860 2009-08-31  Eric Blake  <ebb9@byu.net>
18861
18862         fchdir: port to mingw
18863         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
18864         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
18865         opened, then use a substitute.
18866         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
18867         replacement.
18868         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
18869         (_gl_register_fd): No need to check stat if open already filters
18870         all directories.
18871         (fchdir): Fix error condition to match POSIX.
18872         * modules/fchdir (Depends-on): Add sys_stat.
18873         * doc/posix-functions/open.texi (open): Document the limitation.
18874         * modules/fchdir-tests: New file.
18875         * tests/test-fchdir.c: Likewise.
18876
18877         canonicalize: allow cross-testing from cygwin to mingw
18878         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
18879         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
18880         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
18881         Likewise.
18882         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
18883         target does not support symlinks.
18884         * tests/test-canonicalize-lgpl.sh: Likewise.
18885
18886         chown: avoid compilation warning on mingw
18887         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
18888         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
18889         mingw.
18890         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18891         * modules/chown (Depends-on): Add errno.
18892
18893 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18894
18895         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
18896         command.
18897
18898 2009-08-31  Jim Meyering  <meyering@redhat.com>
18899
18900         canonicalize: remove useless initialization
18901         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
18902         initialization of local, "end".
18903
18904 2009-08-30  Bruno Haible  <bruno@clisp.org>
18905
18906         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
18907         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
18908         ENOSYS.
18909
18910 2009-08-30  Bruno Haible  <bruno@clisp.org>
18911
18912         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
18913         /usr/xpg4/bin/tr when it exists.
18914         * tests/test-pipe-filter-gi1.sh: Likewise.
18915
18916 2009-08-30  Bruno Haible  <bruno@clisp.org>
18917
18918         Work around deficient /usr/bin/id program on Solaris.
18919         * tests/test-file-has-acl.sh (ID): New variable.
18920         * tests/test-set-mode-acl.sh (ID): Likewise.
18921         * tests/test-copy-acl.sh (ID): Likewise.
18922         * tests/test-copy-file.sh (ID): Likewise.
18923
18924 2009-08-30  Bruno Haible  <bruno@clisp.org>
18925
18926         New module 'xstriconveh'.
18927         * lib/xstriconveh.h: New file.
18928         * lib/xstriconveh.c: New file.
18929         * modules/xstriconveh: New file.
18930
18931 2009-08-30  Bruno Haible  <bruno@clisp.org>
18932
18933         Make it easier to use mem_cd_iconveh.
18934         * lib/striconveh.h (iconveh_t): New type.
18935         (iconveh_open, iconveh_close): New declarations.
18936         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18937         with a single 'const iconveh_t *' argument.
18938         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
18939         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
18940         with a single 'const iconveh_t *' argument.
18941         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
18942         * tests/test-striconveh.c (main): Update.
18943         * NEWS: Mention the change.
18944
18945 2009-08-30  Bruno Haible  <bruno@clisp.org>
18946
18947         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
18948         problem.
18949
18950 2009-08-30  Bruno Haible  <bruno@clisp.org>
18951
18952         Work around iconv_open problem on Solaris.
18953         * lib/iconv_open-solaris.gperf: New file.
18954         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
18955         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
18956         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
18957         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
18958         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
18959         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
18960
18961 2009-08-29  Jim Meyering  <meyering@redhat.com>
18962
18963         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
18964         * top/maint.mk (cvs-check): Remove target; it was just an alias
18965         to the better-named vc-diff-check.
18966         (maintainer-distcheck): Remove rule.  It was used only from
18967         the (alpha/beta/major) target, and all of its commands but one
18968         were coreutils-specific.
18969         (vc-dist): Remove rule.
18970         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
18971         Run vc-diff-check, not vc-dist.
18972         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
18973
18974 2009-08-27  Bruno Haible  <bruno@clisp.org>
18975
18976         * tests/test-bitrotate.c (main): Remove test that uses a shift count
18977         of 0.
18978
18979 2009-08-27  Bruno Haible  <bruno@clisp.org>
18980
18981         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
18982         compilers.
18983         * doc/func.texi: Document the SunPRO C bug.
18984
18985 2009-08-27  Bruno Haible  <bruno@clisp.org>
18986
18987         Fix link error on Solaris.
18988         * tests/test-parse-duration.c (xstrdup): Remove function.
18989
18990 2009-08-26  Pádraig Brady  <P@draigbrady.com>
18991
18992         ignore-value: handle pointer types, too
18993         * lib/ignore-value.h (__attribute__): Remove definition.
18994         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
18995         of a more concise and more-often effective "(void) i" statement.
18996         (ignore_ptr): New function to suppress warnings from functions that
18997         return pointers, and to make it explicit that one function doesn't
18998         handle all cases.
18999
19000 2009-08-25  Bruno Haible  <bruno@clisp.org>
19001
19002         dup2: work around a Linux bug.
19003         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19004         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19005         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19006         Reported by Simon Josefsson.
19007
19008 2009-08-25  Jim Meyering  <meyering@redhat.com>
19009
19010         libguestfs uses gnulib
19011         * users.txt: Add libguestfs.
19012
19013 2009-08-24  Eric Blake  <ebb9@byu.net>
19014
19015         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19016         * lib/pipe2.c (includes): Add binary-io.h.
19017         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19018
19019 2009-08-24  Bruno Haible  <bruno@clisp.org>
19020
19021         Tolerate declared but missing accept4 syscall.
19022         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19023         available.
19024         * lib/sys_socket.in.h (accept4): If the function is already present,
19025         override it.
19026         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19027         * modules/accept4 (Makefile.am): Compile accept4.c always.
19028         Reported by Paolo Bonzini and Eric Blake.
19029
19030 2009-08-23  Bruno Haible  <bruno@clisp.org>
19031
19032         New module 'accept4'.
19033         * lib/sys_socket.in.h (accept4): New declaration.
19034         * lib/accept4.c: New file.
19035         * m4/accept4.m4: New file.
19036         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19037         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19038         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19039         HAVE_ACCEPT4.
19040         * modules/accept4: New file.
19041         * doc/glibc-functions/accept4.texi: Mention the new module.
19042
19043 2009-08-24  Jim Meyering  <meyering@redhat.com>
19044
19045         progname: also set global program_invocation_name, when possible
19046         Before this change, a libtool-enabled program that calls glibc's
19047         error function would report the program name as
19048         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19049         * modules/progname (configure.ac): Check for a declaration of
19050         program_invocation_name.
19051         * lib/progname.c:  Include <errno.h>.
19052         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19053         Set program_invocation_name.
19054
19055 2009-08-23  Bruno Haible  <bruno@clisp.org>
19056
19057         * lib/dup3.c: Include <string.h>.
19058
19059 2009-08-23  Bruno Haible  <bruno@clisp.org>
19060
19061         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19062         * lib/pipe2.c (pipe2): Likewise.
19063         Suggested by Eric Blake.
19064
19065 2009-08-23  Bruno Haible  <bruno@clisp.org>
19066
19067         Tolerate declared but missing dup3 syscall.
19068         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19069         * lib/unistd.in.h (dup3): If the function is already present,
19070         override it.
19071         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19072         * modules/dup3 (Makefile.am): Compile dup3.c always.
19073         Reported by Paolo Bonzini.
19074
19075 2009-08-23  Bruno Haible  <bruno@clisp.org>
19076
19077         Tolerate declared but missing pipe2 syscall.
19078         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19079         available.
19080         * lib/unistd.in.h (pipe2): If the function is already present,
19081         override it.
19082         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19083         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19084         Reported by Paolo Bonzini.
19085
19086 2009-08-23  Bruno Haible  <bruno@clisp.org>
19087
19088         * lib/pipe2.c (pipe2): Move #ifs inside function.
19089
19090 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19091
19092         quotearg: document limitations of quote_these_too
19093         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19094         those limitations are created.
19095         * lib/quotearg.h (set_char_quoting): Document that digits and
19096         letters that are special after backslash are not permitted.
19097         (quotearg_char): Cross-reference set_char_quoting documentation.
19098
19099 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19100
19101         quotearg: implement custom_quoting_style
19102         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19103         right_quote fields.
19104         (set_custom_quoting): New public function.
19105         (quotearg_buffer_restyled): Add left_quote and right_quote
19106         arguments, handle them very much like locale quoting, and update
19107         all uses.
19108         (quotearg_n_custom): New public function.
19109         (quotearg_n_custom_mem): New public function.
19110         (quotearg_custom): New public function.
19111         (quotearg_custom_mem): New public function.
19112         * lib/quotearg.h: Prototype and document new public functions.
19113         (enum quoting_style): For escape_quoting_style and
19114         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19115         ignored even though they're otherwise like c_quoting_style.
19116         Add custom_quoting_style member and document with comparison to
19117         clocale_quoting_style.
19118         * tests/test-quotearg.c (custom_quotes): New array.
19119         (custom_results): New array.
19120         (main): Extend to test custom quoting.
19121
19122 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19123
19124         quotearg: fix right quote escaping when it's in quote_these_too
19125         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19126         quote, be sure to prepend only one backslash.
19127         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19128         (main): Test it.
19129
19130 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19131
19132         quotearg-tests: test escaping of embedded locale quotes
19133         * tests/test-quotearg.c (struct result_strings): Add member for
19134         new input.
19135         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19136         (inputs): Add new input.
19137         (results_g): Add expected results.
19138         (flag_results): Likewise.
19139         (locale_results): Likewise.
19140         (compare_strings): Check those.
19141
19142 2009-08-23  Bruno Haible  <bruno@clisp.org>
19143
19144         Tests for module 'dup3'.
19145         * modules/dup3-tests: New file.
19146         * tests/test-dup3.c: New file.
19147
19148         New module 'dup3'.
19149         * lib/unistd.in.h (dup3): New declaration.
19150         * lib/dup3.c: New file.
19151         * m4/dup3.m4: New file.
19152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19153         HAVE_DUP3.
19154         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19155         * modules/dup3: New file.
19156         * doc/glibc-functions/dup3.texi: Mention the new module.
19157
19158 2009-08-23  Bruno Haible  <bruno@clisp.org>
19159
19160         Tweak the dup2 test.
19161         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19162         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19163         the test file is still empty. Fix argument order of lseek.
19164
19165 2009-08-23  Bruno Haible  <bruno@clisp.org>
19166
19167         Avoid test link errors when the modules getopt-gnu, gettext are used.
19168         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19170
19171 2009-08-23  Bruno Haible  <bruno@clisp.org>
19172
19173         Fix getdtablesize() on mingw.
19174         * lib/getdtablesize.c (getdtablesize): Implement differently.
19175         * lib/unistd.in.h (getdtablesize): Improve comment.
19176
19177 2009-08-23  Bruno Haible  <bruno@clisp.org>
19178
19179         New module 'mkostemp'.
19180         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19181         * lib/stdlib.in.h (mksotemp): New declaration.
19182         * lib/mkostemp.c: New file, from glibc with modifications.
19183         * lib/tempname.h (GT_FILE): Remove outdated comment.
19184         (gen_tempname): Add flags argument.
19185         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19186         (__GT_FILE): Map to 1.
19187         (small_open, large_open): Remove macros.
19188         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19189         * lib/mkstemp.c (mkstemp): Update.
19190         * lib/mkdtemp.c (mkdtemp): Likewise.
19191         * m4/mkostemp.m4: New file.
19192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19193         HAVE_MKOSTEMP.
19194         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19195         HAVE_MKOSTEMP.
19196         * modules/mkostemp: New file, based on modules/mkstemp.
19197         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19198         * NEWS: Mention the change.
19199
19200 2009-08-23  Bruno Haible  <bruno@clisp.org>
19201
19202         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19203         Reported by Eric Blake.
19204
19205 2009-08-23  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19208         Reported by Eric Blake.
19209
19210 2009-08-23  Bruno Haible  <bruno@clisp.org>
19211
19212         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19213         * modules/pipe2 (Depends-on): Likewise.
19214
19215 2009-08-23  Eric Blake  <ebb9@byu.net>
19216
19217         fcntl-h: add O_TTY_INIT support
19218         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19219         * tests/test-fcntl-h.c (o): Test it.
19220         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19221
19222         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19223         * modules/fcntl: Move <fcntl.h> header replacement...
19224         * modules/fcntl-h: ...to new name, so as not to collide with
19225         like-named function.
19226         * tests/test-fcntl.c: Rename...
19227         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19228         * modules/fcntl-tests: Rename...
19229         * modules/fcntl-h-tests: ...to this.  Update test file name.
19230         * modules/chdir-long (Depends-on): Update clients.
19231         * modules/chdir-safer (Depends-on): Likewise.
19232         * modules/fcntl-safer (Depends-on): Likewise.
19233         * modules/fts (Depends-on): Likewise.
19234         * modules/mkancesdirs (Depends-on): Likewise.
19235         * modules/mkdir-p (Depends-on): Likewise.
19236         * modules/open (Depends-on): Likewise.
19237         * modules/savewd (Depends-on): Likewise.
19238         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19239         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19240
19241 2009-08-22  Bruno Haible  <bruno@clisp.org>
19242
19243         * modules/binary-io (License): Relicense under LGPL.
19244         * modules/pipe2 (License): Likewise.
19245
19246 2009-08-22  Bruno Haible  <bruno@clisp.org>
19247
19248         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19249         return value.
19250         * lib/pipe-filter-gi.c (filter_init): Likewise.
19251         Reported by Eric Blake.
19252
19253 2009-08-22  Bruno Haible  <bruno@clisp.org>
19254
19255         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19256         * modules/pipe (Depends-on): Add pipe2.
19257
19258 2009-08-22  Bruno Haible  <bruno@clisp.org>
19259
19260         Tests for module 'pipe2'.
19261         * modules/pipe2-tests: New file.
19262         * tests/test-pipe2.c: New file.
19263
19264         New module 'pipe2'.
19265         * lib/unistd.in.h (pipe2): New declaration.
19266         * lib/pipe2.c: New file.
19267         * m4/pipe2.m4: New file.
19268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19269         HAVE_PIPE2.
19270         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19271         * modules/pipe2: New file.
19272         * doc/glibc-functions/pipe2.texi: Mention the new module.
19273
19274 2009-08-22  Bruno Haible  <bruno@clisp.org>
19275
19276         Reference some new glibc functions.
19277         * doc/glibc-functions/accept4.texi: New file.
19278         * doc/glibc-functions/dup3.texi: New file.
19279         * doc/glibc-functions/mkostemp.texi: New file.
19280         * doc/glibc-functions/pipe2.texi: New file.
19281         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19282         (Glibc sys/socket.h): Refer to accept4.
19283         (Glibc unistd.h): Refer to dup3, pipe2.
19284         Reported by Eric Blake.
19285
19286 2009-08-22  Jim Meyering  <meyering@redhat.com>
19287             Bruno Haible  <bruno@clisp.org>
19288
19289         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19290         This makes it so packages using automake-1.11's silent-rules option
19291         can print e.g., a single "GEN    configmake.h" line, rather than
19292         the 30+ statements that perform the job.  If you want to see the
19293         actual commands, you can still run "make V=1".
19294         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19295         so that make output is abbreviated when those variables are defined
19296         appropriately.
19297         * modules/argz: Likewise.
19298         * modules/arpa_inet: Likewise.
19299         * modules/byteswap: Likewise.
19300         * modules/configmake: Likewise.
19301         * modules/dirent: Likewise.
19302         * modules/errno: Likewise.
19303         * modules/fcntl: Likewise.
19304         * modules/float: Likewise.
19305         * modules/fnmatch: Likewise.
19306         * modules/getopt-posix: Likewise.
19307         * modules/glob: Likewise.
19308         * modules/iconv_open: Likewise.
19309         * modules/inttypes: Likewise.
19310         * modules/localcharset: Likewise.
19311         * modules/locale: Likewise.
19312         * modules/math: Likewise.
19313         * modules/netdb: Likewise.
19314         * modules/netinet_in: Likewise.
19315         * modules/poll: Likewise.
19316         * modules/posix_spawnp-tests: Likewise.
19317         * modules/sched: Likewise.
19318         * modules/search: Likewise.
19319         * modules/selinux-h: Likewise.
19320         * modules/signal: Likewise.
19321         * modules/spawn: Likewise.
19322         * modules/stdarg: Likewise.
19323         * modules/stdbool: Likewise.
19324         * modules/stddef: Likewise.
19325         * modules/stdint: Likewise.
19326         * modules/stdio: Likewise.
19327         * modules/stdlib: Likewise.
19328         * modules/string: Likewise.
19329         * modules/strings: Likewise.
19330         * modules/sys_file: Likewise.
19331         * modules/sys_ioctl: Likewise.
19332         * modules/sys_select: Likewise.
19333         * modules/sys_socket: Likewise.
19334         * modules/sys_stat: Likewise.
19335         * modules/sys_time: Likewise.
19336         * modules/sys_times: Likewise.
19337         * modules/sys_utsname: Likewise.
19338         * modules/sys_wait: Likewise.
19339         * modules/sysexits: Likewise.
19340         * modules/time: Likewise.
19341         * modules/unistd: Likewise.
19342         * modules/wchar: Likewise.
19343         * modules/wctype: Likewise.
19344
19345 2009-08-22  Jim Meyering  <meyering@redhat.com>
19346
19347         announce-gen: detect write failure
19348         * build-aux/announce-gen: Add Coda at end.
19349         Remove equivalent-but-more-verbose block at top.
19350
19351 2009-08-19  Akim Demaille  <demaille@gostai.com>
19352
19353         bootstrap: --help to stdout.
19354         * bootstrap (usage): Don't send --help to stderr.
19355         Use a here doc instead of a long string.
19356
19357 2009-08-21  Eric Blake  <ebb9@byu.net>
19358
19359         test-popen-safer: split from test-popen
19360         * tests/test-popen.c (main): Move...
19361         * tests/test-popen.h: ...into new file.
19362         * tests/test-popen-safer2.c: New file.
19363         * modules/popen-tests (Files): Add test-popen.h.
19364         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19365         Suggested by Bruno Haible.
19366
19367         test-fcntl-safer: split from test-open
19368         * tests/test-open.c (main): Move...
19369         * tests/test-open.h: ...into new file.
19370         * tests/test-fcntl-safer.c: New file.
19371         * modules/open-tests (Files): Add test-open.h.
19372         * modules/fcntl-safer-tests: New file.
19373         Suggested by Bruno Haible.
19374
19375         test-fopen-safer: split from test-fopen
19376         * tests/test-fopen.c (main): Move...
19377         * tests/test-fopen.h: ...into new file.
19378         * tests/test-fopen-safer.c: New file.
19379         * modules/fopen-tests (Files): Add test-fopen.h.
19380         * modules/fopen-safer-tests: New file.
19381         Suggested by Bruno Haible.
19382
19383 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19384
19385         popen-safer: test O_CLOEXEC at run-time.
19386         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19387
19388 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19389
19390         fcntl: move more flags to the header
19391         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19392         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19393         * lib/fcntl.in.h: Do both things here.
19394
19395 2009-08-21  Jim Meyering  <meyering@redhat.com>
19396
19397         consistently remove $@-t before redirecting to it
19398         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19399         * modules/alloca-opt: Likewise.
19400         * modules/byteswap: Likewise.
19401         * modules/fnmatch: Likewise.
19402         * modules/getopt-posix: Likewise.
19403         * modules/glob: Likewise.
19404         * modules/poll: Likewise.
19405         * modules/posix_spawnp-tests: Likewise.
19406         * modules/sys_socket: Likewise.
19407         * modules/sysexits: Likewise.
19408
19409 2009-08-21  Eric Blake  <ebb9@byu.net>
19410
19411         popen: simplify access to original popen
19412         * lib/popen.c (rpl_popen): No need to worry about popen being a
19413         macro.
19414         Reported by Bruno Haible.
19415
19416 2009-08-20  Eric Blake  <ebb9@byu.net>
19417
19418         build: avoid some compiler warnings
19419         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19420         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19421         type.
19422         (new_exclude_segment, excluded_file_pattern_p)
19423         (excluded_file_name_p): Reduce scope.
19424         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19425         old-style declaration.
19426
19427 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19428
19429         * tests/test-exclude1.sh: Handle Windows EOL.
19430         * tests/test-exclude2.sh: Likewise.
19431         * tests/test-exclude3.sh: Likewise.
19432         * tests/test-exclude4.sh: Likewise.
19433         * tests/test-exclude5.sh: Likewise.
19434         * tests/test-exclude6.sh: Likewise.
19435         * tests/test-exclude7.sh: Likewise.
19436
19437 2009-08-19  Akim Demaille  <demaille@gostai.com>
19438
19439         bootstrap: find sha1sum when named gsha1sum.
19440         * bootstrap (find_tool): New.
19441         ($SHA1SUM): New.
19442         Use it.
19443
19444 2009-08-20  Jim Meyering  <meyering@redhat.com>
19445
19446         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19447         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19448         expression that converts "." in a file name to "\." in the resulting
19449         regexp.  Start with a dummy statement, so that prior shell variable
19450         definitions are expanded portably.  Reported by Simon Josefsson.
19451
19452 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19453
19454         Fix polling for writeability of a screen buffer.
19455         * lib/poll.c: Distinguish input and screen buffers for the
19456         Win32 implementation.
19457         * lib/select.c: Likewise.
19458
19459 2009-08-19  Eric Blake  <ebb9@byu.net>
19460
19461         popen-safer: prevent popen from clobbering std descriptors
19462         * modules/popen-safer: New file.
19463         * lib/popen-safer.c: Likewise.
19464         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19465         * lib/stdio--.h (popen): Provide override.
19466         * lib/stdio-safer.h (popen_safer): Provide declaration.
19467         * tests/test-popen.c (includes): Partially test this.
19468         * modules/popen-safer-tests: New file, for more tests.
19469         * tests/test-popen-safer.c: Likewise.
19470         * MODULES.html.sh (file stream based Input/Output): Mention it.
19471
19472         tests: test some of the *-safer modules
19473         * modules/fopen-safer (Depends-on): Add fopen.
19474         * modules/fcntl-safer (Depends-on): Add fcntl.
19475         * modules/stdlib-safer (Depends-on): Add stdlib.
19476         (configure.ac): Set indicator.
19477         * modules/unistd-safer (configure.ac): Likewise.
19478         * modules/tmpfile-safer (configure.ac): Likewise.
19479         (Depends-on): Add tmpfile.
19480         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19481         active.
19482         * tests/test-fopen.c (includes): Test safer versions when they are
19483         in use.
19484         * tests/test-open.c (includes): Likewise.
19485
19486         popen: fix cygwin 1.5 bug when stdin closed
19487         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19488         * modules/popen: New file.
19489         * modules/popen-tests: Likewise.
19490         * tests/test-popen.c: Likewise.
19491         * m4/popen.m4: Likewise.
19492         * lib/popen.c: Likewise.
19493         * lib/stdio.in.h (popen): New declaration.
19494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19495         * modules/stdio (Makefile.am): Likewise.
19496         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19497
19498 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19499
19500         maint.mk: give full control over update-copyright exclusions
19501         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19502         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19503         (update-copyright): Don't force inclusion of top-level
19504         ChangeLog.  Don't force exclusion of all COPYING files, but make
19505         them the default exclusion instead.
19506
19507 2009-08-16  Bruno Haible  <bruno@clisp.org>
19508
19509         Fix test failures on Solaris 10.
19510         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19511         tests when Solaris iconv() is used.
19512         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19513         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19514         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19515         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19516         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19517
19518 2009-08-16  Bruno Haible  <bruno@clisp.org>
19519
19520         Fix test failures on Solaris 10.
19521         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19522         'tr' program and pass it as first argument.
19523         * tests/test-pipe-filter-gi1.sh: Likewise.
19524         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19525         program as first argument.
19526         * tests/test-pipe-filter-gi1.c (main): Likewise.
19527
19528 2009-08-16  Eric Blake  <ebb9@byu.net>
19529
19530         fpurge: fix previous commits
19531         * modules/fpurge (Makefile.am): Make replacement conditional,
19532         partially reverting 2007-04-29 change; missed in previous
19533         attempt.
19534         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19535         is missing.
19536
19537 2009-08-16  Bruno Haible  <bruno@clisp.org>
19538
19539         Clarify fpurge's effect on the file position.
19540         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19541         * tests/test-fpurge.c (main): Make a second pass for checking the file
19542         position.
19543
19544 2009-08-16  Bruno Haible  <bruno@clisp.org>
19545
19546         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19547         declaration of fpurge is missing.
19548         * tests/test-fpurge.c (main): Check that the file has not more contents
19549         than expected. Close the file before removing it.
19550
19551 2009-08-15  Eric Blake  <ebb9@byu.net>
19552
19553         fpurge: don't wrap working cygwin implementation
19554         * lib/fpurge.c (fpurge): Fix comment typo.
19555         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19556         1.7 to avoid replacement.
19557         * tests/test-fpurge.c (main): Enhance test.
19558
19559 2009-08-15  Eric Blake  <ebb9@byu.net>
19560         and Jim Meyering  <meyering@redhat.com>
19561
19562         test-update-copyright: skip if perl is insufficient
19563         * tests/test-update-copyright.sh: Failure to run maintainer tool
19564         should not cause testsuite failure on cygwin 1.5.
19565
19566 2009-08-14  Eric Blake  <ebb9@byu.net>
19567
19568         doc: mention more functions added in cygwin 1.7.0
19569         * doc/posix-headers/limits.texi (limits.h): Update for recent
19570         cygwin additions.
19571         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19572         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19573         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19574         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19575         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19576
19577 2009-08-14  Eric Blake  <ebb9@byu.net>
19578
19579         maint.mk: simplify update-copyright rule
19580         * top/maint.mk (update-copyright-local): Delete, and document how
19581         to do it in cfg.mk instead.
19582         (update-copyright-exclude-regexp): Delete, and document how to do
19583         it in .x-update-copyright instead.
19584         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19585         exclude ChangeLog.
19586
19587 2009-08-14  Bruno Haible  <bruno@clisp.org>
19588
19589         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19590
19591 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19592
19593         maint.mk: support update-copyright-env
19594         * top/maint.mk (update-copyright-env): Define place-holder.
19595         (update-copyright): Expand $(update-copyright-env) before
19596         invoking update-copyright.
19597
19598 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19599
19600         update-copyright: implement forced reformatting
19601         * build-aux/update-copyright: Implement and document
19602         UPDATE_COPYRIGHT_FORCE.
19603         * tests/test-update-copyright.sh: Test it.
19604
19605 2009-08-14  Eric Blake  <ebb9@byu.net>
19606         and Bruno Haible  <bruno@clisp.org>
19607
19608         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19609         * tests/test-locale.c: Revert previous patch related to NULL.
19610         * tests/test-stdio.c: Likewise.
19611         * tests/test-stdlib.c: Likewise.
19612         * tests/test-string.c: Likewise.
19613         * tests/test-unistd.c: Likewise.
19614         * modules/time-tests (Depends-on): Add verify.
19615         * modules/wchar-tests (Depends-on): Likewise.
19616         * tests/test-time.c: Test for NULL compliance.
19617         * tests/test-wchar.c: Likewise.
19618         * modules/locale (Depends-on): Add stddef.
19619         * modules/stdio (Depends-on): Likewise.
19620         * modules/stdlib (Depends-on): Likewise.
19621         * modules/string (Depends-on): Likewise.
19622         * modules/time (Depends-on): Likewise.
19623         * modules/unistd (Depends-on): Likewise.
19624         * modules/wchar (Depends-on): Likewise.
19625         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19626         * lib/stdlib.in.h (includes): Likewise.
19627         * lib/string.in.h (includes): Likewise.
19628         * lib/time.in.h (includes): Likewise.
19629         * lib/unistd.in.h (includes): Likewise.
19630         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19631         replaced.
19632         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19633         * m4/stddef_h.m4: New file.
19634         * modules/stddef: Likewise.
19635         * lib/stddef.in.h: Likewise.
19636         * modules/stddef-tests: Likewise.
19637         * tests/test-stddef.c: Likewise.
19638         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19639         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19640         * doc/posix-headers/locale.texi (locale.h): Likewise.
19641         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19642         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19643         * doc/posix-headers/string.texi (string.h): Likewise.
19644         * doc/posix-headers/time.texi (time.h): Likewise.
19645         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19646         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19647
19648 2009-08-14  Eric Blake  <ebb9@byu.net>
19649
19650         doc: improve git diff of texinfo files
19651         * .gitattributes: Add rule for *.texi files, with hint on how to
19652         use it.
19653         Copied from m4, and based on a report by Bruno Haible.
19654
19655 2009-08-14  Bruno Haible  <bruno@clisp.org>
19656
19657         Disable multithread support by default on Cygwin 1.5.x for real.
19658         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19659
19660 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19661
19662         update-copyright: much ado about intervals
19663         * build-aux/update-copyright: Implement and document
19664         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19665         of copyright year intervals.
19666         Also, document UPDATE_COPYRIGHT_YEAR.
19667         * tests/test-update-copyright.sh: Test it.
19668
19669         update-copyright: convert 2-digit to 4-digit years
19670         * build-aux/update-copyright: Implement and document.
19671         * tests/test-update-copyright.sh: Update.
19672
19673 2009-08-14  Jim Meyering  <meyering@redhat.com>
19674
19675         test-exclude: avoid coreutils "make check" failure
19676         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19677         just as in test-argmatch.c.
19678
19679 2009-08-13  Eric Blake  <ebb9@byu.net>
19680
19681         test-dup2: fix bad assumption
19682         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19683         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19684
19685         test-version-etc: fix CRLF portability issue
19686         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19687         recognize \r.
19688         * tests/test-argp-version-etc-1.sh: Likewise.
19689
19690         getopt: update client modules
19691         * modules/argp (Depends-on): Use getopt-gnu.
19692         * modules/git-merge-changelog (Depends-on): Likewise.
19693         * modules/long-options (Depends-on): Likewise.
19694         * modules/xstrtol (Depends-on): Likewise.
19695
19696 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19697
19698         * tests/test-version-etc.sh: Don't fail on different
19699         project/version.  Don't fail on CRLF differences.  Rewrite to use
19700         multiple -e instead of multiple sed forks, suggested by Eric Blake
19701         <ebb9@byu.net>.
19702         * tests/test-argp-version-etc-1.sh: Likewise.
19703
19704 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19705
19706         * tests/test-version-etc.sh: Don't fail on different
19707         project/version.
19708
19709 2009-08-12  Bruno Haible  <bruno@clisp.org>
19710
19711         Tests for modules 'getopt-posix', 'getopt-gnu'.
19712         * modules/getopt-posix-tests: New file.
19713         * tests/test-getopt.c: New file.
19714         * tests/test-getopt.h: New file.
19715         * tests/test-getopt_long.h: New file.
19716
19717         New modules 'getopt-posix', 'getopt-gnu'.
19718         * modules/getopt-gnu: New file, renamed from modules/getopt.
19719         * modules/getopt-posix: New file.
19720         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19721         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19722         (gl_GETOPT): Remove macro.
19723         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19724         Disable the test against BSD systems that declare optreset. Test
19725         against mingw bug. Test against lack of support of optional arguments
19726         on many platforms.
19727         * doc/glibc-headers/getopt.texi: Update module name and list of
19728         relevant platforms.
19729         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19730         'getopt-gnu' and more portability problems.
19731         * NEWS: Mention the changes.
19732
19733 2009-08-12  Bruno Haible  <bruno@clisp.org>
19734
19735         Ensure that optarg etc. get declared by <unistd.h>.
19736         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19737         AC_USE_SYSTEM_EXTENSIONS.
19738         * modules/getopt (Depends-on): Add 'extensions'.
19739
19740 2009-08-12  Bruno Haible  <bruno@clisp.org>
19741
19742         Avoid test link errors.
19743         * modules/pipe-filter-ii-tests (Makefile.am): Define
19744         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19745         * modules/pipe-filter-gi-tests (Makefile.am): Define
19746         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19748
19749 2009-08-12  Bruno Haible  <bruno@clisp.org>
19750
19751         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19752         gl_GETOPT_SUBSTITUTE before.
19753         (gl_GETOPT): Use it.
19754         * m4/argp.m4 (gl_ARGP): Update.
19755         Reported by Sergey Poznyakoff.
19756
19757         * m4/getopt.m4: Reorder macros.
19758         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19759         (gl_GETOPT_SUBSTITUTE): Remove macro.
19760
19761 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19762
19763         Minor improvement in gitlog-to-changelog
19764
19765         * build-aux/gitlog-to-changelog: New option `--format' makes
19766         output format string configurable.
19767
19768 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19769
19770         Optimize exclude: use hash tables for non-wildcard patterns.
19771
19772         * lib/exclude.c: Include hash.h and mbuiter.h
19773         (struct exclude_pattern, exclude_segment): New data types.
19774         (struct exclude): Rewrite.
19775         (fnmatch_pattern_has_wildcards): New function.
19776         (new_exclude_segment, free_exclude_segment): New functions.
19777         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19778         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19779         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19780         * modules/exclude: Depend on hash and mbuiter.
19781
19782         * modules/exclude-tests: New file.
19783         * tests/test-exclude.c: New file.
19784         * tests/test-exclude1.sh: New file.
19785         * tests/test-exclude2.sh: New file.
19786         * tests/test-exclude3.sh: New file.
19787         * tests/test-exclude4.sh: New file.
19788         * tests/test-exclude5.sh: New file.
19789         * tests/test-exclude6.sh: New file.
19790         * tests/test-exclude7.sh: New file.
19791
19792 2009-08-12  Bruno Haible  <bruno@clisp.org>
19793
19794         Ensure that getopt() gets declared by <unistd.h>.
19795         * lib/unistd.in.h: Conditionally include getopt.h.
19796         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19797         Set GNULIB_UNISTD_H_GETOPT.
19798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19799         GNULIB_UNISTD_H_GETOPT.
19800         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19801
19802 2009-08-12  Bruno Haible  <bruno@clisp.org>
19803
19804         Clarify logic.
19805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19806         gl_replace_getopt instead of GETOPT_H.
19807
19808 2009-08-12  Bruno Haible  <bruno@clisp.org>
19809
19810         * m4/getopt.m4: Add comments.
19811
19812 2009-08-12  Bruno Haible  <bruno@clisp.org>
19813
19814         Disable multithread support by default on Cygwin 1.5.x.
19815         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19816         set gl_use_threads=no if not specified otherwise.
19817
19818 2009-08-11  Bruno Haible  <bruno@clisp.org>
19819
19820         Avoid compilation error on NetBSD 5.0.
19821         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19822         * tests/test-stdio.c: Likewise.
19823         * tests/test-stdlib.c: Likewise.
19824         * tests/test-string.c: Likewise.
19825         * tests/test-unistd.c: Likewise.
19826         Reported by Greg Troxel <gdt@ir.bbn.com>
19827         at <https://savannah.gnu.org/support/?106973>.
19828
19829 2009-08-11  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/dup2-tests (Depends-on): Remove close.
19832
19833         Undo 2009-07-19 commit.
19834         * modules/acl-tests (Depends-on): Remove close.
19835         * modules/binary-io-tests (Depends-on): Likewise.
19836         * modules/closein-tests (Depends-on): Likewise.
19837         * modules/flock-tests (Depends-on): Likewise.
19838         * modules/fsync-tests (Depends-on): Likewise.
19839         * modules/lseek-tests (Depends-on): Likewise.
19840         * modules/pipe-tests (Depends-on): Likewise.
19841         * modules/posix_spawn-tests (Depends-on): Likewise.
19842         * modules/posix_spawnp-tests (Depends-on): Likewise.
19843         * modules/stat-time-tests (Depends-on): Likewise.
19844         * modules/yesno-tests (Depends-on): Likewise.
19845
19846 2009-08-10  Bruno Haible  <bruno@clisp.org>
19847
19848         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19849
19850 2009-08-10  Bruno Haible  <bruno@clisp.org>
19851
19852         Fix a gcc warning.
19853         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19854
19855 2009-08-10  Bruno Haible  <bruno@clisp.org>
19856
19857         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19858         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19859         not only the first time.
19860         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
19861         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
19862         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
19863         is 1, not only the the first time.
19864
19865 2009-08-10  Bruno Haible  <bruno@clisp.org>
19866
19867         Make it possible to use module 'gethostname' without module 'close'.
19868         * lib/unistd.in.h (close): Evoke a link error only if
19869         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19871         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19872         * modules/unistd (Makefile.am): Substitute
19873         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19874         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
19875         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
19876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
19877         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19878         * modules/sys_ioctl (Makefile.am): Substitute
19879         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19880         * modules/socket (configure.ac): On native Windows, set
19881         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
19882         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
19883         Reported by Sam Steingold <sds@gnu.org>.
19884
19885 2009-08-10  Bruno Haible  <bruno@clisp.org>
19886
19887         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
19888         * modules/ioctl (configure.ac): Likewise.
19889
19890 2009-08-10  Bruno Haible  <bruno@clisp.org>
19891
19892         Avoid collision between gnulib wrapper and libintl wrapper.
19893         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
19894         already defined in intl/printf.c.
19895         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
19896         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
19897
19898 2009-08-09  Bruno Haible  <bruno@clisp.org>
19899
19900         Make <sys/select.h> really self-contained, also on Solaris 10.
19901         * lib/sys_select.in.h: Include <string.h>.
19902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
19903         Solaris 10 problem.
19904         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
19905         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
19906         Reported by Jim Meyering.
19907
19908 2009-08-09  Bruno Haible  <bruno@clisp.org>
19909
19910         Avoid warnings from 'aclocal' that are due to a use of macro name
19911         AM_XGETTEXT_OPTION that is not defined in automake.
19912         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
19913         automake.
19914         * modules/error (configure.ac): Likewise.
19915         * modules/propername (configure.ac): Likewise.
19916         * modules/vasprintf (configure.ac): Likewise.
19917         * modules/verror (configure.ac): Likewise.
19918         * modules/xprintf (configure.ac): Likewise.
19919         * modules/xvasprintf (configure.ac): Likewise.
19920
19921 2009-08-08  Bruno Haible  <bruno@clisp.org>
19922
19923         Avoid compilation error in C++ mode.
19924         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
19925         Reported by Sam Steingold <sds@gnu.org>.
19926
19927 2009-08-08  Bruno Haible  <bruno@clisp.org>
19928
19929         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
19930         for the various Unix platforms.
19931         * doc/posix-headers/limits.texi: Update platforms list regarding
19932         HOST_NAME_MAX.
19933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19934
19935 2009-08-07  Jim Meyering  <meyering@redhat.com>
19936
19937         selinux-at: fix typo in a comment
19938         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
19939         Spotted by Paolo Bonzini.
19940
19941         selinux-at: remove redundant m4 code, add documentation
19942         * modules/selinux-at (configure.ac): Remove redundant code.
19943         LIB_SELINUX is already set via the dependent module, selinux-h.
19944         (Include): Add quotes around selinux-at.h.
19945         * lib/selinux-at.h: Add documentation.
19946         Reported by Bruno Haible in
19947         http://marc.info/?l=gnulib-bug&m=124958988300749
19948
19949 2009-08-07  Bruno Haible  <bruno@clisp.org>
19950
19951         Avoid link error on MacOS X 10.3 and 10.4.
19952         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
19953         on non-ELF systems.
19954         * lib/argp-pv.c (argp_program_version): Likewise.
19955         Reported by Simon Josefsson.
19956
19957 2009-08-07  Simon Josefsson  <simon@josefsson.org>
19958
19959         * tests/test-version-etc.sh: Use $EXEEXT.
19960
19961 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
19962
19963         update-copyright: update documentation to point to maint.mk
19964         * build-aux/update-copyright: Here.
19965
19966 2009-08-06  Jim Meyering  <meyering@redhat.com>
19967
19968         maint.mk: support update-copyright-local
19969         * top/maint.mk (update-copyright-local): Define place-holder.
19970         (update-copyright): Depend on $(update-copyright-local).
19971
19972 2009-08-06  Jim Meyering  <meyering@redhat.com>
19973
19974         selinux-at: new module
19975         Initially written for coreutils, this module will soon be
19976         used by findutils, too.
19977         * MODULES.html.sh [Misc]: Add selinux-at.
19978         * lib/selinux-at.h: New file, from coreutils.
19979         * lib/selinux-at.c: Likewise.
19980         * modules/selinux-at: Likewise.
19981         (License): Change from LGPL to GPL, since it depends
19982         on the GPL'd openat module.
19983
19984         doc: update README
19985         * README: Remove references to cogito.
19986         Remove cvs-repo-updating instructions from 2007.
19987         Don't imply that CVS is better if you have limited disk space.
19988
19989 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19990
19991         update-copyright: support C-style comments
19992         * build-aux/update-copyright: Implement and document.
19993         * tests/test-update-copyright.sh: Test.
19994
19995 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
19996
19997         update-copyright: support omitted "(C)"
19998         * build-aux/update-copyright: Implement and document.  Also,
19999         allow variable whitespace before "(C)".
20000         * tests/test-update-copyright.sh: Test.
20001
20002 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20003
20004         update-copyright: don't trip on non-FSF copyright statements
20005         * build-aux/update-copyright: Fix so that the first correctly
20006         formatted FSF copyright statement is recognized no matter what
20007         appears before it.  Update documentation.
20008         * tests/test-update-copyright.sh: Test that.
20009
20010 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20011
20012         update-copyright: clean up code a little
20013         * build-aux/update-copyright: Append "_re" to the name of any
20014         variable holding a regular expression.
20015         Replace "old" and "new" with "stmt" in variable names.
20016         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20017         handled correctly.
20018         Format code more consistently.
20019
20020 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20021
20022         update-copyright-tests: improve portability
20023         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20024         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20025
20026 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20027
20028         update-copyright: support @copyright{} and &copy;
20029         * build-aux/update-copyright: Implement and document.
20030         * tests/test-update-copyright.sh: Test.
20031
20032 2009-08-04  Jim Meyering  <meyering@redhat.com>
20033
20034         update-copyright-tests: correctly test EOL=\r\n handling
20035         * tests/test-update-copyright.sh: Put \r at the end of some lines
20036         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20037
20038         maint.mk: make update-copyright exclusion list more configurable
20039         * top/maint.mk (update-copyright): Default to excluding COPYING,
20040         but allow an override, in case someone does want to update that file.
20041
20042         maint.mk: don't update copyright date in COPYING
20043         * top/maint.mk (update-copyright): Exclude COPYING.
20044
20045         maint.mk: add a copyright-updating rule
20046         * top/maint.mk (update-copyright): New rule.
20047         Derived from coreutils/Makefile.am.
20048
20049         update-copyright: rename some variables
20050         * build-aux/update-copyright: Rename a few variables for clarity.
20051         Tweak syntax.  List Joel E. Denny as coauthor.
20052
20053 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20054
20055         update-copyright: fix bug for 2-digit last year and add tests
20056         * build-aux/update-copyright: Fix bug.
20057         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20058         specified.
20059         * modules/update-copyright-tests: New
20060         * tests/test-update-copyright.sh: New.
20061
20062 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20063
20064         update-copyright: handle leading tabs in line prefix
20065         * build-aux/update-copyright: Count leading tabs as 8 spaces
20066         when computing margin.  This helps with the formatting of
20067         ChangeLogs, for example.
20068         Fix documentation a little.
20069
20070 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20071
20072         update-copyright: support EOL=\r\n
20073         * build-aux/update-copyright: Implement that.
20074
20075 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20076
20077         update-copyright: automatically format copyright statements
20078         * build-aux/update-copyright: Implement that.
20079         Also, be a little more predictable and safer by always failing
20080         when the full copyright format is not perfectly recognized as an
20081         unbroken whole.  Discussed at
20082         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20083         Rewrite documentation.
20084
20085 2009-08-03  Bruno Haible  <bruno@clisp.org>
20086
20087         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20088
20089 2009-08-02  Bruno Haible  <bruno@clisp.org>
20090
20091         Tests for module 'uname'.
20092         * modules/uname-tests: New file.
20093         * tests/test-uname.c: New file.
20094
20095         New module 'uname'.
20096         * lib/uname.c: New file.
20097         * m4/uname.m4: New file.
20098         * modules/uname: New file.
20099         * doc/posix-functions/uname.texi: Mention the new module.
20100
20101 2009-08-02  Bruno Haible  <bruno@clisp.org>
20102
20103         Tests for module 'sys_utsname'.
20104         * modules/sys_utsname-tests: New file.
20105         * tests/test-sys_utsname.c: New file.
20106
20107         New module 'sys_utsname'.
20108         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20109         * m4/sys_utsname_h.m4: New file.
20110         * modules/sys_utsname: New file.
20111         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20112
20113 2009-08-02  Bruno Haible  <bruno@clisp.org>
20114
20115         Implicitly initialize the sockets library.
20116         * lib/gethostname.c: Include sockets.h.
20117         (rpl_gethostname): Invoke gl_sockets_startup.
20118         * lib/socket.c: Include sockets.h.
20119         (rpl_socket): Invoke gl_sockets_startup.
20120         * modules/gethostname (Depends-on): Add sockets.
20121         * modules/socket (Depends-on): Likewise.
20122         * tests/test-poll.c: Don't include sockets.h.
20123         (main): Don't invoke gl_sockets_startup.
20124         * tests/test-select.c: Don't include sockets.h.
20125         (main): Don't invoke gl_sockets_startup.
20126
20127 2009-08-02  Bruno Haible  <bruno@clisp.org>
20128
20129         Allow multiple calls to gl_sockets_startup.
20130         * lib/sockets.c (initialized_sockets_version): New variable.
20131         (gl_sockets_startup): Do nothing if already called for this or a higher
20132         version.
20133         (gl_sockets_cleanup): Reset initialized_sockets_version.
20134
20135 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20136
20137         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20138         different project/version.
20139
20140 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20141             Bruno Haible  <bruno@clisp.org>
20142
20143         Tests for module 'pipe-filter-gi'.
20144         * modules/pipe-filter-gi-tests: New file.
20145         * tests/test-pipe-filter-gi1.sh: New file.
20146         * tests/test-pipe-filter-gi1.c: New file.
20147         * tests/test-pipe-filter-gi2.sh: New file.
20148         * tests/test-pipe-filter-gi2-main.c: New file.
20149         * tests/test-pipe-filter-gi2-child.c: New file.
20150
20151         New module 'pipe-filter-gi'.
20152         * lib/pipe-filter-gi.c: New file.
20153         * modules/pipe-filter-gi: New file.
20154
20155 2009-08-02  Bruno Haible  <bruno@clisp.org>
20156             Paolo Bonzini  <bonzini@gnu.org>
20157
20158         Tests for module 'pipe-filter-ii'.
20159         * modules/pipe-filter-ii-tests: New file.
20160         * tests/test-pipe-filter-ii1.sh: New file.
20161         * tests/test-pipe-filter-ii1.c: New file.
20162         * tests/test-pipe-filter-ii2.sh: New file.
20163         * tests/test-pipe-filter-ii2-main.c: New file.
20164         * tests/test-pipe-filter-ii2-child.c: New file.
20165
20166         New module 'pipe-filter-ii'.
20167         * lib/pipe-filter.h: New file.
20168         * lib/pipe-filter-ii.c: New file.
20169         * lib/pipe-filter-aux.h: New file.
20170         * modules/pipe-filter-ii: New file.
20171
20172 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20173
20174         * lib/gc-libgcrypt.c: Change copyright to FSF.
20175         * lib/gc-gnulib.c: Likewise.
20176
20177 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20178
20179         * lib/gethostname.c: Include limits.h.
20180
20181 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20182             Bruno Haible  <bruno@clisp.org>
20183
20184         Ensure HOST_NAME_MAX as part of the gethostname module.
20185         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20186         define also HOST_NAME_MAX.
20187         * tests/test-gethostname.c: Include <limits.h>.
20188         (main): Check also HOST_NAME_MAX.
20189         * doc/posix-headers/limits.texi: Document the mingw problem.
20190
20191 2009-08-02  Bruno Haible  <bruno@clisp.org>
20192
20193         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20194         Add comments.
20195
20196 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20197
20198         * lib/gethostname.c: Add Windows wrapper.
20199         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20200         * modules/gethostname: Depend on sys_socket & errno, for also
20201         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20202         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20203
20204 2009-07-31  Jim Meyering  <meyering@redhat.com>
20205
20206         getloadavg: fix symbol name in comment
20207         * lib/getloadavg.c: Correct a typo I introduced when adding
20208         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20209         Matt Kraai spotted the problem.
20210
20211 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20212
20213         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20214         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20215         code also if ! defined N_NAME_POINTER.
20216         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20217         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20218         but the n_name member is a 12-byte array.
20219
20220 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20221
20222         update-copyright: generalize comment handling
20223         * build-aux/update-copyright: Handle copyright statements
20224         within more comment styles.
20225         Document usage.
20226         Report any file with an external copyright holder or parse failure.
20227
20228 2009-07-29  Jim Meyering  <meyering@redhat.com>
20229
20230         mktime: correct setting of REPLACE_MKTIME
20231         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20232
20233         update-copyright: new module
20234         * modules/update-copyright: New file.
20235         * build-aux/update-copyright: New file.
20236         * MODULES.html.sh (maint+release support): Add update-copyright.
20237
20238 2009-07-27  Bruno Haible  <bruno@clisp.org>
20239
20240         Fix compilation error when <ctime> is used and mktime is replaced.
20241         * lib/time.in.h (mktime): New declaration.
20242         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20243         REPLACE_MKTIME instead of defining mktime in config.h.
20244         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20245         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20246         Reported by Ross McFarland <rwmcfa1@neces.com>.
20247
20248 2009-07-27  Bruno Haible  <bruno@clisp.org>
20249
20250         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20251         Reported by Matt Kraai <mkraai@beckman.com>.
20252
20253 2009-07-25  Jim Meyering  <meyering@redhat.com>
20254
20255         maint.mk: avoid warnings about missing files
20256         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20257         diagnostic when .prev-version does not exist.
20258         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20259         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20260         nonexistent cfg.mk.
20261         Suggestions from Simon Josefsson.
20262
20263 2009-07-25  Bruno Haible  <bruno@clisp.org>
20264
20265         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20266         defined as macros. Needed on QNX 6.4.1.
20267         Reported by Matt Kraai <mkraai@beckman.com>.
20268
20269 2009-07-23  Jim Meyering  <meyering@redhat.com>
20270
20271         maint.mk: invoke "make dist" with a working value of XZ_OPT
20272         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20273
20274 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20275
20276         Make fseeko.c compile on QNX.
20277         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20278
20279 2009-07-22  Peter Simons  <simons@cryp.to>
20280
20281         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20282         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20283         * lib/md4.h: Likewise.
20284         * lib/md5.h: Likewise.
20285         * lib/sha1.h: Likewise.
20286         * lib/sha256.h: Likewise.
20287         * lib/sha512.h: Likewise.
20288
20289         tests-sha1: don't assign literal string to 'char *' variable
20290         * tests/test-sha1.c (main): Declare locals with "const" to match
20291         attributes of the right hand side.
20292
20293 2009-07-21  Eric Blake  <ebb9@byu.net>
20294
20295         dup2: fix more mingw problems
20296         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20297         fd to itself.
20298         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20299         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20300         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20301         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20302         care of mingw bugs.
20303
20304 2009-07-21  Jim Meyering  <meyering@redhat.com>
20305
20306         vc-list-files: avoid failure when /bin/sh is dash
20307         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20308         On some Debian based systems, /bin/sh is a symlink to dash, and running
20309         this command would omit the "/" following each 'tests' prefix:
20310           dash -x build-aux/vc-list-files -C . tests
20311         That is because bash and dash work differently:
20312           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20313           bash ok
20314           dash odd
20315
20316 2009-07-21  Eric Blake  <ebb9@byu.net>
20317
20318         dup2-tests: test previous patch
20319         * modules/dup2-tests: New file.
20320         * tests/test-dup2.c: Likewise.
20321         * tests/test-open.c (main): Avoid unspecified behavior.
20322         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20323         test.
20324
20325         dup2: work around mingw and cygwin 1.5 bug
20326         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20328         * modules/unistd (Makefile.am): Substitute it.
20329         * lib/unistd.in.h (dup2): Declare the replacement.
20330         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20331         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20332         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20333         * modules/execute (Depends-on): Add dup2.
20334         * modules/fseterr (Depends-on): Likewise.
20335         * modules/pipe (Depends-on): Likewise.
20336         * modules/posix_spawn-internal (Depends-on): Likewise.
20337
20338 2009-07-21  Bruno Haible  <bruno@clisp.org>
20339
20340         * modules/.gitattributes: New file.
20341
20342 2009-07-20  Bruno Haible  <bruno@clisp.org>
20343
20344         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20345         (main): Use it.
20346
20347 2009-07-20  Eric Blake  <ebb9@byu.net>
20348
20349         test-pipe: make a bit more robust.
20350         * tests/test-pipe.c (myerr): Allow error messages regardless of
20351         what we do to stderr.
20352         (test_pipe): Rearrange to avoid deadlock.
20353         (child_main): Try a larger read, to ensure we avoided deadlock.
20354         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20355         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20356         if misused.
20357
20358 2009-07-19  Jim Meyering  <meyering@redhat.com>
20359
20360         fts: avoid false-positive cycle-detection
20361         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20362         for each new command line argument.
20363
20364 2009-07-19  Bruno Haible  <bruno@clisp.org>
20365
20366         Fix build error on mingw with the modules sys_select and unistd.
20367         * modules/acl-tests (Depends-on): Add close.
20368         * modules/binary-io-tests (Depends-on): Likewise.
20369         * modules/closein-tests (Depends-on): Likewise.
20370         * modules/flock-tests (Depends-on): Likewise.
20371         * modules/fsync-tests (Depends-on): Likewise.
20372         * modules/lseek-tests (Depends-on): Likewise.
20373         * modules/pipe-tests (Depends-on): Likewise.
20374         * modules/posix_spawn-tests (Depends-on): Likewise.
20375         * modules/posix_spawnp-tests (Depends-on): Likewise.
20376         * modules/stat-time-tests (Depends-on): Likewise.
20377         * modules/yesno-tests (Depends-on): Likewise.
20378
20379 2009-07-19  Bruno Haible  <bruno@clisp.org>
20380
20381         Unify conditionals.
20382         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20383         macros, not at the compiler macros.
20384         * lib/pipe.c: Likewise.
20385         * lib/execute.c: Likewise.
20386         * lib/spawni.c: Likewise.
20387
20388 2009-07-19  Bruno Haible  <bruno@clisp.org>
20389
20390         Fix handling of closed stdin/stdout/stderr on mingw.
20391         * lib/w32spawn.h: Include unistd.h.
20392         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20393         file descriptor with O_NOINHERIT flag.
20394         (fd_safer_noinherit): New function, based on fd-safer.c.
20395         (dup_safer_noinherit): New function, based on dup-safer.c.
20396         (undup_safer_noinherit): New function.
20397         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20398         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20399         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20400         instead of fd_safer.
20401         * tests/test-pipe.c: Include <windows.h>.
20402         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20403
20404         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20405         from main.
20406         (test_pipe): Pass an extra argument for disambiguation.
20407         (main): Invoke parent_main or child_main.
20408
20409         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20410         consistently.
20411
20412 2009-07-18  Eric Blake  <ebb9@byu.net>
20413
20414         test-pipe: fix mingw build
20415         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20416
20417 2009-07-18  Bruno Haible  <bruno@clisp.org>
20418
20419         * modules/pipe-tests (Makefile.am): Fix typo.
20420
20421 2009-07-18  Eric Blake  <ebb9@byu.net>
20422
20423         error: fix mingw build
20424         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20425         Reported by Bruno Haible.
20426
20427         error: avoid undefined use of stdout
20428         * lib/error.c (error, error_at_line): Check that fd 1 is open
20429         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20430         is handling faults and the close_stdout module wants to report the
20431         detection of closed stdout as an error.
20432
20433 2009-07-17  Eric Blake  <ebb9@byu.net>
20434
20435         pipe: be robust in face of closed fds
20436         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20437         should cause child to misbehave.
20438         * modules/pipe-tests: New module.
20439         * tests/test-pipe.c: New file.
20440         * tests/test-pipe.sh: New file.
20441         Reported by Akim Demaille.
20442
20443 2009-07-14  Bruno Haible  <bruno@clisp.org>
20444
20445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20446         Reported by anonymous kc.
20447
20448 2009-07-07  Jim Meyering  <meyering@redhat.com>
20449
20450         maint.mk: don't look for translatable strings in *.m4 or *.mk
20451         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20452         when searching for translatable strings.
20453
20454 2009-07-05  Jim Meyering  <meyering@redhat.com>
20455
20456         remove superfluous parentheses in STREQ definition
20457         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20458         * lib/getugroups.c (STREQ): Likewise.
20459         * lib/fnmatch.c (STREQ): Likewise.
20460         Spotted by Bruno Haible.
20461
20462 2009-07-04  Jim Meyering  <meyering@redhat.com>
20463
20464         argv-iter: new module
20465         * MODULES.html.sh: Add argv-iter.
20466         * lib/argv-iter.c, lib/argv-iter.h: New files.
20467         * modules/argv-iter: New file.
20468         * modules/argv-iter-tests: New file.
20469         * tests/test-argv-iter.c: Test it.
20470
20471 2009-07-04  Bruno Haible  <bruno@clisp.org>
20472
20473         Fix assertion.
20474         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20475         contains more exact copies of a given entry than file2, leave the extra
20476         copies unpaired rather than aborting.
20477         Reported by Eric Blake.
20478
20479 2009-07-02  Bruno Haible  <bruno@clisp.org>
20480
20481         Speedup git-merge-changelog for git cherry-pick.
20482         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20483         (entries_mapping_get): New function, extracted from compute_mapping.
20484         (entries_mapping_reverse_get): New function.
20485         (compute_mapping): Add a 'full' argument. Return the result in a
20486         'struct entries_mapping'.
20487         (main): Update. Access the mappings through entries_mapping_get.
20488         Reported by Eric Blake.
20489
20490 2009-07-02  Bruno Haible  <bruno@clisp.org>
20491
20492         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20493         best_i.
20494
20495 2009-07-02  Bruno Haible  <bruno@clisp.org>
20496
20497         Speed up approximate search for matching ChangeLog entries.
20498         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20499         argument. Call fstrcmp_bounded instead of fstrcmp.
20500         (compute_mapping, try_split_merged_entry, main): Update callers.
20501
20502 2009-07-02  Bruno Haible  <bruno@clisp.org>
20503
20504         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20505
20506 2009-06-30  Bruno Haible  <bruno@clisp.org>
20507
20508         Reduce the number of uc_is_cased calls.
20509         * lib/unicase.h (casing_suffix_context_t): Add
20510         'first_char_except_ignorable' field.
20511         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20512         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20513         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20514         Update initializer.
20515         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20516         case-ignorable characters.
20517         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20518         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20519         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20520         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20521         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20522
20523 2009-06-30  Bruno Haible  <bruno@clisp.org>
20524
20525         Tests for module 'unicase/ignorable'.
20526         * modules/unicase/ignorable-tests: New file.
20527         * tests/unicase/test-ignorable.c: New file, generated by
20528         gen-uni-tables.
20529
20530         Tests for module 'unicase/cased'.
20531         * modules/unicase/cased-tests: New file.
20532         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20533         * tests/unicase/test-predicate-part1.h: New file, derived from
20534         tests/unictype/test-predicate-part1.h.
20535         * tests/unicase/test-predicate-part2.h: New file, same as
20536         tests/unictype/test-predicate-part2.h.
20537
20538         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20539         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20540         (output_casing_properties): New function.
20541         (main): Call it.
20542         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20543         * lib/unicase/cased.c: Include unictype/bitmap.h.
20544         (uc_is_cased): Define through a bitmap lookup.
20545         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20546         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20547         (uc_is_case_ignorable): Define through a bitmap lookup.
20548         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20549         lib/unictype/bitmap.h.
20550         (Depends-on): Add inline. Clean up.
20551         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20552         lib/unictype/bitmap.h.
20553         (Depends-on): Add inline. Clean up.
20554         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20555         recognition.
20556         * tests/unicase/test-u16-tolower.c (main): Likewise.
20557         * tests/unicase/test-u32-tolower.c (main): Likewise.
20558
20559 2009-06-30  Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20562         * lib/unicase/u16-casemap.c: Likewise.
20563         * lib/unicase/u32-casemap.c: Likewise.
20564
20565 2009-06-29  Bruno Haible  <bruno@clisp.org>
20566
20567         Define u32_casefold as a wrapper around u32_ct_casefold.
20568         * lib/unicase/u32-casefold.c: Update.
20569         * modules/unicase/u32-casefold (Depends-on): Add
20570         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20571         unicase/empty-suffix-context. Clean up.
20572
20573         Define u16_casefold as a wrapper around u16_ct_casefold.
20574         * lib/unicase/u16-casefold.c: Update.
20575         * modules/unicase/u16-casefold (Depends-on): Add
20576         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20577         unicase/empty-suffix-context. Clean up.
20578
20579         Define u8_casefold as a wrapper around u8_ct_casefold.
20580         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20581         * lib/unicase/u8-casefold.c: Update.
20582         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20583         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20584
20585         Define u32_totitle as a wrapper around u32_ct_totitle.
20586         * lib/unicase/u32-totitle.c: Update.
20587         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20588         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20589
20590         Define u16_totitle as a wrapper around u16_ct_totitle.
20591         * lib/unicase/u16-totitle.c: Update.
20592         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20593         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20594
20595         Define u8_totitle as a wrapper around u8_ct_totitle.
20596         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20597         functions.
20598         (FUNC): Delegate to U_CT_TOTITLE.
20599         * lib/unicase/u8-totitle.c: Update.
20600         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20601         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20602
20603         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20604         invocation.
20605         * modules/unicase/u32-tolower (Depends-on): Add
20606         unicase/empty-prefix-context, unicase/empty-suffix-context.
20607
20608         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20609         invocation.
20610         * modules/unicase/u16-tolower (Depends-on): Add
20611         unicase/empty-prefix-context, unicase/empty-suffix-context.
20612
20613         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20614         * modules/unicase/u8-tolower (Depends-on): Add
20615         unicase/empty-prefix-context, unicase/empty-suffix-context.
20616
20617         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20618         invocation.
20619         * modules/unicase/u32-toupper (Depends-on): Add
20620         unicase/empty-prefix-context, unicase/empty-suffix-context.
20621
20622         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20623         invocation.
20624         * modules/unicase/u16-toupper (Depends-on): Add
20625         unicase/empty-prefix-context, unicase/empty-suffix-context.
20626
20627         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20628         * modules/unicase/u8-toupper (Depends-on): Add
20629         unicase/empty-prefix-context, unicase/empty-suffix-context.
20630
20631         New module 'unicase/u32-ct-casefold'.
20632         * lib/unicase/u32-ct-casefold.c: New file.
20633         * modules/unicase/u32-ct-casefold: New file.
20634
20635         New module 'unicase/u16-ct-casefold'.
20636         * lib/unicase/u16-ct-casefold.c: New file.
20637         * modules/unicase/u16-ct-casefold: New file.
20638
20639         New module 'unicase/u8-ct-casefold'.
20640         * lib/unicase/u8-ct-casefold.c: New file.
20641         * lib/unicase/u-ct-casefold.h: New file, derived from
20642         lib/unicase/u-casefold.h.
20643         * modules/unicase/u8-ct-casefold: New file.
20644
20645         New module 'unicase/u32-ct-totitle'.
20646         * lib/unicase/u32-ct-totitle.c: New file.
20647         * modules/unicase/u32-ct-totitle: New file.
20648
20649         New module 'unicase/u16-ct-totitle'.
20650         * lib/unicase/u16-ct-totitle.c: New file.
20651         * modules/unicase/u16-ct-totitle: New file.
20652
20653         New module 'unicase/u8-ct-totitle'.
20654         * lib/unicase/u8-ct-totitle.c: New file.
20655         * lib/unicase/u-ct-totitle.h: New file, derived from
20656         lib/unicase/u-totitle.h.
20657         * modules/unicase/u8-ct-totitle: New file.
20658
20659         New module 'unicase/u32-ct-tolower'.
20660         * lib/unicase/u32-ct-tolower.c: New file.
20661         * modules/unicase/u32-ct-tolower: New file.
20662
20663         New module 'unicase/u16-ct-tolower'.
20664         * lib/unicase/u16-ct-tolower.c: New file.
20665         * modules/unicase/u16-ct-tolower: New file.
20666
20667         New module 'unicase/u8-ct-tolower'.
20668         * lib/unicase/u8-ct-tolower.c: New file.
20669         * modules/unicase/u8-ct-tolower: New file.
20670
20671         New module 'unicase/u32-ct-toupper'.
20672         * lib/unicase/u32-ct-toupper.c: New file.
20673         * modules/unicase/u32-ct-toupper: New file.
20674
20675         New module 'unicase/u16-ct-toupper'.
20676         * lib/unicase/u16-ct-toupper.c: New file.
20677         * modules/unicase/u16-ct-toupper: New file.
20678
20679         New module 'unicase/u8-ct-toupper'.
20680         * lib/unicase/u8-ct-toupper.c: New file.
20681         * modules/unicase/u8-ct-toupper: New file.
20682
20683         Add context arguments to u*_casemap functions.
20684         * lib/unicase/unicasemap.h: Include unicase.h.
20685         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20686         suffix_context arguments.
20687         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20688         functions.
20689         (FUNC): Add prefix_context and suffix_context arguments. Use
20690         uc_is_cased and uc_is_case_ignorable.
20691         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20692         * lib/unicase/u16-casemap.c: Likewise.
20693         * lib/unicase/u32-casemap.c: Likewise.
20694         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20695         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20696         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20697         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20698         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20699         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20700
20701         New module 'unicase/u32-suffix-context'.
20702         * lib/unicase/u32-suffix-context.c: New file.
20703         * modules/unicase/u32-suffix-context: New file.
20704
20705         New module 'unicase/u16-suffix-context'.
20706         * lib/unicase/u16-suffix-context.c: New file.
20707         * modules/unicase/u16-suffix-context: New file.
20708
20709         New module 'unicase/u8-suffix-context'.
20710         * lib/unicase/u8-suffix-context.c: New file.
20711         * lib/unicase/u-suffix-context.h: New file.
20712         * modules/unicase/u8-suffix-context: New file.
20713
20714         New module 'unicase/empty-suffix-context'.
20715         * lib/unicase/empty-suffix-context.c: New file.
20716         * modules/unicase/empty-suffix-context: New file.
20717
20718         New module 'unicase/u32-prefix-context'.
20719         * lib/unicase/u32-prefix-context.c: New file.
20720         * modules/unicase/u32-prefix-context: New file.
20721
20722         New module 'unicase/u16-prefix-context'.
20723         * lib/unicase/u16-prefix-context.c: New file.
20724         * modules/unicase/u16-prefix-context: New file.
20725
20726         New module 'unicase/u8-prefix-context'.
20727         * lib/unicase/u8-prefix-context.c: New file.
20728         * lib/unicase/u-prefix-context.h: New file.
20729         * lib/unicase/context.h: New file.
20730         * modules/unicase/u8-prefix-context: New file.
20731
20732         New module 'unicase/empty-prefix-context'.
20733         * lib/unicase/empty-prefix-context.c: New file.
20734         * modules/unicase/empty-prefix-context: New file.
20735
20736         New module 'unicase/ignorable'.
20737         * lib/unicase/ignorable.c: New file.
20738         * modules/unicase/ignorable: New file.
20739
20740         New module 'unicase/cased'.
20741         * lib/unicase/caseprop.h: New file.
20742         * lib/unicase/cased.c: New file.
20743         * modules/unicase/cased: New file.
20744
20745         New functions for case mapping of substrings.
20746         * lib/unicase.h (casing_prefix_context_t): New type.
20747         (unicase_empty_prefix_context): New variable.
20748         (u8_casing_prefix_context, u16_casing_prefix_context,
20749         u32_casing_prefix_context, u8_casing_prefixes_context,
20750         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20751         declarations.
20752         (casing_suffix_context_t): New type.
20753         (unicase_empty_suffix_context): New variable.
20754         (u8_casing_suffix_context, u16_casing_suffix_context,
20755         u32_casing_suffix_context, u8_casing_suffixes_context,
20756         u16_casing_suffixes_context, u32_casing_suffixes_context,
20757         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20758         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20759         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20760         declarations.
20761
20762 2009-06-28  Jim Meyering  <meyering@redhat.com>
20763
20764         boostrap: indent only with spaces
20765         * build-aux/bootstrap: Indent only with spaces, never TABs.
20766
20767         bootstrap: split long lines
20768         * build-aux/bootstrap: Keep line length < 80.
20769
20770         bootstrap: sync from coreutils
20771         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20772         just as autoreconf does.  Verify a list of prerequisite
20773         package-name,version-number pairs if defined in bootstrap.conf.
20774         Refer to README-prereq, if prerequisites are not satisfied.
20775
20776 2009-06-27  Eric Blake  <ebb9@byu.net>
20777
20778         tests: add test for bogus NULL definition
20779         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20780         * tests/test-stdlib.c: Likewise.
20781         * tests/test-string.c: Likewise.
20782         * tests/test-locale.c: Likewise.
20783         * tests/test-unistd.c: Likewise.
20784         * modules/stdio-tests (Depends-on): Add verify.
20785         * modules/stdlib-tests (Depends-on): Likewise.
20786         * modules/string-tests (Depends-on): Likewise.
20787         * modules/locale-tests (Depends-on): Likewise.
20788         * modules/unistd-tests (Depends-on): Likewise.
20789
20790 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20791
20792         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20793         self-explaining comment.
20794         * m4/selinux-selinux-h: Update serial.
20795         (gl_LIBSELINUX): New macro, adding a warning for missing development
20796         packages to code extracted from...
20797         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20798         Add warning for missing development packages here, too.
20799
20800 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20801
20802         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20803
20804 2009-06-25  Eric Blake  <ebb9@byu.net>
20805
20806         version-etc: fix regression
20807         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20808         gcc.
20809         (version_etc): Use it, to catch bugs with trailing NULL.
20810         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20811         (version_etc_va): Fix logic bug.
20812         * modules/version-etc-tests: Add test.
20813         * tests/test-version-etc.c: New file.
20814         * tests/test-version-etc.sh: Likewise.
20815
20816 2009-06-25  Sam Steingold  <sds@gnu.org>
20817
20818         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20819         mbtowc declaration.
20820
20821 2009-06-25  Eric Blake  <ebb9@byu.net>
20822
20823         fpurge: migrate into <stdio.h>
20824         * lib/fpurge.h: Delete...
20825         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20826         * lib/fpurge.c (fpurge): Change declaring header.
20827         * modules/fpurge (Files): Drop deleted file.
20828         (Depends-on): Add stdio.
20829         (configure.ac): Set witness.
20830         * modules/stdio (Makefile.am): Support fpurge macros.
20831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20832         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20833         * lib/fflush.c: Update client.
20834         * tests/test-fpurge.c: Likewise.
20835         * NEWS: Mention the change.
20836
20837 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20838
20839         * lib/argp-version-etc.c (program_authors): Add const
20840         qualifier.
20841         * lib/version-etc.c: Fix typos in the comments.
20842         * modules/argp-version-etc: Depends on version-etc.
20843
20844 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20845
20846         argp-version-etc: new module.
20847
20848         * lib/argp-version-etc.c: New file.
20849         * lib/argp-version-etc.h: New file.
20850         * modules/argp-version-etc: New file.
20851         * modules/argp-version-etc-tests: New file.
20852         * tests/test-argp-version-etc.c: New test.
20853         * tests/test-argp-version-etc-1.sh: New test.
20854
20855 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20856
20857         Provide additional interfaces and documentation for version-etc
20858         module.
20859
20860         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
20861         interfaces.
20862         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
20863         prototypes.
20864
20865 2009-06-24  Bruno Haible  <bruno@clisp.org>
20866
20867         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
20868         HAVE_LIB${NAME} macro.
20869         Reported by Sam Steingold <sds@gnu.org>.
20870
20871 2009-06-23  Simon Josefsson  <simon@josefsson.org>
20872
20873         * modules/hash-tests (test_hash_LDADD): Link to libintl when
20874         needed.
20875
20876 2009-06-21  Bruno Haible  <bruno@clisp.org>
20877
20878         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
20879         work.
20880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
20881         together with LIB${NAME}, LTLIB${NAME}.
20882         Reported by Sam Steingold <sds@gnu.org>.
20883
20884 2009-06-20  Jim Meyering  <meyering@redhat.com>
20885
20886         tests: make sc_require_test_exit_idiom more generic
20887         * top/maint.mk (Exit_witness_file): New overridable variable.
20888         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
20889         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
20890
20891 2009-06-19  Jim Meyering  <meyering@redhat.com>
20892
20893         hash: reverse order of src/dst parameters in an internal interface
20894         * lib/hash.c (transfer_entries): Reverse order of parameters to
20895         put DST before SRC.  Adjust callers.
20896
20897         tests: test-hash: avoid wholesale duplication
20898         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
20899         Instead, use a loop and add a single conditional.
20900
20901         tests: test-hash: allow seed selection via a command line argument
20902         * tests/test-hash.c (get_seed): New function.
20903         (main): Use it.
20904
20905 2009-06-19  Eric Blake  <ebb9@byu.net>
20906
20907         hash: avoid memory leak on allocation failure
20908         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
20909         failure.  Factor repeated algorithm...
20910         (transfer_entries): ...into new helper routine.
20911         (hash_delete): React to hash_rehash return value.
20912
20913         hash: reduce memory pressure in hash_rehash no-op case
20914         * lib/hash.c (next_prime): Avoid overflow.
20915         (hash_initialize): Factor bucket size computation...
20916         (compute_bucket_size): ...into new helper function.
20917         (hash_rehash): Use new function and open coding to reduce memory
20918         pressure, and avoid a memory leak in USE_OBSTACK code.
20919         Reported by Jim Meyering.
20920
20921 2009-06-18  Eric Blake  <ebb9@byu.net>
20922
20923         hash: make rotation more obvious
20924         * modules/hash (Depends-on): Add bitrotate and stdint.
20925         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
20926         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
20927         (SIZE_MAX): Rely on headers for definition.
20928         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
20929         (raw_hasher): Use rotr_sz.
20930         Suggested by Jim Meyering.
20931
20932         hash: fix memory leak in last patch
20933         * lib/hash.c (hash_rehash): Avoid memory leak.
20934
20935         hash: avoid no-op rehashing
20936         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
20937
20938         hash: provide default callback functions
20939         * lib/hash.c (raw_hasher, raw_comparator): New functions.
20940         (hash_initialize): Use them as defaults.
20941         * tests/test-hash.c (main): Test this.
20942
20943         hash: minor optimization
20944         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
20945         when possible.
20946         (hash_initialize): Document this promise.
20947         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
20948         * tests/test-hash.c (hash_compare_strings): Test this.
20949
20950 2009-06-18  Bruno Haible  <bruno@clisp.org>
20951
20952         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
20953         going to be replaced anyway.
20954
20955 2009-06-18  Bruno Haible  <bruno@clisp.org>
20956
20957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
20958         in one place.
20959         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
20960         be replaced anyway.
20961
20962 2009-06-18  Eric Blake  <ebb9@byu.net>
20963
20964         hash: check for resize before insertion
20965         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
20966         threshold before insertion, so that a pathological hash_rehash
20967         that fills every bucket can still trigger another rehash.
20968
20969 2009-06-18  Jim Meyering  <meyering@redhat.com>
20970
20971         hash-tests: add a loop around the small tests
20972         * tests/test-hash.c (main): Repeat small tests with selected
20973         small initial table sizes.
20974
20975 2009-06-17  Eric Blake  <ebb9@byu.net>
20976
20977         hash: minor cleanups
20978         * lib/hash.h (hash_entry): Make opaque, by moving...
20979         * lib/hash.c (hash_entry): ...here.
20980         (hash_insert): Clarify restrictions on what can be inserted.
20981         (hash_get_next): Clarify when it is safe to remove an element
20982         during traversal.
20983         (check_tuning): Skip verification when tuning is known safe.
20984         (hash_initialize): Clarify restrictions on tuning.
20985
20986 2009-06-17  Jim Meyering  <jim@meyering.net>
20987         and Eric Blake  <ebb9@byu.net>
20988
20989         hash-tests: new module
20990         * modules/hash-tests: New file.
20991         * tests/test-hash.c: New file.
20992
20993 2009-06-17  Eric Blake  <ebb9@byu.net>
20994
20995         strstr-simple: document new module
20996         * MODULES.html.sh: Document new module.
20997
20998         strstr, strcasestr: replace on platforms with broken memchr
20999         * modules/strstr: Split into...
21000         * modules/strstr-simple: ...new module that does not care about
21001         performance, but does care about glibc bug.
21002         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21003         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21004         if platform memchr is broken, per Debian bug 521737.
21005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21006         memchr.
21007         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21008         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21009         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21010         * modules/mountlist (Depends-on): Add strstr-simple.
21011         * modules/gen-uni-tables (Depends-on): Likewise.
21012         * modules/argz (Depends-on): Add strstr.
21013
21014 2009-06-17  Bruno Haible  <bruno@clisp.org>
21015
21016         * modules/posix_spawn-internal (Depends-on): Add errno.
21017
21018 2009-06-17  Bruno Haible  <bruno@clisp.org>
21019
21020         Define missing ESTALE on Interix 3.5.
21021         * lib/errno.in.h (ESTALE): Assign a value if missing.
21022         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21024         missing.
21025         * doc/posix-headers/errno.texi: Mention the Interix bug.
21026         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21027
21028 2009-06-15  Eric Blake  <ebb9@byu.net>
21029
21030         memchr, memchr2: add valgrind exception
21031         * lib/memchr.valgrind: New file.
21032         * lib/memchr2.valgrind: New file.
21033         * modules/memchr (Files): Distribute valgrind file.
21034         * modules/memchr2 (Files): Likewise.
21035
21036         docs: memchr is no longer obsolete
21037         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21038         * lib/string.in.h (memchr): Simplify logic.
21039
21040 2009-06-14  Jim Meyering  <meyering@redhat.com>
21041
21042         link-follow: fix the "checking..." message to not mention trailing slash
21043         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21044         never considered trailing slashes.
21045
21046 2009-06-14  Bruno Haible  <bruno@clisp.org>
21047
21048         * m4/memchr.m4: Mention also the bug on IA-64.
21049         * doc/posix-functions/memchr.texi: Likewise.
21050
21051 2009-06-12  Eric Blake  <ebb9@byu.net>
21052
21053         memchr: detect broken x86_64 and alpha implementations
21054         * modules/memchr-tests (Depends-on): Move mmap detection...
21055         * modules/memchr (Depends-on): ...here.
21056         (configure.ac): Set indicator.
21057         * lib/string.in.h (memchr): Declare replacement.
21058         * modules/string (Makefile.am): Trigger replacement.
21059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21060         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21061         bugs.
21062         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21063         * modules/getpagesize (License): Relax license.
21064
21065 2009-06-11  Bruno Haible  <bruno@clisp.org>
21066
21067         * lib/idpriv.h: Add more references.
21068
21069 2009-06-08  Bruno Haible  <bruno@clisp.org>
21070
21071         Tests for module 'idpriv-droptemp'.
21072         * modules/idpriv-droptemp-tests: New file.
21073         * tests/test-idpriv-droptemp.sh: New file.
21074         * tests/test-idpriv-droptemp.su.sh: New file.
21075         * tests/test-idpriv-droptemp.c: New file.
21076
21077         New module 'idpriv-droptemp'.
21078         * lib/idpriv-droptemp.c: New file.
21079         * modules/idpriv-droptemp: New file.
21080
21081 2009-06-08  Bruno Haible  <bruno@clisp.org>
21082
21083         Tests for module 'idpriv-drop'.
21084         * modules/idpriv-drop-tests: New file.
21085         * tests/test-idpriv-drop.sh: New file.
21086         * tests/test-idpriv-drop.su.sh: New file.
21087         * tests/test-idpriv-drop.c: New file.
21088
21089         New module 'idpriv-drop'.
21090         * lib/idpriv.h: New file.
21091         * lib-idpriv-drop.c: New file.
21092         * m4/idpriv.m4: New file.
21093         * modules/idpriv-drop: New file.
21094
21095 2009-06-08  Bruno Haible  <bruno@clisp.org>
21096
21097         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21098         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21099         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21100         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21101         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21102         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21103         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21104
21105 2009-06-08  Eric Blake  <ebb9@byu.net>
21106
21107         test-strstr: use memory fence, when possible
21108         * tests/test-strstr.c (main): Use memory fence, in order to be
21109         more likely to trigger Debian bug 521737.
21110         * modules/strstr-tests (Files): Pull in additional files.
21111
21112         memchr: no longer obsolete, for wider field testing
21113         * modules/memchr (Status, Notice): Delete, this module is no
21114         longer obsolete.
21115         * modules/vasnprintf (Depends-on): Add memchr.
21116
21117 2009-06-07  Jim Meyering  <meyering@redhat.com>
21118
21119         hash: declare some functions with the warn_unused_result attribute
21120         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21121
21122 2009-06-07  Bruno Haible  <bruno@clisp.org>
21123
21124         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21125         Reported by Eric Blake.
21126
21127 2009-06-06  Eric Blake  <ebb9@byu.net>
21128
21129         test-alignof: fix typo with long double
21130         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21131         compiler error.
21132
21133 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21134
21135         Escape non-texinfo { and }s.
21136         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21137         markup error.
21138
21139 2009-06-04  Jim Meyering  <meyering@redhat.com>
21140
21141         gitlog-to-changelog: don't infloop on an empty commit log
21142         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21143         Reported by Boris Petersen <transacid@centerim.org>.
21144
21145 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21146
21147         version-etc: extend for packagers
21148         Add three new configure options, intended for packagers:
21149           --with-packager="packager name"
21150           --with-packager-version="packager-specific version"
21151           --with-packager-bug-reports="packager bug reporting"
21152         An example with coreutils:
21153           $ ./configure \
21154             --with-packager=Gentoo \
21155             --with-packager-bug-report=http://bugs.gentoo.org/ \
21156             --with-packager-version="patchset 1.6"
21157           $ ./src/ls --version | head -n2
21158           ls (GNU coreutils) 7.1-dirty
21159           Packaged by Gentoo (patchset 1.6)
21160         Note that the bug reporting info via --help doesn't show up because
21161         coreutils uses its own custom emit_bug_reporting_address() implementation
21162         in src/system.h.  If it didn't, it'd look like:
21163           $ ./src/ls --help | tail -n4
21164           Report bugs to <bug-coreutils@gnu.org>.
21165           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21166           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21167           General help using GNU software: <http://www.gnu.org/gethelp/>.
21168         * lib/version-etc.c: Print new information, if provided.
21169         * m4/version-etc.m4: New file.
21170         * modules/version-etc (Files): Add m4/version-etc.m4.
21171         (configure.ac): Add gl_VERSION_ETC.
21172
21173 2009-05-31  Bruno Haible  <bruno@clisp.org>
21174
21175         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21176         and 'int64_t'.
21177         * modules/alignof-tests (Dependencies): Add stdint.
21178         Reported by Eric Blake.
21179
21180 2009-05-31  Bruno Haible  <bruno@clisp.org>
21181
21182         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21183         restriction due to compiler bugs.
21184         Reported by Eric Blake.
21185
21186 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21187             Bruno Haible  <bruno@clisp.org>
21188
21189         Fix test-alignof failure.
21190         * lib/alignof.h (alignof_slot): New macro.
21191         (alignof_type): New macro, with the same semantics as the previous
21192         'alignof'.
21193         (alignof): Alias to alignof_slot.
21194         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21195         check that the results are usable as constant expressions.
21196
21197 2009-05-31  Bruno Haible  <bruno@clisp.org>
21198
21199         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21200         * tests/test-memchr.c (main): Check that memchr does not read past the
21201         first occurrence of the byte.
21202         * tests/test-strstr.c (main): Update comment.
21203         Suggested by Eric Blake.
21204
21205 2009-05-30  Bruno Haible  <bruno@clisp.org>
21206
21207         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21208         detail how to use dumpbin.
21209         Reported by David Byron <dbyron@dbyron.com>.
21210
21211 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21212
21213         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21214
21215 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21216
21217         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21218
21219 2009-05-28  Bruno Haible  <bruno@clisp.org>
21220
21221         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21222         build-aux/ files.
21223
21224 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21225
21226         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21227
21228 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21229
21230         * gnulib-tool (sed_transform_main_lib_file)
21231         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21232         regexps.
21233
21234 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21235
21236         * tests/test-strstr.c: Add another self-test.
21237         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21238         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21239
21240 2009-05-23  Bruno Haible  <bruno@clisp.org>
21241
21242         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21243         change.
21244
21245 2009-05-21  Bruno Haible  <bruno@clisp.org>
21246
21247         Simplify use of mode_t varargs.
21248         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21249         uses 'mode_t' or 'int'.
21250         * lib/openat.c (openat): Likewise.
21251         * lib/open-safer.c (open_safer): Likewise.
21252         * m4/mode_t.m4: New file.
21253         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21254         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21256         * modules/open (Files): Add m4/mode_t.m4.
21257         * modules/openat (Files): Likewise.
21258         * modules/fcntl-safer (Files): Likewise.
21259         Suggested by Eric Blake.
21260
21261 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21262
21263         * doc/glibc-functions/fallocate.texi: New file.
21264         * doc/gnulib.texi: Include it.
21265
21266 2009-05-21  Eric Blake  <ebb9@byu.net>
21267             Bruno Haible  <bruno@clisp.org>
21268
21269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21270         invocations.
21271         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21272
21273 2009-05-21  Eric Blake  <ebb9@byu.net>
21274             Bruno Haible  <bruno@clisp.org>
21275
21276         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21277         include_next. Fix of 2008-11-20 commit.
21278         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21279         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21280         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21281         NEXT_MATH_H.
21282         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21283         instead of NEXT_MATH_H.
21284
21285 2009-05-21  Bruno Haible  <bruno@clisp.org>
21286
21287         Avoid redefinition warnings for SIZE_MAX.
21288         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21289         Reported by Simon Josefsson.
21290
21291 2009-05-21  Bruno Haible  <bruno@clisp.org>
21292
21293         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21294         AC_CACHE_VAL.
21295
21296 2009-05-20  Bruno Haible  <bruno@clisp.org>
21297
21298         Make zeroptr.h work on mingw.
21299         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21300         mprotect.
21301         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21302         * modules/memchr2-tests (configure.ac): Likewise.
21303         * modules/memcmp-tests (configure.ac): Likewise.
21304         * modules/memmem-tests (configure.ac): Likewise.
21305         * modules/memrchr-tests (configure.ac): Likewise.
21306         Reported by Simon Josefsson.
21307
21308 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21309
21310         * tests/test-glob.c: Include string.h for strcmp prototype.
21311
21312 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21313
21314         * modules/getdelim (Depends-on): Add explicit stdint, although it
21315         was implicitly already pulled in via realloc-posix.
21316         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21317
21318 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21319
21320         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21321         G. Christensen" <tgc@jupiterrise.com>.
21322         * m4/sys_socket_h.m4: Check for sa_family_t.
21323         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21324         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21325         * tests/test-sys_socket.c: Check that sa_family_t works.
21326
21327 2009-05-18  Eric Blake  <ebb9@byu.net>
21328
21329         maint.mk: allow gnulib_dir in VPATH build
21330         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21331
21332 2009-05-15  Jim Meyering  <meyering@redhat.com>
21333
21334         maint.mk: Give gnulib_dir a default definition.
21335         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21336         Thus, most packages no longer need to specify this variable in cfg.mk
21337
21338 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21339
21340         rename.m4: fix typos that would make non-mingw cross-configure fail
21341         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21342
21343 2009-05-13  Eric Blake  <ebb9@byu.net>
21344
21345         mmap-anon: avoid out-of-order autoconf expansion
21346         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21347         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21348         * modules/memchr-tests (Depends-on): Add extensions.
21349         * modules/memchr2-tests (Depends-on): Add extensions.
21350         * modules/memcmp-tests (Depends-on): Add extensions.
21351         * modules/memmem-tests (Depends-on): Add extensions.
21352         * modules/memrchr-tests (Depends-on): Add extensions.
21353
21354 2009-05-13  Bruno Haible  <bruno@clisp.org>
21355
21356         Make some tests ISO C 99 compliant.
21357         * tests/zerosize-ptr.h: New file.
21358         * tests/test-memchr.c: Include zerosize-ptr.h.
21359         (main): Use a zero-size object pointer instead of NULL.
21360         * tests/test-memchr2.c: Include zerosize-ptr.h.
21361         (main): Use a zero-size object pointer instead of NULL.
21362         * tests/test-memcmp.c: Include zerosize-ptr.h.
21363         (main): Use a zero-size object pointer instead of NULL.
21364         * tests/test-memmem.c: Include zerosize-ptr.h.
21365         (main): Use a zero-size object pointer instead of NULL.
21366         * tests/test-memrchr.c: Include zerosize-ptr.h.
21367         (main): Use a zero-size object pointer instead of NULL.
21368         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21369         m4/mmap-anon.m4.
21370         (Depends-on): Add getpagesize.
21371         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21372         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21373         m4/mmap-anon.m4.
21374         (Depends-on): Add getpagesize.
21375         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21376         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21377         m4/mmap-anon.m4.
21378         (Depends-on): Add getpagesize.
21379         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21380         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21381         m4/mmap-anon.m4.
21382         (Depends-on): Add getpagesize.
21383         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21384         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21385         m4/mmap-anon.m4.
21386         (Depends-on): Add getpagesize.
21387         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21388
21389 2009-05-12  Bruno Haible  <bruno@clisp.org>
21390
21391         Tests for module 'alignof'.
21392         * modules/alignof-tests: New file.
21393         * tests/test-alignof.c: New file.
21394
21395 2009-05-12  Bruno Haible  <bruno@clisp.org>
21396
21397         Fix alignof macro.
21398         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21399         vendor compilers that are always correct.
21400
21401 2009-05-12  Bruno Haible  <bruno@clisp.org>
21402
21403         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21404         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21405         not whether its fully works.
21406
21407 2009-05-12  Bruno Haible  <bruno@clisp.org>
21408
21409         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21410
21411 2009-05-12  Jim Meyering  <meyering@redhat.com>
21412
21413         * top/maint.mk: Adjust backslash alignment.
21414
21415 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21416
21417         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21418
21419 2009-05-11  Eric Blake  <ebb9@byu.net>
21420
21421         argp: avoid undefined behavior
21422         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21423         macros.
21424
21425 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21426
21427         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21428         user.name to prevent git commit from complaining.
21429
21430 2009-05-10  Bruno Haible  <bruno@clisp.org>
21431
21432         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21433         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21434         it rewrites every file name only once.
21435         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21436
21437 2009-05-08  Bruno Haible  <bruno@clisp.org>
21438
21439         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21440         instead of 'max'.
21441
21442 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21443
21444         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21445         sockaddr_storage test.
21446
21447 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21448
21449         * modules/sys_socket (Makefile.am): Substitute
21450         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21451         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21452         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21453         * tests/test-sys_socket.c: Check sockaddr_storage.
21454
21455 2009-05-08  Bruno Haible  <bruno@clisp.org>
21456
21457         New module 'alignof'.
21458         * lib/alignof.h: New file.
21459         * modules/alignof: New file.
21460
21461 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21462             Bruno Haible  <bruno@clisp.org>
21463
21464         Fix test-file-has-acl on FreeBSD.
21465         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21466         mask is implicitly added.
21467         * tests/test-file-has-acl.c: Include <signal.h>.
21468         (main): Terminate the test after 5 seconds.
21469         * modules/acl-tests (configure.ac): Check for alarm function.
21470
21471 2009-05-04  Bruno Haible  <bruno@clisp.org>
21472
21473         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21475         * modules/errno (configure.ac): Drop AC_REQUIRE.
21476         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21477         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21478
21479 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21480
21481         * modules/glob-tests: New module.
21482         * tests/test-glob.c: Add.
21483
21484 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21485
21486         * modules/fnmatch-tests: New module.
21487         * tests/test-fnmatch.c: Add.
21488
21489 2009-05-04  Eric Blake  <ebb9@byu.net>
21490
21491         maint: make the new no-submodule-changes rule VPATH-safe
21492         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21493
21494 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21495             Bruno Haible  <bruno@clisp.org>
21496
21497         acl: Fix infinite loop on FreeBSD.
21498         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21499         of return value from acl_get_entry.
21500         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21501         Likewise.
21502
21503 2009-05-03  Bruno Haible  <bruno@clisp.org>
21504
21505         * lib/acl-internal.h (acl_entries): Clarify return value.
21506         * lib/acl_entries.c (acl_entries): Likewise.
21507
21508 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21509
21510         Bug fix in acl module.
21511         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21512
21513 2009-05-03  Bruno Haible  <bruno@clisp.org>
21514
21515         Create gperf-generated file in the source dir, not in the build dir.
21516         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21517         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21518         * modules/unicase/locale-language (unicase/locale-languages.h):
21519         Likewise.
21520         * modules/unicase/special-casing (unicase/special-casing-table.h):
21521         Likewise.
21522         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21523         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21524         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21525         Reported by Ralf Wildenhues.
21526
21527 2009-05-03  Bruno Haible  <bruno@clisp.org>
21528
21529         * modules/fnmatch (Description, configure.ac): Taken from
21530         fnmatch-posix.
21531         * modules/fnmatch-posix: Turn into a symbolic reference to the
21532         'fnmatch' module, and deprecate.
21533         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21534
21535 2009-05-03  Bruno Haible  <bruno@clisp.org>
21536
21537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21538         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21539         Reported by Ralf Wildenhues.
21540
21541 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21542
21543         * m4/fnmatch.m4: Fix fnmatch re-define.
21544
21545 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21546
21547         priv-set: new module and tests; adapt write-any-file
21548         * lib/priv-set.c: New file.
21549         * lib/priv-set.h: New file.
21550         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21551         * lib/write-any-file.c: Simplify by using priv-set module.
21552         * m4/priv-set.m4: New file.
21553         * modules/priv-set: New file.
21554         * modules/unlinkdir: Add dependency on priv-set module.
21555         * modules/write-any-file: Likewise.
21556
21557         Tests for module 'priv-set'.
21558         * modules/priv-set-tests: New file.
21559         * tests/test-priv-set.c: New file.
21560
21561 2009-05-03  Jim Meyering  <meyering@redhat.com>
21562             Bruno Haible  <bruno@clisp.org>
21563
21564         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21565         use the converted UTF-8 variant of the name instead.
21566
21567 2009-05-03  Jim Meyering  <meyering@redhat.com>
21568
21569         tests: tighten some getdate tests
21570         * tests/test-getdate.c (main): Tighten tests: require equality,
21571         not just greater than.  Set TZ envvar to UTC0.
21572
21573 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21574
21575         getdate: correctly interpret "next monday" when run on a Monday
21576         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21577         that e.g., "next tues" (when run on a tuesday) results in a date
21578         that is one week in the future, and not today's date.
21579         I.e., add a week when the wday is the same as the current one.
21580         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21581         and earlier by Martin Bernreuther and Jan Minář.
21582         * tests/test-getdate.c (main): Check that "next DAY" is always in
21583         the future and that "last DAY" is always in the past.
21584
21585 2009-05-02  Jim Meyering  <meyering@redhat.com>
21586
21587         build: ensure that a release build fails when a submodule is unclean
21588         * top/maint.mk (no-submodule-changes): New rule.
21589         (alpha beta major): Depend on it.
21590
21591 2009-05-02  Bruno Haible  <bruno@clisp.org>
21592
21593         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21594         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21595         shell variable gl_fnmatch_required to detect which variant is
21596         requested.
21597         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21598         gl_FUNC_FNMATCH_POSIX.
21599         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21600         exclude fnmatch-posix.
21601
21602 2009-05-02  Bruno Haible  <bruno@clisp.org>
21603
21604         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21605         * modules/mbsrtowcs (License): Change to LGPLv2+.
21606         * modules/strnlen1 (License): Likewise.
21607         Reported by Simon Josefsson.
21608
21609 2009-05-02  Bruno Haible  <bruno@clisp.org>
21610
21611         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21612         "cross".
21613         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21614         gnulib-tool was called with option --source-base=lib.
21615
21616 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21617
21618         Use automake *-local hooks without commands, for extensibility.
21619         * modules/localcharset (Makefile.am): Rename install-exec-local
21620         rule to install-exec-localcharset, and make it a prerequisite of
21621         install-exec-local.  Likewise, rename the uninstall-local rule to
21622         uninstall-localcharset, and make it a prerequisite of the former.
21623
21624 2009-05-01  Bruno Haible  <bruno@clisp.org>
21625
21626         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21627         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21628         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21630         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21631         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21632         m4/locale-zh.m4, m4/codeset.m4.
21633
21634         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21635         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21636         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21637         m4/locale-zh.m4.
21638
21639         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21640         REPLACE_WCRTOMB if mbstate_t must be replaced.
21641         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21642         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21643
21644 2009-05-01  Bruno Haible  <bruno@clisp.org>
21645
21646         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21647         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21648         dngettext, dcngettext, textdomain, bindtextdomain,
21649         bind_textdomain_codeset): Undefine before redefining.
21650
21651 2009-04-30  Bruno Haible  <bruno@clisp.org>
21652
21653         Fix bug introduced on 2009-04-25.
21654         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21655         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21656         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21657         is defined.
21658         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21659         is defined.
21660         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21661         is defined.
21662         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21663
21664 2009-04-28  Bruno Haible  <bruno@clisp.org>
21665
21666         Comment tweaks.
21667         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21668         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21669         * lib/unicase.h (u*_casexfrm): Likewise.
21670         Reported by Paolo Bonzini.
21671
21672 2009-04-28  Bruno Haible  <bruno@clisp.org>
21673
21674         Fix a compilation error.
21675         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21676         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21677         Reported by Jim Meyering.
21678
21679 2009-04-27  Bruno Haible  <bruno@clisp.org>
21680
21681         New module 'libunistring'.
21682         * modules/libunistring: New file.
21683         * m4/libunistring.m4: New file.
21684         * MODULES.html.sh (Unicode string functions): Add it.
21685
21686 2009-04-27  Eric Blake  <ebb9@byu.net>
21687
21688         maint.mk: allow package-specific header to provide <config.h>
21689         * top/maint.mk (sc_require_config_h): New variable.
21690         (sc_require_config_h, sc_require_config_h_first): Use it.
21691
21692 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21693
21694         * top/maint.mk (sc_avoid_if_before_free): Except
21695         useless-if-before-free script.
21696
21697 2009-04-27  Eric Blake  <ebb9@byu.net>
21698
21699         maintainer-makefile: depend on all required helper scripts
21700         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21701         useless-if-before-free.
21702         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21703         version, rather than assuming gnulib checkout is available.
21704         Reported by Simen Josefsson.
21705
21706 2009-04-26  Bruno Haible  <bruno@clisp.org>
21707
21708         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21709         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21710         "../" or "..".
21711
21712 2009-04-26  Bruno Haible  <bruno@clisp.org>
21713
21714         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21715         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21716         AC_LIB_HAVE_LINKFLAGS.
21717
21718 2009-04-26  Bruno Haible  <bruno@clisp.org>
21719
21720         Simplify calling convention of u*_conv_from_encoding.
21721         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21722         u32_conv_from_encoding): Expect a resultbuf argument and return the
21723         result directly as a pointer.
21724         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21725         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21726         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21727         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21728         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21729         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21730         Update.
21731         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21732         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21733         * lib/vasnprintf.c (VASNPRINTF): Update.
21734         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21735         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21736         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21737         * NEWS: Mention the change.
21738
21739 2009-04-26  Bruno Haible  <bruno@clisp.org>
21740
21741         Simplify calling convention of u*_conv_to_encoding.
21742         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21743         u32_conv_to_encoding): Expect a resultbuf argument and return the
21744         result directly as a pointer.
21745         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21746         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21747         freeing scaled_offsets if mem_iconveha failed.
21748         * lib/unicase/u-casexfrm.h (FUNC): Update.
21749         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21750         * lib/vasnprintf.c (VASNPRINTF): Update.
21751         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21752         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21753         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21754         * NEWS: Mention the change.
21755
21756 2009-04-26  Bruno Haible  <bruno@clisp.org>
21757
21758         Avoid test failures on AIX and OSF/1.
21759         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21760         malloc(0).
21761         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21762         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21763         Likewise.
21764         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21765         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21766         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21767         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21768         * doc/posix-functions/malloc.texi: Document the portability problem
21769         related to malloc(0).
21770
21771 2009-04-26  Bruno Haible  <bruno@clisp.org>
21772
21773         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21774         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21775         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21776
21777 2009-04-25  Bruno Haible  <bruno@clisp.org>
21778
21779         Avoid link error when creating a namespace clean library.
21780         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21781         as macro with arguments if already defined as an alias.
21782         * lib/signbitf.c (gl_signbitf): Don't undefine.
21783         * lib/signbitd.c (gl_signbitd): Don't undefine.
21784         * lib/signbitl.c (gl_signbitl): Don't undefine.
21785
21786 2009-04-25  Jim Meyering  <meyering@redhat.com>
21787
21788         vc-list-files: fix another quoting bug
21789         * build-aux/vc-list-files: Avoid sed backslash expansion
21790         of pathological directory names.
21791
21792 2009-04-25  Eric Blake  <ebb9@byu.net>
21793
21794         vc-list-files: fix shell quoting error
21795         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21796         timestamp.
21797
21798 2009-04-25  Jim Meyering  <meyering@redhat.com>
21799
21800         vc-list-files: restore lost functionality with subdir argument
21801         * build-aux/vc-list-files: When given a non-"." sub-directory
21802         argument, substitute the $dir/ prefix back onto each resulting name.
21803         Otherwise, coreutils' root_tests check would fail.
21804
21805 2009-04-24  Eric Blake  <ebb9@byu.net>
21806
21807         vc-list-files: ignore git symlinks
21808         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21809         than ls-files, to ignore git symlinks.
21810
21811         maint.mk: import improvements from m4
21812         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21813         (move_if_change): Delete unused macro.
21814         (news-date-check, vc-diff-check): Support VPATH builds.
21815         (announcement): Likewise.  Split --bootstrap-tools list...
21816         (boostrap-tools): ...into separate list, which can be overridden
21817         in cfg.mk.
21818         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21819         requiring dependency on useless-if-before-free module.
21820         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21821         Support VPATH builds.
21822
21823 2009-04-24  Jim Meyering  <meyering@redhat.com>
21824
21825         maint.mk: remove coreutils-specific rules and variables
21826         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21827         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21828         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21829
21830         maint.mk: remove obsolete rule
21831         * top/maint.mk (rel-check): Remove rule.
21832         (WGET, WGETFLAGS): Remove now-unused variables.
21833
21834 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21835
21836         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21837         consistency.
21838
21839         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21840         '$(PATH_SEPARATOR)' instead of ':'.
21841
21842 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21843
21844         * lib/getopt1.c (main): Use 'const' for static array.
21845
21846 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21847
21848         * top/maint.mk: Sync with coreutils.
21849         * NEWS: Explain incompatibilities.
21850
21851 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21852             Bruno Haible  <bruno@clisp.org>
21853
21854         Fix cross-compilation results.
21855         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21856         statement, as third argument of AC_TRY_RUN.
21857         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21858         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21859         Likewise.
21860         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21861         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21862         Likewise.
21863         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21864         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
21865         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
21866
21867 2009-04-20  Bruno Haible  <bruno@clisp.org>
21868
21869         Avoid test failure on mingw.
21870         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
21871
21872 2009-04-20  Bruno Haible  <bruno@clisp.org>
21873
21874         Avoid compilation error on mingw.
21875         * modules/localename-tests (Depends-on): Add locale.
21876
21877 2009-04-19  Bruno Haible  <bruno@clisp.org>
21878
21879         Support for building a shared library on Windows platforms.
21880         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
21881         (main): Test the presence of UNINORM_NFC here.
21882         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
21883         (main): Test the presence of UNINORM_NFD here.
21884         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
21885         (main): Test the presence of UNINORM_NFKC here.
21886         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
21887         (main): Test the presence of UNINORM_NFKD here.
21888
21889 2009-04-19  Bruno Haible  <bruno@clisp.org>
21890
21891         Avoid a compiler warning.
21892         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
21893         Change type of variable 'sequence'.
21894
21895 2009-04-19  Bruno Haible  <bruno@clisp.org>
21896
21897         * modules/configmake (Makefile.am): When the contents of configmake.h
21898         does not change, arrange to preserve its modification time.
21899
21900 2009-04-17  Simon Josefsson  <simon@josefsson.org>
21901
21902         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
21903         gettext domain.
21904
21905 2009-04-16  Jim Meyering  <meyering@redhat.com>
21906
21907         useless-if-before-free: improve conversion code
21908         * build-aux/useless-if-before-free: Adjust code-in-comment to match
21909         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
21910
21911 2009-04-14  Bruno Haible  <bruno@clisp.org>
21912
21913         * modules/fcntl (Depends-on): Add extensions.
21914         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
21915
21916 2009-04-12  Ben Pfaff  <blp@gnu.org>
21917
21918         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
21919         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
21920
21921 2009-03-20  Ben Pfaff  <blp@gnu.org>
21922
21923         Make rename replace existing destinations on Windows.
21924         * m4/rename.m4: Add test for Mingw.
21925         * lib/rename.c: Add rename replacement that uses MoveFileEx with
21926         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
21927         * doc/posix-functions/rename.texi: Document.
21928
21929 2009-04-10  Bruno Haible  <bruno@clisp.org>
21930
21931         New include file "iconveh.h".
21932         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
21933         * lib/striconveh.h: Include it.
21934         (enum iconv_ilseq_handler): Remove definition.
21935         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
21936         striconveh.h.
21937         * lib/striconveha.c: Include striconveh.h.
21938         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
21939         * modules/striconveh (Files): Add lib/iconveh.h.
21940         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
21941         lib/striconveh.h.
21942
21943 2009-04-10  Bruno Haible  <bruno@clisp.org>
21944
21945         * lib/uniconv.h: Update comment.
21946
21947 2009-04-10  Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
21950         always.
21951         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21952         * lib/unistr/u16-mbtouc-aux.c: Likewise.
21953         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21954         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
21955         "unistring-notinline.h", so that the function gets defined always.
21956         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21957         * lib/unistr/u8-uctomb.c: Likewise.
21958         * lib/unistr/u16-mbtouc.c: Likewise.
21959         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21960         * lib/unistr/u16-uctomb.c: Likewise.
21961         * lib/unistr/u32-mbtouc.c: Likewise.
21962         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21963         * lib/unistr/u32-uctomb.c: Likewise.
21964
21965 2009-04-10  Bruno Haible  <bruno@clisp.org>
21966
21967         Mark 'utime' obsolete.
21968         * modules/utime (Status, Notice): New sections.
21969         Suggested by Jim Meyering.
21970
21971         Fix cross-compile guess for utime test.
21972         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
21973         autoconf.
21974         * doc/posix-functions/utime.texi: Give more precisions.
21975         Reported by Jan <ipif@ymail.com>.
21976
21977 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
21978
21979         filevercmp: correct today's change
21980         * lib/filevercmp.c: Also handle coreutils' test inputs.
21981         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
21982
21983         Fix regression in 'filevercmp' module. Thanks Sven Joachim
21984         for reporting it.
21985         * lib/filevercmp.c: Special handle for "", "." and "..".
21986         * tests/test-filevercmp.c: Enlarge the set suite.
21987
21988 2009-04-07  Jim Meyering  <meyering@redhat.com>
21989
21990         useless-if-before-free: show how to remove braced useless free, too
21991         * build-aux/useless-if-before-free: still only in a comment, though.
21992
21993 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
21994
21995         maint.mk: import changes to syntax-check macros from coreutils
21996         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
21997         Use them in the relevant macros.
21998
21999 2009-04-06  Bruno Haible  <bruno@clisp.org>
22000
22001         Fix unportable use of bit-fields.
22002         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22003         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22004         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22005
22006 2009-04-06  Bruno Haible  <bruno@clisp.org>
22007
22008         Avoid test failures on AIX and OSF/1.
22009         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22010         that malloc(0) = NULL.
22011         * tests/unicase/test-u8-tolower.c (check): Likewise.
22012         * tests/unicase/test-u8-totitle.c (check): Likewise.
22013         * tests/unicase/test-u8-toupper.c (check): Likewise.
22014         * tests/unicase/test-u16-casefold.c (check): Likewise.
22015         * tests/unicase/test-u16-tolower.c (check): Likewise.
22016         * tests/unicase/test-u16-totitle.c (check): Likewise.
22017         * tests/unicase/test-u16-toupper.c (check): Likewise.
22018         * tests/unicase/test-u32-casefold.c (check): Likewise.
22019         * tests/unicase/test-u32-tolower.c (check): Likewise.
22020         * tests/unicase/test-u32-totitle.c (check): Likewise.
22021         * tests/unicase/test-u32-toupper.c (check): Likewise.
22022         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22023         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22024         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22025         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22026         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22027         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22028         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22029         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22030         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22031         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22032         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22033         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22034
22035 2009-04-05  Bruno Haible  <bruno@clisp.org>
22036
22037         Work around an autoconf limitation.
22038         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22039         comment line if it would be longer than 3 KB.
22040
22041 2009-04-05  Bruno Haible  <bruno@clisp.org>
22042
22043         Avoid test failure with libiconv-1.13.
22044         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22045         of the expected test results.
22046
22047 2009-04-05  Bruno Haible  <bruno@clisp.org>
22048
22049         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22050         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22051         that it should be installed.
22052
22053 2009-04-05  Bruno Haible  <bruno@clisp.org>
22054
22055         * gnulib-tool: New option --copy-file.
22056         (func_usage): Document it.
22057         (func_dest_tmpfilename): Moved out of func_import.
22058         (func_add_file, func_update_file): New functions, extracted from
22059         func_import.
22060         (func_import): Update.
22061
22062 2009-04-05  Karl Berry  <karl@gnu.org>
22063
22064         * README: prominently mention gnulib-tool.
22065         Rearrange sections so getting the code is near the top.
22066
22067 2009-04-05  Bruno Haible  <bruno@clisp.org>
22068
22069         * lib/unicase.h: Mention u*_cmp2.
22070         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22071         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22072         * lib/unicase/ulc-casecmp.c: Likewise.
22073         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22074         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22075         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22076         unistr/u8-cmp.
22077         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22078         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22079         unistr/u16-cmp.
22080         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22081         unistr/u32-cmp.
22082
22083         * lib/uninorm.h: Mention u*_cmp2.
22084         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22085         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22086         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22087         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22088         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22089         unistr/u8-cmp.
22090         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22091         unistr/u16-cmp.
22092         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22093         unistr/u32-cmp.
22094
22095         New module 'unistr/u32-cmp2'.
22096         * lib/unistr/u32-cmp2.c: New file.
22097         * modules/unistr/u32-cmp2: New file.
22098
22099         New module 'unistr/u16-cmp2'.
22100         * lib/unistr/u16-cmp2.c: New file.
22101         * modules/unistr/u16-cmp2: New file.
22102
22103         New module 'unistr/u8-cmp2'.
22104         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22105         * lib/unistr/u8-cmp2.c: New file.
22106         * lib/unistr/u-cmp2.h: New file.
22107         * modules/unistr/u8-cmp2: New file.
22108
22109 2009-04-05  Bruno Haible  <bruno@clisp.org>
22110
22111         * lib/unictype.h (uc_property_is_valid): New macro.
22112         * tests/unictype/test-pr_byname.c (main): Use it.
22113
22114         * lib/unistr.h: Doc fixes.
22115         * lib/uniconv.h: Doc fixes.
22116         * lib/unictype.h: Doc fixes.
22117
22118 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22119
22120         Port coreutils 7.2 to Solaris 8.
22121
22122         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22123         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22124         for Solaris 8.  This is a bit of a hack, as it means it's the
22125         caller's responsibility to add -lnsl if needed, but most likely it
22126         won't be needed since only getaddrinfo uses this and getaddrinfo
22127         isn't needed on Solaris 8.
22128
22129         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22130         problem to Solaris 8 encountered with coreutils 7.2, which
22131         resulted in a message "fnmatch.c:292: warning: passing argument 4
22132         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22133         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22134
22135 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22136
22137         * m4/ld-version-script.m4: Add FIXME comment.
22138
22139 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22140
22141         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22142         SOVERSION variable.
22143
22144 2009-04-02  Bruno Haible  <bruno@clisp.org>
22145
22146         * Makefile (info, html, dvi, pdf): Combine the rules.
22147         Suggested by Jim Meyering.
22148
22149 2009-04-01  Bruno Haible  <bruno@clisp.org>
22150
22151         * Makefile (info, html, dvi, pdf): New targets.
22152         Reported by Reuben Thomas <rrt@sc3d.org>.
22153
22154 2009-04-01  Bruno Haible  <bruno@clisp.org>
22155
22156         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22157         can be put into PATH.
22158         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22159
22160 2009-04-01  Bruno Haible  <bruno@clisp.org>
22161
22162         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22163
22164 2009-04-01  Bruno Haible  <bruno@clisp.org>
22165
22166         Rename module 'visibility'.
22167         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22168         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22169         * doc/gnulib.texi: Update.
22170         * MODULES.html.sh (Misc): Update.
22171         * NEWS: Mention the change.
22172
22173 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22174
22175         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22176         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22177         Eric Blake <ebb9@byu.net> for review.
22178         * MODULES.html.sh: Add lib-msvc-compat.
22179         * doc/gnulib.texi: Link to new section.
22180         * m4/ld-output-def.m4: New file.
22181         * doc/ld-output-def.texi: New file.
22182
22183 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22184
22185         Rename ld-version-script to lib-symbol-versions.  Suggested by
22186         Bruno Haible <bruno@clisp.org>.
22187         * modules/ld-version-script: Renamed to lib-symbol-versions.
22188         * doc/ld-version-script.texi: Fix module name.
22189         * MODULES.html.sh: Add lib-symbol-versions.
22190
22191 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22192
22193         * modules/u64-tests: New file.
22194         * tests/test-u64.c: New file.
22195
22196 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22197
22198         * MODULES.html.sh: Mention u64.
22199         * modules/u64: New module.
22200         * modules/crypto/sha512: Depend on u64 module instead of providing
22201         u64.h.
22202
22203 2009-03-27  Eric Blake  <ebb9@byu.net>
22204
22205         test-strerror: make debugging EAI_SYSTEM easier
22206         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22207         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22208         failure was EAI_SYSTEM.
22209
22210 2009-03-25  Bruno Haible  <bruno@clisp.org>
22211
22212         Fix a problem with --enable-relocatable on Solaris 7.
22213         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22214         since 2008-02-24.
22215
22216 2009-03-25  Eric Blake  <ebb9@byu.net>
22217
22218         test-sockets: avoid gcc warning
22219         * tests/test-sockets.c (main): Silence compiler warning.
22220
22221 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22222
22223         New modules nproc, pthread, contributed by Glen Lenker.
22224
22225         * MODULES.html.sh: Add pthread, nproc.
22226         * lib/nproc.c: New file.
22227         * lib/nproc.h: New file.
22228         * lib/pthread.in.h: New file.
22229         * m4/pthread.m4: New file.
22230         * modules/nproc: New file.
22231         * modules/pthread: New file.
22232
22233 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22234
22235         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22236         New variable.
22237
22238 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22239
22240         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22241         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22242         * tests/test-filevercmp.c: Add tests for backup suffixes.
22243
22244 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22245
22246         * modules/stdlib (Depends-on): Add stdint, needed when defining
22247         struct random_data on, for example, HP-UX 10.20.  Reported by
22248         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22249
22250 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22251
22252         * lib/readline.c (readline): Call fflush on stdout after printing
22253         prompt.
22254
22255 2009-03-20  Bruno Haible  <bruno@clisp.org>
22256
22257         Remove dependency from 'close' module to -lws2_32 on native Windows.
22258         * lib/close-hook.h: New file.
22259         * lib/close-hook.c: New file.
22260         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22261         w32sock.h.
22262         (_gl_close_fd_maybe_socket): Remove function.
22263         (rpl_close): Invoke execute_all_close_hooks instead of
22264         _gl_close_fd_maybe_socket.
22265         * lib/sockets.c: Include close-hook.h, w32sock.h.
22266         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22267         (close_sockets_hook): New variable.
22268         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22269         (gl_sockets_cleanup): Unregister it.
22270         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22271         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22272         * modules/close-hook: New file.
22273         * modules/close (Files): Remove lib/w32sock.h.
22274         (Depends-on): Add close-hook.
22275         (Link): Remove section.
22276         * modules/sockets (Files): Add lib/w32sock.h.
22277         (Depends-on): Add close-hook.
22278         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22279         invocation.
22280         * NEWS: Mention that LIB_CLOSE is gone.
22281
22282 2009-03-23  Eric Blake  <ebb9@byu.net>
22283
22284         signal-tests: test previous patch
22285         * tests/test-signal.c: New file.
22286         * modules/signal-tests: Likewise.
22287
22288         signal.h: always support 'volatile sig_atomic_t'
22289         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22290         (gl_SIGNAL_H_DEFAULTS): Add a default.
22291         * modules/signal (Makefile.am): Substitute if needed.
22292         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22293         users can blindly add volatile.
22294         * doc/posix-headers/signal.texi (signal.h): Document it.
22295         Reported by Matthew Woehlke.
22296
22297 2009-03-23  Jim Meyering  <meyering@redhat.com>
22298
22299         pathmax: PATH_MAX: use pathconf only when available
22300         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22301         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22302         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22303         This avoids a link failure in a PSP cross-compilation environment
22304         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22305
22306         * lib/vasnprintf.c (divide): Fix typo in comment.
22307
22308 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22309
22310         * gnulib-tool (func_filter_filelist): Fix comment.
22311
22312 2009-03-20  Bruno Haible  <bruno@clisp.org>
22313
22314         Make sockets.h self-contained.
22315         * lib/sockets.c: Include sockets.h first.
22316         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22317
22318 2009-03-19  Eric Blake  <ebb9@byu.net>
22319
22320         doc: mention more functions added in cygwin 1.7.0
22321         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22322         addition.
22323         * doc/posix-functions/log2f.texi: Likewise.
22324
22325 2009-03-19  Jim Meyering  <meyering@redhat.com>
22326
22327         fsusage: avoid syntax error due to statement-before-declaration
22328         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22329         after all declarations.  Reported by Matthew Woehlke in
22330         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22331
22332 2009-03-18  Eric Blake  <ebb9@byu.net>
22333
22334         build-aux/compile: sync from automake
22335         * build-aux/compile: New file, from automake.
22336         * config/srclist.txt: Mention build-aux/compile.
22337
22338 2009-03-17  Bruno Haible  <bruno@clisp.org>
22339
22340         * lib/git-merge-changelog.c: Fix typo in comment.
22341         Reported by Reuben Thomas <rrt@sc3d.org>.
22342
22343 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22344
22345         * m4/regex.m4: update and improve help for
22346         --without-included-regex.
22347
22348 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22349
22350         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22351         failure on missing include files.
22352
22353 2009-03-17  Eric Blake  <ebb9@byu.net>
22354
22355         doc: mention more functions added in cygwin 1.7.0
22356         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22357         addition.
22358         * doc/posix-functions/fwscanf.texi: Likewise.
22359         * doc/posix-functions/swprintf.texi: Likewise.
22360         * doc/posix-functions/swscanf.texi: Likewise.
22361         * doc/posix-functions/vfwprintf.texi: Likewise.
22362         * doc/posix-functions/vfwscanf.texi: Likewise.
22363         * doc/posix-functions/vswprintf.texi: Likewise.
22364         * doc/posix-functions/vswscanf.texi: Likewise.
22365         * doc/posix-functions/vwprintf.texi: Likewise.
22366         * doc/posix-functions/vwscanf.texi: Likewise.
22367         * doc/posix-functions/wcscasecmp.texi: Likewise.
22368         * doc/posix-functions/wcsdup.texi: Likewise.
22369         * doc/posix-functions/wcsftime.texi: Likewise.
22370         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22371         * doc/posix-functions/wprintf.texi: Likewise.
22372         * doc/posix-functions/wscanf.texi: Likewise.
22373         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22374
22375 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22376
22377         maint.mk: really add $(AM_MAKEFLAGS)
22378         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22379         was inadvertently omitted in the last commit.
22380         Spotted by Bruno Haible.
22381
22382         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22383         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22384         $(AM_MAKEFLAGS)' rather than plain `make'.
22385
22386         gnulib-tool: execute $MAKE not make
22387         * gnulib-tool: Default $MAKE to 'make'.
22388         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22389         than make.  Initialize $MAKE in the do-autobuild script.
22390
22391         gnulib-tool: use $MAKE not make in generated files
22392         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22393         make, in generated files.  Initialize $MAKE in the do-autobuild
22394         script.
22395
22396         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22397
22398         GNUmakefile: disable parallelism only for multiple, recursive targets
22399         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22400         additions in the Makefile.
22401         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22402         by Automake.
22403         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22404         are listed on the command line and at least one of them is
22405         listed in $(ALL_RECURSIVE_TARGETS).
22406
22407 2009-03-14  Bruno Haible  <bruno@clisp.org>
22408
22409         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22410         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22411         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22412         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22413         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22414         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22415         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22416         unistr/u8-uctomb.
22417         * modules/unistr/u8-strchr (Depends-on): Likewise.
22418         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22419         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22420         unistr/u16-uctomb.
22421         * modules/unistr/u16-strchr (Depends-on): Likewise.
22422         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22423
22424 2009-03-12  Bruno Haible  <bruno@clisp.org>
22425
22426         Work around select() bug on Interix 3.5.
22427         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22428         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22429         * m4/select.m4: New file.
22430         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22431         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22432         * modules/select (Files): Add m4/select.m4.
22433         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22434         * modules/nanosleep (Depends-on): Add select.
22435         * modules/poll (Depends-on): Likewise.
22436         * doc/posix-functions/select.texi: Mention the Interix bug.
22437         Reported by Markus Duft <mduft@gentoo.org>.
22438
22439         * lib/select.c: Renamed from lib/winsock-select.c.
22440         * modules/select (Files): Add lib/select.c, remove
22441         lib/winsock-select.c.
22442         (configure.ac): Update.
22443
22444 2009-03-12  Jim Meyering  <meyering@redhat.com>
22445
22446         avoid gcc warnings about unused macro definitions
22447         * lib/readtokens.c (STREQ): Remove unused definition.
22448         * lib/xmalloc.c (SIZE_MAX): Likewise.
22449         * lib/openat-die.c (N_): Likewise.
22450         * lib/mountlist.c (SIZE_MAX): Remove definition.
22451         Instead, include <stdint.h>.
22452         * lib/readutmp.c: Likewise.
22453         * modules/readutmp (Depends-on): Add stdint.
22454         * modules/mountlist (Depends-on): Add stdint.
22455         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22456
22457 2009-03-10  Bruno Haible  <bruno@clisp.org>
22458
22459         Tests for module 'mbmemcasecoll'.
22460         * modules/mbmemcasecoll-tests: New file.
22461         * tests/test-mbmemcasecoll1.sh: New file.
22462         * tests/test-mbmemcasecoll2.sh: New file.
22463         * tests/test-mbmemcasecoll3.sh: New file.
22464         * tests/test-mbmemcasecoll.c: New file.
22465
22466         New module 'mbmemcasecoll'.
22467         * lib/mbmemcasecoll.h: New file.
22468         * lib/mbmemcasecoll.c: New file.
22469         * modules/mbmemcasecoll: New file.
22470
22471         * tests/test-mbmemcasecmp.h: New file, extracted from
22472         tests/test-mbmemcasecmp.c.
22473         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22474         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22475         (main): Update.
22476         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22477
22478 2009-03-09  Bruno Haible  <bruno@clisp.org>
22479
22480         Tests for module 'mbmemcasecmp'.
22481         * modules/mbmemcasecmp-tests: New file.
22482         * tests/test-mbmemcasecmp1.sh: New file.
22483         * tests/test-mbmemcasecmp2.sh: New file.
22484         * tests/test-mbmemcasecmp3.sh: New file.
22485         * tests/test-mbmemcasecmp.c: New file.
22486
22487         New module 'mbmemcasecmp'.
22488         * lib/mbmemcasecmp.h: New file.
22489         * lib/mbmemcasecmp.c: New file.
22490         * modules/mbmemcasecmp: New file.
22491
22492 2009-03-09  Bruno Haible  <bruno@clisp.org>
22493
22494         Tests for module 'unicase/ulc-casecoll'.
22495         * modules/unicase/ulc-casecoll-tests: New file.
22496         * tests/unicase/test-ulc-casecoll1.sh: New file.
22497         * tests/unicase/test-ulc-casecoll2.sh: New file.
22498         * tests/unicase/test-ulc-casecoll.c: New file.
22499
22500         New module 'unicase/ulc-casecoll'.
22501         * lib/unicase.h (ulc_casecoll): New declaration.
22502         * lib/unicase/ulc-casecoll.c: New file.
22503         * modules/unicase/ulc-casecoll: New file.
22504
22505         New module 'unicase/ulc-casexfrm'.
22506         * lib/unicase.h (ulc_casexfrm): New declaration.
22507         * lib/unicase/ulc-casexfrm.c: New file.
22508         * modules/unicase/ulc-casexfrm: New file.
22509
22510 2009-03-09  Bruno Haible  <bruno@clisp.org>
22511
22512         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22513         invocations.
22514
22515         * m4/mbscasecmp.m4: Remove file.
22516         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22517         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22518
22519         * m4/mbscasestr.m4: Remove file.
22520         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22521         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22522
22523         * m4/mbschr.m4: Remove file.
22524         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22525         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22526
22527         * m4/mbscspn.m4: Remove file.
22528         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22529         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22530
22531         * m4/mbslen.m4: Remove file.
22532         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22533         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22534
22535         * m4/mbsncasecmp.m4: Remove file.
22536         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22537         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22538
22539         * m4/mbsnlen.m4: Remove file.
22540         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22541         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22542
22543         * m4/mbspbrk.m4: Remove file.
22544         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22545         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22546
22547         * m4/mbspcasecmp.m4: Remove file.
22548         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22549         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22550
22551         * m4/mbsrchr.m4: Remove file.
22552         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22553         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22554
22555         * m4/mbssep.m4: Remove file.
22556         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22557         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22558
22559         * m4/mbsspn.m4: Remove file.
22560         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22561         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22562
22563         * m4/mbsstr.m4: Remove file.
22564         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22565         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22566
22567         * m4/mbstok_r.m4: Remove file.
22568         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22569         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22570
22571         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22572
22573         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22574         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22575
22576         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22577
22578 2009-03-08  Bruno Haible  <bruno@clisp.org>
22579
22580         Tests for module 'unicase/ulc-casecmp'.
22581         * modules/unicase/ulc-casecmp-tests: New file.
22582         * tests/unicase/test-ulc-casecmp1.sh: New file.
22583         * tests/unicase/test-ulc-casecmp2.sh: New file.
22584         * tests/unicase/test-ulc-casecmp.c: New file.
22585
22586         New module 'unicase/ulc-casecmp'.
22587         * lib/unicase.h (ulc_casecmp): New declaration.
22588         * lib/unicase/ulc-casecmp.c: New file.
22589         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22590         'const SRC_UNIT *'.
22591         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22592         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22593         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22594         * modules/unicase/ulc-casecmp: New file.
22595
22596         Tests for module 'unicase/u32-is-cased'.
22597         * modules/unicase/u32-is-cased-tests: New file.
22598         * tests/unicase/test-u32-is-cased.c: New file.
22599
22600         Tests for module 'unicase/u16-is-cased'.
22601         * modules/unicase/u16-is-cased-tests: New file.
22602         * tests/unicase/test-u16-is-cased.c: New file.
22603
22604         Tests for module 'unicase/u8-is-cased'.
22605         * modules/unicase/u8-is-cased-tests: New file.
22606         * tests/unicase/test-u8-is-cased.c: New file.
22607         * tests/unicase/test-is-cased.h: New file.
22608
22609         New module 'unicase/u32-is-cased'.
22610         * lib/unicase/u32-is-cased.c: New file.
22611         * modules/unicase/u32-is-cased: New file.
22612
22613         New module 'unicase/u16-is-cased'.
22614         * lib/unicase/u16-is-cased.c: New file.
22615         * modules/unicase/u16-is-cased: New file.
22616
22617         New module 'unicase/u8-is-cased'.
22618         * lib/unicase/u8-is-cased.c: New file.
22619         * lib/unicase/u-is-cased.h: New file.
22620         * modules/unicase/u8-is-cased: New file.
22621
22622         Tests for module 'unicase/u32-is-casefolded'.
22623         * modules/unicase/u32-is-casefolded-tests: New file.
22624         * tests/unicase/test-u32-is-casefolded.c: New file.
22625
22626         Tests for module 'unicase/u16-is-casefolded'.
22627         * modules/unicase/u16-is-casefolded-tests: New file.
22628         * tests/unicase/test-u16-is-casefolded.c: New file.
22629
22630         Tests for module 'unicase/u8-is-casefolded'.
22631         * modules/unicase/u8-is-casefolded-tests: New file.
22632         * tests/unicase/test-u8-is-casefolded.c: New file.
22633         * tests/unicase/test-is-casefolded.h: New file.
22634
22635         New module 'unicase/u32-is-casefolded'.
22636         * lib/unicase/u32-is-casefolded.c: New file.
22637         * modules/unicase/u32-is-casefolded: New file.
22638
22639         New module 'unicase/u16-is-casefolded'.
22640         * lib/unicase/u16-is-casefolded.c: New file.
22641         * modules/unicase/u16-is-casefolded: New file.
22642
22643         New module 'unicase/u8-is-casefolded'.
22644         * lib/unicase/u8-is-casefolded.c: New file.
22645         * modules/unicase/u8-is-casefolded: New file.
22646
22647         Tests for module 'unicase/u32-is-titlecase'.
22648         * modules/unicase/u32-is-titlecase-tests: New file.
22649         * tests/unicase/test-u32-is-titlecase.c: New file.
22650
22651         Tests for module 'unicase/u16-is-titlecase'.
22652         * modules/unicase/u16-is-titlecase-tests: New file.
22653         * tests/unicase/test-u16-is-titlecase.c: New file.
22654
22655         Tests for module 'unicase/u8-is-titlecase'.
22656         * modules/unicase/u8-is-titlecase-tests: New file.
22657         * tests/unicase/test-u8-is-titlecase.c: New file.
22658         * tests/unicase/test-is-titlecase.h: New file.
22659
22660         New module 'unicase/u32-is-titlecase'.
22661         * lib/unicase/u32-is-titlecase.c: New file.
22662         * modules/unicase/u32-is-titlecase: New file.
22663
22664         New module 'unicase/u16-is-titlecase'.
22665         * lib/unicase/u16-is-titlecase.c: New file.
22666         * modules/unicase/u16-is-titlecase: New file.
22667
22668         New module 'unicase/u8-is-titlecase'.
22669         * lib/unicase/u8-is-titlecase.c: New file.
22670         * modules/unicase/u8-is-titlecase: New file.
22671
22672         Tests for module 'unicase/u32-is-lowercase'.
22673         * modules/unicase/u32-is-lowercase-tests: New file.
22674         * tests/unicase/test-u32-is-lowercase.c: New file.
22675
22676         Tests for module 'unicase/u16-is-lowercase'.
22677         * modules/unicase/u16-is-lowercase-tests: New file.
22678         * tests/unicase/test-u16-is-lowercase.c: New file.
22679
22680         Tests for module 'unicase/u8-is-lowercase'.
22681         * modules/unicase/u8-is-lowercase-tests: New file.
22682         * tests/unicase/test-u8-is-lowercase.c: New file.
22683         * tests/unicase/test-is-lowercase.h: New file.
22684
22685         New module 'unicase/u32-is-lowercase'.
22686         * lib/unicase/u32-is-lowercase.c: New file.
22687         * modules/unicase/u32-is-lowercase: New file.
22688
22689         New module 'unicase/u16-is-lowercase'.
22690         * lib/unicase/u16-is-lowercase.c: New file.
22691         * modules/unicase/u16-is-lowercase: New file.
22692
22693         New module 'unicase/u8-is-lowercase'.
22694         * lib/unicase/u8-is-lowercase.c: New file.
22695         * modules/unicase/u8-is-lowercase: New file.
22696
22697         Tests for module 'unicase/u32-is-uppercase'.
22698         * modules/unicase/u32-is-uppercase-tests: New file.
22699         * tests/unicase/test-u32-is-uppercase.c: New file.
22700
22701         Tests for module 'unicase/u16-is-uppercase'.
22702         * modules/unicase/u16-is-uppercase-tests: New file.
22703         * tests/unicase/test-u16-is-uppercase.c: New file.
22704
22705         Tests for module 'unicase/u8-is-uppercase'.
22706         * modules/unicase/u8-is-uppercase-tests: New file.
22707         * tests/unicase/test-u8-is-uppercase.c: New file.
22708         * tests/unicase/test-is-uppercase.h: New file.
22709
22710         New module 'unicase/u32-is-uppercase'.
22711         * lib/unicase/u32-is-uppercase.c: New file.
22712         * modules/unicase/u32-is-uppercase: New file.
22713
22714         New module 'unicase/u16-is-uppercase'.
22715         * lib/unicase/u16-is-uppercase.c: New file.
22716         * modules/unicase/u16-is-uppercase: New file.
22717
22718         New module 'unicase/u8-is-uppercase'.
22719         * lib/unicase/u8-is-uppercase.c: New file.
22720         * modules/unicase/u8-is-uppercase: New file.
22721
22722         New module 'unicase/u32-is-invariant'.
22723         * lib/unicase/u32-is-invariant.c: New file.
22724         * modules/unicase/u32-is-invariant: New file.
22725
22726         New module 'unicase/u16-is-invariant'.
22727         * lib/unicase/u16-is-invariant.c: New file.
22728         * modules/unicase/u16-is-invariant: New file.
22729
22730         New module 'unicase/u8-is-invariant'.
22731         * lib/unicase/u8-is-invariant.c: New file.
22732         * lib/unicase/invariant.h: New file.
22733         * lib/unicase/u-is-invariant.h: New file.
22734         * modules/unicase/u8-is-invariant: New file.
22735
22736         Tests for module 'unicase/u32-casecoll'.
22737         * modules/unicase/u32-casecoll-tests: New file.
22738         * tests/unicase/test-u32-casecoll.c: New file.
22739
22740         Tests for module 'unicase/u16-casecoll'.
22741         * modules/unicase/u16-casecoll-tests: New file.
22742         * tests/unicase/test-u16-casecoll.c: New file.
22743
22744         Tests for module 'unicase/u8-casecoll'.
22745         * modules/unicase/u8-casecoll-tests: New file.
22746         * tests/unicase/test-u8-casecoll.c: New file.
22747
22748         New module 'unicase/u32-casecoll'.
22749         * lib/unicase/u32-casecoll.c: New file.
22750         * modules/unicase/u32-casecoll: New file.
22751
22752         New module 'unicase/u16-casecoll'.
22753         * lib/unicase/u16-casecoll.c: New file.
22754         * modules/unicase/u16-casecoll: New file.
22755
22756         New module 'unicase/u8-casecoll'.
22757         * lib/unicase/u8-casecoll.c: New file.
22758         * lib/unicase/u-casecoll.h: New file.
22759         * modules/unicase/u8-casecoll: New file.
22760
22761         New module 'unicase/u32-casexfrm'.
22762         * lib/unicase/u32-casexfrm.c: New file.
22763         * modules/unicase/u32-casexfrm: New file.
22764
22765         New module 'unicase/u16-casexfrm'.
22766         * lib/unicase/u16-casexfrm.c: New file.
22767         * modules/unicase/u16-casexfrm: New file.
22768
22769         New module 'unicase/u8-casexfrm'.
22770         * lib/unicase/u8-casexfrm.c: New file.
22771         * lib/unicase/u-casexfrm.h: New file.
22772         * modules/unicase/u8-casexfrm: New file.
22773
22774         Tests for module 'unicase/u32-casecmp'.
22775         * modules/unicase/u32-casecmp-tests: New file.
22776         * tests/unicase/test-u32-casecmp.c: New file.
22777
22778         Tests for module 'unicase/u16-casecmp'.
22779         * modules/unicase/u16-casecmp-tests: New file.
22780         * tests/unicase/test-u16-casecmp.c: New file.
22781
22782         Tests for module 'unicase/u8-casecmp'.
22783         * modules/unicase/u8-casecmp-tests: New file.
22784         * tests/unicase/test-u8-casecmp.c: New file.
22785         * tests/unicase/test-casecmp.h: New file.
22786
22787         New module 'unicase/u32-casecmp'.
22788         * lib/unicase/u32-casecmp.c: New file.
22789         * modules/unicase/u32-casecmp: New file.
22790
22791         New module 'unicase/u16-casecmp'.
22792         * lib/unicase/u16-casecmp.c: New file.
22793         * modules/unicase/u16-casecmp: New file.
22794
22795         New module 'unicase/u8-casecmp'.
22796         * lib/unicase/u8-casecmp.c: New file.
22797         * lib/unicase/u-casecmp.h: New file.
22798         * modules/unicase/u8-casecmp: New file.
22799
22800         Tests for module 'unicase/u32-casefold'.
22801         * modules/unicase/u32-casefold-tests: New file.
22802         * tests/unicase/test-u32-casefold.c: New file.
22803
22804         Tests for module 'unicase/u16-casefold'.
22805         * modules/unicase/u16-casefold-tests: New file.
22806         * tests/unicase/test-u16-casefold.c: New file.
22807
22808         Tests for module 'unicase/u8-casefold'.
22809         * modules/unicase/u8-casefold-tests: New file.
22810         * tests/unicase/test-u8-casefold.c: New file.
22811
22812         New module 'unicase/u32-casefold'.
22813         * lib/unicase/u32-casefold.c: New file.
22814         * modules/unicase/u32-casefold: New file.
22815
22816         New module 'unicase/u16-casefold'.
22817         * lib/unicase/u16-casefold.c: New file.
22818         * modules/unicase/u16-casefold: New file.
22819
22820         New module 'unicase/u8-casefold'.
22821         * lib/unicase/u8-casefold.c: New file.
22822         * lib/unicase/u-casefold.h: New file.
22823         * modules/unicase/u8-casefold: New file.
22824
22825         New module 'unicase/tocasefold'.
22826         * lib/unicase/casefold.h: New file.
22827         * lib/unicase/tocasefold.c: New file.
22828         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22829         * modules/unicase/tocasefold: New file.
22830
22831         Tests for module 'unicase/u32-totitle'.
22832         * modules/unicase/u32-totitle-tests: New file.
22833         * tests/unicase/test-u32-totitle.c: New file.
22834
22835         Tests for module 'unicase/u16-totitle'.
22836         * modules/unicase/u16-totitle-tests: New file.
22837         * tests/unicase/test-u16-totitle.c: New file.
22838
22839         Tests for module 'unicase/u8-totitle'.
22840         * modules/unicase/u8-totitle-tests: New file.
22841         * tests/unicase/test-u8-totitle.c: New file.
22842
22843         New module 'unicase/u32-totitle'.
22844         * lib/unicase/u32-totitle.c: New file.
22845         * modules/unicase/u32-totitle: New file.
22846
22847         New module 'unicase/u16-totitle'.
22848         * lib/unicase/u16-totitle.c: New file.
22849         * modules/unicase/u16-totitle: New file.
22850
22851         New module 'unicase/u8-totitle'.
22852         * lib/unicase/u8-totitle.c: New file.
22853         * lib/unicase/u-totitle.h: New file.
22854         * modules/unicase/u8-totitle: New file.
22855
22856         Tests for module 'unicase/u32-tolower'.
22857         * modules/unicase/u32-tolower-tests: New file.
22858         * tests/unicase/test-u32-tolower.c: New file.
22859
22860         Tests for module 'unicase/u16-tolower'.
22861         * modules/unicase/u16-tolower-tests: New file.
22862         * tests/unicase/test-u16-tolower.c: New file.
22863
22864         Tests for module 'unicase/u8-tolower'.
22865         * modules/unicase/u8-tolower-tests: New file.
22866         * tests/unicase/test-u8-tolower.c: New file.
22867
22868         New module 'unicase/u32-tolower'.
22869         * lib/unicase/u32-tolower.c: New file.
22870         * modules/unicase/u32-tolower: New file.
22871
22872         New module 'unicase/u16-tolower'.
22873         * lib/unicase/u16-tolower.c: New file.
22874         * modules/unicase/u16-tolower: New file.
22875
22876         New module 'unicase/u8-tolower'.
22877         * lib/unicase/u8-tolower.c: New file.
22878         * modules/unicase/u8-tolower: New file.
22879
22880         Tests for module 'unicase/u32-toupper'.
22881         * modules/unicase/u32-toupper-tests: New file.
22882         * tests/unicase/test-u32-toupper.c: New file.
22883
22884         Tests for module 'unicase/u16-toupper'.
22885         * modules/unicase/u16-toupper-tests: New file.
22886         * tests/unicase/test-u16-toupper.c: New file.
22887
22888         Tests for module 'unicase/u8-toupper'.
22889         * modules/unicase/u8-toupper-tests: New file.
22890         * tests/unicase/test-u8-toupper.c: New file.
22891
22892         New module 'unicase/u32-toupper'.
22893         * lib/unicase/u32-toupper.c: New file.
22894         * modules/unicase/u32-toupper: New file.
22895
22896         New module 'unicase/u16-toupper'.
22897         * lib/unicase/u16-toupper.c: New file.
22898         * modules/unicase/u16-toupper: New file.
22899
22900         New module 'unicase/u8-toupper'.
22901         * lib/unicase/u8-toupper.c: New file.
22902         * modules/unicase/u8-toupper: New file.
22903
22904         New module 'unicase/u32-casemap'.
22905         * lib/unicase/u32-casemap.c: New file.
22906         * modules/unicase/u32-casemap: New file.
22907
22908         New module 'unicase/u16-casemap'.
22909         * lib/unicase/u16-casemap.c: New file.
22910         * modules/unicase/u16-casemap: New file.
22911
22912         New module 'unicase/u8-casemap'.
22913         * lib/unicase/unicasemap.h: New file.
22914         * lib/unicase/u8-casemap.c: New file.
22915         * lib/unicase/u-casemap.h: New file.
22916         * modules/unicase/u8-casemap: New file.
22917
22918         New module 'unicase/special-casing'.
22919         * lib/unicase/special-casing.h: New file.
22920         * lib/unicase/special-casing.c: New file.
22921         * lib/unicase/special-casing-table.gperf: New file, generated by
22922         gen-uni-tables.c.
22923         * modules/unicase/special-casing: New file.
22924
22925         Tests for module 'unicase/locale-language'.
22926         * modules/unicase/locale-language-tests: New file.
22927         * tests/unicase/test-locale-language.sh: New file.
22928         * tests/unicase/test-locale-language.c: New file.
22929
22930         New module 'unicase/locale-language'.
22931         * lib/unicase/locale-language.c: New file.
22932         * lib/unicase/locale-languages.gperf: New file.
22933         * modules/unicase/locale-language: New file.
22934
22935         Generate more tables for case conversion and case folding.
22936         * lib/gen-uni-tables.c (SCC_*): New enum items.
22937         (struct special_casing_rule): New type.
22938         (casing_rules, num_casing_rules, allocated_casing_rules): New
22939         variables.
22940         (add_casing_rule, fill_casing_rules): New functions.
22941         (struct casefold_rule): New type.
22942         (casefolding_rules, num_casefolding_rules,
22943         allocated_casefolding_rules): New variables.
22944         (fill_casefolding_rules): New function.
22945         (unicode_casefold): New variable.
22946         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
22947         sort_casing_rules, output_casing_rules): New functions.
22948         (main): Accept to more arguments: SpecialCasing.txt and
22949         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
22950         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
22951         Output mapping for casefolding.
22952
22953         * lib/unicase.h: Include stdbool.h, uninorm.h.
22954         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
22955         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
22956         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
22957         arguments.
22958         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
22959         resultp arguments.
22960         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
22961         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
22962         resultp arguments.
22963         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
22964         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
22965         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
22966         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
22967         declarations.
22968         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
22969
22970 2009-03-08  Bruno Haible  <bruno@clisp.org>
22971
22972         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22973         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
22974         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
22975         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22976
22977 2009-03-07  Bruno Haible  <bruno@clisp.org>
22978
22979         Adjust u*_normcmp, u*_normcoll API.
22980         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
22981         u16_normcoll, u32_normcoll): Change failure conventions.
22982         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
22983         errno and return -1.
22984         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
22985
22986 2009-03-07  Bruno Haible  <bruno@clisp.org>
22987
22988         Tests for module 'uninorm/u32-normcoll'.
22989         * modules/uninorm/u32-normcoll-tests: New file.
22990         * tests/uninorm/test-u32-normcoll.c: New file.
22991
22992         Tests for module 'uninorm/u16-normcoll'.
22993         * modules/uninorm/u16-normcoll-tests: New file.
22994         * tests/uninorm/test-u16-normcoll.c: New file.
22995
22996         Tests for module 'uninorm/u8-normcoll'.
22997         * modules/uninorm/u8-normcoll-tests: New file.
22998         * tests/uninorm/test-u8-normcoll.c: New file.
22999
23000 2009-03-07  Bruno Haible  <bruno@clisp.org>
23001
23002         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23003         tests/uninorm/test-u32-normcmp.c.
23004         * tests/uninorm/test-u32-normcmp.c: Include it.
23005         (test_nonascii): New function, extracted from main. Add some more
23006         tests.
23007         (main): Invoke test_ascii and test_nonascii.
23008         * modules/uninorm/u32-normcmp-tests (Files): Add
23009         tests/uninorm/test-u32-normcmp.h.
23010         (Depends-on): Remove uninorm/u32-normcmp.
23011
23012         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23013         tests/uninorm/test-u16-normcmp.c.
23014         * tests/uninorm/test-u16-normcmp.c: Include it.
23015         (test_nonascii): New function, extracted from main. Add some more
23016         tests.
23017         (main): Invoke test_ascii and test_nonascii.
23018         * modules/uninorm/u16-normcmp-tests (Files): Add
23019         tests/uninorm/test-u16-normcmp.h.
23020         (Depends-on): Remove uninorm/u16-normcmp.
23021
23022         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23023         tests/uninorm/test-u8-normcmp.c.
23024         * tests/uninorm/test-u8-normcmp.c: Include it.
23025         (test_nonascii): New function, extracted from main. Add some more
23026         tests.
23027         (main): Invoke test_ascii and test_nonascii.
23028         * modules/uninorm/u8-normcmp-tests (Files): Add
23029         tests/uninorm/test-u8-normcmp.h.
23030         (Depends-on): Remove uninorm/u8-normcmp.
23031
23032 2009-03-07  Bruno Haible  <bruno@clisp.org>
23033
23034         New module 'uninorm/u32-normcoll'.
23035         * lib/uninorm/u32-normcoll.c: New file.
23036         * modules/uninorm/u32-normcoll: New file.
23037
23038         New module 'uninorm/u16-normcoll'.
23039         * lib/uninorm/u16-normcoll.c: New file.
23040         * modules/uninorm/u16-normcoll: New file.
23041
23042         New module 'uninorm/u8-normcoll'.
23043         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23044         declarations.
23045         * lib/uninorm/u8-normcoll.c: New file.
23046         * lib/uninorm/u-normcoll.h: New file.
23047         * modules/uninorm/u8-normcoll: New file.
23048
23049         New module 'uninorm/u32-normxfrm'.
23050         * lib/uninorm/u32-normxfrm.c: New file.
23051         * modules/uninorm/u32-normxfrm: New file.
23052
23053         New module 'uninorm/u16-normxfrm'.
23054         * lib/uninorm/u16-normxfrm.c: New file.
23055         * modules/uninorm/u16-normxfrm: New file.
23056
23057         New module 'uninorm/u8-normxfrm'.
23058         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23059         declarations.
23060         * lib/uninorm/u8-normxfrm.c: New file.
23061         * lib/uninorm/u-normxfrm.h: New file.
23062         * modules/uninorm/u8-normxfrm: New file.
23063
23064 2009-03-07  Bruno Haible  <bruno@clisp.org>
23065
23066         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23067         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23068         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23069
23070 2009-03-07  Bruno Haible  <bruno@clisp.org>
23071
23072         New module 'memxfrm'.
23073         * lib/memxfrm.h: New file.
23074         * lib/memxfrm.c: New file.
23075         * modules/memxfrm: New file.
23076
23077 2009-03-07  Bruno Haible  <bruno@clisp.org>
23078
23079         New module 'memcmp2'.
23080         * lib/memcmp2.h: New file.
23081         * lib/memcmp2.c: New file.
23082         * modules/memcmp2: New file.
23083
23084 2009-03-07  Bruno Haible  <bruno@clisp.org>
23085
23086         Tests for module 'uninorm/decomposing-form'.
23087         * modules/uninorm/decomposing-form-tests: New file.
23088         * tests/uninorm/test-decomposing-form.c: New file.
23089
23090         New module 'uninorm/decomposing-form'.
23091         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23092         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23093         Add 'decomposing_variant' field.
23094         * lib/uninorm/decomposing-form.c: New file.
23095         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23096         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23097         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23098         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23099         * modules/uninorm/decomposing-form: New file.
23100         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23101         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23102
23103 2009-03-07  Bruno Haible  <bruno@clisp.org>
23104
23105         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23106         strings.
23107
23108 2009-03-06  Bruno Haible  <bruno@clisp.org>
23109
23110         Tests for module 'uninorm/u32-normcmp'.
23111         * tests/uninorm/test-u32-normcmp.c: New file.
23112         * modules/uninorm/u32-normcmp-tests: New file.
23113
23114         Tests for module 'uninorm/u16-normcmp'.
23115         * tests/uninorm/test-u16-normcmp.c: New file.
23116         * modules/uninorm/u16-normcmp-tests: New file.
23117
23118         Tests for module 'uninorm/u8-normcmp'.
23119         * tests/uninorm/test-u8-normcmp.c: New file.
23120         * modules/uninorm/u8-normcmp-tests: New file.
23121
23122         New module 'uninorm/u32-normcmp'.
23123         * lib/uninorm/u32-normcmp.c: New file.
23124         * modules/uninorm/u32-normcmp: New file.
23125
23126         New module 'uninorm/u16-normcmp'.
23127         * lib/uninorm/u16-normcmp.c: New file.
23128         * modules/uninorm/u16-normcmp: New file.
23129
23130         New module 'uninorm/u8-normcmp'.
23131         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23132         declarations.
23133         * lib/uninorm/u8-normcmp.c: New file.
23134         * lib/uninorm/u-normcmp.h: New file.
23135         * modules/uninorm/u8-normcmp: New file.
23136
23137 2009-03-06  Bruno Haible  <bruno@clisp.org>
23138
23139         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23140         Reported by Eric Blake.
23141
23142 2009-03-06  Eric Blake  <ebb9@byu.net>
23143             Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23146         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23147         condition.
23148         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23149         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23150         condition.
23151         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23152
23153 2009-03-06  Eric Blake  <ebb9@byu.net>
23154
23155         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23156         to avoid compiler warnings.
23157         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23158
23159 2009-03-05  Bruno Haible  <bruno@clisp.org>
23160
23161         * tests/test-ftell.c (main): Disable test beyond end of file on
23162         FreeMiNT.
23163         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23164
23165 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23166
23167         * lib/filevercmp.c: Move hidden files up in ordering.
23168         * tests/test-filevercmp.c: Add tests for hidden files.
23169
23170 2009-03-04  Bruno Haible  <bruno@clisp.org>
23171
23172         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23173         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23174         AM_CFLAGS.
23175         Reported by Simon Josefsson.
23176
23177 2009-03-03  Bruno Haible  <bruno@clisp.org>
23178
23179         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23180         Reported by Simon Josefsson.
23181
23182         * doc/ld-version-script.texi: Update node reference.
23183
23184 2009-03-03  Bruno Haible  <bruno@clisp.org>
23185
23186         * modules/visibility (License): Change to 'unlimited'.
23187         Suggested by Simon Josefsson.
23188
23189 2009-03-03  Jim Meyering  <meyering@redhat.com>
23190
23191         unlinkdir: cannot_unlink_dir may modify process state
23192         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23193         it's neither thread-safe nor appropriate for use in a library.
23194
23195 2009-03-03  Eric Blake  <ebb9@byu.net>
23196
23197         test-closein: silence test under Darwin
23198         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23199         care if it dies from EPIPE or EBADF.
23200
23201 2009-03-03  Bruno Haible  <bruno@clisp.org>
23202
23203         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23204         earlier.
23205         * doc/visibility.texi: Fix @node and @section.
23206
23207 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23208
23209         * doc/gnulib.texi: Link to sections for ld version script and
23210         visibility.
23211         * doc/visibility.texi: Add @node and @section.
23212         * modules/ld-version-script: New module.
23213         * m4/ld-version-script.m4: New file.
23214         * doc/ld-version-script.texi: New file.
23215
23216 2009-03-02  David Lutterkort  <lutter@redhat.com>
23217
23218         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23220
23221 2009-03-02  Bruno Haible  <bruno@clisp.org>
23222
23223         * doc/visibility.texi: Mention libtool's -export-symbols option.
23224
23225 2009-03-02  Jim Meyering  <meyering@redhat.com>
23226
23227         announce-gen: new option: --no-print-checksums
23228         * build-aux/announce-gen (usage): Describe it.
23229         (print_checksums): Print a newline here, not in the [*] footnote.
23230         (main): Honor it.
23231
23232 2009-03-01  Bruno Haible  <bruno@clisp.org>
23233
23234         Use socklen_t in the native Windows replacements prototypes.
23235         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23236         instead of 'int'.
23237         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23238         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23239         * modules/getsockopt (Depends-on): Add socklen.
23240         * modules/setsockopt (Depends-on): Add socklen.
23241
23242 2009-03-01  Bruno Haible  <bruno@clisp.org>
23243
23244         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23245         least 4.2.
23246
23247 2009-03-01  Eric Blake  <ebb9@byu.net>
23248             Bruno Haible  <bruno@clisp.org>
23249
23250         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23251         error messages.
23252         * lib/wait-process.c (wait_subprocess): Omit error message about
23253         deadly signal sent to the child of termsigp != NULL.
23254
23255 2009-03-01  Eric Blake  <ebb9@byu.net>
23256
23257         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23258
23259 2009-03-01  Bruno Haible  <bruno@clisp.org>
23260
23261         Avoid a gcc warning.
23262         * tests/test-sched.c (b): Make global.
23263         Reported by Eric Blake.
23264
23265 2009-01-19  Martin Lambers  <marlam@marlam.de>
23266
23267         Provide POSIX semantics for socket timeout options on W32.
23268         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23269         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23270         * modules/setsockopt: Depend on sys_time module for struct timeval.
23271         * modules/getsockopt: Depend on sys_time module for struct timeval.
23272
23273 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23274
23275         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23276         __USE_GNU, for consistency with netdb.in.h.
23277         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23278
23279 2009-03-01  Bruno Haible  <bruno@clisp.org>
23280
23281         More support for FreeMiNT.
23282         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23283         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23284
23285 2009-03-01  Bruno Haible  <bruno@clisp.org>
23286
23287         More support for FreeMiNT.
23288         * lib/fpurge.c (fpurge): Correct last commit.
23289         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23290
23291 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23292
23293         Fix unportable awk script in vc-list-files.
23294         * build-aux/vc-list-files: In the replacement awk script, use
23295         substr with a second argument of 1, not zero.
23296         Report by Simon Josefsson.
23297
23298 2009-02-28  Bruno Haible  <bruno@clisp.org>
23299
23300         More support for FreeMiNT.
23301         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23302         to FreeMiNT today.
23303         * lib/fwriting.c (fwriting): Likewise.
23304         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23305
23306 2009-02-28  Bruno Haible  <bruno@clisp.org>
23307
23308         * tests/test-freadseek.c (main): Disable test beyond end of file on
23309         FreeMiNT.
23310         * tests/test-ftello.c (main): Likewise.
23311         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23312
23313 2009-02-28  Bruno Haible  <bruno@clisp.org>
23314
23315         Add tentative support for FreeMiNT.
23316         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23317         * lib/fpurge.c (fpurge): Likewise.
23318         * lib/freadable.c (freadable): Likewise.
23319         * lib/freading.c (freading): Likewise.
23320         * lib/freadptr.c (freadptr): Likewise.
23321         * lib/freadseek.c (freadptrinc): Likewise.
23322         * lib/fseeko.c (rpl_fseeko): Likewise.
23323         * lib/fseterr.c (fseterr): Likewise.
23324         * lib/fwritable.c (fwritable): Likewise.
23325         * lib/fwriting.c (fwriting): Likewise.
23326         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23327         Hourihane.
23328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23329
23330 2009-02-28  Bruno Haible  <bruno@clisp.org>
23331
23332         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23333         SIGCHLD.
23334         Reported by Jim Meyering.
23335
23336 2009-02-28  Bruno Haible  <bruno@clisp.org>
23337
23338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23339         Mention the results of these tests on various platforms.
23340         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23341         order.
23342         * doc/posix-functions/printf.texi: Likewise.
23343         * doc/posix-functions/snprintf.texi: Likewise.
23344         * doc/posix-functions/sprintf.texi: Likewise.
23345         * doc/posix-functions/vfprintf.texi: Likewise.
23346         * doc/posix-functions/vprintf.texi: Likewise.
23347         * doc/posix-functions/vsnprintf.texi: Likewise.
23348         * doc/posix-functions/vsprintf.texi: Likewise.
23349         * doc/glibc-functions/obstack_printf.texi: Likewise.
23350         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23351
23352 2009-02-28  Bruno Haible  <bruno@clisp.org>
23353
23354         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23355         Reported by Loïc Minier <lool@dooz.org>.
23356
23357 2009-02-27  Bruno Haible  <bruno@clisp.org>
23358
23359         * gnulib-tool (func_import): Make the sed expression used to create the
23360         sed script for updating the .gitignore file POSIX compliant.
23361         Reported by Eric Blake.
23362
23363 2009-02-27  Bruno Haible  <bruno@clisp.org>
23364
23365         * gnulib-tool (sed): Don't alias as "sed --posix".
23366         Reported by Eric Blake.
23367
23368 2009-02-27  Bruno Haible  <bruno@clisp.org>
23369
23370         Avoid test link errors.
23371         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23372         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23373         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23374         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23376
23377 2009-02-27  Bruno Haible  <bruno@clisp.org>
23378
23379         Avoid spurious "(cached)" in configure output.
23380         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23381         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23382         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23383         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23384         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23385         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23386         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23387         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23388         Reported by Eric Blake.
23389
23390 2009-02-27  Eric Blake  <ebb9@byu.net>
23391
23392         printf: fix regression in previous patch
23393         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23394
23395 2009-02-27  Bruno Haible  <bruno@clisp.org>
23396
23397         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23398         value.
23399         * lib/stdint.in.h: Likewise.
23400         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23401
23402 2009-02-27  Eric Blake  <ebb9@byu.net>
23403
23404         doc: mention more functions added in cygwin 1.7.0
23405         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23406         addition.
23407         * doc/posix-functions/open_wmemstream.texi: Likewise.
23408         * doc/posix-functions/wcsnlen.texi: Likewise.
23409         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23410         * doc/posix-functions/wcstod.texi: Likewise.
23411         * doc/posix-functions/wcstof.texi: Likewise.
23412         * doc/posix-functions/wcstoimax.texi: Likewise.
23413         * doc/posix-functions/wcstok.texi: Likewise.
23414         * doc/posix-functions/wcstoumax.texi: Likewise.
23415
23416         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23417         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23418         * doc/posix-functions/fprintf.texi: Update.
23419         * doc/posix-functions/printf.texi: Update.
23420         * doc/posix-functions/snprintf.texi: Update.
23421         * doc/posix-functions/sprintf.texi: Update.
23422         * doc/posix-functions/vfprintf.texi: Update.
23423         * doc/posix-functions/vprintf.texi: Update.
23424         * doc/posix-functions/vsnprintf.texi: Update.
23425         * doc/posix-functions/vsprintf.texi: Update.
23426         * doc/glibc-functions/obstack_printf.texi: Update.
23427         * doc/glibc-functions/obstack_vprintf.texi: Update.
23428
23429 2009-02-26  Eric Blake  <ebb9@byu.net>
23430
23431         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23432         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23433         compilation bug by using runtime conversion.
23434         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23435         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23436         * modules/ceill-tests (Files): Use nan.h.
23437         * modules/floorl-tests (Files): Likewise.
23438         * modules/frexpl-tests (Files): Likewise.
23439         * modules/isnanl-tests (Files): Likewise.
23440         * modules/ldexpl-tests (Files): Likewise.
23441         * modules/roundl-tests (Files): Likewise.
23442         * modules/truncl-tests (Files): Likewise.
23443         * tests/test-ceill.c (main): Use a working NaN.
23444         * tests/test-floorl.c (main): Likewise.
23445         * tests/test-frexpl.c (main): Likewise.
23446         * tests/test-isnan.c (test_long_double): Likewise.
23447         * tests/test-isnanl.h (main): Likewise.
23448         * tests/test-ldexpl.h (main): Likewise.
23449         * tests/test-roundl.h (main): Likewise.
23450         * tests/test-truncl.h (main): Likewise.
23451         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23452
23453 2009-02-26  Eric Blake  <ebb9@byu.net>
23454             Bruno Haible  <bruno@clisp.org>
23455
23456         Work around a *printf bug with %ls on Solaris.
23457         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23458         precision is specified, sprintf stops converting the wide string
23459         argument when the number of bytes that have been produced by this
23460         conversion equals or exceeds the precision.
23461         * doc/posix-functions/fprintf.texi: Update.
23462         * doc/posix-functions/printf.texi: Update.
23463         * doc/posix-functions/snprintf.texi: Update.
23464         * doc/posix-functions/sprintf.texi: Update.
23465         * doc/posix-functions/vfprintf.texi: Update.
23466         * doc/posix-functions/vprintf.texi: Update.
23467         * doc/posix-functions/vsnprintf.texi: Update.
23468         * doc/posix-functions/vsprintf.texi: Update.
23469         * doc/glibc-functions/obstack_printf.texi: Update.
23470         * doc/glibc-functions/obstack_vprintf.texi: Update.
23471
23472 2009-02-26  Eric Blake  <ebb9@byu.net>
23473
23474         stdlib: favor compiler check of random.h
23475         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23476         to avoid an ObjC random.h installed by Swarm.
23477
23478 2009-02-26  Bruno Haible  <bruno@clisp.org>
23479
23480         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23481         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23482         Reported by Gary V. Vaughan <gary@gnu.org>.
23483
23484 2009-02-26  Bruno Haible  <bruno@clisp.org>
23485
23486         Fix *printf behaviour regarding the %ls directive.
23487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23488         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23489         NEED_PRINTF_DIRECTIVE_LS.
23490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23491         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23493         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23494         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23495         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23496         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23501         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23502         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23503         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23504         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23505         * doc/posix-functions/fprintf.texi: Update.
23506         * doc/posix-functions/printf.texi: Update.
23507         * doc/posix-functions/snprintf.texi: Update.
23508         * doc/posix-functions/sprintf.texi: Update.
23509         * doc/posix-functions/vfprintf.texi: Update.
23510         * doc/posix-functions/vprintf.texi: Update.
23511         * doc/posix-functions/vsnprintf.texi: Update.
23512         * doc/posix-functions/vsprintf.texi: Update.
23513         * doc/glibc-functions/obstack_printf.texi: Update.
23514         * doc/glibc-functions/obstack_vprintf.texi: Update.
23515         Reported by Eric Blake.
23516
23517 2009-02-25  Bruno Haible  <bruno@clisp.org>
23518
23519         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23520         with known value.
23521         Reported by Gary V. Vaughan <gary@gnu.org>.
23522
23523 2009-02-25  Bruno Haible  <bruno@clisp.org>
23524
23525         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23526         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23527         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23528         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23529         Reported by Gary V. Vaughan <gary@gnu.org>.
23530
23531 2009-02-25  Bruno Haible  <bruno@clisp.org>
23532
23533         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23534         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23535         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23536         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23537         Reported by Gary V. Vaughan <gary@gnu.org>.
23538
23539 2009-02-25  Eric Blake  <ebb9@byu.net>
23540
23541         tests: skip fseek/ftell tests if ungetc is broken
23542         * m4/ungetc.m4: New file.
23543         * modules/fseek-tests: Split test, so ungetc dependency is
23544         separate from rest of test.
23545         * modules/fseeko-tests: Likewise.
23546         * modules/ftell-tests: Likewise.
23547         * modules/ftello-tests: Likewise.
23548         * tests/test-fseek.c (main): Isolate ungetc dependency.
23549         * tests/test-fseeko.c (main): Likewise.
23550         * tests/test-ftell.c (main): Likewise.
23551         * tests/test-ftello.c (main): Likewise.
23552         * tests/test-fseek2.sh: New file.
23553         * tests/test-fseeko2.sh: Likewise.
23554         * tests/test-ftell2.sh: Likewise.
23555         * tests/test-ftello2.sh: Likewise.
23556
23557 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23558
23559         test-getaddrinfo: fix usage of skip return code 77
23560         * tests/test-gettaddrinfo.c: Return skip code 77 only
23561         for first occurance of skip (4x77 is not 77)
23562
23563 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23564
23565         strtod: avoid C99 decl-after-statement
23566         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23567
23568 2009-02-24  Eric Blake  <ebb9@byu.net>
23569
23570         strtod: detect HP-UX 11.31 bug
23571         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23572         Reported by Gary V. Vaughan.
23573
23574 2009-02-23  Bruno Haible  <bruno@clisp.org>
23575
23576         Fix invalid read past end of memory block.
23577         * lib/vasnprintf.c (DCHAR_SET): Define.
23578         (local_wcslen): Define only when needed.
23579         (local_strnlen, local_wcsnlen): New functions.
23580         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23581         directives that involve a conversion ourselves.
23582         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23583         wcsnlen, mbrtowc, wcrtomb.
23584         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23585         * tests/test-vasprintf-posix.c (test_function): Likewise.
23586         * tests/test-snprintf-posix.h (test_function): Likewise.
23587         * tests/test-sprintf-posix.h (test_function): Likewise.
23588         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23589
23590 2009-02-22  Bruno Haible  <bruno@clisp.org>
23591
23592         Implement new clarified decomposition of Hangul syllables.
23593         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23594         of type LTV, return only a pairwise decomposition.
23595         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23596         Likewise.
23597         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23598         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23599         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23600
23601 2009-02-22  Bruno Haible  <bruno@clisp.org>
23602
23603         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23604         zero-length results and shrink excess allocated memory.
23605         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23606         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23607         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23608         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23609         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23610         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23611         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23612         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23613         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23614         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23615         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23616         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23617
23618 2009-02-21  Bruno Haible  <bruno@clisp.org>
23619
23620         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23621         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23622         spaces after a period. Put a space between a macro name and its
23623         argument list. Trivial rewordings.
23624         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23625         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23626         (main): Return 0 explicitly.
23627
23628 2009-02-21  Bruno Haible  <bruno@clisp.org>
23629
23630         Tests for module 'uninorm/filter'.
23631         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23632         * modules/uninorm/filter-tests: New file.
23633
23634         New module 'uninorm/filter'.
23635         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23636         uninorm_filter_flush, uninorm_filter_free): New declarations.
23637         * lib/uninorm/uninorm-filter.c: New file.
23638         * modules/uninorm/filter: New file.
23639
23640 2009-02-21  Bruno Haible  <bruno@clisp.org>
23641
23642         Tests for module 'uninorm/nfkc'.
23643         * tests/uninorm/test-nfkc.c: New file.
23644         * tests/uninorm/test-u8-nfkc.c: New file.
23645         * tests/uninorm/test-u16-nfkc.c: New file.
23646         * tests/uninorm/test-u32-nfkc.c: New file.
23647         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23648         * tests/uninorm/test-u32-nfkc-big.c: New file.
23649         * modules/uninorm/nfkc-tests: New file.
23650
23651         New module 'uninorm/nfkc'.
23652         * lib/uninorm/nfkc.c: New file.
23653         * modules/uninorm/nfkc: New file.
23654
23655         Tests for module 'uninorm/nfkd'.
23656         * tests/uninorm/test-nfkd.c: New file.
23657         * tests/uninorm/test-u8-nfkd.c: New file.
23658         * tests/uninorm/test-u16-nfkd.c: New file.
23659         * tests/uninorm/test-u32-nfkd.c: New file.
23660         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23661         * tests/uninorm/test-u32-nfkd-big.c: New file.
23662         * modules/uninorm/nfkd-tests: New file.
23663
23664         New module 'uninorm/nfkd'.
23665         * lib/uninorm/nfkd.c: New file.
23666         * modules/uninorm/nfkd: New file.
23667
23668         Tests for module 'uninorm/nfc'.
23669         * tests/uninorm/test-nfc.c: New file.
23670         * tests/uninorm/test-u8-nfc.c: New file.
23671         * tests/uninorm/test-u16-nfc.c: New file.
23672         * tests/uninorm/test-u32-nfc.c: New file.
23673         * tests/uninorm/test-u32-nfc-big.sh: New file.
23674         * tests/uninorm/test-u32-nfc-big.c: New file.
23675         * modules/uninorm/nfc-tests: New file.
23676
23677         New module 'uninorm/nfc'.
23678         * lib/uninorm/nfc.c: New file.
23679         * modules/uninorm/nfc: New file.
23680
23681         Tests for module 'uninorm/nfd'.
23682         * tests/uninorm/test-nfd.c: New file.
23683         * tests/uninorm/test-u8-nfd.c: New file.
23684         * tests/uninorm/test-u16-nfd.c: New file.
23685         * tests/uninorm/test-u32-nfd.c: New file.
23686         * tests/uninorm/test-u32-nfd-big.sh: New file.
23687         * tests/uninorm/test-u32-nfd-big.c: New file.
23688         * tests/uninorm/test-u32-normalize-big.h: New file.
23689         * tests/uninorm/test-u32-normalize-big.c: New file.
23690         * tests/uninorm/NormalizationTest.txt: New file, created from
23691         Unicode 5.1.0 NormalizationTest.txt.
23692         * modules/uninorm/nfd-tests: New file.
23693
23694         New module 'uninorm/nfd'.
23695         * lib/uninorm/nfd.c: New file.
23696         * modules/uninorm/nfd: New file.
23697
23698         New module 'uninorm/u32-normalize'.
23699         * lib/uninorm/u32-normalize.c: New file.
23700         * modules/uninorm/u32-normalize: New file.
23701
23702         New module 'uninorm/u16-normalize'.
23703         * lib/uninorm/u16-normalize.c: New file.
23704         * modules/uninorm/u16-normalize: New file.
23705
23706         New module 'uninorm/u8-normalize'.
23707         * lib/uninorm/u8-normalize.c: New file.
23708         * lib/uninorm/normalize-internal.h: New file.
23709         * lib/uninorm/u-normalize-internal.h: New file.
23710         * modules/uninorm/u8-normalize: New file.
23711
23712         New module 'uninorm/decompose-internal'.
23713         * lib/uninorm/decompose-internal.c: New file.
23714         * modules/uninorm/decompose-internal: New file.
23715
23716         Tests for module 'uninorm/composition'.
23717         * tests/uninorm/test-composition.c: New file.
23718         * modules/uninorm/composition-tests: New file.
23719
23720         New module 'uninorm/composition'.
23721         * lib/uninorm/composition.c: New file.
23722         * lib/uninorm/composition-table.gperf: New file, generated by
23723         gen-uni-tables.
23724         * modules/uninorm/composition: New file.
23725
23726         Tests for module 'uninorm/compat-decomposition'.
23727         * tests/uninorm/test-compat-decomposition.c: New file.
23728         * modules/uninorm/compat-decomposition-tests: New file.
23729
23730         New module 'uninorm/compat-decomposition'.
23731         * lib/uninorm/decompose-internal.h: New file.
23732         * lib/uninorm/compat-decomposition.c: New file.
23733         * modules/uninorm/compat-decomposition: New file.
23734
23735         Tests for module 'uninorm/canonical-decomposition'.
23736         * tests/uninorm/test-canonical-decomposition.c: New file.
23737         * modules/uninorm/canonical-decomposition-tests: New file.
23738
23739         New module 'uninorm/canonical-decomposition'.
23740         * lib/uninorm/canonical-decomposition.c: New file.
23741         * modules/uninorm/canonical-decomposition: New file.
23742
23743         Tests for module 'uninorm/decomposition'.
23744         * tests/uninorm/test-decomposition.c: New file.
23745         * modules/uninorm/decomposition-tests: New file.
23746
23747         New module 'uninorm/decomposition'.
23748         * lib/uninorm/decomposition.c: New file.
23749         * modules/uninorm/decomposition: New file.
23750
23751         New module 'uninorm/decomposition-table'.
23752         * lib/uninorm/decomposition-table.h: New file.
23753         * lib/uninorm/decomposition-table.c: New file.
23754         * lib/uninorm/decomposition-table1.h: New file, generated by
23755         gen-uni-tables.
23756         * lib/uninorm/decomposition-table2.h: New file, generated by
23757         gen-uni-tables.
23758         * modules/uninorm/decomposition-table: New file.
23759
23760         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23761         (UC_DECOMP_*): New enumeration items.
23762         (get_decomposition): New function.
23763         (struct decomp_table): New type.
23764         (output_decomposition, output_decomposition_tables): New functions.
23765         (unicode_composition_exclusions): New variable.
23766         (fill_composition_exclusions, debug_output_composition_tables): New
23767         functions.
23768         (main): Accept one more argument. Invoke fill_composition_exclusions.
23769         Output decomposition and composition tables.
23770
23771         New module 'uninorm/base'.
23772         * lib/uninorm.h: New file.
23773         * lib/unictype.h: Update comment.
23774         * modules/uninorm/base: New file.
23775
23776 2009-02-21  David Lutterkort  <lutter@redhat.com>
23777
23778         Tests for module 'safe-alloc'.
23779         * tests/test-safe-alloc.c: New file.
23780         * modules/safe-alloc-tests: New file.
23781
23782         New module 'safe-alloc'.
23783         * lib/safe-alloc.h: New file.
23784         * lib/safe-alloc.c: New file.
23785         * m4/safe-alloc.m4: New file.
23786         * modules/safe-alloc: New file.
23787         * doc/safe-alloc.texi: New file.
23788         * doc/gnulib.texi: Include it.
23789         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23790         safe-alloc.
23791
23792 2009-02-18  Bruno Haible  <bruno@clisp.org>
23793
23794         Fix link error on non-glibc systems.
23795         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23796         variable.
23797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23798
23799 2009-02-18  Jim Meyering  <meyering@redhat.com>
23800
23801         fts: avoid used-uninitialized error due to recent change
23802         * lib/fts.c (fts_read): Guard uses of the new member,
23803         parent->fts_n_dirs_remaining, since it's not relevant for
23804         the parent of a directory specified on the command-line.
23805
23806 2009-02-17  James Youngman  <jay@gnu.org>
23807             Bruno Haible  <bruno@clisp.org>
23808
23809         * m4/include_next.m4: Reformulate comment.
23810
23811 2009-02-16  Jim Meyering  <meyering@redhat.com>
23812
23813         fts: add #if guards so that the fts_lgpl module still builds
23814         * lib/fts.c: Guard just-added hash-table-using parts with
23815         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23816         Reported by Simon Josefsson.
23817
23818 2009-02-15  Bruno Haible  <bruno@clisp.org>
23819
23820         * modules/array-mergesort-tests: New file.
23821         * tests/test-array-mergesort.c: New file.
23822
23823         New module 'array-mergesort'.
23824         * modules/array-mergesort: New file.
23825         * lib/array-mergesort.h: New file.
23826
23827 2009-02-15  Bruno Haible  <bruno@clisp.org>
23828
23829         Fix 2009-02-07 commit.
23830         * lib/gen-uni-tables.c (output_predicate, output_category,
23831         output_combclass, output_bidi_category, output_decimal_digit,
23832         output_digit, output_numeric, output_mirror, output_scripts,
23833         output_ident_category, output_simple_mapping): Fix format directives.
23834         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23835
23836 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23837
23838         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23839         fixes are available from IBM.
23840
23841 2009-02-13  Jim Meyering  <meyering@redhat.com>
23842
23843         fts: arrange not to stat non-directories in more cases
23844         This makes GNU find (when it doesn't need to stat each file)
23845         *much* more efficient at traversing reiserfs file systems.
23846         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23847         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23848         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23849         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23850         (leaf_optimization_applies): New function.
23851         (LCO_hash, LCO_compare): New helper functions.
23852         (link_count_optimize_ok): New function.
23853         (fts_stat): Initialize new member (if dir).
23854         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23855         we've just stat'ed a directory.  Skip the stat call when possible.
23856         ---
23857         Note this AFS-related exchange:
23858         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23859         and note find's pioctl call in find/fstype.c.
23860         But that is necessary only if you want to enable the
23861         optimization for AFS, and for now, I don't.
23862
23863         fts: move a function definition "up" (no semantic change)
23864         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
23865         "up" to precede upcoming use of a related function.
23866
23867 2009-02-11  Jim Meyering  <meyering@redhat.com>
23868
23869         fts: correct internal computation of nlinks (optimization-related)
23870         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
23871         whether the current entry is a directory, so don't test it.
23872
23873 2009-02-10  Bruno Haible  <bruno@clisp.org>
23874
23875         Tests for module 'uniwbrk/ulc-wordbreaks'.
23876         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
23877         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
23878         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
23879
23880         Tests for module 'uniwbrk/u32-wordbreaks'.
23881         * modules/uniwbrk/u32-wordbreaks-tests: New file.
23882         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
23883
23884         Tests for module 'uniwbrk/u16-wordbreaks'.
23885         * modules/uniwbrk/u16-wordbreaks-tests: New file.
23886         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
23887
23888         Tests for module 'uniwbrk/u8-wordbreaks'.
23889         * modules/uniwbrk/u8-wordbreaks-tests: New file.
23890         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
23891
23892 2009-02-10  Bruno Haible  <bruno@clisp.org>
23893
23894         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
23895         property.
23896         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
23897         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
23898         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
23899
23900 2009-02-10  Simon Josefsson  <simon@josefsson.org>
23901
23902         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
23903         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
23904
23905 2009-02-10  Bruno Haible  <bruno@clisp.org>
23906
23907         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
23908         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
23909         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
23910         * lib/unilbrk/u8-possible-linebreaks.c: Update.
23911         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
23912         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
23913
23914 2009-02-09  Simon Josefsson  <simon@josefsson.org>
23915
23916         * lib/sockets.h (gl_fd_to_handle): New function.
23917
23918         * tests/test-sockets.c: Call gl_fd_to_handle.
23919
23920 2009-02-09  Bruno Haible  <bruno@clisp.org>
23921
23922         * doc/havelib.texi: Document the conventions on bi-arch systems.
23923
23924 2009-02-08  Bruno Haible  <bruno@clisp.org>
23925
23926         Document the AC_LIB_LINKFLAGS macro.
23927         * doc/havelib.texi: New file, mostly written on 2005-05-24.
23928         * doc/gnulib.texi: Include it.
23929
23930 2009-02-08  Bruno Haible  <bruno@clisp.org>
23931
23932         Fix wrong order of sections, compared to TOC.
23933         * doc/gnulib.texi: Include relocatable-maint.texi after the
23934         "Regular expressions" node, not before.
23935
23936 2009-02-08  Bruno Haible  <bruno@clisp.org>
23937
23938         Tests for module 'unicase/totitle'.
23939         * modules/unicase/totitle-tests: New file.
23940
23941         Tests for module 'unicase/tolower'.
23942         * modules/unicase/tolower-tests: New file.
23943
23944         Tests for module 'unicase/toupper'.
23945         * modules/unicase/toupper-tests: New file.
23946         * tests/unicase/test-mapping-part1.h: New file.
23947         * tests/unicase/test-mapping-part2.h: New file.
23948
23949         New module 'unicase/totitle'.
23950         * modules/unicase/totitle: New file.
23951         * lib/unicase/totitle.c: New file.
23952
23953         New module 'unicase/tolower'.
23954         * modules/unicase/tolower: New file.
23955         * lib/unicase/tolower.c: New file.
23956
23957         New module 'unicase/toupper'.
23958         * modules/unicase/toupper: New file.
23959         * lib/unicase/toupper.c: New file.
23960         * lib/unicase/simple-mapping.h: New file.
23961
23962         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
23963         (mapping_table): New structure.
23964         (output_simple_mapping): New function.
23965         (main): Invoke output_simple_mapping_test and output_simple_mapping.
23966         * modules/gen-uni-tables (Description): Update.
23967         * lib/unicase/toupper.h: New file, automatically generated by
23968         gen-uni-tables.
23969         * lib/unicase/tolower.h: New file, automatically generated by
23970         gen-uni-tables.
23971         * lib/unicase/totitle.h: New file, automatically generated by
23972         gen-uni-tables.
23973         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
23974         gen-uni-tables.
23975         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
23976         gen-uni-tables.
23977         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
23978         gen-uni-tables.
23979
23980         New module 'unicase/base'.
23981         * modules/unicase/base: New file.
23982         * lib/unicase.h: New file.
23983
23984 2009-02-08  Bruno Haible  <bruno@clisp.org>
23985
23986         New module 'uniwbrk/ulc-wordbreaks'.
23987         * modules/uniwbrk/ulc-wordbreaks: New file.
23988         * lib/uniwbrk/ulc-wordbreaks.c: New file.
23989
23990         New module 'uniwbrk/u32-wordbreaks'.
23991         * modules/uniwbrk/u32-wordbreaks: New file.
23992         * lib/uniwbrk/u32-wordbreaks.c: New file.
23993
23994         New module 'uniwbrk/u16-wordbreaks'.
23995         * modules/uniwbrk/u16-wordbreaks: New file.
23996         * lib/uniwbrk/u16-wordbreaks.c: New file.
23997
23998         New module 'uniwbrk/u8-wordbreaks'.
23999         * modules/uniwbrk/u8-wordbreaks: New file.
24000         * lib/uniwbrk/u8-wordbreaks.c: New file.
24001         * lib/uniwbrk/u-wordbreaks.h: New file.
24002
24003         New module 'uniwbrk/table'.
24004         * modules/uniwbrk/table: New file.
24005         * lib/uniwbrk/wbrktable.h: New file.
24006         * lib/uniwbrk/wbrktable.c: New file.
24007
24008         New module 'uniwbrk/wordbreak-property'.
24009         * modules/uniwbrk/wordbreak-property: New file.
24010         * lib/uniwbrk/wordbreak-property.c: New file.
24011
24012         * lib/gen-uni-tables.c (WBP_*): New enum items.
24013         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24014         (unicode_org_wbp): New variable.
24015         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24016         New functions.
24017         (wbp_table): New structure.
24018         (output_wbp, output_wbrk_tables): New functions.
24019         (main): Accept additional argument. Invoke fill_org_wbp,
24020         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24021         output_wbrk_tables.
24022         * modules/gen-uni-tables (Description): Update.
24023         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24024         gen-uni-tables.
24025
24026         New module 'uniwbrk/base'.
24027         * modules/uniwbrk/base: New file.
24028         * lib/uniwbrk.h: New file.
24029
24030 2009-02-08  Bruno Haible  <bruno@clisp.org>
24031
24032         Update to Unicode 5.1.0.
24033         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24034         U+2185..U+2188.
24035         (is_property_default_ignorable_code_point): Don't include characters
24036         of category Cc or Cs and not-a-characters.
24037         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24038         U+0D79, U+109E, U+109F, U+A60C.
24039         * lib/unictype/bidi_of.h: Regenerated.
24040         * lib/unictype/blocks.h: Regenerated.
24041         * lib/unictype/categ_C.h: Regenerated.
24042         * lib/unictype/categ_Cf.h: Regenerated.
24043         * lib/unictype/categ_Cn.h: Regenerated.
24044         * lib/unictype/categ_L.h: Regenerated.
24045         * lib/unictype/categ_Ll.h: Regenerated.
24046         * lib/unictype/categ_Lm.h: Regenerated.
24047         * lib/unictype/categ_Lo.h: Regenerated.
24048         * lib/unictype/categ_Lu.h: Regenerated.
24049         * lib/unictype/categ_M.h: Regenerated.
24050         * lib/unictype/categ_Mc.h: Regenerated.
24051         * lib/unictype/categ_Me.h: Regenerated.
24052         * lib/unictype/categ_Mn.h: Regenerated.
24053         * lib/unictype/categ_N.h: Regenerated.
24054         * lib/unictype/categ_Nd.h: Regenerated.
24055         * lib/unictype/categ_Nl.h: Regenerated.
24056         * lib/unictype/categ_No.h: Regenerated.
24057         * lib/unictype/categ_P.h: Regenerated.
24058         * lib/unictype/categ_Pd.h: Regenerated.
24059         * lib/unictype/categ_Pe.h: Regenerated.
24060         * lib/unictype/categ_Pf.h: Regenerated.
24061         * lib/unictype/categ_Pi.h: Regenerated.
24062         * lib/unictype/categ_Po.h: Regenerated.
24063         * lib/unictype/categ_Ps.h: Regenerated.
24064         * lib/unictype/categ_S.h: Regenerated.
24065         * lib/unictype/categ_Sk.h: Regenerated.
24066         * lib/unictype/categ_Sm.h: Regenerated.
24067         * lib/unictype/categ_So.h: Regenerated.
24068         * lib/unictype/categ_of.h: Regenerated.
24069         * lib/unictype/combining.h: Regenerated.
24070         * lib/unictype/ctype_alnum.h: Regenerated.
24071         * lib/unictype/ctype_alpha.h: Regenerated.
24072         * lib/unictype/ctype_graph.h: Regenerated.
24073         * lib/unictype/ctype_lower.h: Regenerated.
24074         * lib/unictype/ctype_print.h: Regenerated.
24075         * lib/unictype/ctype_punct.h: Regenerated.
24076         * lib/unictype/ctype_upper.h: Regenerated.
24077         * lib/unictype/decdigit.h: Regenerated.
24078         * lib/unictype/digit.h: Regenerated.
24079         * lib/unictype/mirror.h: Regenerated.
24080         * lib/unictype/numeric.h: Regenerated.
24081         * lib/unictype/pr_alphabetic.h: Regenerated.
24082         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24083         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24084         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24085         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24086         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24087         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24088         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24089         * lib/unictype/pr_combining.h: Regenerated.
24090         * lib/unictype/pr_dash.h: Regenerated.
24091         * lib/unictype/pr_decimal_digit.h: Regenerated.
24092         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24093         * lib/unictype/pr_deprecated.h: Regenerated.
24094         * lib/unictype/pr_diacritic.h: Regenerated.
24095         * lib/unictype/pr_extender.h: Regenerated.
24096         * lib/unictype/pr_format_control.h: Regenerated.
24097         * lib/unictype/pr_grapheme_base.h: Regenerated.
24098         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24099         * lib/unictype/pr_grapheme_link.h: Regenerated.
24100         * lib/unictype/pr_id_continue.h: Regenerated.
24101         * lib/unictype/pr_id_start.h: Regenerated.
24102         * lib/unictype/pr_ideographic.h: Regenerated.
24103         * lib/unictype/pr_ignorable_control.h: Regenerated.
24104         * lib/unictype/pr_lowercase.h: Regenerated.
24105         * lib/unictype/pr_math.h: Regenerated.
24106         * lib/unictype/pr_numeric.h: Regenerated.
24107         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24108         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24109         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24110         * lib/unictype/pr_other_id_continue.h: Regenerated.
24111         * lib/unictype/pr_other_lowercase.h: Regenerated.
24112         * lib/unictype/pr_other_math.h: Regenerated.
24113         * lib/unictype/pr_punctuation.h: Regenerated.
24114         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24115         * lib/unictype/pr_soft_dotted.h: Regenerated.
24116         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24117         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24118         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24119         * lib/unictype/pr_uppercase.h: Regenerated.
24120         * lib/unictype/pr_xid_continue.h: Regenerated.
24121         * lib/unictype/pr_xid_start.h: Regenerated.
24122         * lib/unictype/pr_zero_width.h: Regenerated.
24123         * lib/unictype/scripts.h: Regenerated.
24124         * lib/unictype/scripts_byname.gperf: Regenerated.
24125         * lib/unictype/sy_java_ident.h: Regenerated.
24126         * lib/unilbrk/lbrkprop1.h: Regenerated.
24127         * lib/unilbrk/lbrkprop2.h: Regenerated.
24128         * tests/unictype/test-categ_C.c: Regenerated.
24129         * tests/unictype/test-categ_Cf.c: Regenerated.
24130         * tests/unictype/test-categ_Cn.c: Regenerated.
24131         * tests/unictype/test-categ_L.c: Regenerated.
24132         * tests/unictype/test-categ_Ll.c: Regenerated.
24133         * tests/unictype/test-categ_Lm.c: Regenerated.
24134         * tests/unictype/test-categ_Lo.c: Regenerated.
24135         * tests/unictype/test-categ_Lu.c: Regenerated.
24136         * tests/unictype/test-categ_M.c: Regenerated.
24137         * tests/unictype/test-categ_Mc.c: Regenerated.
24138         * tests/unictype/test-categ_Me.c: Regenerated.
24139         * tests/unictype/test-categ_Mn.c: Regenerated.
24140         * tests/unictype/test-categ_N.c: Regenerated.
24141         * tests/unictype/test-categ_Nd.c: Regenerated.
24142         * tests/unictype/test-categ_Nl.c: Regenerated.
24143         * tests/unictype/test-categ_No.c: Regenerated.
24144         * tests/unictype/test-categ_P.c: Regenerated.
24145         * tests/unictype/test-categ_Pd.c: Regenerated.
24146         * tests/unictype/test-categ_Pe.c: Regenerated.
24147         * tests/unictype/test-categ_Pf.c: Regenerated.
24148         * tests/unictype/test-categ_Pi.c: Regenerated.
24149         * tests/unictype/test-categ_Po.c: Regenerated.
24150         * tests/unictype/test-categ_Ps.c: Regenerated.
24151         * tests/unictype/test-categ_S.c: Regenerated.
24152         * tests/unictype/test-categ_Sk.c: Regenerated.
24153         * tests/unictype/test-categ_Sm.c: Regenerated.
24154         * tests/unictype/test-categ_So.c: Regenerated.
24155         * tests/unictype/test-ctype_alnum.c: Regenerated.
24156         * tests/unictype/test-ctype_alpha.c: Regenerated.
24157         * tests/unictype/test-ctype_graph.c: Regenerated.
24158         * tests/unictype/test-ctype_lower.c: Regenerated.
24159         * tests/unictype/test-ctype_print.c: Regenerated.
24160         * tests/unictype/test-ctype_punct.c: Regenerated.
24161         * tests/unictype/test-ctype_upper.c: Regenerated.
24162         * tests/unictype/test-decdigit.h: Regenerated.
24163         * tests/unictype/test-digit.h: Regenerated.
24164         * tests/unictype/test-numeric.h: Regenerated.
24165         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24166         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24167         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24168         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24169         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24170         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24171         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24172         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24173         * tests/unictype/test-pr_combining.c: Regenerated.
24174         * tests/unictype/test-pr_dash.c: Regenerated.
24175         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24176         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24177         * tests/unictype/test-pr_deprecated.c: Regenerated.
24178         * tests/unictype/test-pr_diacritic.c: Regenerated.
24179         * tests/unictype/test-pr_extender.c: Regenerated.
24180         * tests/unictype/test-pr_format_control.c: Regenerated.
24181         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24182         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24183         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24184         * tests/unictype/test-pr_id_continue.c: Regenerated.
24185         * tests/unictype/test-pr_id_start.c: Regenerated.
24186         * tests/unictype/test-pr_ideographic.c: Regenerated.
24187         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24188         * tests/unictype/test-pr_lowercase.c: Regenerated.
24189         * tests/unictype/test-pr_math.c: Regenerated.
24190         * tests/unictype/test-pr_numeric.c: Regenerated.
24191         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24192         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24193         Regenerated.
24194         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24195         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24196         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24197         * tests/unictype/test-pr_other_math.c: Regenerated.
24198         * tests/unictype/test-pr_punctuation.c: Regenerated.
24199         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24200         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24201         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24202         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24203         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24204         * tests/unictype/test-pr_uppercase.c: Regenerated.
24205         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24206         * tests/unictype/test-pr_xid_start.c: Regenerated.
24207         * tests/unictype/test-pr_zero_width.c: Regenerated.
24208
24209         Update to Unicode 5.1.0.
24210         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24211         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24212         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24213         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24214         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24215         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24216         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24217         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24218         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24219         (nonspacing_table_ind): Update.
24220         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24221
24222         Update to Unicode 5.1.0.
24223         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24224         code transform.
24225         * lib/uniname/uniname.c (unicode_character_name,
24226         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24227         * lib/uniname/uninames.h: Regenerated.
24228         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24229
24230 2009-02-07  Bruno Haible  <bruno@clisp.org>
24231
24232         Merge gen-ctype and gen-lbrk into a single program.
24233         * lib/gen-uni-tables.c: New file, incorporating
24234         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24235         Add directory prefixes to the names of the generated files.
24236         * lib/unictype/gen-ctype.c: Remove file.
24237         * lib/unilbrk/gen-lbrk.c: Remove file.
24238         * modules/gen-uni-tables: New file.
24239         * modules/unictype/gen-ctype: Remove file.
24240         * modules/unilbrk/gen-lbrk: Remove file.
24241
24242 2009-02-07  Bruno Haible  <bruno@clisp.org>
24243
24244         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24245
24246         New module 'unistr/u32-strcoll'.
24247         * modules/unistr/u32-strcoll: New file.
24248         * lib/unistr/u32-strcoll.c: New file.
24249
24250         New module 'unistr/u16-strcoll'.
24251         * modules/unistr/u16-strcoll: New file.
24252         * lib/unistr/u16-strcoll.c: New file.
24253
24254         New module 'unistr/u8-strcoll'.
24255         * modules/unistr/u8-strcoll: New file.
24256         * lib/unistr/u8-strcoll.c: New file.
24257         * lib/unistr/u-strcoll.h: New file.
24258
24259 2009-02-07  Bruno Haible  <bruno@clisp.org>
24260
24261         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24262         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24263         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24264         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24265         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24266         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24267
24268 2009-02-07  Bruno Haible  <bruno@clisp.org>
24269
24270         Make 64-bit clean.
24271         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24272         output_combclass, output_bidi_category, output_decimal_digit,
24273         output_digit, output_numeric, output_mirror, output_scripts,
24274         output_ident_category): Use proper width specifier in format strings.
24275
24276 2009-02-07  Bruno Haible  <bruno@clisp.org>
24277
24278         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24279         failure behaviour.
24280
24281 2009-02-07  Jim Meyering  <meyering@redhat.com>
24282
24283         regex: avoid compilation failure with upcoming gcc-4.4
24284         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24285         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24286         "... error: integer overflow in preprocessor expression".
24287
24288 2009-02-05  Ben Pfaff  <blp@gnu.org>
24289
24290         Fix link errors on Windows when close module is used.
24291         * modules/close: Add $(LIB_CLOSE) to Link section.
24292         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24293         $(LIB_CLOSE) on Windows.
24294
24295 2009-02-05  Jim Meyering  <meyering@redhat.com>
24296
24297         still avoid unused-parameter warnings, but do it cleanly
24298         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24299         (get_fs_usage): Cast to void instead.
24300         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24301         (dev_from_mount_options, read_file_system_list): Cast to void.
24302         Prompted by Bruno Haible.
24303
24304 2009-02-04  Jim Meyering  <meyering@redhat.com>
24305
24306         fsusage.c: correct copyright year
24307         * lib/fsusage.c: Reflect year in which the change is pushed into
24308
24309         avoid misc. warnings
24310         * lib/fsusage.c (UNUSED_PARAM): Define.
24311         (get_fs_usage): Mark parameter "disk" as unused.
24312         * lib/getugroups.c (getgrent): Use "void" in prototype.
24313         * lib/mountlist.c: Mark unused parameters.
24314         (read_file_system_list): Declare a local with "const".
24315         * lib/nanosleep.c (getnow): Declare static.
24316         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24317
24318         dirfd: set errno upon failure
24319         * lib/dirfd.c: Include <errno.h>.
24320         Set errno to ENOTSUP when returning -1.
24321         * modules/dirfd (Depends-on): Add errno.
24322         Suggested by John Kodis <kodis@comcast.net>.
24323
24324 2009-02-01  Bruno Haible  <bruno@clisp.org>
24325
24326         Don't assume sizeof (long) >= sizeof (void *).
24327         * lib/memcmp.c: Include stdint.h.
24328         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24329         srcp2 to 'const byte *'.
24330         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24331         types to uintptr_t.
24332         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24333         * modules/memcmp (Depends-on): Add stdint.
24334         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24335
24336 2009-01-30  Eric Blake  <ebb9@byu.net>
24337
24338         fix more require-before-expand issues
24339         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24340         expand, AC_PROG_AWK.
24341         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24342
24343 2009-01-28  Eric Blake  <ebb9@byu.net>
24344
24345         version-etc: use consistent URL formatting
24346         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24347         Improve formatting.  Use fputs for string without %.
24348
24349 2009-01-28  Jim Meyering  <meyering@redhat.com>
24350
24351         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24352         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24353         "underquoted definition of NAME" from autoconf-2.59.
24354
24355 2009-01-28  Bruno Haible  <bruno@clisp.org>
24356
24357         * doc/gnulib.texi: Add "Obsolete modules" to index.
24358
24359 2009-01-28  Jim Meyering  <meyering@redhat.com>
24360
24361         useless-if-before-free: recognize more variants
24362         * build-aux/useless-if-before-free: Also recognize e.g.,
24363         if (NULL != p) free (p);
24364
24365 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24366
24367         test-getaddrinfo: skip (don't fail) this test when there's no network
24368         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24369         on the presumption that it means you lack network access.
24370
24371 2009-01-26  Jim Meyering  <meyering@redhat.com>
24372
24373         fflush: avoid warnings on modern systems
24374         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24375         pos and result, into scopes where they're used.
24376
24377 2009-01-26  Eric Blake  <ebb9@byu.net>
24378
24379         Silence warning reintroduced by recent extensions patch.
24380         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24381         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24382         autoconf.
24383
24384         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24385         * m4/00gnulib.m4: New file.
24386         * gnulib-tool (func_get_filelist): Always use it.
24387         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24388         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24389
24390 2009-01-25  Bruno Haible  <bruno@clisp.org>
24391
24392         Make test-quotearg work on MacOS X and AIX.
24393         * tests/test-quotearg.sh: New file.
24394         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24395         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24396         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24397         include <libintl.h>.
24398         (fake_locale): Remove variable.
24399         (gettext, dgettext, dcgettext): Remove functions.
24400         (main): Instead of setting a fake locale, set a real locale. Call
24401         textdomain and bindtextdomain.
24402         * modules/quotearg-tests (Files): Add the new files.
24403         (Depends-on): Add gettext, setenv, unsetenv.
24404         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24405         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24406         Augment TESTS_ENVIRONMENT.
24407
24408 2009-01-25  Bruno Haible  <bruno@clisp.org>
24409
24410         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24411         fr_FR.ISO8859-1 locale on MacOS X.
24412         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24413         ja_JP.eucJP locale on MacOS X.
24414         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24415         zh_CN.GB18030 locale on MacOS X.
24416
24417 2009-01-25  Bruno Haible  <bruno@clisp.org>
24418
24419         Avoid link errors on MacOS X 10.3.
24420         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24421         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24422
24423 2009-01-25  Bruno Haible  <bruno@clisp.org>
24424
24425         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24426         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24427         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24428         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24429         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24430         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24431         posix_spawnattr_init, posix_spawnattr_setsigmask,
24432         posix_spawnattr_setflags, posix_spawnattr_destroy.
24433
24434         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24435         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24436         * modules/execute (Files): Remove m4/posix_spawn.m4.
24437         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24438         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24439         posix_spawnattr_init, posix_spawnattr_setsigmask,
24440         posix_spawnattr_setflags, posix_spawnattr_destroy.
24441
24442 2009-01-25  Bruno Haible  <bruno@clisp.org>
24443
24444         * lib/glthread/threadlib.c: Include <stdlib.h>.
24445
24446 2009-01-25  Bruno Haible  <bruno@clisp.org>
24447
24448         * lib/glthread/threadlib.c (dummy): New declaration.
24449
24450 2009-01-25  Bruno Haible  <bruno@clisp.org>
24451
24452         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24453         multibyte characters also for the GB18030 encoding. Don't crash when
24454         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24455
24456 2009-01-25  Bruno Haible  <bruno@clisp.org>
24457
24458         Avoid redefining 'struct random_data' on OSF/1 5.1.
24459         * lib/stdlib.in.h: Include <random.h> if it exists.
24460         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24461         HAVE_RANDOM_H. Include <random.h> when testing whether
24462         'struct random_data' exists.
24463         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24464
24465 2009-01-25  Bruno Haible  <bruno@clisp.org>
24466
24467         Don't install charset.alias on MacOS X >= 10.3.
24468         * lib/localcharset.c (DARWIN7): New macro.
24469         (get_charset_aliases): Hardcode the result for Darwin7.
24470         * modules/localcharset (install-exec-local): Don't install
24471         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24472
24473 2009-01-25  Bruno Haible  <bruno@clisp.org>
24474
24475         Don't install charset.alias on mingw and Cygwin.
24476         * modules/localcharset (install-exec-local): Don't install
24477         charset.alias on mingw and Cygwin, if the file does not yet exist.
24478         The result for these platforms is hardcoded in localcharset.c.
24479
24480 2009-01-25  Bruno Haible  <bruno@clisp.org>
24481
24482         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24484         before requiring AC_USE_SYSTEM_EXTENSIONS.
24485
24486 2009-01-25  Jim Meyering  <meyering@redhat.com>
24487
24488         c-strtod: avoid warnings
24489         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24490         "assignment discards qualifiers from pointer target type" warnings.
24491
24492 2009-01-24  Bruno Haible  <bruno@clisp.org>
24493
24494         Add support for non-UTF-8 locales on MacOS X.
24495         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24496         canonical encodings. For Darwin 7 and newer, don't map traditional
24497         encodings to UTF-8.
24498         Reported by Vincent Lefevre <vincent@vinc17.org>
24499         at <http://savannah.gnu.org/bugs/?25235>.
24500
24501 2009-01-24  Bruno Haible  <bruno@clisp.org>
24502
24503         * doc/gnulib.texi (Obsolete modules): New section.
24504         Reported by Mike Frysinger <vapier@gentoo.org>.
24505
24506 2009-01-24  Bruno Haible  <bruno@clisp.org>
24507
24508         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24509         (%.dvi): New rule.
24510
24511 2009-01-24  Bruno Haible  <bruno@clisp.org>
24512
24513         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24514         Reported by Eric Blake.
24515
24516 2009-01-24  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24519         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24520         Reported by Gary V. Vaughan <gary@gnu.org>.
24521
24522 2009-01-24  Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24525
24526 2009-01-23  Bruno Haible  <bruno@clisp.org>
24527
24528         Make c-strtod, c-strtold usable in libraries.
24529         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24530         (C_STRTOD): Call strdup instead of xstrdup.
24531         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24532         * modules/c-strtold (Depends-on): Likewise.
24533         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24534         * NEWS: Mention the change.
24535         Reported by Michael Gold <mgold@ncf.ca>.
24536
24537 2009-01-23  Jim Meyering  <meyering@redhat.com>
24538
24539         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24540         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24541         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24542
24543 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24544
24545         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24546         GNU CoreUtils.
24547         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24548         * modules/version-etc (Description): Update.
24549
24550 2009-01-22  Bruno Haible  <bruno@clisp.org>
24551
24552         Cache the C locale object.
24553         * lib/c-strtod.c (c_locale_cache): New variable.
24554         (c_locale): New function.
24555         (C_STRTOD): Use it, and don't call freelocale.
24556         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24557         Suggested by Paolo Bonzini.
24558
24559 2009-01-21  Bruno Haible  <bruno@clisp.org>
24560
24561         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24562         conditions other than overflow.
24563
24564 2009-01-21  Bruno Haible  <bruno@clisp.org>
24565
24566         * lib/c-strtod.c: Include errno.h.
24567         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24568         value from STRTOD_L and STRTOD.
24569
24570 2009-01-21  Bruno Haible  <bruno@clisp.org>
24571         and Jim Meyering  <meyering@redhat.com>
24572
24573         nanosleep: skip configure test (fail it) for apple universal builds
24574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24575         universal builds, assume that nanosleep does not work.
24576         * modules/nanosleep (Depends-on): Add multiarch.
24577
24578         mktime: skip configure test (fail it) for apple universal builds
24579         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24580         universal builds, assume that mktime does not work.
24581         * modules/mktime (Depends-on): Add multiarch.
24582
24583 2009-01-21  Eric Blake  <ebb9@byu.net>
24584
24585         multiarch: avoid expand-before-require warning
24586         * modules/multiarch (configure.ac): Require, rather than expand,
24587         gl_MULTIARCH.
24588         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24589         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24590         enforce that all clients require it.  Partial reversion of
24591         2008-12-29 patch.
24592
24593         error: avoid expand-before-require warning
24594         * modules/errno (configure.ac): Require, rather than expand,
24595         gl_HEADER_ERRNO_H.
24596         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24597         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24598         enforce that all clients require it.
24599
24600         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24601         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24602         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24603         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24604
24605 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24606
24607         Revert:
24608         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24609
24610         regex: do not depend on obsolete modules.
24611         * modules/regex: Remove memcmp and memmove.
24612
24613 2009-01-20  Bruno Haible  <bruno@clisp.org>
24614
24615         Make the 'link' module link on Windows NT 4.
24616         * lib/link.c (_WIN32_WINNT): Don't define.
24617         (CreateHardLinkFuncType): New type.
24618         (CreateHardLinkFunc, initialized): New variables.
24619         (initialize): New function.
24620         (link): Invoke CreateHardLink indirectly through the function pointer.
24621
24622 2009-01-20  Bruno Haible  <bruno@clisp.org>
24623
24624         Fix compilation failure on mingw.
24625         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24626
24627 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24628
24629         * doc/c-strtod.texi: Mention a couple of restrictions.
24630
24631 2009-01-20  Jim Meyering  <meyering@redhat.com>
24632
24633         gettimeofday: move more declarations out of functions
24634         * lib/gettimeofday.c: Move extern declarations of tzset and
24635         gmtime out of containing functions.  Prompted by Bruno Haible.
24636
24637 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24638
24639         regex: do not depend on obsolete modules.
24640         * modules/regex: Remove memcmp and memmove.
24641
24642 2009-01-19  Bruno Haible  <bruno@clisp.org>
24643
24644         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24645         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24646         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24647         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24648         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24649
24650 2009-01-19  Bruno Haible  <bruno@clisp.org>
24651
24652         * tests/test-link.c: Include <errno.h>.
24653         (main): Exit with code 77 when a hard link cannot be created due to
24654         the file system.
24655         * tests/test-link.sh: Skip test when a hard link cannot be created due
24656         to the file system.
24657         Suggested by Eric Blake.
24658
24659 2009-01-19  Martin Lambers  <marlam@marlam.de>
24660
24661         * modules/link-tests: New file.
24662         * tests/test-link.sh: New file.
24663         * tests/test-link.c: New file.
24664
24665 2009-01-19  Eric Blake  <ebb9@byu.net>
24666
24667         doc: mention another function added in cygwin 1.7.0
24668         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24669         Another new function in cygwin 1.7.
24670
24671 2009-01-19  Bruno Haible  <bruno@clisp.org>
24672
24673         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24674         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24675         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24676         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24677         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24678         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24679         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24680         * m4/md4.m4 (gl_MD4): Likewise.
24681         * m4/md5.m4 (gl_MD5): Likewise.
24682         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24683         * m4/sha1.m4 (gl_SHA1): Likewise.
24684         * m4/sha256.m4 (gl_SHA256): Likewise.
24685         * m4/sha512.m4 (gl_SHA512): Likewise.
24686
24687 2009-01-19  Bruno Haible  <bruno@clisp.org>
24688
24689         * modules/uniname/uniname-tests (Depends-on): Add progname.
24690         * tests/uniname/test-uninames.c: Include progname.h.
24691         (main): Call set_program_name.
24692
24693         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24694         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24695         (main): Call set_program_name.
24696
24697         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24698         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24699         (main): Call set_program_name.
24700
24701         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24702         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24703         (main): Call set_program_name.
24704
24705         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24706         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24707         (main): Call set_program_name.
24708
24709         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24710         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24711         (main): Call set_program_name.
24712
24713         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24714         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24715         (main): Call set_program_name.
24716
24717         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24718         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24719         (main): Call set_program_name.
24720
24721         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24722         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24723         (main): Call set_program_name.
24724
24725 2009-01-19  Eric Blake  <ebb9@byu.net>
24726
24727         test-unistd: test previous patch
24728         * tests/test-unistd.c: Test *_FILENO macros.
24729
24730         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24731         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24732         Guarantee a definition.
24733         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24734         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24735         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24736         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24737         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24738         Likewise.
24739         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24740         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24741         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24742         Likewise.
24743         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24744         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24745         (STDERR_FILENO): Likewise.
24746         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24747         (STDERR_FILENO): Likewise.
24748         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24749         (STDERR_FILENO): Likewise.
24750         Reported by Elbert Pol.
24751
24752 2009-01-19  Eric Blake  <ebb9@byu.net>
24753
24754         doc: mention more functions added in cygwin 1.7.0
24755         * doc/posix-functions/abort.texi (abort): Update wording related
24756         to cygwin.
24757         * doc/posix-functions/daylight.texi (daylight): Likewise.
24758         * doc/posix-functions/optarg.texi (optarg): Likewise.
24759         * doc/posix-functions/optarg.texi (opterr): Likewise.
24760         * doc/posix-functions/optarg.texi (optind): Likewise.
24761         * doc/posix-functions/optarg.texi (optopt): Likewise.
24762         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24763         worked in 1.5.x, and was withdrawn in 1.7.
24764         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24765         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24766         cygwin versions.
24767         * doc/posix-functions/perror.texi (perror): Likewise.
24768         * doc/posix-functions/printf.texi (printf): Likewise.
24769         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24770         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24771         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24772         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24773         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24774         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24775         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24776         Likewise.
24777         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24778         Likewise.
24779         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24780         this function.
24781         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24782         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24783         Likewise.
24784         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24785         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24786         * doc/posix-functions/confstr.texi (confstr): Likewise.
24787         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24788         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24789         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24790         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24791         * doc/posix-functions/fputws.texi (fputws): Likewise.
24792         * doc/posix-functions/fwide.texi (fwide): Likewise.
24793         * doc/posix-functions/getwc.texi (getwc): Likewise.
24794         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24795         * doc/posix-functions/putwc.texi (putwc): Likewise.
24796         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24797         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24798         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24799         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24800         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24801         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24802         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24803         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24804         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24805         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24806         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24807
24808 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24809
24810         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24811         * lib/ioctl.c: Include <sys/ioctl.h>.
24812
24813 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24814
24815         * modules/getdate-tests (Depends-on): Add progname.
24816         * tests/test-getdate.c: Use progname module, to avoid link errors
24817         on non-glibc systems.
24818
24819 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24820
24821         * modules/filenamecat-tests (Depends-on): Add progname.
24822         * modules/fstrcmp-tests (Depends-on): Likewise.
24823
24824         * tests/test-filenamecat.c: Use progname module, to avoid link
24825         errors on non-glibc systems.
24826         * tests/test-fstrcmp.c: Likewise.
24827
24828 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24829
24830         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24831         * lib/gettimeofday.c: Move extern declaration out of function.
24832
24833 2009-01-18  Bruno Haible  <bruno@clisp.org>
24834
24835         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24836         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24837         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24838
24839 2009-01-18  Bruno Haible  <bruno@clisp.org>
24840
24841         * lib/strftime.c (MEMPCPY): Remove unused macro.
24842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24843
24844 2009-01-18  Martin Lambers  <marlam@marlam.de>
24845
24846         New module 'link'.
24847         * lib/unistd.in.h (link): New declaration.
24848         * lib/link.c: New file.
24849         * m4/link.m4: New file.
24850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24851         HAVE_LINK.
24852         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24853         * modules/link: New file.
24854         * doc/posix-functions/link.texi: Mention the new module.
24855
24856 2009-01-18  Bruno Haible  <bruno@clisp.org>
24857
24858         * tests/test-avltree_list.c (main): Call set_program_name.
24859         * tests/test-avltree_oset.c (main): Likewise.
24860         * tests/test-obstack-printf.c: Include progname.h.
24861         (main): Call set_program_name.
24862         * tests/test-quotearg.c: Include progname.h.
24863         (main): Call set_program_name.
24864         * tests/test-xmemdup0.c: Include progname.h.
24865         (main): Call set_program_name.
24866
24867 2009-01-18  Bruno Haible  <bruno@clisp.org>
24868
24869         New module 'alphasort'.
24870         * lib/dirent.in.h (alphasort): New declaration.
24871         * lib/alphasort.c: New file, from glibc with modifications.
24872         * m4/alphasort.m4: New file.
24873         * modules/alphasort: New file.
24874         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
24875         HAVE_ALPHASORT.
24876         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
24877         HAVE_ALPHASORT.
24878         * doc/posix-functions/alphasort.texi: Mention the new module and the
24879         portability problems.
24880
24881 2009-01-18  Bruno Haible  <bruno@clisp.org>
24882
24883         New module 'scandir'.
24884         * lib/dirent.in.h (scandir): New declaration.
24885         * lib/scandir.c: New file, from glibc with modifications.
24886         * m4/scandir.m4: New file.
24887         * modules/scandir: New file.
24888         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
24889         HAVE_SCANDIR.
24890         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
24891         HAVE_SCANDIR.
24892         * doc/posix-functions/scandir.texi: Mention the new module and the
24893         portability problems.
24894
24895 2009-01-17  Bruno Haible  <bruno@clisp.org>
24896
24897         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
24898         Update documentation.
24899         (func_remove_suffix): Escape all dots in the suffix. Update
24900         documentation.
24901         (func_filter_filelist): Update documentation.
24902         Reported by Ralf Wildenhues.
24903
24904 2009-01-17  Bruno Haible  <bruno@clisp.org>
24905
24906         * modules/dprintf-posix-tests: New file.
24907         * tests/test-dprintf-posix.sh: New file.
24908         * tests/test-dprintf-posix.c: New file.
24909
24910         New modules 'dprintf', 'dprintf-posix'.
24911         * lib/stdio.in.h (dprintf): New declaration.
24912         * lib/dprintf.c: New file.
24913         * m4/dprintf.m4: New file.
24914         * m4/dprintf-posix.m4: New file.
24915         * modules/dprintf: New file.
24916         * modules/dprintf-posix: New file.
24917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
24918         HAVE_DPRINTF, REPLACE_DPRINTF.
24919         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
24920         HAVE_DPRINTF, REPLACE_DPRINTF.
24921         * doc/posix-functions/dprintf.texi: Mention the new modules.
24922
24923 2009-01-17  Bruno Haible  <bruno@clisp.org>
24924
24925         * modules/vdprintf-posix-tests: New file.
24926         * tests/test-vdprintf-posix.sh: New file.
24927         * tests/test-vdprintf-posix.c: New file.
24928
24929         New modules 'vdprintf', 'vdprintf-posix'.
24930         * lib/stdio.in.h (vdprintf): New declaration.
24931         * lib/vdprintf.c: New file.
24932         * m4/vdprintf.m4: New file.
24933         * m4/vdprintf-posix.m4: New file.
24934         * modules/vdprintf: New file.
24935         * modules/vdprintf-posix: New file.
24936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
24937         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24938         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
24939         HAVE_VDPRINTF, REPLACE_VDPRINTF.
24940         * doc/posix-functions/vdprintf.texi: Mention the new modules.
24941
24942 2009-01-17  Bruno Haible  <bruno@clisp.org>
24943
24944         Fix replacement of fopen on mingw.
24945         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
24946         mingw.
24947
24948 2009-01-17  Bruno Haible  <bruno@clisp.org>
24949
24950         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
24951         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
24952
24953 2009-01-17  Bruno Haible  <bruno@clisp.org>
24954
24955         Avoid test-fflush2.sh failure on mingw.
24956         * tests/test-fflush2.c: Include binary-io.h.
24957         (main): Put standard input into binary mode.
24958         * modules/fflush-tests (Depends-on): Add binary-io.
24959
24960 2009-01-17  Bruno Haible  <bruno@clisp.org>
24961
24962         * lib/wchar.in.h: In another particular situation, include only the
24963         system's <wchar.h> file.
24964         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
24965         Reported by Albert Chin-A-Young <china@thewrittenword.com>
24966         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
24967
24968 2009-01-17  Bruno Haible  <bruno@clisp.org>
24969
24970         Support for stripping executables in --enable-relocatable.
24971         * build-aux/install-reloc: Expect one more argument, or an environment
24972         variable RELOC_STRIP_PROG. If set, strip the destination program and
24973         its wrapper.
24974         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
24975         RELOC_STRIP_PROG.
24976         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
24977         to set RELOCATABLE_STRIP.
24978         * NEWS: Mention the new Makefile requirement.
24979
24980 2009-01-17  Bruno Haible  <bruno@clisp.org>
24981
24982         * build-aux/install-reloc: Remove debugging information left over by
24983         C compiler on MacOS X.
24984
24985 2009-01-17  Bruno Haible  <bruno@clisp.org>
24986
24987         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
24988         * lib/progreloc.c (find_executable): Fix type of pointer passed to
24989         _NSGetExecutablePath.
24990
24991 2009-01-16  Jim Meyering  <meyering@redhat.com>
24992
24993         strerror: avoid warnings about discarding "const"
24994         * lib/strerror.c (rpl_strerror): Instead of returning a const
24995         string from each and every "case", use a variable, and add a single
24996         cast after the switch.
24997
24998 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
24999
25000         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25001
25002 2009-01-16  Bruno Haible  <bruno@clisp.org>
25003
25004         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25005         array initializer syntax that also works in C++ mode.
25006         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25007
25008 2009-01-16  Jim Meyering  <meyering@redhat.com>
25009
25010         poll: suppress a warning
25011         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25012         to ignore "...unsigned expression < 0 is always false" warnings.
25013
25014 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25015
25016         poll: remove declarations of unused variables
25017         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25018         sockbuf and optlen.
25019
25020 2009-01-15  Bruno Haible  <bruno@clisp.org>
25021
25022         Make fflush-after-ungetc POSIX compliant on BSD systems.
25023         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25024         (clear_ungetc_buffer): Implement also for other systems.
25025         (rpl_fflush): On glibc systems, invoke
25026         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25027         clear_ungetc_buffer after fetching the stream's position, not before.
25028
25029 2009-01-15  Bruno Haible  <bruno@clisp.org>
25030
25031         Make fflush-after-ungetc POSIX compliant on glibc systems.
25032         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25033         after ungetc.
25034         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25035         (rpl_fflush): On glibc systems, simply call the system's fflush
25036         function after clearing the ungetc buffer.
25037         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25038         Instead, lseek only to the end of file, then use the system's fseeko
25039         for the rest. On glibc systems, reset the EOF indicator bit.
25040
25041 2009-01-15  Jim Meyering  <meyering@redhat.com>
25042
25043         openmp.m4: revert quote-adding change, for portability to older autoconf
25044         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25045         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25046         Simon Josefsson noticed the problem when using autoconf-2.61.
25047
25048 2009-01-15  Bruno Haible  <bruno@clisp.org>
25049
25050         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25051         * tests/test-fflush2.c (ASSERT): Always fail.
25052         (main): Add two tests for fflush() after ungetc(), taking into account
25053         the Austin Group's clarification.
25054         Suggested by Eric Blake.
25055
25056 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25057
25058         mktime.m4: remove K&R-style function prototypes
25059         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25060         for the Sun C++ compiler.
25061
25062 2009-01-14  Bruno Haible  <bruno@clisp.org>
25063
25064         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25065         while including <wchar.h>.
25066         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25067         the system's <wchar.h> file.
25068         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25069
25070 2009-01-14  Bruno Haible  <bruno@clisp.org>
25071
25072         * m4/csharp.m4: Don't mention gettext on the serial number line.
25073         * m4/csharpexec.m4: Likewise.
25074         * m4/eaccess.m4: Likewise.
25075         * m4/javaexec.m4: Likewise.
25076         * m4/sig_atomic_t.m4: Likewise.
25077         * m4/tmpdir.m4: Likewise.
25078         * m4/intldir.m4: Bump gettext version.
25079         * m4/lib-ld.m4: Likewise.
25080
25081 2009-01-14  Bruno Haible  <bruno@clisp.org>
25082
25083         * lib/progname.c (set_program_name): Add more comments.
25084         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25085
25086 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25087
25088         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25089         were sys/stat.h does not define it.
25090
25091 2009-01-14  Jim Meyering  <meyering@redhat.com>
25092
25093         many *.m4 files: improve m4 quoting
25094         99% of this change was performed by running the following commands:
25095         git ls-files | grep '\.m4$' | xargs perl -pi \
25096           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25097           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25098           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25099           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25100         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25101         The remainder were to add Copyright dates, increment serial numbers,
25102         undo some changes in comments, exclude m4/intl.m4, and add quotes
25103         around the "1" in ",1" where the unusual spacing prohibited the
25104         above regexps from doing the job.  For more details, see
25105         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25106         * m4/acl.m4: Modified.
25107         * m4/afs.m4: Likewise.
25108         * m4/alloca.m4: Likewise.
25109         * m4/argp.m4: Likewise.
25110         * m4/argz.m4: Likewise.
25111         * m4/atexit.m4: Likewise.
25112         * m4/bison-i18n.m4: Likewise.
25113         * m4/bison.m4: Likewise.
25114         * m4/byteswap.m4: Likewise.
25115         * m4/c-stack.m4: Likewise.
25116         * m4/c-strtod.m4: Likewise.
25117         * m4/calloc.m4: Likewise.
25118         * m4/canonicalize-lgpl.m4: Likewise.
25119         * m4/chown.m4: Likewise.
25120         * m4/clock_time.m4: Likewise.
25121         * m4/codeset.m4: Likewise.
25122         * m4/copy-file.m4: Likewise.
25123         * m4/csharp.m4: Likewise.
25124         * m4/csharpcomp.m4: Likewise.
25125         * m4/csharpexec.m4: Likewise.
25126         * m4/d-ino.m4: Likewise.
25127         * m4/d-type.m4: Likewise.
25128         * m4/dirfd.m4: Likewise.
25129         * m4/double-slash-root.m4: Likewise.
25130         * m4/eaccess.m4: Likewise.
25131         * m4/eealloc.m4: Likewise.
25132         * m4/environ.m4: Likewise.
25133         * m4/errno_h.m4: Likewise.
25134         * m4/euidaccess.m4: Likewise.
25135         * m4/execute.m4: Likewise.
25136         * m4/fatal-signal.m4: Likewise.
25137         * m4/fchdir.m4: Likewise.
25138         * m4/fcntl_h.m4: Likewise.
25139         * m4/fileblocks.m4: Likewise.
25140         * m4/filenamecat.m4: Likewise.
25141         * m4/findprog.m4: Likewise.
25142         * m4/flexmember.m4: Likewise.
25143         * m4/fnmatch.m4: Likewise.
25144         * m4/fopen.m4: Likewise.
25145         * m4/fpending.m4: Likewise.
25146         * m4/fprintf-posix.m4: Likewise.
25147         * m4/free.m4: Likewise.
25148         * m4/frexp.m4: Likewise.
25149         * m4/frexpl.m4: Likewise.
25150         * m4/fsusage.m4: Likewise.
25151         * m4/ftruncate.m4: Likewise.
25152         * m4/gc-camellia.m4: Likewise.
25153         * m4/gc-random.m4: Likewise.
25154         * m4/gc.m4: Likewise.
25155         * m4/getaddrinfo.m4: Likewise.
25156         * m4/getcwd-abort-bug.m4: Likewise.
25157         * m4/getcwd-path-max.m4: Likewise.
25158         * m4/getdate.m4: Likewise.
25159         * m4/getdomainname.m4: Likewise.
25160         * m4/getgroups.m4: Likewise.
25161         * m4/gethostname.m4: Likewise.
25162         * m4/gethrxtime.m4: Likewise.
25163         * m4/getline.m4: Likewise.
25164         * m4/getloadavg.m4: Likewise.
25165         * m4/getndelim2.m4: Likewise.
25166         * m4/getpass.m4: Likewise.
25167         * m4/gettext.m4: Likewise.
25168         * m4/gettime.m4: Likewise.
25169         * m4/gettimeofday.m4: Likewise.
25170         * m4/gnulib-common.m4: Likewise.
25171         * m4/group-member.m4: Likewise.
25172         * m4/host-os.m4: Likewise.
25173         * m4/iconv.m4: Likewise.
25174         * m4/iconv_open.m4: Likewise.
25175         * m4/inet_ntop.m4: Likewise.
25176         * m4/inet_pton.m4: Likewise.
25177         * m4/inline.m4: Likewise.
25178         * m4/intldir.m4: Likewise.
25179         * m4/intlmacosx.m4: Likewise.
25180         * m4/intmax.m4: Likewise.
25181         * m4/intmax_t.m4: Likewise.
25182         * m4/inttypes.m4: Likewise.
25183         * m4/inttypes_h.m4: Likewise.
25184         * m4/inttypes-pri.m4: Likewise.
25185         * m4/isapipe.m4: Likewise.
25186         * m4/isnand.m4: Likewise.
25187         * m4/isnanf.m4: Likewise.
25188         * m4/isnanl.m4: Likewise.
25189         * m4/javacomp.m4: Likewise.
25190         * m4/javaexec.m4: Likewise.
25191         * m4/jm-winsz1.m4: Likewise.
25192         * m4/jm-winsz2.m4: Likewise.
25193         * m4/lchown.m4: Likewise.
25194         * m4/lcmessage.m4: Likewise.
25195         * m4/ldexpl.m4: Likewise.
25196         * m4/lib-ld.m4: Likewise.
25197         * m4/lib-link.m4: Likewise.
25198         * m4/libsigsegv.m4: Likewise.
25199         * m4/link-follow.m4: Likewise.
25200         * m4/localcharset.m4: Likewise.
25201         * m4/locale-fr.m4: Likewise.
25202         * m4/locale-ja.m4: Likewise.
25203         * m4/locale-tr.m4: Likewise.
25204         * m4/locale-zh.m4: Likewise.
25205         * m4/lock.m4: Likewise.
25206         * m4/longlong.m4: Likewise.
25207         * m4/ls-mntd-fs.m4: Likewise.
25208         * m4/lstat.m4: Likewise.
25209         * m4/malloc.m4: Likewise.
25210         * m4/mathl.m4: Likewise.
25211         * m4/mbrtowc.m4: Likewise.
25212         * m4/mbstate_t.m4: Likewise.
25213         * m4/mbswidth.m4: Likewise.
25214         * m4/memchr.m4: Likewise.
25215         * m4/memcmp.m4: Likewise.
25216         * m4/memcpy.m4: Likewise.
25217         * m4/memmem.m4: Likewise.
25218         * m4/memmove.m4: Likewise.
25219         * m4/mempcpy.m4: Likewise.
25220         * m4/memrchr.m4: Likewise.
25221         * m4/memset.m4: Likewise.
25222         * m4/minmax.m4: Likewise.
25223         * m4/mkdir-slash.m4: Likewise.
25224         * m4/mkdtemp.m4: Likewise.
25225         * m4/mktime.m4: Likewise.
25226         * m4/mmap-anon.m4: Likewise.
25227         * m4/mountlist.m4: Likewise.
25228         * m4/nanosleep.m4: Likewise.
25229         * m4/nls.m4: Likewise.
25230         * m4/nocrash.m4: Likewise.
25231         * m4/open.m4: Likewise.
25232         * m4/openat.m4: Likewise.
25233         * m4/openmp.m4: Likewise.
25234         * m4/pathmax.m4: Likewise.
25235         * m4/perl.m4: Likewise.
25236         * m4/physmem.m4: Likewise.
25237         * m4/pipe.m4: Likewise.
25238         * m4/po.m4: Likewise.
25239         * m4/poll.m4: Likewise.
25240         * m4/posixtm.m4: Likewise.
25241         * m4/posixver.m4: Likewise.
25242         * m4/printf-frexp.m4: Likewise.
25243         * m4/printf-frexpl.m4: Likewise.
25244         * m4/printf-posix.m4: Likewise.
25245         * m4/printf-posix-rpl.m4: Likewise.
25246         * m4/printf.m4: Likewise.
25247         * m4/progtest.m4: Likewise.
25248         * m4/putenv.m4: Likewise.
25249         * m4/readline.m4: Likewise.
25250         * m4/readlink.m4: Likewise.
25251         * m4/readutmp.m4: Likewise.
25252         * m4/realloc.m4: Likewise.
25253         * m4/regex.m4: Likewise.
25254         * m4/relocatable.m4: Likewise.
25255         * m4/relocatable-lib.m4: Likewise.
25256         * m4/rename-dest-slash.m4: Likewise.
25257         * m4/rename.m4: Likewise.
25258         * m4/rmdir-errno.m4: Likewise.
25259         * m4/rmdir.m4: Likewise.
25260         * m4/roundf.m4: Likewise.
25261         * m4/roundl.m4: Likewise.
25262         * m4/rpmatch.m4: Likewise.
25263         * m4/save-cwd.m4: Likewise.
25264         * m4/selinux-selinux-h.m4: Likewise.
25265         * m4/setenv.m4: Likewise.
25266         * m4/settime.m4: Likewise.
25267         * m4/sig2str.m4: Likewise.
25268         * m4/sig_atomic_t.m4: Likewise.
25269         * m4/signalblocking.m4: Likewise.
25270         * m4/signbit.m4: Likewise.
25271         * m4/sigpipe.m4: Likewise.
25272         * m4/sockets.m4: Likewise.
25273         * m4/sockpfaf.m4: Likewise.
25274         * m4/st_dm_mode.m4: Likewise.
25275         * m4/stat-time.m4: Likewise.
25276         * m4/stdbool.m4: Likewise.
25277         * m4/stdint.m4: Likewise.
25278         * m4/stdint_h.m4: Likewise.
25279         * m4/stpcpy.m4: Likewise.
25280         * m4/stpncpy.m4: Likewise.
25281         * m4/strcase.m4: Likewise.
25282         * m4/strchrnul.m4: Likewise.
25283         * m4/strcspn.m4: Likewise.
25284         * m4/strdup.m4: Likewise.
25285         * m4/strftime.m4: Likewise.
25286         * m4/strndup.m4: Likewise.
25287         * m4/strnlen.m4: Likewise.
25288         * m4/strpbrk.m4: Likewise.
25289         * m4/strptime.m4: Likewise.
25290         * m4/strsep.m4: Likewise.
25291         * m4/strtod.m4: Likewise.
25292         * m4/strtoimax.m4: Likewise.
25293         * m4/strtok_r.m4: Likewise.
25294         * m4/strtol.m4: Likewise.
25295         * m4/strtoll.m4: Likewise.
25296         * m4/strtoul.m4: Likewise.
25297         * m4/strtoull.m4: Likewise.
25298         * m4/strtoumax.m4: Likewise.
25299         * m4/strverscmp.m4: Likewise.
25300         * m4/threadlib.m4: Likewise.
25301         * m4/timegm.m4: Likewise.
25302         * m4/tm_gmtoff.m4: Likewise.
25303         * m4/tmpdir.m4: Likewise.
25304         * m4/tmpfile.m4: Likewise.
25305         * m4/tzset.m4: Likewise.
25306         * m4/uintmax_t.m4: Likewise.
25307         * m4/unlinkdir.m4: Likewise.
25308         * m4/unlocked-io.m4: Likewise.
25309         * m4/uptime.m4: Likewise.
25310         * m4/userspec.m4: Likewise.
25311         * m4/utimbuf.m4: Likewise.
25312         * m4/utime.m4: Likewise.
25313         * m4/utimes-null.m4: Likewise.
25314         * m4/utimes.m4: Likewise.
25315         * m4/vararrays.m4: Likewise.
25316         * m4/vasnprintf.m4: Likewise.
25317         * m4/vfprintf-posix.m4: Likewise.
25318         * m4/vprintf-posix.m4: Likewise.
25319         * m4/wait-process.m4: Likewise.
25320         * m4/wchar_t.m4: Likewise.
25321         * m4/wint_t.m4: Likewise.
25322         * m4/write-any-file.m4: Likewise.
25323         * m4/yield.m4: Likewise.
25324
25325 2009-01-13  Bruno Haible  <bruno@clisp.org>
25326
25327         Avoid test-copy-file.sh failures when ACL support insufficient.
25328         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25329         TESTS_ENVIRONMENT.
25330         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25331         Reported by Jim Meyering.
25332
25333 2009-01-13  Bruno Haible  <bruno@clisp.org>
25334
25335         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25336         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25337         * modules/unistdio/u8-printf-parse (Files): Likewise.
25338         * modules/unistdio/u32-printf-parse (Files): Likewise.
25339         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25340
25341 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25342
25343         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25344         and m4/inttypes_h.m4 too.
25345
25346 2009-01-12  Eric Blake  <ebb9@byu.net>
25347
25348         tests: IRIX 6.2 cc can't compile -0.0 into .data
25349         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25350         rather than at compile-time.
25351         * tests/test-floorl.c (minus_zero): Likewise.
25352         * tests/test-frexpl.c (minus_zero): Likewise.
25353         * tests/test-isnan.c (minus_zerol): Likewise.
25354         * tests/test-isnanl.h (minus_zero): Likewise.
25355         * tests/test-ldexpl.c (minus_zero): Likewise.
25356         * tests/test-roundl.c (minus_zero): Likewise.
25357         * tests/test-signbit.c (minus_zerol): Likewise.
25358         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25359         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25360         * tests/test-truncl.c (minus_zero): Likewise.
25361         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25362         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25363         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25364
25365 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25366
25367         regex: fix glibc bug 9697
25368         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25369         handling.
25370
25371 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25372
25373         regex: fix glibc bug 697
25374         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25375         being NULL also if there are no backreferences.
25376
25377 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25378
25379         regex: merge glibc changes
25380         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25381         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25382         re_string_skip_chars, re_string_reconstruct): Likewise.
25383         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25384
25385 2009-01-07  Jim Meyering  <meyering@redhat.com>
25386
25387         poll: filter through cppi
25388         * lib/poll.c: Indent cpp directives to reflect nesting.
25389
25390 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25391
25392         poll: don't return uninitialized
25393         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25394
25395 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25396
25397         avoid compile failure on AIX 6.1
25398         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25399         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25400
25401 2009-01-04  Jim Meyering  <meyering@redhat.com>
25402
25403         remove duplicate inclusion of <stdio.h>
25404         * tests/test-fprintf-posix.c: Likewise.
25405         * tests/test-printf-posix.c: Likewise.
25406         * tests/test-snprintf-posix.c: Likewise.
25407         * tests/test-sprintf-posix.c: Likewise.
25408         * tests/test-vasprintf-posix.c: Likewise.
25409         * tests/test-vfprintf-posix.c: Likewise.
25410         * tests/test-vprintf-posix.c: Likewise.
25411         * tests/test-vsnprintf-posix.c: Likewise.
25412         * tests/test-vsprintf-posix.c: Likewise.
25413
25414 2009-01-03  Jim Meyering  <meyering@redhat.com>
25415
25416         gnulib-tool: fix sed-based filtering
25417         * gnulib-tool (func_filter_filelist): Remove extra backslash
25418         in sed_fff_filter definition.
25419
25420 2009-01-02  Jim Meyering  <meyering@redhat.com>
25421
25422         strftime: avoid compilation failure on Solaris 2.6
25423         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25424         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25425         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25426         be available.  Reported by Tom G. Christensen.  Details in
25427         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25428
25429 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25430             Bruno Haible  <bruno@clisp.org>
25431
25432         Speed up gnulib-tool by doing more string processing through shell
25433         built-ins.
25434         * gnulib-tool (fast_func_append): New variable.
25435         (func_remove_prefix, func_remove_suffix): New functions.
25436         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25437         (func_filter_filelist): New function.
25438         (func_get_dependencies): Use func_remove_suffix instead of sed.
25439         (func_get_automake_snippet): Use func_filter_filelist instead of a
25440         subshell and sed invocation.
25441
25442 2009-01-01  Bruno Haible  <bruno@clisp.org>
25443
25444         Fix a security bug.
25445         * gnulib-tool (func_import, import, update): Don't allow the characters
25446         '"', '$', '`', '\' in macro arguments that become part of commands that
25447         are evaluated.
25448
25449 2009-01-01  Bruno Haible  <bruno@clisp.org>
25450
25451         * gnulib-tool (func_reset_sigpipe): Add more comments.
25452
25453 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25454
25455         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25456         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25457         already know the answer.
25458
25459 2009-01-01  Jim Meyering  <meyering@redhat.com>
25460
25461         * lib/version-etc.c (version_etc_va): Update copyright year.
25462
25463 2008-12-30  Bruno Haible  <bruno@clisp.org>
25464
25465         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25466         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25467         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25468
25469 2008-12-29  Eric Blake  <ebb9@byu.net>
25470
25471         multiarch: avoid autoconf AC_REQUIRE bug
25472         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25473         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25474         2.63 and older.
25475         Reported by Bruno Haible, and analyzed in
25476         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25477
25478 2008-12-29  Bruno Haible  <bruno@clisp.org>
25479
25480         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25481         files in subdirectories correctly.
25482         Reported by Ralf Wildenhues.
25483
25484 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25485
25486         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25487         rather than 'join FILE -', for Solaris join.
25488
25489 2008-12-29  Bruno Haible  <bruno@clisp.org>
25490
25491         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25492         quoting.
25493         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25494         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25495         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25496         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25497         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25498         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25499         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25500         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25501         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25502         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25503         * m4/nls.m4 (AM_NLS): Likewise.
25504         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25505         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25506         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25507         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25508         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25509         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25510         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25511         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25512         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25513         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25514         * m4/xsize.m4 (gl_XSIZE): Likewise.
25515         Suggested by Jim Meyering.
25516
25517 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25518
25519         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25520         * lib/parse-duration.c: use a switch instead of cascading if's.
25521
25522 2008-12-29  Eric Blake  <ebb9@byu.net>
25523
25524         wchar.h: supply WEOF on Irix 5.3
25525         * lib/wchar.in.h (wint_t): Also supply WEOF.
25526         * lib/wctype.in.h (wint_t): Likewise.
25527         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25528         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25529         Reported by Tom G. Christensen.
25530
25531 2008-12-26  Bruno Haible  <bruno@clisp.org>
25532
25533         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25534         i486, i586, i686.
25535
25536 2008-12-26  Bruno Haible  <bruno@clisp.org>
25537
25538         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25539
25540 2008-12-26  Bruno Haible  <bruno@clisp.org>
25541
25542         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25543         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25544         not __STDC_CONSTANT_MACROS.
25545         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25546
25547 2008-12-25  Bruno Haible  <bruno@clisp.org>
25548
25549         Add support for universal builds to vasnprintf.
25550         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25551         universal builds, guess no.
25552         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25553         * modules/vasprintf-posix (Depends-on): Likewise.
25554         * modules/fprintf-posix (Depends-on): Likewise.
25555         * modules/vfprintf-posix (Depends-on): Likewise.
25556         * modules/snprintf-posix (Depends-on): Likewise.
25557         * modules/vsnprintf-posix (Depends-on): Likewise.
25558         * modules/sprintf-posix (Depends-on): Likewise.
25559         * modules/vsprintf-posix (Depends-on): Likewise.
25560         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25561         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25562         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25563         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25564         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25565         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25566         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25567
25568         Add support for universal builds to <inttypes.h>.
25569         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25570         _SCNu64_PREFIX): In Apple
25571         universal builds, define directly, using _LP64.
25572         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25573         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25574         * modules/inttypes (Depends-on): Add multiarch.
25575         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25576
25577         Add support for universal builds to <stdint.h>.
25578         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25579         universal builds, define directly, using _LP64.
25580         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25581         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25582         and size_t.
25583         * modules/stdint (Depends-on): Add multiarch.
25584         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25585
25586         New module 'multiarch'.
25587         * modules/multiarch: New file.
25588         * m4/multiarch.m4: New file.
25589
25590 2008-12-25  Bruno Haible  <bruno@clisp.org>
25591
25592         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25593
25594 2008-12-25  Bruno Haible  <bruno@clisp.org>
25595
25596         * modules/btowc (License): Relicense under LGPLv2+.
25597         * modules/mbsinit (License): Likewise.
25598         * modules/mbrtowc (License): Likewise.
25599         * modules/wcrtomb (License): Likewise.
25600         * modules/streq (License): Likewise.
25601         Reported by David Lutterkort <lutter@redhat.com>.
25602
25603 2008-12-23  Bruno Haible  <bruno@clisp.org>
25604
25605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25606
25607 2008-12-23  Bruno Haible  <bruno@clisp.org>
25608
25609         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25611         GETADDRINFO_LIB, not in LIBS.
25612         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25613         * modules/canon-host (Link): Likewise.
25614         * NEWS: Mention the change.
25615         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25616         GETADDRINFO_LIB.
25617
25618 2008-12-22  Bruno Haible  <bruno@clisp.org>
25619
25620         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25621         * doc/posix-functions/iswalpha_l.texi: Likewise.
25622         * doc/posix-functions/iswblank_l.texi: Likewise.
25623         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25624         * doc/posix-functions/iswctype_l.texi: Likewise.
25625         * doc/posix-functions/iswdigit_l.texi: Likewise.
25626         * doc/posix-functions/iswgraph_l.texi: Likewise.
25627         * doc/posix-functions/iswlower_l.texi: Likewise.
25628         * doc/posix-functions/iswprint_l.texi: Likewise.
25629         * doc/posix-functions/iswpunct_l.texi: Likewise.
25630         * doc/posix-functions/iswspace_l.texi: Likewise.
25631         * doc/posix-functions/iswupper_l.texi: Likewise.
25632         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25633         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25634         * doc/posix-functions/open_wmemstream.texi: Likewise.
25635         * doc/posix-functions/swscanf.texi: Likewise.
25636         * doc/posix-functions/towctrans_l.texi: Likewise.
25637         * doc/posix-functions/towlower.texi: Likewise.
25638         * doc/posix-functions/towlower_l.texi: Likewise.
25639         * doc/posix-functions/towupper.texi: Likewise.
25640         * doc/posix-functions/towupper_l.texi: Likewise.
25641         * doc/posix-functions/vfwprintf.texi: Likewise.
25642         * doc/posix-functions/vfwscanf.texi: Likewise.
25643         * doc/posix-functions/vswscanf.texi: Likewise.
25644         * doc/posix-functions/vwprintf.texi: Likewise.
25645         * doc/posix-functions/vwscanf.texi: Likewise.
25646         * doc/posix-functions/wcpcpy.texi: Likewise.
25647         * doc/posix-functions/wcpncpy.texi: Likewise.
25648         * doc/posix-functions/wcscasecmp.texi: Likewise.
25649         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25650         * doc/posix-functions/wcscoll_l.texi: Likewise.
25651         * doc/posix-functions/wcsdup.texi: Likewise.
25652         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25653         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25654         * doc/posix-functions/wcsnlen.texi: Likewise.
25655         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25656         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25657         * doc/posix-functions/wctrans_l.texi: Likewise.
25658         * doc/posix-functions/wctype_l.texi: Likewise.
25659         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25660         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25661         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25662         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25663         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25664         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25665         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25666         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25667         * doc/glibc-functions/wcschrnul.texi: Likewise.
25668         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25669         * doc/glibc-functions/wcstod_l.texi: Likewise.
25670         * doc/glibc-functions/wcstof_l.texi: Likewise.
25671         * doc/glibc-functions/wcstol_l.texi: Likewise.
25672         * doc/glibc-functions/wcstold_l.texi: Likewise.
25673         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25674         * doc/glibc-functions/wcstoq.texi: Likewise.
25675         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25676         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25677         * doc/glibc-functions/wcstouq.texi: Likewise.
25678         * doc/glibc-functions/wmempcpy.texi: Likewise.
25679
25680 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25681             Eric Blake  <ebb9@byu.net>
25682             Paolo Bonzini  <bonzini@gnu.org>
25683             Bruno Haible  <bruno@clisp.org>
25684
25685         Make c-stack work on Haiku.
25686         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25687         (c_stack_action): Use SA_ONSTACK flag.
25688
25689 2008-12-22  Bruno Haible  <bruno@clisp.org>
25690
25691         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25692
25693 2008-12-22  Bruno Haible  <bruno@clisp.org>
25694
25695         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25696         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25697         being overridden.
25698         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25699         New macros.
25700         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25702         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25703         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25704
25705 2008-12-22  Bruno Haible  <bruno@clisp.org>
25706
25707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25708         from test code.
25709
25710 2008-12-22  Eric Blake  <ebb9@byu.net>
25711
25712         Avoid gcc warnings on cygwin.
25713         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25714         Avoid unused variable.
25715         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25716         Likewise.
25717
25718 2008-12-22  Bruno Haible  <bruno@clisp.org>
25719
25720         Remove HAVE_MBRTOWC conditionals.
25721         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25722         (mbscasecmp): Assume mbrtowc function.
25723         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25724         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25725         * lib/mbschr.c: Include mbuiter.h unconditionally.
25726         (mbschr): Assume mbrtowc function.
25727         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25728         (mbscspn): Assume mbrtowc function.
25729         * lib/mbslen.c: Include mbuiter.h unconditionally.
25730         (mbslen): Assume mbrtowc function.
25731         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25732         (mbsncasecmp): Assume mbrtowc function.
25733         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25734         (mbsnlen): Assume mbrtowc function.
25735         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25736         (mbspbrk): Assume mbrtowc function.
25737         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25738         (mbspcasecmp): Assume mbrtowc function.
25739         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25740         (mbsrchr): Assume mbrtowc function.
25741         * lib/mbssep.c: Include mbuiter.h unconditionally.
25742         (mbssep): Assume mbrtowc function.
25743         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25744         (mbsspn): Assume mbrtowc function.
25745         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25746         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25747         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25748         (mbstok_r): Assume mbrtowc function.
25749         * lib/propername.c: Include mbuiter.h unconditionally.
25750         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25751         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25752         (trim2): Assume mbrtowc function.
25753         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25754         (mbsnwidth): Assume mbrtowc function.
25755         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25756         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25757         fallback definitions.
25758         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25759
25760 2008-12-22  Bruno Haible  <bruno@clisp.org>
25761
25762         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25763
25764 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25765
25766         * modules/regex: Request emulations for the mb*/wc* functions we need.
25767         * m4/regex.m4: Don't look for those functions here.
25768         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25769
25770 2008-12-22  Bruno Haible  <bruno@clisp.org>
25771
25772         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25773
25774 2008-12-21  Bruno Haible  <bruno@clisp.org>
25775
25776         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25777         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25778         (Include): Remove conditionalization.
25779         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25780         (Include): Remove conditionalization.
25781         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25782         (Include): Remove conditionalization.
25783         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25784         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25785         * NEWS: Mention the change.
25786         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25787         via Sergey Poznyakoff <gray@gnu.org.ua>.
25788
25789 2008-12-21  Bruno Haible  <bruno@clisp.org>
25790
25791         * MODULES.html.sh (Extended multibyte and wide character utilities
25792         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25793         wcrtomb, wcsrtombs.
25794         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25795         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25796         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25797         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25798
25799 2008-12-21  Bruno Haible  <bruno@clisp.org>
25800
25801         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25802
25803 2008-12-21  Bruno Haible  <bruno@clisp.org>
25804
25805         * modules/wcsnrtombs-tests: New file.
25806         * tests/test-wcsnrtombs1.sh: New file.
25807         * tests/test-wcsnrtombs2.sh: New file.
25808         * tests/test-wcsnrtombs3.sh: New file.
25809         * tests/test-wcsnrtombs4.sh: New file.
25810         * tests/test-wcsnrtombs.c: New file.
25811
25812         New module 'wcsnrtombs'.
25813         * lib/wchar.in.h (wcsnrtombs): New declaration.
25814         * lib/wcsnrtombs.c: New file.
25815         * lib/wcsrtombs-state.c: New file.
25816         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25817         (internal_state): Remove variable.
25818         * m4/wcsnrtombs.m4: New file.
25819         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25820         compilation units.
25821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25822         HAVE_WCSNRTOMBS.
25823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25824         HAVE_WCSNRTOMBS.
25825         * modules/wcsnrtombs: New file.
25826         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25827         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25828
25829 2008-12-21  Bruno Haible  <bruno@clisp.org>
25830
25831         * modules/wcsrtombs-tests: New file.
25832         * tests/test-wcsrtombs1.sh: New file.
25833         * tests/test-wcsrtombs2.sh: New file.
25834         * tests/test-wcsrtombs3.sh: New file.
25835         * tests/test-wcsrtombs4.sh: New file.
25836         * tests/test-wcsrtombs.c: New file.
25837
25838         New module 'wcsrtombs'.
25839         * lib/wchar.in.h (wcsrtombs): New declaration.
25840         * lib/wcsrtombs.c: New file.
25841         * m4/wcsrtombs.m4: New file.
25842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25843         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25845         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25846         * modules/wcsrtombs: New file.
25847         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25848         bugs.
25849
25850 2008-12-21  Bruno Haible  <bruno@clisp.org>
25851
25852         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25853         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25854         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25855         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25856         if not correct.
25857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25858         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25859         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25860         m4/locale-zh.m4, m4/codeset.m4.
25861         * doc/posix-functions/wcrtomb.texi: Document the bug.
25862
25863 2008-12-21  Bruno Haible  <bruno@clisp.org>
25864
25865         Work around a btowc() bug on IRIX 6.5.
25866         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
25867         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
25868         REPLACE_WTOBC if not.
25869         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
25870         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
25871         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
25872
25873 2008-12-21  Bruno Haible  <bruno@clisp.org>
25874
25875         * modules/wcrtomb-tests: New file.
25876         * tests/test-wcrtomb.sh: New file.
25877         * tests/test-wcrtomb.c: New file.
25878
25879         New module 'wcrtomb'.
25880         * lib/wchar.in.h (wcrtomb): New declaration.
25881         * lib/wcrtomb.c: New file.
25882         * m4/wcrtomb.m4: New file.
25883         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
25884         HAVE_WCRTOMB.
25885         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
25886         HAVE_WCRTOMB.
25887         * modules/wcrtomb: New file.
25888         * doc/posix-functions/wcrtomb.texi: Mention the new module.
25889
25890 2008-12-21  Bruno Haible  <bruno@clisp.org>
25891
25892         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
25893         * modules/mbsrtowcs (Files): Likewise.
25894         * modules/wctob (Files): Likewise.
25895         * modules/c-strcase-tests (Files): Likewise.
25896         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
25897         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
25898         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
25899         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
25900         * modules/vasnprintf-posix-tests (Files): Likewise.
25901
25902 2008-12-21  William Pursell  <bill.pursell@gmail.com>
25903
25904         gitlog-to-changelog: pass all command-line arguments to git-log
25905         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
25906         it is sometimes convenient to filter the commits in various ways.
25907         gitlog-to-changelog only allows --since to specify a start date,
25908         but git-log itself supports many other filtering mechanisms.
25909         At the moment, I want to filter by branch name.  Rather than
25910         adding a --branch option to gitlog-to-changelog, it seems more
25911         flexible to simply pass all options directly to git-log and let
25912         git do the work.  Notice that this effectively makes --since a
25913         redundant option for gitlog-to-changelog, but removing it would
25914         require current usage to change since calls would then require
25915         an additional '--'.
25916
25917 2008-12-21  Bruno Haible  <bruno@clisp.org>
25918
25919         * modules/mbsnrtowcs-tests: New file.
25920         * tests/test-mbsnrtowcs1.sh: New file.
25921         * tests/test-mbsnrtowcs2.sh: New file.
25922         * tests/test-mbsnrtowcs3.sh: New file.
25923         * tests/test-mbsnrtowcs4.sh: New file.
25924         * tests/test-mbsnrtowcs.c: New file.
25925
25926         New module 'mbsnrtowcs'.
25927         * lib/wchar.in.h (mbsnrtowcs): New declaration.
25928         * lib/mbsnrtowcs.c: New file.
25929         * lib/mbsrtowcs-state.c: New file.
25930         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
25931         (internal_state): Remove variable.
25932         * m4/mbsnrtowcs.m4: New file.
25933         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
25934         compilation units.
25935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
25936         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25937         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
25938         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
25939         * modules/mbsnrtowcs: New file.
25940         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
25941         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
25942         portability problem.
25943
25944 2008-12-21  Bruno Haible  <bruno@clisp.org>
25945
25946         Work around mbsrtowcs bug.
25947         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
25948         (gl_FUNC_MBSRTOWCS): Invoke it.
25949         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25950         m4/locale-zh.m4.
25951         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
25952
25953 2008-12-21  Bruno Haible  <bruno@clisp.org>
25954
25955         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
25956
25957 2008-12-21  Bruno Haible  <bruno@clisp.org>
25958
25959         Update doc for AIX.
25960         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
25961         16-bit wchar_t type.
25962         * doc/posix-functions/btowc.texi: Likewise.
25963         * doc/posix-functions/fgetwc.texi: Likewise.
25964         * doc/posix-functions/fgetws.texi: Likewise.
25965         * doc/posix-functions/fputwc.texi: Likewise.
25966         * doc/posix-functions/fputws.texi: Likewise.
25967         * doc/posix-functions/fwide.texi: Likewise.
25968         * doc/posix-functions/fwprintf.texi: Likewise.
25969         * doc/posix-functions/fwscanf.texi: Likewise.
25970         * doc/posix-functions/getwchar.texi: Likewise.
25971         * doc/posix-functions/getwc.texi: Likewise.
25972         * doc/posix-functions/iswalnum.texi: Likewise.
25973         * doc/posix-functions/iswalpha.texi: Likewise.
25974         * doc/posix-functions/iswblank.texi: Likewise.
25975         * doc/posix-functions/iswcntrl.texi: Likewise.
25976         * doc/posix-functions/iswctype.texi: Likewise.
25977         * doc/posix-functions/iswdigit.texi: Likewise.
25978         * doc/posix-functions/iswgraph.texi: Likewise.
25979         * doc/posix-functions/iswlower.texi: Likewise.
25980         * doc/posix-functions/iswprint.texi: Likewise.
25981         * doc/posix-functions/iswpunct.texi: Likewise.
25982         * doc/posix-functions/iswspace.texi: Likewise.
25983         * doc/posix-functions/iswupper.texi: Likewise.
25984         * doc/posix-functions/iswxdigit.texi: Likewise.
25985         * doc/posix-functions/mbrtowc.texi: Likewise.
25986         * doc/posix-functions/mbsrtowcs.texi: Likewise.
25987         * doc/posix-functions/mbstowcs.texi: Likewise.
25988         * doc/posix-functions/mbtowc.texi: Likewise.
25989         * doc/posix-functions/putwchar.texi: Likewise.
25990         * doc/posix-functions/putwc.texi: Likewise.
25991         * doc/posix-functions/swprintf.texi: Likewise.
25992         * doc/posix-functions/tolower.texi: Likewise.
25993         * doc/posix-functions/toupper.texi: Likewise.
25994         * doc/posix-functions/towctrans.texi: Likewise.
25995         * doc/posix-functions/ungetwc.texi: Likewise.
25996         * doc/posix-functions/vswprintf.texi: Likewise.
25997         * doc/posix-functions/wcrtomb.texi: Likewise.
25998         * doc/posix-functions/wcscat.texi: Likewise.
25999         * doc/posix-functions/wcschr.texi: Likewise.
26000         * doc/posix-functions/wcscmp.texi: Likewise.
26001         * doc/posix-functions/wcscoll.texi: Likewise.
26002         * doc/posix-functions/wcscpy.texi: Likewise.
26003         * doc/posix-functions/wcscspn.texi: Likewise.
26004         * doc/posix-functions/wcsftime.texi: Likewise.
26005         * doc/posix-functions/wcslen.texi: Likewise.
26006         * doc/posix-functions/wcsncat.texi: Likewise.
26007         * doc/posix-functions/wcsncmp.texi: Likewise.
26008         * doc/posix-functions/wcsncpy.texi: Likewise.
26009         * doc/posix-functions/wcspbrk.texi: Likewise.
26010         * doc/posix-functions/wcsrchr.texi: Likewise.
26011         * doc/posix-functions/wcsrtombs.texi: Likewise.
26012         * doc/posix-functions/wcsspn.texi: Likewise.
26013         * doc/posix-functions/wcsstr.texi: Likewise.
26014         * doc/posix-functions/wcstod.texi: Likewise.
26015         * doc/posix-functions/wcstof.texi: Likewise.
26016         * doc/posix-functions/wcstoimax.texi: Likewise.
26017         * doc/posix-functions/wcstok.texi: Likewise.
26018         * doc/posix-functions/wcstold.texi: Likewise.
26019         * doc/posix-functions/wcstoll.texi: Likewise.
26020         * doc/posix-functions/wcstol.texi: Likewise.
26021         * doc/posix-functions/wcstombs.texi: Likewise.
26022         * doc/posix-functions/wcstoull.texi: Likewise.
26023         * doc/posix-functions/wcstoul.texi: Likewise.
26024         * doc/posix-functions/wcstoumax.texi: Likewise.
26025         * doc/posix-functions/wcswidth.texi: Likewise.
26026         * doc/posix-functions/wcsxfrm.texi: Likewise.
26027         * doc/posix-functions/wctob.texi: Likewise.
26028         * doc/posix-functions/wctomb.texi: Likewise.
26029         * doc/posix-functions/wctrans.texi: Likewise.
26030         * doc/posix-functions/wctype.texi: Likewise.
26031         * doc/posix-functions/wcwidth.texi: Likewise.
26032         * doc/posix-functions/wmemchr.texi: Likewise.
26033         * doc/posix-functions/wmemcmp.texi: Likewise.
26034         * doc/posix-functions/wmemcpy.texi: Likewise.
26035         * doc/posix-functions/wmemmove.texi: Likewise.
26036         * doc/posix-functions/wmemset.texi: Likewise.
26037         * doc/posix-functions/wprintf.texi: Likewise.
26038         * doc/posix-functions/wscanf.texi: Likewise.
26039
26040 2008-12-21  Bruno Haible  <bruno@clisp.org>
26041
26042         Update doc for HP-UX 11.11.
26043         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26044         in HP-UX version 11.00, not in all versions of HP-UX 11.
26045         * doc/posix-functions/fwide.texi: Likewise.
26046         * doc/posix-functions/fwprintf.texi: Likewise.
26047         * doc/posix-functions/fwscanf.texi: Likewise.
26048         * doc/posix-functions/inet_ntop.texi: Likewise.
26049         * doc/posix-functions/inet_pton.texi: Likewise.
26050         * doc/posix-functions/mbrlen.texi: Likewise.
26051         * doc/posix-functions/mbrtowc.texi: Likewise.
26052         * doc/posix-functions/mbsinit.texi: Likewise.
26053         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26054         * doc/posix-functions/swprintf.texi: Likewise.
26055         * doc/posix-functions/swscanf.texi: Likewise.
26056         * doc/posix-functions/towctrans.texi: Likewise.
26057         * doc/posix-functions/vfwprintf.texi: Likewise.
26058         * doc/posix-functions/vswprintf.texi: Likewise.
26059         * doc/posix-functions/vwprintf.texi: Likewise.
26060         * doc/posix-functions/wcrtomb.texi: Likewise.
26061         * doc/posix-functions/wcsrtombs.texi: Likewise.
26062         * doc/posix-functions/wcsstr.texi: Likewise.
26063         * doc/posix-functions/wctob.texi: Likewise.
26064         * doc/posix-functions/wctrans.texi: Likewise.
26065         * doc/posix-functions/wmemchr.texi: Likewise.
26066         * doc/posix-functions/wmemcmp.texi: Likewise.
26067         * doc/posix-functions/wmemcpy.texi: Likewise.
26068         * doc/posix-functions/wmemmove.texi: Likewise.
26069         * doc/posix-functions/wmemset.texi: Likewise.
26070         * doc/posix-functions/wprintf.texi: Likewise.
26071         * doc/posix-functions/wscanf.texi: Likewise.
26072
26073 2008-12-21  Bruno Haible  <bruno@clisp.org>
26074
26075         Work around a portability problem.
26076         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26077         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26078
26079 2008-12-20  Bruno Haible  <bruno@clisp.org>
26080
26081         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26082         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26083         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26085         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26086
26087         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26088         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26089         set.
26090         (GNULIB_defined_mbstate_t): New macro.
26091         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26092         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26093         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26094         reuses the system's mbrtowc function but works around the bugs.
26095         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26096         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26097         macros.
26098         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26099         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26100         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26101         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26102         REPLACE_MBSINIT if mbsinit needs to be overridden.
26103         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26104         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26105         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26106         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26107         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26108         m4/locale-zh.m4.
26109         (Depends): Add mbsinit.
26110         * modules/mbsinit (Depends): Add mbrtowc.
26111         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26112
26113 2008-12-20  Bruno Haible  <bruno@clisp.org>
26114
26115         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26116         so that there are no conversion errors on AIX.
26117         * tests/test-mbsrtowcs.c (main): LIkewise.
26118
26119 2008-12-20  Bruno Haible  <bruno@clisp.org>
26120
26121         Work around wctob bug on Solaris <= 9.
26122         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26123         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26125         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26126         * modules/wctob (Files): Add m4/locale-fr.m4.
26127         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26128
26129 2008-12-20  Bruno Haible  <bruno@clisp.org>
26130
26131         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26132         /dev/null.
26133         * tests/test-select-in.sh: Likewise.
26134         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26135
26136 2008-12-20  Bruno Haible  <bruno@clisp.org>
26137
26138         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26139         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26140         Cygwin 1.5.x.
26141
26142 2008-12-20  Bruno Haible  <bruno@clisp.org>
26143
26144         Ensure mbstate_t is defined on HP-UX 11.11.
26145         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26146         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26147         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26148         AC_USE_SYSTEM_EXTENSIONS.
26149         * modules/fnmatch (Depends-on): Add extensions.
26150         * modules/mbrlen (Depends-on): Likewise.
26151         * modules/mbrtowc (Depends-on): Likewise.
26152         * modules/mbsinit (Depends-on): Likewise.
26153         * modules/mbsrtowcs (Depends-on): Likewise.
26154         * modules/mbswidth (Depends-on): Likewise.
26155         * modules/quotearg (Depends-on): Likewise.
26156         * modules/strftime (Depends-on): Likewise.
26157
26158 2008-12-20  Bruno Haible  <bruno@clisp.org>
26159
26160         Ensure wctob is declared on IRIX 6.5.
26161         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26162         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26163         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26164         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26165         of HAVE_WCTOB.
26166         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26167         HAVE_WCTOB.
26168         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26169
26170 2008-12-19  Bruno Haible  <bruno@clisp.org>
26171
26172         * modules/mbsrtowcs-tests: New file.
26173         * tests/test-mbsrtowcs1.sh: New file.
26174         * tests/test-mbsrtowcs2.sh: New file.
26175         * tests/test-mbsrtowcs3.sh: New file.
26176         * tests/test-mbsrtowcs4.sh: New file.
26177         * tests/test-mbsrtowcs.c: New file.
26178
26179         New module 'mbsrtowcs'.
26180         * lib/wchar.in.h (mbsrtowcs): New declaration.
26181         * lib/mbsrtowcs.c: New file.
26182         * m4/mbsrtowcs.m4: New file.
26183         * modules/mbsrtowcs: New file.
26184         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26185         HAVE_MBSRTOWCS.
26186         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26187         HAVE_MBSRTOWCS.
26188         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26189
26190 2008-12-19  Bruno Haible  <bruno@clisp.org>
26191
26192         New module 'mbrlen'.
26193         * lib/wchar.in.h (mbrlen): New declaration.
26194         * lib/mbrlen.c: New file.
26195         * m4/mbrlen.m4: New file.
26196         * modules/mbrlen: New file.
26197         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26198         HAVE_MBRLEN.
26199         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26200         HAVE_MBRLEN.
26201         * doc/posix-functions/mbrlen.texi: Document the new module.
26202
26203 2008-12-19  Bruno Haible  <bruno@clisp.org>
26204
26205         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26206         * modules/mbrtowc (Depends-on): Add verify.
26207         Suggested by Paul Eggert.
26208
26209 2008-12-18  Bruno Haible  <bruno@clisp.org>
26210
26211         * modules/mbsinit-tests: New file.
26212         * tests/test-mbsinit.sh: New file.
26213         * tests/test-mbsinit.c: New file.
26214
26215 2008-12-18  Bruno Haible  <bruno@clisp.org>
26216
26217         * modules/mbrtowc-tests: New file.
26218         * tests/test-mbrtowc1.sh: New file.
26219         * tests/test-mbrtowc2.sh: New file.
26220         * tests/test-mbrtowc3.sh: New file.
26221         * tests/test-mbrtowc4.sh: New file.
26222         * tests/test-mbrtowc.c: New file.
26223
26224         New module 'mbrtowc'.
26225         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26226         mbsinit and mbrtowc.
26227         (mbrtowc): New declaration.
26228         * lib/mbrtowc.c: New file.
26229         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26230         * modules/mbrtowc: New file.
26231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26232         HAVE_MBRTOWC.
26233         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26234         HAVE_MBRTOWC.
26235         * doc/posix-functions/mbrtowc.texi: Document the new module.
26236
26237 2008-12-18  Bruno Haible  <bruno@clisp.org>
26238
26239         New module 'wctob'.
26240         * lib/wchar.in.h (wctob): New declaration.
26241         * lib/wctob.c: New file.
26242         * m4/wctob.m4: New file.
26243         * modules/wctob: New file.
26244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26245         HAVE_WCTOB.
26246         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26247         * doc/posix-functions/wctob.texi: Document the new module.
26248
26249 2008-12-18  Bruno Haible  <bruno@clisp.org>
26250
26251         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26252         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26253
26254 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26255
26256         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26257         G. Christensen" <tgc@jupiterrise.com>.
26258
26259         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26260         G. Christensen" <tgc@jupiterrise.com>.
26261
26262         * lib/flock.c: Need to include string.h.  Reported by "Tom
26263         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26264         <ebb9@byu.net>.
26265
26266 2008-12-18  Bruno Haible  <bruno@clisp.org>
26267
26268         * m4/locale-ja.m4: New file, from GNU gettext.
26269
26270 2008-12-17  Bruno Haible  <bruno@clisp.org>
26271
26272         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26273         Suggested by Eric Blake.
26274
26275 2008-12-17  Bruno Haible  <bruno@clisp.org>
26276
26277         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26278
26279 2008-12-17  Bruno Haible  <bruno@clisp.org>
26280
26281         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26282         * modules/mbsinit (Depends-on): Add verify.
26283         Suggested by Paul Eggert.
26284
26285 2008-12-17  Bruno Haible  <bruno@clisp.org>
26286
26287         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26288         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26289         gl_FUNC_MBRTOWC.
26290         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26291         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26292         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26293         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26294         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26295         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26296         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26297         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26298         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26299         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26300         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26301         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26302         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26303         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26304         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26305         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26306         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26307         * modules/trim (configure.ac): Likewise.
26308
26309 2008-12-17  Bruno Haible  <bruno@clisp.org>
26310
26311         * modules/btowc-tests: New file.
26312         * tests/test-btowc1.sh: New file.
26313         * tests/test-btowc2.sh: New file.
26314         * tests/test-btowc.c: New file.
26315
26316         New module 'btowc'.
26317         * lib/wchar.in.h (btowc): New declaration.
26318         * lib/btowc.c: New file.
26319         * m4/btowc.m4: New file.
26320         * modules/btowc: New file.
26321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26322         HAVE_BTOWC.
26323         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26324         * doc/posix-functions/btowc.texi: Document the new module.
26325
26326 2008-12-17  Bruno Haible  <bruno@clisp.org>
26327
26328         New module 'mbsinit'.
26329         * lib/wchar.in.h (mbsinit): New declaration.
26330         * lib/mbsinit.c: New file.
26331         * m4/mbsinit.m4: New file.
26332         * modules/mbsinit: New file.
26333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26334         HAVE_MBSINIT.
26335         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26336         HAVE_MBSINIT.
26337         * doc/posix-functions/mbsinit.texi: Document the new module.
26338
26339 2008-12-16  Bruno Haible  <bruno@clisp.org>
26340
26341         * lib/unistd.in.h: Add comment.
26342         * tests/test-environ.c: Don't include <stdlib.h>.
26343
26344 2008-12-16  Bruno Haible  <bruno@clisp.org>
26345
26346         * lib/parse-duration.h (parse_duration): Document return value
26347         convention.
26348         * lib/parse-duration.c: Include specification header first. Add
26349         comments.
26350         (_): Remove macro.
26351         (parse_year_month_day, parse_hour_minute_second): Move side effects
26352         outside of strchr call.
26353         (parse_non_iso8601): Move side effects outside of isspace call.
26354         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26355         call.
26356
26357 2008-12-16  Bruno Haible  <bruno@clisp.org>
26358
26359         * tests/test-parse-duration.sh: Produce no output when the test
26360         succeeds.
26361
26362 2008-12-16  Bruno Haible  <bruno@clisp.org>
26363
26364         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26365         expressions.
26366
26367 2008-12-15  Bruno Haible  <bruno@clisp.org>
26368
26369         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26370         * doc/glibc-functions/flistxattr.texi: Likewise.
26371         * doc/glibc-functions/fopencookie.texi: Likewise.
26372         * doc/glibc-functions/fremovexattr.texi: Likewise.
26373         * doc/glibc-functions/fsetxattr.texi: Likewise.
26374         * doc/glibc-functions/getxattr.texi: Likewise.
26375         * doc/glibc-functions/lgetxattr.texi: Likewise.
26376         * doc/glibc-functions/listxattr.texi: Likewise.
26377         * doc/glibc-functions/llistxattr.texi: Likewise.
26378         * doc/glibc-functions/lremovexattr.texi: Likewise.
26379         * doc/glibc-functions/lsetxattr.texi: Likewise.
26380         * doc/glibc-functions/removexattr.texi: Likewise.
26381         * doc/glibc-functions/setxattr.texi: Likewise.
26382         * doc/posix-functions/open_memstream.texi: Likewise.
26383
26384 2008-12-15  Eric Blake  <ebb9@byu.net>
26385
26386         Update doc for cygwin 1.7.
26387         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26388         functions.
26389         * doc/posix-functions/fchmodat.texi: Likewise.
26390         * doc/posix-functions/fchownat.texi: Likewise.
26391         * doc/posix-functions/fdopendir.texi: Likewise.
26392         * doc/posix-functions/fmemopen.texi: Likewise.
26393         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26394         * doc/posix-functions/fstatat.texi: Likewise.
26395         * doc/posix-functions/futimens.texi: Likewise.
26396         * doc/posix-functions/gai_strerror.texi: Likewise.
26397         * doc/posix-functions/getaddrinfo.texi: Likewise.
26398         * doc/posix-functions/getnameinfo.texi: Likewise.
26399         * doc/posix-functions/if_freenameindex.texi: Likewise.
26400         * doc/posix-functions/if_indextoname.texi: Likewise.
26401         * doc/posix-functions/if_nameindex.texi: Likewise.
26402         * doc/posix-functions/if_nametoindex.texi: Likewise.
26403         * doc/posix-functions/insque.texi: Likewise.
26404         * doc/posix-functions/linkat.texi: Likewise.
26405         * doc/posix-functions/llrint.texi: Likewise.
26406         * doc/posix-functions/llrintf.texi: Likewise.
26407         * doc/posix-functions/llrintl.texi: Likewise.
26408         * doc/posix-functions/lockf.texi: Likewise.
26409         * doc/posix-functions/lrintl.texi: Likewise.
26410         * doc/posix-functions/mkdirat.texi: Likewise.
26411         * doc/posix-functions/mkfifoat.texi: Likewise.
26412         * doc/posix-functions/mknodat.texi: Likewise.
26413         * doc/posix-functions/mq_close.texi: Likewise.
26414         * doc/posix-functions/mq_getattr.texi: Likewise.
26415         * doc/posix-functions/mq_notify.texi: Likewise.
26416         * doc/posix-functions/mq_open.texi: Likewise.
26417         * doc/posix-functions/mq_receive.texi: Likewise.
26418         * doc/posix-functions/mq_send.texi: Likewise.
26419         * doc/posix-functions/mq_setattr.texi: Likewise.
26420         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26421         * doc/posix-functions/mq_timedsend.texi: Likewise.
26422         * doc/posix-functions/mq_unlink.texi: Likewise.
26423         * doc/posix-functions/open_memstream.texi: Likewise.
26424         * doc/posix-functions/openat.texi: Likewise.
26425         * doc/posix-functions/posix_fadvise.texi: Likewise.
26426         * doc/posix-functions/posix_fallocate.texi: Likewise.
26427         * doc/posix-functions/posix_madvise.texi: Likewise.
26428         * doc/posix-functions/posix_memalign.texi: Likewise.
26429         * doc/posix-functions/posix_openpt.texi: Likewise.
26430         * doc/posix-functions/readlinkat.texi: Likewise.
26431         * doc/posix-functions/remque.texi: Likewise.
26432         * doc/posix-functions/renameat.texi: Likewise.
26433         * doc/posix-functions/rintl.texi: Likewise.
26434         * doc/posix-functions/sem_unlink.texi: Likewise.
26435         * doc/posix-functions/shm_open.texi: Likewise.
26436         * doc/posix-functions/shm_unlink.texi: Likewise.
26437         * doc/posix-functions/signgam.texi: Likewise.
26438         * doc/posix-functions/sigset.texi: Likewise.
26439         * doc/posix-functions/stpcpy.texi: Likewise.
26440         * doc/posix-functions/stpncpy.texi: Likewise.
26441         * doc/posix-functions/strerror.texi: Likewise.
26442         * doc/posix-functions/strtod.texi: Likewise.
26443         * doc/posix-functions/symlinkat.texi: Likewise.
26444         * doc/posix-functions/unlinkat.texi: Likewise.
26445         * doc/posix-functions/utimensat.texi: Likewise.
26446         * doc/glibc-functions/bindresvport.texi: Likewise.
26447         * doc/glibc-functions/dn_expand.texi: Likewise.
26448         * doc/glibc-functions/exp10.texi: Likewise.
26449         * doc/glibc-functions/exp10f.texi: Likewise.
26450         * doc/glibc-functions/fgetxattr.texi: Likewise.
26451         * doc/glibc-functions/flistxattr.texi: Likewise.
26452         * doc/glibc-functions/fopencookie.texi: Likewise.
26453         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26454         * doc/glibc-functions/fremovexattr.texi: Likewise.
26455         * doc/glibc-functions/fsetxattr.texi: Likewise.
26456         * doc/glibc-functions/getifaddrs.texi: Likewise.
26457         * doc/glibc-functions/getxattr.texi: Likewise.
26458         * doc/glibc-functions/lgetxattr.texi: Likewise.
26459         * doc/glibc-functions/listxattr.texi: Likewise.
26460         * doc/glibc-functions/llistxattr.texi: Likewise.
26461         * doc/glibc-functions/lremovexattr.texi: Likewise.
26462         * doc/glibc-functions/lsetxattr.texi: Likewise.
26463         * doc/glibc-functions/pow10.texi: Likewise.
26464         * doc/glibc-functions/pow10f.texi: Likewise.
26465         * doc/glibc-functions/rcmd_af.texi: Likewise.
26466         * doc/glibc-functions/removexattr.texi: Likewise.
26467         * doc/glibc-functions/res_init.texi: Likewise.
26468         * doc/glibc-functions/res_mkquery.texi: Likewise.
26469         * doc/glibc-functions/res_query.texi: Likewise.
26470         * doc/glibc-functions/res_querydomain.texi: Likewise.
26471         * doc/glibc-functions/res_send.texi: Likewise.
26472         * doc/glibc-functions/rresvport_af.texi: Likewise.
26473         * doc/glibc-functions/setxattr.texi: Likewise.
26474         * doc/glibc-functions/strcasestr.texi: Likewise.
26475
26476 2008-12-15  Bruno Haible  <bruno@clisp.org>
26477
26478         Fix compilation error on OSF/1 4.0.
26479         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26480         <sys/time.h>, simply delegate to the system header.
26481         Reported by Daniel Richard G. <oss@teragram.com>.
26482
26483 2008-12-15  Bruno Haible  <bruno@clisp.org>
26484
26485         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26486         * doc/posix-functions/fchmodat.texi: Likewise.
26487         * doc/posix-functions/fchownat.texi: Likewise.
26488         * doc/posix-functions/fdopendir.texi: Likewise.
26489         * doc/posix-functions/fstatat.texi: Likewise.
26490         * doc/posix-functions/mkdirat.texi: Likewise.
26491         * doc/posix-functions/unlinkat.texi: Likewise.
26492
26493 2008-12-14  Bruno Haible  <bruno@clisp.org>
26494
26495         Update doc for POSIX:2008.
26496         * doc/posix-functions/faccessat.texi: New file.
26497         * doc/posix-functions/fchmodat.texi: New file.
26498         * doc/posix-functions/fchownat.texi: New file.
26499         * doc/posix-functions/fdopendir.texi: New file.
26500         * doc/posix-functions/fstatat.texi: New file.
26501         * doc/posix-functions/futimens.texi: New file.
26502         * doc/posix-functions/linkat.texi: New file.
26503         * doc/posix-functions/mkdirat.texi: New file.
26504         * doc/posix-functions/mkfifoat.texi: New file.
26505         * doc/posix-functions/mknodat.texi: New file.
26506         * doc/posix-functions/open_wmemstream.texi: New file.
26507         * doc/posix-functions/openat.texi: New file.
26508         * doc/posix-functions/psiginfo.texi: New file.
26509         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26510         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26511         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26512         * doc/posix-functions/readlinkat.texi: New file.
26513         * doc/posix-functions/renameat.texi: New file.
26514         * doc/posix-functions/strerror_l.texi: New file.
26515         * doc/posix-functions/symlinkat.texi: New file.
26516         * doc/posix-functions/unlinkat.texi: New file.
26517         * doc/posix-functions/utimensat.texi: New file.
26518         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26519
26520 2008-12-14  Bruno Haible  <bruno@clisp.org>
26521
26522         Update doc for POSIX:2008.
26523         * doc/posix-functions/alphasort.texi: Renamed from
26524         doc/glibc-functions/alphasort.texi.
26525         * doc/posix-functions/dirfd.texi: Renamed from
26526         doc/glibc-functions/dirfd.texi.
26527         * doc/posix-functions/dprintf.texi: Renamed from
26528         doc/glibc-functions/dprintf.texi.
26529         * doc/posix-functions/duplocale.texi: Renamed from
26530         doc/glibc-functions/duplocale.texi.
26531         * doc/posix-functions/fexecve.texi: Renamed from
26532         doc/glibc-functions/fexecve.texi.
26533         * doc/posix-functions/fmemopen.texi: Renamed from
26534         doc/glibc-functions/fmemopen.texi.
26535         * doc/posix-functions/freelocale.texi: Renamed from
26536         doc/glibc-functions/freelocale.texi.
26537         * doc/posix-functions/getdate_err.texi: Renamed from
26538         doc/glibc-functions/getdate_err.texi.
26539         * doc/posix-functions/isalnum_l.texi: Renamed from
26540         doc/glibc-functions/isalnum_l.texi.
26541         * doc/posix-functions/isalpha_l.texi: Renamed from
26542         doc/glibc-functions/isalpha_l.texi.
26543         * doc/posix-functions/isblank_l.texi: Renamed from
26544         doc/glibc-functions/isblank_l.texi.
26545         * doc/posix-functions/iscntrl_l.texi: Renamed from
26546         doc/glibc-functions/iscntrl_l.texi.
26547         * doc/posix-functions/isdigit_l.texi: Renamed from
26548         doc/glibc-functions/isdigit_l.texi.
26549         * doc/posix-functions/isgraph_l.texi: Renamed from
26550         doc/glibc-functions/isgraph_l.texi.
26551         * doc/posix-functions/islower_l.texi: Renamed from
26552         doc/glibc-functions/islower_l.texi.
26553         * doc/posix-functions/isprint_l.texi: Renamed from
26554         doc/glibc-functions/isprint_l.texi.
26555         * doc/posix-functions/ispunct_l.texi: Renamed from
26556         doc/glibc-functions/ispunct_l.texi.
26557         * doc/posix-functions/isspace_l.texi: Renamed from
26558         doc/glibc-functions/isspace_l.texi.
26559         * doc/posix-functions/isupper_l.texi: Renamed from
26560         doc/glibc-functions/isupper_l.texi.
26561         * doc/posix-functions/iswalnum_l.texi: Renamed from
26562         doc/glibc-functions/iswalnum_l.texi.
26563         * doc/posix-functions/iswalpha_l.texi: Renamed from
26564         doc/glibc-functions/iswalpha_l.texi.
26565         * doc/posix-functions/iswblank_l.texi: Renamed from
26566         doc/glibc-functions/iswblank_l.texi.
26567         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26568         doc/glibc-functions/iswcntrl_l.texi.
26569         * doc/posix-functions/iswctype_l.texi: Renamed from
26570         doc/glibc-functions/iswctype_l.texi.
26571         * doc/posix-functions/iswdigit_l.texi: Renamed from
26572         doc/glibc-functions/iswdigit_l.texi.
26573         * doc/posix-functions/iswgraph_l.texi: Renamed from
26574         doc/glibc-functions/iswgraph_l.texi.
26575         * doc/posix-functions/iswlower_l.texi: Renamed from
26576         doc/glibc-functions/iswlower_l.texi.
26577         * doc/posix-functions/iswprint_l.texi: Renamed from
26578         doc/glibc-functions/iswprint_l.texi.
26579         * doc/posix-functions/iswpunct_l.texi: Renamed from
26580         doc/glibc-functions/iswpunct_l.texi.
26581         * doc/posix-functions/iswspace_l.texi: Renamed from
26582         doc/glibc-functions/iswspace_l.texi.
26583         * doc/posix-functions/iswupper_l.texi: Renamed from
26584         doc/glibc-functions/iswupper_l.texi.
26585         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26586         doc/glibc-functions/iswxdigit_l.texi.
26587         * doc/posix-functions/isxdigit_l.texi: Renamed from
26588         doc/glibc-functions/isxdigit_l.texi.
26589         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26590         doc/glibc-functions/mbsnrtowcs.texi.
26591         * doc/posix-functions/mkdtemp.texi: Renamed from
26592         doc/glibc-functions/mkdtemp.texi.
26593         * doc/posix-functions/newlocale.texi: Renamed from
26594         doc/glibc-functions/newlocale.texi.
26595         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26596         doc/glibc-functions/nl_langinfo_l.texi.
26597         * doc/posix-functions/open_memstream.texi: Renamed from
26598         doc/glibc-functions/open_memstream.texi.
26599         * doc/posix-functions/opterr.texi: Renamed from
26600         doc/glibc-functions/opterr.texi.
26601         * doc/posix-functions/optind.texi: Renamed from
26602         doc/glibc-functions/optind.texi.
26603         * doc/posix-functions/optopt.texi: Renamed from
26604         doc/glibc-functions/optopt.texi.
26605         * doc/posix-functions/psignal.texi: Renamed from
26606         doc/glibc-functions/psignal.texi.
26607         * doc/posix-functions/scandir.texi: Renamed from
26608         doc/glibc-functions/scandir.texi.
26609         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26610         doc/glibc-functions/sched_get_priority_min.texi.
26611         * doc/posix-functions/signgam.texi: Renamed from
26612         doc/glibc-functions/signgam.texi.
26613         * doc/posix-functions/stpcpy.texi: Renamed from
26614         doc/glibc-functions/stpcpy.texi.
26615         * doc/posix-functions/stpncpy.texi: Renamed from
26616         doc/glibc-functions/stpncpy.texi.
26617         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26618         doc/glibc-functions/strcasecmp_l.texi.
26619         * doc/posix-functions/strcoll_l.texi: Renamed from
26620         doc/glibc-functions/strcoll_l.texi.
26621         * doc/posix-functions/strfmon_l.texi: Renamed from
26622         doc/glibc-functions/strfmon_l.texi.
26623         * doc/posix-functions/strftime_l.texi: Renamed from
26624         doc/glibc-functions/strftime_l.texi.
26625         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26626         doc/glibc-functions/strncasecmp_l.texi.
26627         * doc/posix-functions/strndup.texi: Renamed from
26628         doc/glibc-functions/strndup.texi.
26629         * doc/posix-functions/strnlen.texi: Renamed from
26630         doc/glibc-functions/strnlen.texi.
26631         * doc/posix-functions/strsignal.texi: Renamed from
26632         doc/glibc-functions/strsignal.texi.
26633         * doc/posix-functions/strxfrm_l.texi: Renamed from
26634         doc/glibc-functions/strxfrm_l.texi.
26635         * doc/posix-functions/timer_gettime.texi: Renamed from
26636         doc/glibc-functions/timer_gettime.texi.
26637         * doc/posix-functions/tolower_l.texi: Renamed from
26638         doc/glibc-functions/tolower_l.texi.
26639         * doc/posix-functions/toupper_l.texi: Renamed from
26640         doc/glibc-functions/toupper_l.texi.
26641         * doc/posix-functions/towctrans_l.texi: Renamed from
26642         doc/glibc-functions/towctrans_l.texi.
26643         * doc/posix-functions/towlower_l.texi: Renamed from
26644         doc/glibc-functions/towlower_l.texi.
26645         * doc/posix-functions/towupper_l.texi: Renamed from
26646         doc/glibc-functions/towupper_l.texi.
26647         * doc/posix-functions/uselocale.texi: Renamed from
26648         doc/glibc-functions/uselocale.texi.
26649         * doc/posix-functions/vdprintf.texi: Renamed from
26650         doc/glibc-functions/vdprintf.texi.
26651         * doc/posix-functions/wcpcpy.texi:
26652         Renamed from doc/glibc-functions/wcpcpy.texi.
26653         * doc/posix-functions/wcpncpy.texi: Renamed from
26654         doc/glibc-functions/wcpncpy.texi.
26655         * doc/posix-functions/wcscasecmp.texi: Renamed from
26656         doc/glibc-functions/wcscasecmp.texi.
26657         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26658         doc/glibc-functions/wcscasecmp_l.texi.
26659         * doc/posix-functions/wcscoll_l.texi: Renamed from
26660         doc/glibc-functions/wcscoll_l.texi.
26661         * doc/posix-functions/wcsdup.texi: Renamed from
26662         doc/glibc-functions/wcsdup.texi.
26663         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26664         doc/glibc-functions/wcsncasecmp.texi.
26665         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26666         doc/glibc-functions/wcsncasecmp_l.texi.
26667         * doc/posix-functions/wcsnlen.texi: Renamed from
26668         doc/glibc-functions/wcsnlen.texi.
26669         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26670         doc/glibc-functions/wcsnrtombs.texi.
26671         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26672         doc/glibc-functions/wcsxfrm_l.texi.
26673         * doc/posix-functions/wctrans_l.texi: Renamed from
26674         doc/glibc-functions/wctrans_l.texi.
26675         * doc/posix-functions/wctype_l.texi: Renamed from
26676         doc/glibc-functions/wctype_l.texi.
26677         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26678         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26679         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26680         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26681         these subsections.
26682         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26683         Remove sections.
26684
26685 2008-12-14  Bruno Haible  <bruno@clisp.org>
26686
26687         Update doc for POSIX:2008.
26688         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26689
26690 2008-12-14  Bruno Haible  <bruno@clisp.org>
26691
26692         Update doc for POSIX:2008.
26693         * doc/pastposix-functions/bcmp.texi: Renamed from
26694         doc/posix-functions/bcmp.texi.
26695         * doc/pastposix-functions/bcopy.texi: Renamed from
26696         doc/posix-functions/bcopy.texi.
26697         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26698         doc/posix-functions/bsd_signal.texi.
26699         * doc/pastposix-functions/bzero.texi: Renamed from
26700         doc/posix-functions/bzero.texi.
26701         * doc/pastposix-functions/ecvt.texi: Renamed from
26702         doc/posix-functions/ecvt.texi.
26703         * doc/pastposix-functions/fcvt.texi: Renamed from
26704         doc/posix-functions/fcvt.texi.
26705         * doc/pastposix-functions/ftime.texi: Renamed from
26706         doc/posix-functions/ftime.texi.
26707         * doc/pastposix-functions/gcvt.texi: Renamed from
26708         doc/posix-functions/gcvt.texi.
26709         * doc/pastposix-functions/getcontext.texi: Renamed from
26710         doc/posix-functions/getcontext.texi.
26711         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26712         doc/posix-functions/gethostbyaddr.texi.
26713         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26714         doc/posix-functions/gethostbyname.texi.
26715         * doc/pastposix-functions/getwd.texi: Renamed from
26716         doc/posix-functions/getwd.texi.
26717         * doc/pastposix-functions/h_errno.texi: Renamed from
26718         doc/posix-functions/h_errno.texi.
26719         * doc/pastposix-functions/index.texi: Renamed from
26720         doc/posix-functions/index.texi.
26721         * doc/pastposix-functions/makecontext.texi: Renamed from
26722         doc/posix-functions/makecontext.texi.
26723         * doc/pastposix-functions/mktemp.texi: Renamed from
26724         doc/posix-functions/mktemp.texi.
26725         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26726         doc/posix-functions/pthread_attr_getstackaddr.texi.
26727         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26728         doc/posix-functions/pthread_attr_setstackaddr.texi.
26729         * doc/pastposix-functions/rindex.texi: Renamed from
26730         doc/posix-functions/rindex.texi.
26731         * doc/pastposix-functions/scalb.texi: Renamed from
26732         doc/posix-functions/scalb.texi.
26733         * doc/pastposix-functions/setcontext.texi: Renamed from
26734         doc/posix-functions/setcontext.texi.
26735         * doc/pastposix-functions/swapcontext.texi: Renamed from
26736         doc/posix-functions/swapcontext.texi.
26737         * doc/pastposix-functions/ualarm.texi: Renamed from
26738         doc/posix-functions/ualarm.texi.
26739         * doc/pastposix-functions/usleep.texi: Renamed from
26740         doc/posix-functions/usleep.texi.
26741         * doc/pastposix-functions/vfork.texi: Renamed from
26742         doc/posix-functions/vfork.texi.
26743         * doc/pastposix-functions/wcswcs.texi: Renamed from
26744         doc/posix-functions/wcswcs.texi.
26745         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26746         (Function Substitutes): Update.
26747
26748 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26749
26750         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26751         m4/strerror.m4.
26752
26753 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26754             Bruno Haible  <bruno@clisp.org>
26755
26756         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26757
26758 2008-12-13  Bruno Haible  <bruno@clisp.org>
26759
26760         * modules/strtoull (Depends-on): Remove unistd.
26761
26762 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26763
26764         * modules/strtoull (Depends-on): Add stdlib.
26765
26766 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26767
26768         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26769
26770 2008-12-10  Jim Meyering  <meyering@redhat.com>
26771
26772         gl_ASSERT: don't say assertions are disabled when they're not
26773         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26774         "checking whether to enable assertions... no", when they are in
26775         fact enabled.  This is solely a bug in the output of configure.
26776         In spite of saying "no", NDEBUG was not defined in that case.
26777         Also, as noted by Eric Blake, leave assertions enabled upon
26778         --enable-assert=INVALID.
26779
26780 2008-12-10  Bruno Haible  <bruno@clisp.org>
26781
26782         Change MODULES.html to refer to POSIX:2008 where possible.
26783         * MODULES.html.sh (POSIX2008_URL): New variable.
26784         (posix_headers): Remove sys/timeb, ucontext.
26785         (posix2001_headers): New variable.
26786         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26787         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26788         index, makecontext, mktemp, pthread_attr_getstackaddr,
26789         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26790         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26791         (posix2001_functions): New variable.
26792         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26793         otherwise.
26794
26795 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26796
26797         add missing include to parse-duration.c
26798         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26799         * modules/parse-duration (Depends-on): Add xalloc.
26800
26801         fix sed script reading maint.mk
26802         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26803         (syntax-check-rules): Use it.
26804
26805 2008-12-09  Bruno Haible  <bruno@clisp.org>
26806
26807         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26808         MacOS X 10.4/PowerPC.
26809         Reported by Simon Josefsson.
26810
26811 2008-12-08  Jim Meyering  <meyering@redhat.com>
26812
26813         work around mingw's lack of some S_IF definitions
26814         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26815         Reported by Simon Josefsson.
26816
26817 2008-12-08  Bruno Haible  <bruno@clisp.org>
26818
26819         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26820         applied to variables. Needed on MacOS X 10.4/PowerPC.
26821         Reported by Simon Josefsson.
26822
26823 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26824         and Eric Blake  <ebb9@byu.net>
26825
26826         assert: honor --enable-assert
26827         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26828         order to honor --enable-assert, rather than treating it as a
26829         synonym for --disable-assert.
26830
26831 2008-12-08  Jim Meyering  <meyering@redhat.com>
26832
26833         * lib/posixtm.c: Remove now-useless declaration of mktime.
26834
26835         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26836
26837 2008-12-07  Bruno Haible  <bruno@clisp.org>
26838
26839         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26840         test_once): Mark functions as static.
26841         * tests/test-tls.c (test_tls): Likewise.
26842
26843 2008-12-07  Bruno Haible  <bruno@clisp.org>
26844
26845         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26846         iconv_register_autodetect.
26847
26848 2008-12-07  Jim Meyering  <meyering@redhat.com>
26849
26850         posixtm.c: avoid a warning
26851         * lib/posixtm.c (posixtime): Don't initialize tm0.
26852         It's no longer needed to placate gcc4's -Wuninitialized,
26853         and the attempt to placate would elicit a new warning.
26854
26855         unicodeio.c: mark unused parameters
26856         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26857         (fallback_failure_callback): Likewise.
26858
26859 2008-12-07  Bruno Haible  <bruno@clisp.org>
26860
26861         * gnulib-tool (func_create_testdir): When building the tests
26862         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
26863         Reported by Simon Josefsson.
26864
26865 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26866
26867         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
26868
26869 2008-12-06  Bruno Haible  <bruno@clisp.org>
26870
26871         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
26872         Suggested by Eric Blake.
26873
26874 2008-12-06  Bruno Haible  <bruno@clisp.org>
26875
26876         Fix a c-stack test failure on MacOS X.
26877         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
26878         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
26879         handler for SIGBUS as well.
26880         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
26881         install a signal handler for SIGBUS as well.
26882         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
26883
26884 2008-12-06  Bruno Haible  <bruno@clisp.org>
26885
26886         Advocacy documentation.
26887         * doc/gnulib-intro.texi (Benefits): New section.
26888         * doc/gnulib.texi: Update.
26889
26890 2008-12-06  Bruno Haible  <bruno@clisp.org>
26891
26892         Document the 'manywarnings' module.
26893         * doc/manywarnings.texi: New file.
26894         * doc/gnulib.texi: Include it.
26895
26896 2008-12-05  Eric Blake  <ebb9@byu.net>
26897
26898         tests: silence some gcc warnings
26899         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
26900         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
26901         type mismatches.
26902
26903 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26904             Bruno Haible  <bruno@clisp.org>
26905
26906         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
26907
26908 2008-11-29  Jim Meyering  <meyering@redhat.com>
26909
26910         unicodeio.c: mark unused parameters
26911         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26912         (fallback_failure_callback): Likewise.
26913
26914         fts: fix a thinko
26915         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
26916         (set_stat_type): Return S_IF*-valued "type" directly.
26917         Prompted by James Youngman's spotting a related bug.
26918         Confirmed by further testing through find.
26919
26920         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
26921         * lib/fts.c (D_TYPE): Define.
26922         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
26923         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
26924         (s_ifmt_shift_bits): New function.
26925         (set_stat_type): New function.
26926         (fts_build): When not calling fts_stat, call set_stat_type
26927         to propagate dirent.d_type info to fts_read caller.
26928         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
26929         fts_statp->st_mode type information may be valid.
26930
26931 2008-11-28  Simon Josefsson  <simon@josefsson.org>
26932
26933         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
26934         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
26935         <sds@gnu.org>.
26936
26937 2008-11-20  Bruno Haible  <bruno@clisp.org>
26938
26939         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
26940         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
26941         INCLUDE_NEXT.
26942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
26943         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
26944         * modules/math (Makefile.am): Substitute
26945         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
26946         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26947
26948 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26949             Bruno Haible  <bruno@clisp.org>
26950
26951         * lib/stdint.in.h: Define all type macros so that their expansion is
26952         a single typedef'ed token. Fixes a compilation failure in Boost which
26953         does "using ::int8_t;".
26954
26955 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26956
26957         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
26958         gl_MANYWARN_ALL_GCC.
26959         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
26960         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
26961         * modules/manywarnings: New file.
26962         * MODULES.html.sh: Mention manywarnings module.
26963
26964 2008-11-18  Bruno Haible  <bruno@clisp.org>
26965
26966         * doc/gnulib-tool.texi (Unit tests): New section.
26967
26968 2008-11-18  Simon Josefsson  <simon@josefsson.org>
26969
26970         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
26971         paths like 'lib/po/foo.po'.
26972
26973 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26974
26975         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
26976         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
26977
26978 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26979
26980         * m4/warnings.m4: Use CPPFLAGS to really check whether the
26981         parameter works.
26982
26983 2008-11-17  Simon Josefsson  <simon@josefsson.org>
26984
26985         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
26986
26987 2008-11-17  Bruce Korb  <bkorb@gnu.org>
26988
26989         * modules/parse-duration-tests: New file.
26990         * tests/test-parse-duration.sh: New file.
26991         * tests/test-parse-duration.c: New file.
26992
26993         New module 'parse-duration'.
26994         * lib/parse-duration.h: New file.
26995         * lib/parse-duration.c: New file.
26996         * modules/parse-duration: New file.
26997
26998 2008-11-17  Bruno Haible  <bruno@clisp.org>
26999
27000         * tests/test-select-out.sh: Comment out the first pipe test.
27001         Reported by Simon Josefsson.
27002
27003 2008-11-17  Bruno Haible  <bruno@clisp.org>
27004
27005         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27006         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27007         gl_HOSTENT.
27008
27009 2008-11-17  Bruno Haible  <bruno@clisp.org>
27010
27011         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27012         -lnetwork and -lnet. Needed for Haiku and BeOS.
27013
27014 2008-11-16  Bruno Haible  <bruno@clisp.org>
27015
27016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27017
27018 2008-11-16  Bruno Haible  <bruno@clisp.org>
27019
27020         Avoid test failure on Haiku.
27021         * tests/test-fsync.c: Include <errno.h>.
27022         (main): Don't require that fsync (0) fails.
27023
27024 2008-11-15  Bruno Haible  <bruno@clisp.org>
27025
27026         New module 'hostent'.
27027         * modules/hostent: New file.
27028         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27029
27030 2008-11-15  Bruno Haible  <bruno@clisp.org>
27031
27032         New module 'servent'.
27033         * modules/servent: New file.
27034         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27035
27036 2008-11-15  Bruno Haible  <bruno@clisp.org>
27037
27038         Avoid generating same test program with two different rules.
27039         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27040         test-frexp to test-frexp-nolibm.
27041         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27042         test-frexpl to test-frexpl-nolibm.
27043
27044 2008-11-15  Bruno Haible  <bruno@clisp.org>
27045
27046         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27047         $(FREXPL_LIBM).
27048
27049 2008-11-15  Bruno Haible  <bruno@clisp.org>
27050
27051         * lib/netdb.in.h: Activate the definitions also when the system's
27052         <netdb.h> has 'struct addrinfo'.
27053         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27054         EAI_OVERFLOW or AI_NUMERICSERV.
27055         * doc/posix-headers/netdb.texi: Document the problem.
27056
27057 2008-11-15  Bruno Haible  <bruno@clisp.org>
27058
27059         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27060
27061         Make the 'sched' module work on platforms where <sched.h> exists but
27062         is incomplete (such as Haiku).
27063         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27064         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27065         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27066         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27067         HAVE_STRUCT_SCHED_PARAM.
27068         * modules/sched (Depends-on): Add include_next.
27069         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27070         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27071         * doc/posix-headers/sched.texi: Document the issue.
27072
27073 2008-11-13  Jim Meyering  <meyering@redhat.com>
27074
27075         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27076         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27077         test would fail due to the difference in the Report bugs to ...
27078         line.  The expected address is empty, "<>", while the actual
27079         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27080
27081 2008-11-12  Bruno Haible  <bruno@clisp.org>
27082
27083         lstat: don't compile lstat.c on systems lacking lstat
27084         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27085         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27086         Reported by Daniel P. Berrange via Jim Meyering.
27087
27088 2008-11-12  Jim Meyering  <meyering@redhat.com>
27089
27090         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27091
27092 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27093
27094         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27095         instead.
27096
27097 2008-11-12  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/unicodeio.c: Include unistr.h.
27100         (utf8_wctomb): Remove function.
27101         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27102
27103 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27104
27105         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27106         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27107         <bruno@clisp.org>.
27108         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27109
27110 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27111
27112         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27113         * doc/gnulib.texi: Add section for warnings.
27114
27115 2008-11-11  Bruno Haible  <bruno@clisp.org>
27116
27117         * lib/sockets.h: Add a comment.
27118
27119 2008-11-11  Karl Berry  <karl@gnu.org>
27120
27121         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27122
27123 2008-11-11  Eric Blake  <ebb9@byu.net>
27124
27125         fdl.texi: avoid git symlinks
27126         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27127
27128 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27129
27130         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27131
27132 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27133
27134         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27135         (gl_WARN_ADD): Substitute $2 if literal.
27136
27137 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27138
27139         * m4/warning.m4: Remove.
27140
27141 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27142
27143         * m4/warnings.m4: Almost complete rewrite. :-)
27144
27145 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27146
27147         * modules/warnings: New module.
27148         * m4/warnings.m4: New file.
27149         * MODULES.html.sh: Mention warnings module.
27150         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27151         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27152
27153 2008-11-10  Eric Blake  <ebb9@byu.net>
27154
27155         fdl.texi: make a symlink to the latest version
27156         * doc/standards.texi: Revert today's earlier change.
27157         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27158         * doc/fdl.texi: ...and replace this with a symlink to the newer
27159         fdl-1.3.texi.
27160
27161 2008-11-10  Bruno Haible  <bruno@clisp.org>
27162
27163         * tests/test-select-fd.c (main): Accept the result file name as fourth
27164         argument.
27165         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27166         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27167
27168 2008-11-10  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27171         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27172         as autoconf-substituted macros.
27173         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27174         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27175         gl_NETDB_H_DEFAULTS. Set these variables.
27176         * modules/netdb (Makefile.am): Substitute these variables.
27177
27178 2008-11-10  Eric Blake  <ebb9@byu.net>
27179
27180         standards.texi: include correct file for FDL 1.3
27181         * doc/standards.texi (GNU Free Documentation License): Change
27182         include file to pull in FDL 1.3, not 1.2.
27183
27184         fdl.texi: revert accidental change to license
27185         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27186
27187 2008-11-10  Bruno Haible  <bruno@clisp.org>
27188
27189         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27190         cross-compiling guesses also when the native compile gives no result.
27191
27192 2008-11-10  Bruno Haible  <bruno@clisp.org>
27193
27194         * lib/spawni.c (__spawni): Force variable into the stack.
27195
27196 2008-11-10  Bruno Haible  <bruno@clisp.org>
27197
27198         Add support for Haiku.
27199         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27200         glibc and BeOS, but also on Haiku.
27201         * lib/fpurge.c (fpurge): Likewise.
27202         * lib/freadable.c (freadable): Likewise.
27203         * lib/freadahead.c (freadahead): Likewise.
27204         * lib/freading.c (freading): Likewise.
27205         * lib/freadptr.c (freadptr): Likewise.
27206         * lib/freadseek.c (freadptrinc): Likewise.
27207         * lib/fseeko.c (rpl_fseeko): Likewise.
27208         * lib/fseterr.c (fseterr): Likewise.
27209         * lib/fwritable.c (fwritable): Likewise.
27210         * lib/fwriting.c (fwriting): Likewise.
27211         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27212
27213 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27214
27215         * lib/config.charset: Treat Haiku like BeOS.
27216
27217 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27218
27219         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27220         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27221
27222 2008-11-08  Bruno Haible  <bruno@clisp.org>
27223
27224         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27225         AC_CACHE_CHECK.
27226
27227 2008-11-08  Bruno Haible  <bruno@clisp.org>
27228
27229         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27230
27231 2008-11-08  Bruno Haible  <bruno@clisp.org>
27232
27233         * tests/test-select-fd.c: New file.
27234         * tests/test-select-in.sh: New file.
27235         * tests/test-select-out.sh: New file.
27236         * tests/test-select-stdin.c: New file.
27237         * modules/select-tests (Files): Add the new files.
27238         (Depends-on): Add gettimeofday.
27239         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27240         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27241         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27242
27243 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27244             Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27247
27248 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27249
27250         * build-aux/pmccabe2html: Added support for C++ source files.
27251
27252 2008-11-05  Ben Pfaff  <blp@gnu.org>
27253
27254         Fix lib/close.c build on Windows.
27255         * modules/close (Files): Add lib/w32sock.h.
27256
27257 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27258
27259         Accept Bison's NEWS format.
27260         * build-aux/announce-gen (print_news_deltas): Tweak
27261         $re_prefix.
27262
27263 2008-11-04  Bruno Haible  <bruno@clisp.org>
27264
27265         * modules/random_r (Maintainer): Add glibc.
27266
27267 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27268
27269         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27270         by karl@freefriends.org (Karl Berry).
27271         * doc/alloca.texi: Likewise.
27272         * doc/c-ctype.texi: Likewise.
27273         * doc/c-strcase.texi: Likewise.
27274         * doc/c-strcaseeq.texi: Likewise.
27275         * doc/c-strcasestr.texi: Likewise.
27276         * doc/c-strstr.texi: Likewise.
27277         * doc/c-strtod.texi: Likewise.
27278         * doc/c-strtold.texi: Likewise.
27279         * doc/ctime.texi: Likewise.
27280         * doc/error.texi: Likewise.
27281         * doc/fdl.texi: Likewise.
27282         * doc/gcd.texi: Likewise.
27283         * doc/getdate.texi: Likewise.
27284         * doc/gnulib-intro.texi: Likewise.
27285         * doc/gnulib-tool.texi: Likewise.
27286         * doc/gnulib.texi: Likewise.
27287         * doc/inet_ntoa.texi: Likewise.
27288         * doc/maintain.texi: Likewise.
27289         * doc/make-stds.texi: Likewise.
27290         * doc/quote.texi: Likewise.
27291         * doc/regexprops-generic.texi: Likewise.
27292         * doc/standards.texi: Likewise.
27293         * doc/verify.texi: Likewise.
27294         * doc/visibility.texi: Likewise.
27295         * doc/gnulib.texi (GNU Free Documentation License): Include
27296         fdl-1.3.texi instead of fdl.texi.
27297
27298 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27299
27300         * doc/fdl-1.3.texi: New file, from
27301         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27302         * modules/fdl-1.3: Add.
27303         * MODULES.html.sh: Add fdl-1.3.
27304
27305 2008-11-03  Bruno Haible  <bruno@clisp.org>
27306
27307         Make determination of absolute name of header file work with AIX xlc.
27308         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27309         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27310         preprocessing.
27311         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27312         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27313
27314 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27315
27316         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27317         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27318         <ludo@gnu.org>.
27319
27320 2008-11-02  Bruno Haible  <bruno@clisp.org>
27321
27322         Mark 'strpbrk' obsolete.
27323         * modules/strpbrk (Status, Notice): New sections.
27324         * modules/strtok_r (Depends-on): Add strpbrk.
27325
27326 2008-11-02  Bruno Haible  <bruno@clisp.org>
27327
27328         Mark 'strdup' obsolete.
27329         * modules/strdup (Status, Notice): New sections.
27330         * modules/findprog (Depends-on): Add strdup.
27331         * modules/getaddrinfo (Depends-on): Likewise.
27332         * modules/localename (Depends-on): Likewise.
27333         * modules/relocatable-lib (Depends-on): Likewise.
27334         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27335         * modules/relocatable-prog (Depends-on): Likewise.
27336         * modules/trim (Depends-on): Likewise.
27337         * modules/unictype/gen-ctype (Depends-on): Likewise.
27338         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27339
27340 2008-11-02  Bruno Haible  <bruno@clisp.org>
27341
27342         Mark 'strcspn' obsolete.
27343         * modules/strcspn (Status, Notice): New sections.
27344
27345 2008-11-02  Bruno Haible  <bruno@clisp.org>
27346
27347         Mark 'rmdir' obsolete.
27348         * modules/rmdir (Status, Notice): New sections.
27349         * modules/clean-temp (Depends-on): Add rmdir.
27350         * modules/openat (Depends-on): Likewise.
27351
27352 2008-11-02  Bruno Haible  <bruno@clisp.org>
27353
27354         Mark 'raise' obsolete.
27355         * modules/raise (Status, Notice): New sections.
27356         (Include): Specify <signal.h>.
27357         * modules/stdio (Depends-on): Add raise.
27358         * modules/write (Depends-on): Likewise.
27359
27360 2008-11-02  Bruno Haible  <bruno@clisp.org>
27361
27362         Mark 'memset' obsolete.
27363         * modules/memset (Status, Notice): New sections.
27364
27365 2008-11-02  Bruno Haible  <bruno@clisp.org>
27366
27367         Mark 'memmove' obsolete.
27368         * modules/memmove (Status, Notice): New sections.
27369         * modules/argp (Depends-on): Add memmove.
27370         * modules/argz (Depends-on): Likewise.
27371         * modules/canonicalize (Depends-on): Likewise.
27372         * modules/canonicalize-lgpl (Depends-on): Likewise.
27373         * modules/fts (Depends-on): Likewise.
27374         * modules/getcwd (Depends-on): Likewise.
27375         * modules/human (Depends-on): Likewise.
27376         * modules/regex (Depends-on): Likewise.
27377         * modules/striconveh (Depends-on): Likewise.
27378         * modules/trim (Depends-on): Likewise.
27379         * modules/unistr/u8-move (Depends-on): Likewise.
27380         * modules/unistr/u16-move (Depends-on): Likewise.
27381         * modules/unistr/u32-move (Depends-on): Likewise.
27382
27383 2008-11-02  Bruno Haible  <bruno@clisp.org>
27384
27385         Mark 'memcpy' obsolete.
27386         * modules/memcpy (Status, Notice): New sections.
27387
27388 2008-11-02  Bruno Haible  <bruno@clisp.org>
27389
27390         Mark 'memcmp' obsolete.
27391         * modules/memcmp (Status, Notice): New sections.
27392         * modules/argmatch (Depends-on): Add memchr.
27393         * modules/backupfile (Depends-on): Likewise.
27394         * modules/c-strcasestr (Depends-on): Likewise.
27395         * modules/crypto/des (Depends-on): Likewise.
27396         * modules/csharpcomp (Depends-on): Likewise.
27397         * modules/fnmatch (Depends-on): Likewise.
27398         * modules/git-merge-changelog (Depends-on): Likewise.
27399         * modules/isnand (Depends-on): Likewise.
27400         * modules/isnand-nolibm (Depends-on): Likewise.
27401         * modules/isnanf (Depends-on): Likewise.
27402         * modules/isnanf-nolibm (Depends-on): Likewise.
27403         * modules/isnanl (Depends-on): Likewise.
27404         * modules/isnanl-nolibm (Depends-on): Likewise.
27405         * modules/mbchar (Depends-on): Likewise.
27406         * modules/memcoll (Depends-on): Likewise.
27407         * modules/quotearg (Depends-on): Likewise.
27408         * modules/regex (Depends-on): Likewise.
27409         * modules/relocatable-prog (Depends-on): Likewise.
27410         * modules/same (Depends-on): Likewise.
27411         * modules/signbit (Depends-on): Likewise.
27412         * modules/strcasestr-simple (Depends-on): Likewise.
27413         * modules/unictype/gen-ctype (Depends-on): Likewise.
27414         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27415         * modules/uniname/uniname (Depends-on): Likewise.
27416         * modules/unistr/u8-cmp (Depends-on): Likewise.
27417
27418 2008-11-02  Bruno Haible  <bruno@clisp.org>
27419
27420         Mark 'memchr' obsolete.
27421         * modules/memchr (Status, Notice): New sections.
27422         * modules/argp (Depends-on): Add memchr.
27423         * modules/base64 (Depends-on): Likewise.
27424         * modules/c-strcasestr (Depends-on): Likewise.
27425         * modules/chdir-long (Depends-on): Likewise.
27426         * modules/fnmatch (Depends-on): Likewise.
27427         * modules/getsubopt (Depends-on): Likewise.
27428         * modules/git-merge-changelog (Depends-on): Likewise.
27429         * modules/glob (Depends-on): Likewise.
27430         * modules/strcasestr-simple (Depends-on): Likewise.
27431         * modules/strnlen (Depends-on): Likewise.
27432
27433 2008-11-02  Bruno Haible  <bruno@clisp.org>
27434
27435         Mark 'atexit' obsolete.
27436         * modules/atexit (Status, Notice): New sections.
27437         * modules/chdir-long (Depends-on): Add atexit.
27438         * modules/wait-process (Depends-on): Likewise.
27439
27440 2008-11-02  Bruno Haible  <bruno@clisp.org>
27441
27442         * gnulib-tool: New option --with-obsolete.
27443         (func_usage): Document it.
27444         (func_modules_transitive_closure): Drop obsolete dependencies if
27445         incobsolete is not true.
27446         (func_import): Read and save the incobsolete variable to the cache.
27447
27448 2008-11-02  Bruno Haible  <bruno@clisp.org>
27449
27450         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27451         * gnulib-tool: New option --extract-status.
27452         (func_usage): Document it.
27453         (sed_extract_prog): Recognize it.
27454         (func_get_status): New function.
27455
27456 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27457
27458         * modules/sockets (License): Change from LGPL to LGPLv2+.
27459
27460 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27461
27462         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27463
27464 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27465
27466         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27467         Mention times and sys_times.
27468         * modules/sys_times, modules/sys_times-tests: New modules.
27469         * modules/times, modules/times-tests: Likewise
27470         * m4/sys_times_h.m4: New file.
27471         * lib/sys_times.in.h: Likewise
27472         * lib/times.c: Likewise.
27473         * tests/test-sys_times.c: Likewise.
27474         * tests/test-times.c: Likewise.
27475         * doc/posix-headers/sys_times.texi: Update.
27476         * doc/posix-functions/times.texi: Update.
27477
27478 2008-10-28  Jim Meyering  <meyering@redhat.com>
27479
27480         * modules/tempname (Depends-on): Add lstat.
27481
27482         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27483
27484 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27485
27486         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27487         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27488         using idiom used elsewhere in gnulib.
27489
27490 2008-10-27  Jim Meyering  <meyering@redhat.com>
27491
27492         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27493
27494 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27495
27496         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27497         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27498         programs.
27499         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27500
27501 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27502
27503         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27504
27505 2008-10-27  Bruno Haible  <bruno@clisp.org>
27506
27507         * tests/test-lstat.c: Include <stdio.h>.
27508
27509 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27510
27511         * modules/lstat-tests: New module.
27512         * tests/test-lstat.c: New file.
27513
27514 2008-10-26  Jim Meyering  <meyering@redhat.com>
27515
27516         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27517
27518 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27519             Bruno Haible  <bruno@clisp.org>
27520
27521         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27522         * modules/configmake (Include): Add a note that the include must come
27523         after all system headers.
27524         * lib/javaversion.c: Include configmake.h after all other includes.
27525
27526 2008-10-26  Bruno Haible  <bruno@clisp.org>
27527
27528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27529         HAVE_STRUCT_RANDOM_DATA to 1.
27530         (gl_STDLIB_H): Simplify.
27531
27532 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27533
27534         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27535         substitute HAVE_STRUCT_RANDOM_DATA.
27536         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27537         random_data.
27538         * modules/stdlib (Makefile.am): Substitute
27539         HAVE_STRUCT_RANDOM_DATA.
27540
27541 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27542
27543         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27544         * doc/gnulib-intro.texi (Copyright): Likewise.
27545
27546 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27547
27548         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27549         findings.
27550
27551 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27552             Bruno Haible  <bruno@clisp.org>
27553
27554         * lib/unistd.in.h: Include <winsock2.h>.
27555         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27556         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27557         Provide dummy declarations.
27558         (gethostname): Override.
27559         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27560         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27561         gl_PREREQ_SYS_H_WINSOCK2.
27562         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27563         * doc/posix-functions/gethostname.texi: More details.
27564
27565 2008-10-25  Bruno Haible  <bruno@clisp.org>
27566
27567         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27568         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27569         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27570
27571         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27572         here ...
27573         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27574         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27575         gl_UNISTD_H_DEFAULTS.
27576
27577 2008-10-25  Eric Blake  <ebb9@byu.net>
27578
27579         signbit: avoid spurious compiler failure
27580         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27581         declarations inside function.
27582
27583 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27584             Bruno Haible  <bruno@clisp.org>
27585
27586         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27587         * modules/random_r (Depends-on): Add stdint.
27588
27589 2008-10-24  Bruno Haible  <bruno@clisp.org>
27590
27591         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27592         Eggert.
27593         * modules/strerror (License): Likewise.
27594
27595 2008-10-24  Jim Meyering  <meyering@redhat.com>
27596
27597         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27598         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27599
27600 2008-10-24  Eric Blake  <ebb9@byu.net>
27601
27602         getgroups: fix compilation when getgroups is available
27603         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27604         but with <config.h> override of getgroups disabled.
27605
27606 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27607
27608         * doc/gnulib.texi (Header files): Add note about C++ problems.
27609         Explained by Bruno Haible <bruno@clisp.org>.
27610
27611 2008-10-23  Bruno Haible  <bruno@clisp.org>
27612
27613         Define a dummy SA_NODEFER macro on Interix.
27614         * lib/signal.in.h (SA_NODEFER): Define fallback.
27615         Reported by Aleksey Cheusov <cheusov@tut.by> via
27616         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27617
27618 2008-10-23  Bruno Haible  <bruno@clisp.org>
27619
27620         * modules/freadahead (License): Change to LGPLv2+.
27621         Suggested by Simon Josefsson.
27622
27623 2008-10-23  Jim Meyering  <meyering@redhat.com>
27624
27625         random_r: new module
27626         * modules/random_r: New file.
27627         * m4/random_r.m4: New file.
27628         * lib/random_r.c: New file, from glibc.
27629         * modules/random_r-tests: New file.
27630         * tests/test-random_r.c: New file.
27631         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27632          Declare.
27633         (RAND_MAX): Define.
27634         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27635         * modules/stdlib: Substitute them, too.
27636         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27637         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27638         * doc/glibc-functions/random_r.texi: Likewise.
27639         * doc/glibc-functions/setstate_r.texi: Likewise.
27640         * doc/glibc-functions/srandom_r.texi: Likewise.
27641         * config/srclist.txt: Mention it.
27642
27643 2008-10-23  David Lutterkort  <lutter@redhat.com>
27644
27645         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27646         link requirement
27647
27648 2008-10-23  Jim Meyering  <meyering@redhat.com>
27649
27650         selinux-h: mark parameters of stub functions as intentionally unused
27651         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27652         * lib/se-context.in.h: Likewise.
27653
27654 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27655
27656         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27657
27658 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27659
27660         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27661
27662 2008-10-22  Eric Blake  <ebb9@byu.net>
27663
27664         glthread/thread: avoid compiler warning
27665         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27666         Add unreachable abort to silence compiler.
27667
27668 2008-10-22  Eric Blake  <ebb9@byu.net>
27669
27670         netdb: also supply struct addrinfo for cygwin 1.5.x
27671         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27672         older cygwin.
27673         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27674         cygwin.
27675         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27676
27677 2008-10-22  Bruno Haible  <bruno@clisp.org>
27678
27679         * users.txt: Update entry about pspp.
27680
27681 2008-10-21  Bruno Haible  <bruno@clisp.org>
27682
27683         Simplification.
27684         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27685         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27686
27687         Simplification.
27688         * lib/ioctl.c (ioctl): Don't undefine.
27689         * lib/socket.c (socket): Don't undefine.
27690
27691         Remove unused module indicator macros.
27692         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27693         GNULIB_$1 as a C macro.
27694
27695         * doc/posix-functions/close.texi: Undo last change.
27696         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27697         Windows platforms.
27698
27699 2008-10-21  Bruno Haible  <bruno@clisp.org>
27700
27701         Add gethostname() declaration to <unistd.h>.
27702         * lib/unistd.in.h (gethostname): New declaration.
27703         * lib/gethostname.c: Include <unistd.h>.
27704         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27705         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27707         and HAVE_GETHOSTNAME.
27708         * modules/gethostname (Depends-on): Add unistd.
27709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27710         (Include): Specify <unistd.h>.
27711         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27712         HAVE_GETHOSTNAME.
27713         * tests/test-gethostname.c: Include <unistd.h> first.
27714
27715 2008-10-21  Bruno Haible  <bruno@clisp.org>
27716
27717         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27718         * modules/select-tests (Depends-on): Likewise.
27719         Reported by Simon Josefsson.
27720
27721 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27722
27723         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27724         * lib/accept.c: New file, based on winsock.c.
27725         * lib/bind.c: New file, based on winsock.c.
27726         * lib/connect.c: New file, based on winsock.c.
27727         * lib/getpeername.c: New file, based on winsock.c.
27728         * lib/getsockname.c: New file, based on winsock.c.
27729         * lib/getsockopt.c: New file, based on winsock.c.
27730         * lib/ioctl.c: New file, based on winsock.c.
27731         * lib/listen.c: New file, based on winsock.c.
27732         * lib/recv.c: New file, based on winsock.c.
27733         * lib/recvfrom.c: New file, based on winsock.c.
27734         * lib/send.c: New file, based on winsock.c.
27735         * lib/sendto.c: New file, based on winsock.c.
27736         * lib/setsockopt.c: New file, based on winsock.c.
27737         * lib/shutdown.c: New file, based on winsock.c.
27738         * lib/socket.c: New file, based on winsock.c.
27739         * lib/w32sock.h: New file, based on winsock.c.
27740         * lib/winsock.c: Remove file.
27741         * modules/accept: Likewise.
27742         * modules/bind: Likewise.
27743         * modules/connect: Likewise.
27744         * modules/getpeername: Likewise.
27745         * modules/getsockname: Likewise.
27746         * modules/getsockopt: Likewise.
27747         * modules/ioctl: Likewise.
27748         * modules/listen: Likewise.
27749         * modules/recv: Likewise.
27750         * modules/recvfrom: Likewise.
27751         * modules/send: Likewise.
27752         * modules/sendto: Likewise.
27753         * modules/setsockopt: Likewise.
27754         * modules/shutdown: Likewise.
27755         * modules/socket: Use socket.c instead of winsock.c.
27756         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27757         * doc/posix-functions/accept.texi: Doc fix.
27758         * doc/posix-functions/bind.texi: Doc fix.
27759         * doc/posix-functions/close.texi: Doc fix.
27760         * doc/posix-functions/connect.texi: Doc fix.
27761         * doc/posix-functions/getpeername.texi: Doc fix.
27762         * doc/posix-functions/getsockname.texi: Doc fix.
27763         * doc/posix-functions/getsockopt.texi: Doc fix.
27764         * doc/posix-functions/ioctl.texi: Doc fix.
27765         * doc/posix-functions/listen.texi: Doc fix.
27766         * doc/posix-functions/recv.texi: Doc fix.
27767         * doc/posix-functions/recvfrom.texi: Doc fix.
27768         * doc/posix-functions/send.texi: Doc fix.
27769         * doc/posix-functions/sendto.texi: Doc fix.
27770         * doc/posix-functions/setsockopt.texi: Doc fix.
27771         * doc/posix-functions/shutdown.texi: Doc fix.
27772         * doc/posix-functions/socket.texi: Doc fix.
27773
27774 2008-10-20  Bruno Haible  <bruno@clisp.org>
27775
27776         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27777         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27778         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27779         as an alias for SIGABRT.
27780         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27781         (sigaction): Map it to SIGABRT.
27782         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27783
27784 2008-10-20  Bruno Haible  <bruno@clisp.org>
27785
27786         * lib/fts.c: Don't include lstat.h.
27787         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27788
27789         Move the lstat() declaration to <sys/stat.h>.
27790         * lib/lstat.h: Remove file.
27791         * lib/sys_stat.in.h: Add special invocation convention.
27792         (lstat): New declaration.
27793         * lib/lstat.c (orig_lstat): New function.
27794         (rpl_lstat): Use orig_lstat instead of lstat.
27795         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27796         AC_C_INLINE. Set REPLACE_LSTAT.
27797         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27798         and REPLACE_LSTAT.
27799         * modules/lstat (Files): Remove lib/lstat.h.
27800         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27801         (Include): Specify <sys/stat.h> instead of lstat.h.
27802         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27803         REPLACE_LSTAT.
27804         * NEWS: Mention the change.
27805
27806 2008-10-20  Bruno Haible  <bruno@clisp.org>
27807
27808         * modules/posix_spawn-tests: New file.
27809         * tests/test-posix_spawn3.c: New file.
27810
27811 2008-10-20  Bruno Haible  <bruno@clisp.org>
27812
27813         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27814         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27815         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27816         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27817         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27818
27819 2008-10-20  Bruno Haible  <bruno@clisp.org>
27820
27821         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27822         of posix_spawn on AIX 5.3.
27823
27824 2008-10-20  Bruno Haible  <bruno@clisp.org>
27825
27826         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27827
27828 2008-10-20  Bruno Haible  <bruno@clisp.org>
27829
27830         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27831         of AC_LANG_PROGRAM.
27832
27833 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27834
27835         * lib/netdb.in.h: Don't define GNU specific constants until they
27836         are supported or needed.  Reported by Bruno Haible
27837         <bruno@clisp.org>.
27838
27839 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27840
27841         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27842
27843 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27844
27845         * lib/getaddrinfo.h: Remove file.
27846         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27847         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27848         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27849         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27850         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27851         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27852         * tests/test-getaddrinfo.c: Likewise.
27853         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27854         * NEWS: Mention change.
27855
27856 2008-10-19  Bruno Haible  <bruno@clisp.org>
27857
27858         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27859
27860 2008-10-19  Bruno Haible  <bruno@clisp.org>
27861
27862         * lib/wait-process.c: Include simply <sys/wait.h>.
27863         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
27864         WIFSTOPPED): Remove fallback definitions.
27865         * modules/wait-process (Depends-on): Add sys_wait.
27866
27867         New module 'sys_wait'.
27868         * modules/sys_wait: New file.
27869         * lib/sys_wait.in.h: New file, partially copied from
27870         lib/wait-process.c.
27871         * m4/sys_wait_h.m4: New file.
27872         * doc/posix-headers/sys_wait.texi: Mention the new module.
27873
27874 2008-10-19  Bruno Haible  <bruno@clisp.org>
27875
27876         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
27877
27878 2008-10-19  Bruno Haible  <bruno@clisp.org>
27879
27880         Assume that waitpid() fills an 'int' status, not a 'union wait'.
27881         * lib/wait-process.c (WAIT_T): Remove type.
27882         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
27883         (wait_subprocess): Update.
27884
27885 2008-10-19  Bruno Haible  <bruno@clisp.org>
27886
27887         New module 'atoll'.
27888         * modules/atoll: New file.
27889         * lib/stdlib.in.h (atoll): New declaration.
27890         * lib/atoll.c: New file, from glibc with modifications.
27891         * m4/atoll.m4: New file.
27892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
27893         HAVE_ATOLL.
27894         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
27895         * doc/posix-functions/atoll.texi: Mention the new module.
27896
27897 2008-10-19  Bruno Haible  <bruno@clisp.org>
27898
27899         Add strtoull() declaration to <stdlib.h>.
27900         * lib/stdlib.in.h (strtoull): New declaration.
27901         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27902         Set HAVE_STRTOULL.
27903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
27904         HAVE_STRTOULL.
27905         * modules/strtoull (Depends-on): Add stdlib.
27906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27907         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
27908         HAVE_STRTOULL.
27909
27910 2008-10-19  Bruno Haible  <bruno@clisp.org>
27911
27912         Add strtoll() declaration to <stdlib.h>.
27913         * lib/stdlib.in.h (strtoll): New declaration.
27914         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
27915         Set HAVE_STRTOLL.
27916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
27917         HAVE_STRTOLL.
27918         * modules/strtoll (Depends-on): Add stdlib.
27919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27920         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
27921
27922 2008-10-19  Bruno Haible  <bruno@clisp.org>
27923
27924         * modules/bcopy (Depends-on): Add strings.
27925         (Include): Specify <strings.h>.
27926
27927 2008-10-19  Bruno Haible  <bruno@clisp.org>
27928
27929         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
27930
27931 2008-10-19  Bruno Haible  <bruno@clisp.org>
27932
27933         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
27934         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
27935         mingw.
27936
27937 2008-10-19  Bruno Haible  <bruno@clisp.org>
27938
27939         * lib/atanl.c: Don't include isnanl.h.
27940         * lib/cosl.c: Likewise.
27941         * lib/ldexpl.c: Likewise.
27942         * lib/logl.c: Likewise.
27943         * lib/sinl.c: Likewise.
27944         * lib/sqrtl.c: Likewise.
27945         * lib/tanl.c: Likewise.
27946
27947         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
27948         * lib/isnanf.h: Remove file.
27949         * lib/isnand.h: Remove file.
27950         * lib/isnanl.h: Remove file.
27951         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
27952         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
27953         macros.
27954         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
27955         HAVE_ISNANF, don't define it as a C macro.
27956         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
27957         HAVE_ISNAND, don't define it as a C macro.
27958         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
27959         HAVE_ISNANL, don't define it as a C macro.
27960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
27961         HAVE_ISNAN[FDL].
27962         * modules/isnanf (Files): Remove lib/isnanf.h.
27963         (Depends-on): Add math.
27964         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27965         (Include): Specify <math.h> instead of isnanf.h.
27966         * modules/isnand (Files): Remove lib/isnand.h.
27967         (Depends-on): Add math.
27968         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27969         (Include): Specify <math.h> instead of isnand.h.
27970         * modules/isnanl (Files): Remove lib/isnanl.h.
27971         (Depends-on): Add math.
27972         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27973         (Include): Specify <math.h> instead of isnanl.h.
27974         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
27975         HAVE_ISNAN[FDL].
27976         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
27977         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
27978         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
27979         * NEWS: Mention the change.
27980
27981 2008-10-18  Bruno Haible  <bruno@clisp.org>
27982
27983         Add getusershell(), setusershell(), endusershell() declarations to
27984         <unistd.h>.
27985         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
27986         declarations.
27987         * lib/getusershell.c: Include unistd.h.
27988         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
27989         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
27990         HAVE_GETUSERSHELL.
27991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
27992         and HAVE_GETUSERSHELL.
27993         * modules/getusershell (Depends-on): Add unistd, extensions.
27994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27995         (Include): Specify <unistd.h>.
27996         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
27997         HAVE_GETUSERSHELL.
27998
27999 2008-10-18  Bruno Haible  <bruno@clisp.org>
28000
28001         Add a getloadavg() declaration to <stdlib.h>.
28002         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28003         getloadavg declaration.
28004         (getloadavg): New declaration.
28005         * lib/getloadavg.c: Include <stdlib.h> first.
28006         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28007         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28008         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28010         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28011         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28013         (Include): Specify <stdlib.h>.
28014         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28015         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28016
28017 2008-10-18  Bruno Haible  <bruno@clisp.org>
28018
28019         * lib/dirchownmod.c: Don't include lchmod.h.
28020
28021         Move the lchmod() declaration to <sys/stat.h>.
28022         * lib/lchmod.h: Remove file.
28023         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28024         (lchmod): New declaration, moved here from lib/lchown.h.
28025         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28026         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28028         and HAVE_LCHMOD.
28029         * modules/lchmod (Files): Remove lib/lchmod.h.
28030         (Depends-on): Add sys_stat, extensions.
28031         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28032         (Include): Specify <sys/stat.h> instead of lchmod.h.
28033         * modules/sys_stat (Depends-on): Add link-warning.
28034         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28035         definition of GL_LINK_WARNING.
28036         * NEWS: Mention the change.
28037
28038 2008-10-18  Bruno Haible  <bruno@clisp.org>
28039
28040         * lib/fchdir.c: Don't include dirfd.h.
28041         * lib/fts.c: Likewise.
28042         * lib/getcwd.c: Likewise.
28043         * lib/glob.c: Likewise.
28044
28045         Move the dirfd() declaration to <dirent.h>.
28046         * lib/dirfd.h: Remove file.
28047         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28048         (dirfd): New declaration.
28049         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28051         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28052         HAVE_DECL_DIRFD.
28053         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28054         HAVE_DECL_DIRFD.
28055         * modules/dirfd (Files): Remove lib/dirfd.h.
28056         (Depends-on): Add dirent, extensions.
28057         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28058         (Include): Specify <dirent.h> instead of dirfd.h.
28059         * modules/dirent (Depends-on): Add link-warning.
28060         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28061         definition of GL_LINK_WARNING.
28062         * NEWS: Mention the change.
28063
28064 2008-10-18  Bruno Haible  <bruno@clisp.org>
28065
28066         Move the euidaccess() declaration to <unistd.h>.
28067         * lib/euidaccess.h: Remove file.
28068         * lib/unistd.in.h (euidaccess): New declaration.
28069         * lib/euidaccess.c: Don't include euidaccess.h.
28070         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28071         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28073         and HAVE_EUIDACCESS.
28074         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28075         (Depends-on): Add unistd.
28076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28077         (Include): Specify <unistd.h> instead of euidaccess.h.
28078         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28079         HAVE_EUIDACCESS.
28080         * NEWS: Mention the change.
28081
28082 2008-10-18  Bruno Haible  <bruno@clisp.org>
28083
28084         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28085
28086         Move the getdomainname() declaration to <unistd.h>.
28087         * lib/getdomainname.h: Remove file.
28088         * lib/unistd.in.h (getdomainname): New declaration.
28089         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28090         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28091         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28092         HAVE_GETDOMAINNAME.
28093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28094         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28095         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28096         (Depends-on): Add unistd, extensions.
28097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28098         (Includes): Specify <unistd.h> instead of getdomainname.h.
28099         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28100         HAVE_GETDOMAINNAME.
28101         * NEWS: Mention the change.
28102
28103 2008-10-18  Bruno Haible  <bruno@clisp.org>
28104
28105         * modules/dirent: New file.
28106         * m4/dirent_h.m4: New file.
28107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28108         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28109         * modules/fchdir (Files): Remove lib/dirent.in.h.
28110         (Depends-on): Add dirent.
28111         (Makefile.am): Move rules to modules/dirent.
28112         * doc/posix-headers/dirent.texi: Mention the new module.
28113
28114 2008-10-18  Bruno Haible  <bruno@clisp.org>
28115
28116         Avoid -Wunused-parameter warnings in public gnulib header files.
28117         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28118         macro.
28119         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28120
28121 2008-10-18  Bruno Haible  <bruno@clisp.org>
28122
28123         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28124         * doc/glibc-functions/error.texi: Mention the module 'error'.
28125         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28126         * doc/glibc-functions/getdomainname.texi: Mention the module
28127         'getdomainname'.
28128         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28129         * doc/glibc-functions/getpagesize.texi: Mention the module
28130         'getpagesize'.
28131         * doc/glibc-functions/getusershell.texi: Mention the module
28132         'getusershell'.
28133         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28134         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28135         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28136         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28137         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28138         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28139         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28140         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28141         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28142         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28143         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28144         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28145         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28146         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28147
28148 2008-10-17  Bruno Haible  <bruno@clisp.org>
28149
28150         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28151         HP-UX and IRIX, use -0.0L.
28152         * tests/test-ceill.c (minus_zero): Likewise.
28153         * tests/test-floorl.c (minus_zero): Likewise.
28154         * tests/test-frexpl.c (minus_zero): Likewise.
28155         * tests/test-isnan.c (minus_zerol): Likewise.
28156         * tests/test-isnanl.h (minus_zero): Likewise.
28157         * tests/test-ldexpl.c (minus_zero): Likewise.
28158         * tests/test-roundl.c (minus_zero): Likewise.
28159         * tests/test-signbit.c (minus_zerol): Likewise.
28160         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28161         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28162         * tests/test-truncl.c (minus_zero): Likewise.
28163         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28164         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28165         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28166         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28167
28168 2008-10-17  Bruno Haible  <bruno@clisp.org>
28169
28170         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28171         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28172         that it gets activated only for gcc >= 3.0.
28173         * lib/dirent.in.h: Likewise.
28174         * lib/errno.in.h: Likewise.
28175         * lib/fcntl.in.h: Likewise.
28176         * lib/float.in.h: Likewise.
28177         * lib/iconv.in.h: Likewise.
28178         * lib/inttypes.in.h: Likewise.
28179         * lib/locale.in.h: Likewise.
28180         * lib/math.in.h: Likewise.
28181         * lib/netdb.in.h: Likewise.
28182         * lib/netinet_in.in.h: Likewise.
28183         * lib/search.in.h: Likewise.
28184         * lib/signal.in.h: Likewise.
28185         * lib/spawn.in.h: Likewise.
28186         * lib/stdarg.in.h: Likewise.
28187         * lib/stdint.in.h: Likewise.
28188         * lib/stdio.in.h: Likewise.
28189         * lib/stdlib.in.h: Likewise.
28190         * lib/string.in.h: Likewise.
28191         * lib/strings.in.h: Likewise.
28192         * lib/sys_file.in.h: Likewise.
28193         * lib/sys_ioctl.in.h: Likewise.
28194         * lib/sys_select.in.h: Likewise.
28195         * lib/sys_socket.in.h: Likewise.
28196         * lib/sys_stat.in.h: Likewise.
28197         * lib/sys_time.in.h: Likewise.
28198         * lib/sysexits.in.h: Likewise.
28199         * lib/time.in.h: Likewise.
28200         * lib/unistd.in.h: Likewise.
28201         * lib/wchar.in.h: Likewise.
28202         * lib/wctype.in.h: Likewise.
28203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28204
28205 2008-10-17  Jim Meyering  <meyering@redhat.com>
28206
28207         ignore-value: don't depend on inline module
28208         * modules/ignore-value (Depends-on): Remove 'inline'.
28209         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28210         Suggestion from Bruno Haible.
28211
28212 2008-10-17  Bruno Haible  <bruno@clisp.org>
28213
28214         New implementation of condition variables for Win32.
28215         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28216         (gl_linked_waitqueue_t): New type.
28217         (gl_cond_t): Use it.
28218         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28219         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28220         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28221         (glthread_cond_init_func, glthread_cond_wait_func,
28222         glthread_cond_timedwait_func, glthread_cond_signal_func,
28223         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28224         Reimplemented on the basis of gl_linked_waitqueue_t.
28225         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28226         gl_waitqueue_t.
28227         (gl_rwlock_t): Update.
28228         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28229
28230 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28231
28232         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28233         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28234
28235 2008-10-17  Jim Meyering  <meyering@redhat.com>
28236
28237         ignore-value: new module
28238         * modules/ignore-value: New file.
28239         * lib/ignore-value.h: New file.
28240         * MODULES.html.sh (Compiler warning management): New section,
28241         just for this module.  More to come.
28242
28243 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28244
28245         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28246         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28247         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28248
28249 2008-10-16  Jim Meyering  <meyering@redhat.com>
28250
28251         openat-die.c: avoid 'no previous prototype' warning
28252         * lib/openat-die.c: Include "openat.h".
28253         Reported by Reuben Thomas <rrt@sc3d.org>.
28254
28255 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28256
28257         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28258         * lib/netdb.in.h: Fix typo.
28259         Reported by Bruno Haible  <bruno@clisp.org>
28260
28261         * lib/netdb.in.h: Include sys/socket.h for platforms without
28262         netdb.h, to get structures like hostent on MinGW.
28263         * modules/netdb (Depends-on): Add sys_socket.
28264
28265 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28266
28267         * modules/netdb, modules/netdb-tests: New file.
28268         * m4/netdb_h.m4: New file.
28269         * lib/netdb.in.h: Add, currently just an empty file pending
28270         definitions.
28271         * tests/test-netdb.c: New file.
28272         * doc/posix-headers/netdb.texi: Mention that we replace it if
28273         needed.
28274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28275         netdb.
28276
28277 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28278
28279         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28280         with code.
28281
28282 2008-10-13  Bruno Haible  <bruno@clisp.org>
28283
28284         * lib/glthread/cond.c (glthread_cond_wait_func,
28285         glthread_cond_timedwait_func): Add a comment.
28286
28287 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28288
28289         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28290         * tests/test-select.c: Likewise,
28291
28292 2008-10-13  Bruno Haible  <bruno@clisp.org>
28293
28294         * lib/glthread/cond.c (glthread_cond_wait_func,
28295         glthread_cond_timedwait_func): Fix variable name.
28296         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28297
28298 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28299
28300         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28302         struct sockaddr.sa_len.
28303         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28304
28305 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28306
28307         * build-aux/pmccabe2html: Add css and css_url parameters.
28308
28309 2008-10-12  Bruno Haible  <bruno@clisp.org>
28310
28311         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28312         calling aclx_get.
28313         Reported by Rainer Tammer <tammer@tammer.net>.
28314
28315 2008-10-12  Bruno Haible  <bruno@clisp.org>
28316
28317         Use msvcrt aware primitives for creation/termination of Win32 threads.
28318         * lib/glthread/thread.c: Include <process.h>.
28319         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28320         (wrapper_func): Update signature.
28321         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28322
28323 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28324             Bruno Haible  <bruno@clisp.org>
28325
28326         Provide a Win32 implementation of the 'cond' module.
28327         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28328         * lib/glthread/cond.c (glthread_cond_init_func,
28329         glthread_cond_wait_func, glthread_cond_timedwait_func,
28330         glthread_cond_signal_func, glthread_cond_broadcast_func,
28331         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28332         * modules/cond (Dependencies): Add gettimeofday.
28333
28334 2008-10-11  Bruno Haible  <bruno@clisp.org>
28335
28336         Make sleep work on older versions of mingw.
28337         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28338         only whether it exists.
28339         * doc/posix-functions/sleep.texi: Mention the problem with older
28340         versions of mingw.
28341
28342 2008-10-11  Bruno Haible  <bruno@clisp.org>
28343
28344         New module 'shutdown'.
28345         * modules/shutdown: New file.
28346         * lib/sys_socket.in.h (shutdown): New declaration.
28347         * lib/winsock.c (shutdown): New function.
28348         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28349         GNULIB_SHUTDOWN.
28350         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28351         * doc/posix-functions/shutdown.texi: Document the new module.
28352
28353 2008-10-11  Jim Meyering  <meyering@redhat.com>
28354
28355         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28356
28357 2008-10-11  Bruno Haible  <bruno@clisp.org>
28358
28359         New module 'fclose'.
28360         * modules/fclose: New file.
28361         * lib/stdio.in.h (fclose): New declaration.
28362         * lib/fclose.c: New file.
28363         * m4/fclose.m4: New file.
28364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28365         REPLACE_FCLOSE.
28366         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28367         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28368         REPLACE_FCLOSE.
28369         * modules/close (Depends-on): fclose.
28370         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28371
28372 2008-10-11  Bruno Haible  <bruno@clisp.org>
28373
28374         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28375         set errno and don't call _close.
28376
28377 2008-10-10  Bruno Haible  <bruno@clisp.org>
28378
28379         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28380         ACL, not afterwards. Fixes test failure on Cygwin.
28381
28382 2008-10-09  Ben Pfaff  <blp@gnu.org>
28383
28384         * build-aux/announce-gen: Fix gnulib version related part of usage
28385         message.  Die with a useful error message if no tarballs are
28386         found.
28387
28388 2008-10-10  Jim Meyering  <meyering@redhat.com>
28389
28390         bootstrap: use git's --depth=N option only if it's supported
28391         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28392         recognize the --depth option.  Reported by Pádraig Brady.
28393
28394 2008-10-09  Bruno Haible  <bruno@clisp.org>
28395
28396         New module 'ioctl'.
28397         * modules/ioctl: New file.
28398         * lib/sys_socket.in.h (ioctl): Remove declaration.
28399         * lib/winsock.c: Include <sys/ioctl.h>.
28400         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28401         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28402         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28403         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28404         * doc/posix-functions/ioctl.texi: Mention the new module.
28405
28406 2008-10-09  Bruno Haible  <bruno@clisp.org>
28407
28408         New module 'sys_ioctl'.
28409         * lib/sys_ioctl.in.h: New file.
28410         * m4/sys_ioctl_h.m4: New file.
28411         * modules/sys_ioctl: New file.
28412         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28413
28414 2008-10-09  Bruno Haible  <bruno@clisp.org>
28415
28416         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28417         * lib/winsock.c: Include <stdarg.h>.
28418         (rpl_ioctl): Change to second argument 'int' and then varargs.
28419
28420 2008-10-09  Bruno Haible  <bruno@clisp.org>
28421
28422         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28423         when the sys_socket module is present and the system has <winsock2.h>.
28424
28425 2008-10-09  Bruno Haible  <bruno@clisp.org>
28426
28427         * doc/posix-functions/close.texi: Mention module 'close' instead of
28428         module 'sys_socket'.
28429
28430 2008-10-09  Bruno Haible  <bruno@clisp.org>
28431
28432         * doc/glibc-headers/sys_ioctl.texi: New file.
28433         * doc/gnulib.texi: Include it.
28434
28435 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28436             Bruno Haible  <bruno@clisp.org>
28437
28438         Combine the two replacements of 'close'.
28439         * lib/sys_socket.in.h (close): Define to a reminder to include
28440         <unistd.h>.
28441         (_gl_close_fd_maybe_socket): New declaration.
28442         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28443         * lib/winsock.c (close): Remove undefinition.
28444         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28445         needed for the gnulib module 'close'.
28446         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28447         define to an error symbol or to a warning, if suitable.
28448         * lib/close.c: Include <sys/socket.h>.
28449         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28450         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28451         UNISTD_H_HAVE_WINSOCK2_H.
28452         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28454         UNISTD_H_HAVE_WINSOCK2_H.
28455         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28456         (configure.ac): Set a module indicator.
28457         (Makefile.am): Substitute GNULIB_CLOSE.
28458         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28459         * modules/poll-tests (Depends-on): Add close.
28460         * modules/select-tests (Depends-on): Likewise.
28461
28462 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28463             Bruno Haible  <bruno@clisp.org>
28464
28465         New module 'close'.
28466         * modules/close: New file.
28467         * lib/unistd.in.h (close): Move declaration out of the
28468         FCHDIR_REPLACEMENT scope.
28469         (_gl_unregister_fd): New declaration.
28470         * lib/close.c: New file.
28471         * lib/fchdir.c (rpl_close): Remove function.
28472         * m4/close.m4: New file.
28473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28474         close.
28475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28476         REPLACE_CLOSE.
28477         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28478         REPLACE_CLOSE.
28479         * modules/fchdir (Depends-on): Add close.
28480
28481 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28482             Bruno Haible  <bruno@clisp.org>
28483
28484         * lib/fcntl.in.h (open): Simplify conditionals.
28485         (_gl_register_fd): New declaration.
28486         * lib/fchdir.c (rpl_open): Remove function.
28487         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28488         also.
28489         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28491         open.
28492
28493 2008-10-09  Jim Meyering  <meyering@redhat.com>
28494
28495         GNUmakefile: use the more name-space-friendly "_version"
28496         * top/GNUmakefile (_dummy): Update.
28497         (_version): Rename from "version".
28498
28499 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28500             Bruno Haible  <bruno@clisp.org>
28501
28502         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28503         rpl_close.
28504         (_gl_register_fd): New function, extracted from rpl_open.
28505         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28506         (rpl_open, rpl_opendir): Use _gl_register_fd.
28507
28508 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28509
28510         Fix organization of 'open' replacement.
28511         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28512         (gl_FUNC_OPEN): Use it.
28513         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28514
28515 2008-10-08  Bruno Haible  <bruno@clisp.org>
28516
28517         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28518
28519 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28520
28521         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28522         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28523         listen).
28524
28525 2008-10-08  Eric Blake  <ebb9@byu.net>
28526
28527         GNUmakefile: add 'make version' target
28528         * top/GNUmakefile (_curr-ver): Split version update rules...
28529         (version): ...into a target.
28530
28531 2008-10-07  Bruno Haible  <bruno@clisp.org>
28532
28533         Use a more portable replacement expression for -0.0L.
28534         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28535         instead of -0.0L. Fix m4 quotation.
28536
28537         * tests/test-signbit.c: Include <float.h>.
28538         (minus_zero): New variable.
28539         (test_signbitl): Use minus_zero instead of -zero.
28540         * modules/signbit-tests (Depends-on): Add float.
28541
28542         * tests/test-ceill.c: Include <float.h>.
28543         (zero): Remove variable.
28544         (minus_zero): New variable.
28545         (main): Use minus_zero instead of -zero.
28546         * modules/ceill-tests (Depends-on): Add float.
28547
28548         * tests/test-floorl.c: Include <float.h>.
28549         (zero): Remove variable.
28550         (minus_zero): New variable.
28551         (main): Use minus_zero instead of -zero.
28552         * modules/floorl-tests (Depends-on): Add float.
28553
28554         * tests/test-roundl.c: Include <float.h>.
28555         (zero): Remove variable.
28556         (minus_zero): New variable.
28557         (main): Use minus_zero instead of -zero.
28558         * modules/roundl-tests (Depends-on): Add float.
28559
28560         * tests/test-truncl.c: Include <float.h>.
28561         (zero): Remove variable.
28562         (minus_zero): New variable.
28563         (main): Use minus_zero instead of -zero.
28564         * modules/truncl-tests (Depends-on): Add float.
28565
28566         * tests/test-frexpl.c (zero): Remove variable.
28567         (minus_zero): New variable.
28568         (main): Use minus_zero instead of -zero.
28569         * modules/frexpl-tests (Depends-on): Add float.
28570
28571         * tests/test-isnan.c (zerol): Remove variable.
28572         (minus_zerol): New variable.
28573         (test_long_double): Use minus_zerol instead of -zerol.
28574         * modules/isnan-tests (Depends-on): Add float.
28575
28576         * tests/test-isnanl.h (zero): Remove variable.
28577         (minus_zero): New variable.
28578         (main): Use minus_zero instead of -zero.
28579         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28580         * modules/isnanl-tests (Depends-on): Add float.
28581
28582         * tests/test-ldexpl.c (zero): Remove variable.
28583         (minus_zero): New variable.
28584         (main): Use minus_zero instead of -zero.
28585         * modules/ldexpl-tests (Depends-on): Add float.
28586
28587         * tests/test-snprintf-posix.h (zerol): Remove variable.
28588         (minus_zerol): New variable.
28589         (test_function): Use minus_zerol instead of -zerol.
28590         * modules/snprintf-posix-tests (Depends-on): Add float.
28591         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28592
28593         * tests/test-sprintf-posix.h (zerol): Remove variable.
28594         (minus_zerol): New variable.
28595         (test_function): Use minus_zerol instead of -zerol.
28596         * modules/sprintf-posix-tests (Depends-on): Add float.
28597         * modules/vsprintf-posix-tests (Depends-on): Add float.
28598
28599         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28600         (minus_zerol): New variable.
28601         (test_function): Use minus_zerol instead of -zerol.
28602         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28603
28604         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28605         (minus_zerol): New variable.
28606         (test_function): Use minus_zerol instead of -zerol.
28607         * modules/vasprintf-posix-tests (Depends-on): Add float.
28608
28609 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28610
28611         * MODULES.html.sh (Support for building documentation): Mention
28612         pmccabe2html.  Sort entries.
28613
28614         Add pmccabe2html module, from gnupdf.
28615         * build-aux/pmccabe.css: New file.
28616         * build-aux/pmccabe2html: New file.
28617         * m4/pmccabe2html.m4: New file.
28618         * modules/pmccabe2html: New file.
28619
28620 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28621
28622         flock: new module
28623         * MODULES.html.sh: Add to list of modules.
28624         * lib/flock.c: flock implementation for Windows and Unix systems
28625         which have fcntl.
28626         * doc/glibc-functions/flock.texi: Update documentation.
28627         * lib/sys_file.in.h: <sys/file.h> header file.
28628         * m4/flock.m4: M4 macros.
28629         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28630         * modules/flock: flock module.
28631         * modules/flock-tests: flock tests module.
28632         * modules/sys_file: sys/file.h module.
28633         * tests/test-flock.c: test suite for flock.
28634
28635 2008-10-06  Jim Meyering  <meyering@redhat.com>
28636
28637         bootstrap: check for LT_INIT more portably still ;-)
28638         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28639         Spotted by Bruno Haible.
28640
28641 2008-10-06  Eric Blake  <ebb9@byu.net>
28642
28643         test-signbit: avoid tripping Irix cc bug on -0.0L
28644         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28645         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28646         entire testsuite consistent and avoids an Irix 6.2 bug.
28647
28648 2008-10-05  Bruno Haible  <bruno@clisp.org>
28649             Jim Meyering  <jim@meyering.net>
28650
28651         Add an option for ignoring EPIPE during close_stdout.
28652         * lib/closeout.h: Include <stdbool.h>.
28653         (close_stdout_set_ignore_EPIPE): New declaration.
28654         * lib/closeout.c: Include <stdbool.h>.
28655         (ignore_EPIPE): New variable.
28656         (close_stdout_set_ignore_EPIPE): New function.
28657         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28658         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28659         failure.
28660         * modules/closeout (Depends-on): Add stdbool.
28661
28662 2008-10-05  Bruno Haible  <bruno@clisp.org>
28663
28664         * modules/accept: New file.
28665         * modules/bind: New file.
28666         * modules/connect: New file.
28667         * modules/getpeername: New file.
28668         * modules/getsockname: New file.
28669         * modules/getsockopt: New file.
28670         * modules/listen: New file.
28671         * modules/recv: New file.
28672         * modules/recvfrom: New file.
28673         * modules/send: New file.
28674         * modules/sendto: New file.
28675         * modules/setsockopt: New file.
28676         * modules/socket: New file.
28677         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28678         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28679         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28680         the particular module is requested. Add a link warning when the
28681         particular module is not requested.
28682         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28683         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28684         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28685         the particular module is requested.
28686         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28687         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28688         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28689         * modules/sys_socket (Depends-on): Add link-warning.
28690         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28691         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28692         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28693         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28694         GL_LINK_WARNING.
28695         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28696         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28697         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28698         * doc/posix-functions/getpeername.texi: Mention the new module
28699         'getpeername'.
28700         * doc/posix-functions/getsockname.texi: Mention the new module
28701         'getsockname'.
28702         * doc/posix-functions/getsockopt.texi: Mention the new module
28703         'getsockopt'.
28704         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28705         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28706         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28707         * doc/posix-functions/send.texi: Mention the new module 'send'.
28708         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28709         * doc/posix-functions/setsockopt.texi: Mention the new module
28710         'setsockopt'.
28711         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28712         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28713         listen, connect, accept.
28714         * modules/select-tests (Depends-on): Likewise.
28715
28716 2008-10-05  Bruno Haible  <bruno@clisp.org>
28717
28718         * lib/winsock.c (strerror): Remove unused #undef.
28719         (rpl_close): Remove unused local variable.
28720
28721         * modules/sys_socket (Depends-on); Add errno.
28722
28723 2008-10-05  Bruno Haible  <bruno@clisp.org>
28724
28725         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28726         (select): Add a link warning when the 'select' module is not used.
28727         * modules/sys_select (Depends-on): Add link-warning.
28728         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28729         Suggested by Paolo Bonzini.
28730
28731 2008-10-05  Jim Meyering  <meyering@redhat.com>
28732
28733         bootstrap: check for LT_INIT more portably
28734         * build-aux/bootstrap: Avoid using grep -E, since it's not
28735         portable enough.  Suggestion from Bruno Haible.
28736
28737 2008-10-05  Bruno Haible  <bruno@clisp.org>
28738
28739         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28740         as being fixed by gnulib.
28741
28742 2008-10-05  Bruno Haible  <bruno@clisp.org>
28743
28744         * modules/select-tests: New file, mostly copied from
28745         modules/sys_select-tests.
28746         * tests/test-select.c: New file, mostly copied from
28747         tests/test-sys_select.c.
28748         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28749         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28750         (Makefile.am): Remove test_sys_select_LDADD.
28751
28752         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28753         to an undefined symbol, for an error message.
28754         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28755         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28756         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28757         winsock-select.c here.
28758         * modules/sys_select (Files): Remove lib/winsock-select.c.
28759         (Depends-on): Remove alloca.
28760         (Makefile.am): Substitute GNULIB_SELECT.
28761         * modules/select: New file.
28762         * doc/posix-functions/select.texi: Update.
28763
28764 2008-10-05  Bruno Haible  <bruno@clisp.org>
28765
28766         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28767         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28768         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28769         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28770         getdtablesize.
28771         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28772         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28773
28774 2008-10-05  Bruno Haible  <bruno@clisp.org>
28775
28776         * modules/getdtablesize-tests: New file.
28777         * tests/test-getdtablesize.c: New file.
28778
28779         New module 'getdtablesize'.
28780         * lib/unistd.in.h (getdtablesize): New declaration.
28781         * lib/getdtablesize.c: New file.
28782         * m4/getdtablesize.m4: New file.
28783         * modules/getdtablesize: New file.
28784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28785         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28786         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28787         HAVE_GETDTABLESIZE.
28788         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28789
28790 2008-10-05  Bruno Haible  <bruno@clisp.org>
28791
28792         * modules/sched (Makefile.am): Fix typo.
28793         Reported by Simon Josefsson.
28794
28795 2008-10-05  Jim Meyering  <meyering@redhat.com>
28796
28797         bootstrap: check for LT_INIT, too
28798         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28799         are deprecated.  Suggestion from Ralf Wildenhues.
28800
28801 2008-10-05  Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28804         overriding them by ours.
28805         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28806
28807 2008-10-05  Jim Meyering  <meyering@redhat.com>
28808
28809         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28810         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28811         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28812
28813 2008-10-04  Bruno Haible  <bruno@clisp.org>
28814
28815         * modules/dup2 (License): Change to LGPLv2+.
28816         * modules/sleep (License): Likewise.
28817         * modules/perror (License): Likewise.
28818         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28819         Blake.
28820         * modules/signal (License): Likewise.
28821         * modules/sigprocmask (License): Likewise.
28822         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28823         Meyering.
28824
28825 2008-10-04  Bruno Haible  <bruno@clisp.org>
28826
28827         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28828         Reported by Rainer Tammer <tammer@tammer.net>.
28829
28830 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28831             Bruno Haible  <bruno@clisp.org>
28832
28833         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28834         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28835         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28836
28837 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28838
28839         filevercmp: new module
28840         * lib/filevercmp.h: New function filevercmp comparing version strings.
28841         * lib/filevercmp.c: Implementation of filevercmp function.
28842         * modules/filevercmp: Module metadata.
28843         * tests/test-filevercmp.c: Unit test for new module.
28844         * modules/filevercmp-tests: Unit test metadata.
28845         * MODULES.html.sh: Add filevercmp module.
28846
28847 2008-10-03  Bruno Haible  <bruno@clisp.org>
28848
28849         * lib/c-ctype.h: Add comment.
28850         Reported by Jim Meyering.
28851
28852 2008-10-02  Bruno Haible  <bruno@clisp.org>
28853
28854         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28855
28856 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28857
28858         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28859         name of bootstrap.conf accordingly.
28860
28861 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28862
28863         * build-aux/bootstrap: Install git-merge-changelog configuration
28864         items into .gitconfig if needed.
28865
28866 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28867
28868         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
28869         git repository, and initialize/update it accordingly.
28870
28871 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
28872
28873         * modules/fsync-tests: New file.
28874         * tests/test-fsync.c: New file.
28875
28876         New module 'fsync'.
28877         * lib/fsync.c: New file.
28878         * m4/fsync.m4: New file.
28879         * modules/fsync: New file.
28880         * lib/unistd.in.h (fsync): New declaration.
28881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
28882         GNULIB_FSYNC and HAVE_FSYNC.
28883         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
28884         * MODULES.html.sh (posix_functions): Add fsync.
28885         * doc/posix-functions/fsync.texi: Mention the new module.
28886
28887 2008-10-02  Jim Meyering  <meyering@redhat.com>
28888
28889         fts.c: sync with similar code from coreutils' remove.c
28890         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
28891         Guard also with "#if defined __linux__", since for now at least,
28892         this code is Linux-kernel-specific.
28893
28894 2008-10-02  Jim Meyering  <meyering@redhat.com>
28895
28896         fts: bug fixes
28897         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
28898         Include <sys/vfs.h>, not <sys/statfs.h>.
28899
28900         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
28901         Include <sys/vfs.h>, not <sys/statfs.h>.
28902
28903 2008-10-01  Bruno Haible  <bruno@clisp.org>
28904
28905         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
28906         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
28907         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
28908         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
28909         * doc/posix-functions/posix_spawnp.texi: Likewise.
28910         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
28911         whether posix_spawn actually works.
28912         * m4/pipe.m4 (gl_PIPE): Likewise.
28913         * modules/execute (Files): Add m4/posix_spawn.m4.
28914         * modules/pipe (Files): Add m4/posix_spawn.m4.
28915         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
28916
28917 2008-10-01  Jim Meyering  <meyering@redhat.com>
28918
28919         remove trailing spaces
28920         * NEWS: Likewise.
28921         * lib/poll.c (poll): Likewise.
28922         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
28923         * lib/winsock.c (rpl_close): Likewise.
28924         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
28925         * modules/yield: Likewise.
28926         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
28927         * tests/test-sys_select.c (connect_to_socket): Likewise.
28928
28929         fts.c: adjust a new interface to be more generally useful
28930         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
28931         (fts_build): Adjust caller.
28932
28933 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28934
28935         * modules/cond-tests: New file.
28936         * tests/test-cond.c: New file.
28937
28938 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28939             Bruno Haible  <bruno@clisp.org>
28940
28941         * modules/cond (Dependencies): Add errno, time.
28942         * lib/glthread/cond.h: Include <time.h>.
28943         (gl_cond_define, gl_cond_define_initialized): Use the same definition
28944         across platforms.
28945
28946 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28947             Bruno Haible  <bruno@clisp.org>
28948
28949         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
28950
28951 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28952             Bruno Haible  <bruno@clisp.org>
28953
28954         * modules/tls-tests (Depends-on): Add thread, yield.
28955         (configure.ac): Remove all checks.
28956         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
28957         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28958         gl_thread_self): Remove definitions. Include glthread/thread.h and
28959         glthread/yield.h instead.
28960         (test_tls): Pass an additional NULL argument to gl_thread_join.
28961
28962 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28963             Bruno Haible  <bruno@clisp.org>
28964
28965         * modules/lock-tests (Depends-on): Add thread, yield.
28966         (configure.ac): Remove all checks.
28967         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
28968         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
28969         gl_thread_self): Remove definitions. Include glthread/thread.h and
28970         glthread/yield.h instead.
28971         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
28972         additional NULL argument to gl_thread_join.
28973
28974 2008-09-30  Bruno Haible  <bruno@clisp.org>
28975
28976         Fix the Win32 implementation of the 'thread' module.
28977         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
28978         pointer type.
28979         (gl_thread_self): Invoke gl_thread_self_func.
28980         (gl_thread_self_func): New declaration.
28981         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
28982         (do_init_self_key, init_self_key): New functions.
28983         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
28984         Remove some fields.
28985         (running_threads, running_lock): Remove variables.
28986         (get_current_thread_handle): New function.
28987         (gl_thread_self_func, wrapper_func, glthread_create_func,
28988         glthread_join_func, gl_thread_exit_func): Largely rewritten and
28989         simplified.
28990
28991 2008-09-30  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
28994         files.
28995
28996 2008-09-30  Jim Meyering  <meyering@redhat.com>
28997
28998         fts.m4: correct the test for statfs.f_type
28999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29000         when checking for statfs.f_type.
29001
29002 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29003
29004         tests: avoid some compiler warnings
29005         * tests/test-memchr.c (main): Pass NULL indirectly.
29006         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29007
29008 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29009
29010         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29011         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29012         exactly specified dayshifts.
29013         (dayshift): New rule.
29014         (rel): Add dayshift.
29015         (relative_time_table) [tomorrow, yesterday, today, now]:
29016         Use tDAY_SHIFT in place of tDAY_UNIT.
29017         * tests/test-getdate.c: Add tests for now-disallowed countable
29018         dayshifts, e.g., "4 yesterday ago".
29019
29020 2008-09-29  Bruno Haible  <bruno@clisp.org>
29021
29022         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29023         * tests/test-posix_spawn1.in.sh: Renamed from
29024         tests/test-posix_spawn.in.sh.
29025         * tests/test-posix_spawn2.c: New file.
29026         * tests/test-posix_spawn2.in.sh: New file.
29027         * modules/posix_spawnp-tests (Files): Update.
29028         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29029
29030 2008-09-29  Bruno Haible  <bruno@clisp.org>
29031
29032         Propagate effects of putenv/setenv/unsetenv to child processes.
29033         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29034         * lib/pipe.c (create_pipe): Likewise.
29035
29036 2008-09-29  Bruno Haible  <bruno@clisp.org>
29037
29038         Enable use of shell scripts as executables in mingw.
29039         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29040         run the program as a shell script.
29041         * lib/pipe.c (create_pipe): Likewise.
29042         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29043         resulting array.
29044
29045 2008-09-29  Eric Blake  <ebb9@byu.net>
29046
29047         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29048
29049 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29050
29051         * doc/posix-functions/accept.texi: Update mingw problems.
29052         * doc/posix-functions/bind.texi: Update mingw problems.
29053         * doc/posix-functions/close.texi: Update mingw problems.
29054         * doc/posix-functions/connect.texi: Update mingw problems.
29055         * doc/posix-functions/getpeername.texi: Update mingw problems.
29056         * doc/posix-functions/getsockname.texi: Update mingw problems.
29057         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29058         * doc/posix-functions/ioctl.texi: Update mingw problems.
29059         * doc/posix-functions/listen.texi: Update mingw problems.
29060         * doc/posix-functions/recv.texi: Update mingw problems.
29061         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29062         * doc/posix-functions/select.texi: Update mingw problems.
29063         * doc/posix-functions/send.texi: Update mingw problems.
29064         * doc/posix-functions/sendto.texi: Update mingw problems.
29065         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29066         * doc/posix-functions/socket.texi: Update mingw problems.
29067
29068 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29069             Bruno Haible  <bruno@clisp.org>
29070
29071         * lib/sys_select.in.h: Include sys/time.h.
29072         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29073         * modules/sys_select: Depend on sys_time.
29074         * tests/test-sys_select.c: Test that sys/select.h defines struct
29075         timeval fully.
29076
29077 2008-09-29  Bruno Haible  <bruno@clisp.org>
29078
29079         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29080         * lib/sys_select.in.h: Likewise.
29081
29082 2008-09-29  Bruno Haible  <bruno@clisp.org>
29083
29084         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29085
29086 2008-09-29  Bruno Haible  <bruno@clisp.org>
29087
29088         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29089         Set LIBSOCKET instead of augmenting LIBS.
29090         * modules/sockets (Link): New section.
29091         * modules/sockets-tests (test_sockets_LDADD): New variable.
29092         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29093         * modules/poll-tests (test_poll_LDADD): New variable.
29094         * NEWS: Document the change.
29095
29096 2008-09-29  Bruno Haible  <bruno@clisp.org>
29097
29098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29099         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29100         ARPA_INET_H directly.
29101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29102
29103 2008-09-28  Bruno Haible  <bruno@clisp.org>
29104
29105         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29106         from gl_HEADER_SYS_SOCKET.
29107         (gl_HEADER_SYS_SOCKET): Invoke it.
29108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29109
29110 2008-09-28  Bruno Haible  <bruno@clisp.org>
29111
29112         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29113         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29114         Needed on OSF/1 4.0.
29115
29116 2008-09-28  Bruno Haible  <bruno@clisp.org>
29117
29118         Override open more carefully.
29119         * lib/open.c (orig_open): New function.
29120         (rpl_open): Use orig_open instead of open.
29121         * lib/fcntl.in.h: Add special invocation convention.
29122         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29123         (gl_FUNC_OPEN): Invoke it.
29124
29125         Override freopen more carefully.
29126         * lib/freopen.c (orig_freopen): New function.
29127         (rpl_freopen): Use orig_freopen instead of freopen.
29128         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29129         (gl_FUNC_FREOPEN): Invoke it.
29130
29131         Override fopen more carefully.
29132         * lib/fopen.c (orig_fopen): New function.
29133         (rpl_fopen): Use orig_fopen instead of fopen.
29134         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29135         (gl_FUNC_FOPEN): Invoke it.
29136         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29137
29138 2008-09-28  Bruno Haible  <bruno@clisp.org>
29139
29140         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29141         SIGPIPE.
29142
29143 2008-09-28  Bruno Haible  <bruno@clisp.org>
29144
29145         * tests/test-sigaction.c (handler, main): Disable the check whether
29146         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29147         glibc systems with LinuxThreads.
29148
29149 2008-09-28  Bruno Haible  <bruno@clisp.org>
29150
29151         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29152
29153         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29154         with AIX xlc.
29155         * lib/fcntl.in.h (open): Likewise.
29156         Reported by Rainer Tammer <tammer@tammer.net>.
29157
29158 2008-09-28  Bruno Haible  <bruno@clisp.org>
29159
29160         * modules/posix_spawnp-tests: New file.
29161         * tests/test-posix_spawn.c: New file.
29162         * tests/test-posix_spawn.in.sh: New file.
29163
29164         New module 'posix_spawnp'.
29165         * modules/posix_spawnp: New file.
29166         * lib/spawnp.c: New file, from GNU libc with modifications.
29167         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29168
29169         New module 'posix_spawn'.
29170         * modules/posix_spawn: New file.
29171         * lib/spawn.c: New file, from GNU libc with modifications.
29172         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29173
29174         New module 'posix_spawnattr_destroy'.
29175         * modules/posix_spawnattr_destroy: New file.
29176         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29177         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29178         module.
29179
29180         New module 'posix_spawnattr_setsigmask'.
29181         * modules/posix_spawnattr_setsigmask: New file.
29182         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29183         modifications.
29184         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29185         new module.
29186
29187         New module 'posix_spawnattr_getsigmask'.
29188         * modules/posix_spawnattr_getsigmask: New file.
29189         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29190         modifications.
29191         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29192         new module.
29193
29194         New module 'posix_spawnattr_setsigdefault'.
29195         * modules/posix_spawnattr_setsigdefault: New file.
29196         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29197         modifications.
29198         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29199         new module.
29200
29201         New module 'posix_spawnattr_getsigdefault'.
29202         * modules/posix_spawnattr_getsigdefault: New file.
29203         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29204         modifications.
29205         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29206         new module.
29207
29208         New module 'posix_spawnattr_setschedpolicy'.
29209         * modules/posix_spawnattr_setschedpolicy: New file.
29210         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29211         modifications.
29212         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29213         new module.
29214
29215         New module 'posix_spawnattr_getschedpolicy'.
29216         * modules/posix_spawnattr_getschedpolicy: New file.
29217         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29218         modifications.
29219         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29220         new module.
29221
29222         New module 'posix_spawnattr_setschedparam'.
29223         * modules/posix_spawnattr_setschedparam: New file.
29224         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29225         modifications.
29226         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29227         new module.
29228
29229         New module 'posix_spawnattr_getschedparam'.
29230         * modules/posix_spawnattr_getschedparam: New file.
29231         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29232         modifications.
29233         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29234         new module.
29235
29236         New module 'posix_spawnattr_setpgroup'.
29237         * modules/posix_spawnattr_setpgroup: New file.
29238         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29239         modifications.
29240         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29241         module.
29242
29243         New module 'posix_spawnattr_getpgroup'.
29244         * modules/posix_spawnattr_getpgroup: New file.
29245         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29246         modifications.
29247         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29248         module.
29249
29250         New module 'posix_spawnattr_setflags'.
29251         * modules/posix_spawnattr_setflags: New file.
29252         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29253         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29254         module.
29255
29256         New module 'posix_spawnattr_getflags'.
29257         * modules/posix_spawnattr_getflags: New file.
29258         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29259         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29260         module.
29261
29262         New module 'posix_spawnattr_init'.
29263         * modules/posix_spawnattr_init: New file.
29264         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29265         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29266         module.
29267
29268         New module 'posix_spawn_file_actions_destroy'.
29269         * modules/posix_spawn_file_actions_destroy: New file.
29270         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29271         modifications.
29272         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29273         the new module.
29274
29275         New module 'posix_spawn_file_actions_addopen'.
29276         * modules/posix_spawn_file_actions_addopen: New file.
29277         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29278         modifications.
29279         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29280         the new module.
29281
29282         New module 'posix_spawn_file_actions_adddup2'.
29283         * modules/posix_spawn_file_actions_adddup2: New file.
29284         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29285         modifications.
29286         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29287         the new module.
29288
29289         New module 'posix_spawn_file_actions_addclose'.
29290         * modules/posix_spawn_file_actions_addclose: New file.
29291         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29292         modifications.
29293         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29294         the new module.
29295
29296         New module 'posix_spawn_file_actions_init'.
29297         * modules/posix_spawn_file_actions_init: New file.
29298         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29299         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29300         new module.
29301
29302         New module 'posix_spawn-internal'.
29303         * modules/posix_spawn-internal: New file.
29304         * lib/spawn_int.h: New file, from GNU libc with modifications.
29305         * lib/spawni.c: New file, from GNU libc with modifications.
29306         * m4/posix_spawn.m4: New file.
29307
29308         New module 'spawn'.
29309         * modules/spawn: New file.
29310         * lib/spawn.in.h: New file, from GNU libc with modifications.
29311         * m4/spawn_h.m4: New file.
29312         * doc/posix-headers/spawn.texi: Mention the new module.
29313
29314 2008-09-28  Bruno Haible  <bruno@clisp.org>
29315
29316         * modules/sched-tests: New file.
29317         * tests/test-sched.c: New file.
29318
29319         New module 'sched'.
29320         * modules/sched: New file.
29321         * lib/sched.in.h: New file.
29322         * m4/sched_h.m4: New file.
29323         * doc/posix-headers/sched.texi: Mention the new module.
29324
29325 2008-09-27  Eric Blake  <ebb9@byu.net>
29326
29327         Fix previous patch, and tweak references to $0.
29328         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29329         (func_version, func_gnulib_dir): Don't call this program
29330         gnulib-tool.
29331         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29332         with using $0 in function.
29333         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29334         (func_fatal_error): Reuse the name the user invoked us with.
29335
29336 2008-09-27  Bruno Haible  <bruno@clisp.org>
29337
29338         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29339         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29340         (gl_ICONV_H): Not here.
29341         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29342         instead of assigning ICONV_H directly.
29343
29344         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29346         WCHAR_H directly.
29347
29348 2008-09-27  Bruno Haible  <bruno@clisp.org>
29349
29350         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29351         * modules/arpa_inet (Depends-on): Add link-warning.
29352         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29353         * modules/unistd (Makefile.am): Likewise.
29354
29355 2008-09-26  Bruno Haible  <bruno@clisp.org>
29356
29357         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29358         variables.
29359         (func_version): Essentially copied from gnulib-tool.
29360         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29361         func_readlink): Copied from gnulib-tool.
29362
29363 2008-09-26  Bruno Haible  <bruno@clisp.org>
29364
29365         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29366         invoking git-version-gen.
29367
29368 2008-09-26  Bruno Haible  <bruno@clisp.org>
29369
29370         * posix-modules: Update to directory names changed on 2008-01-19.
29371         Remove commas in output before splitting into words. No more need to
29372         avoid 'ftruncate' since 2007-02-19.
29373
29374 2008-09-26  Bruno Haible  <bruno@clisp.org>
29375
29376         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29377
29378 2008-09-26  Bruno Haible  <bruno@clisp.org>
29379
29380         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29381         * modules/fwriteerror (Depends-on): Add errno.
29382
29383 2008-09-26  Bruno Haible  <bruno@clisp.org>
29384
29385         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29386         * tests/test-vc-list-files-cvs.sh: Likewise.
29387
29388 2008-09-26  Bruno Haible  <bruno@clisp.org>
29389
29390         * doc/posix-headers/sys_resource.texi: Reorder items.
29391
29392 2008-09-26  Jim Meyering  <meyering@redhat.com>
29393
29394         fts: tweak inode comparison function
29395         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29396         inode numbers, as documented.
29397
29398         fts: sort dirent entries on inode number before traversing
29399         This avoids a quadratic, seek-related performance penalty when
29400         operating on a directory containing many entries (measurable at 10k;
29401         3.5 hours at 2 million entries with a cold cache) on certain types
29402         of file systems, including ext3 and ext4, but not tmpfs.
29403         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29404         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29405         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29406         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29407         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29408         (fts_build): Set the stat.st_ino member from D_INO.
29409         If it is likely to be useful, sort dirent entries on inode number.
29410
29411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29412         and the struct statfs.f_type member.
29413         * modules/fts (Depends-on): Add d-ino.
29414
29415 2008-09-26  Bruno Haible  <bruno@clisp.org>
29416
29417         * modules/sigpipe-die (Depends-on): Add sigpipe.
29418
29419         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29420         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29421         and GNULIB_STDIO_H_SIGPIPE are set.
29422         * lib/stdio-write.c: New file.
29423         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29424         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29425         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29426         REPLACE_STDIO_WRITE_FUNCS.
29427         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29428         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29429         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29430         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29431         * modules/stdio (Files): Add lib/stdio-write.c.
29432         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29433         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29434         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29435         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29436         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29437         REPLACE_FPRINTF_POSIX.
29438         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29439         REPLACE_PRINTF_POSIX.
29440         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29441         REPLACE_VFPRINTF_POSIX.
29442         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29443         REPLACE_VPRINTF_POSIX.
29444         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29445         SIGPIPE issue.
29446         * doc/posix-functions/fputc.texi: Likewise.
29447         * doc/posix-functions/fputs.texi: Likewise.
29448         * doc/posix-functions/fwrite.texi: Likewise.
29449         * doc/posix-functions/printf.texi: Likewise.
29450         * doc/posix-functions/putc.texi: Likewise.
29451         * doc/posix-functions/putchar.texi: Likewise.
29452         * doc/posix-functions/puts.texi: Likewise.
29453         * doc/posix-functions/vfprintf.texi: Likewise.
29454         * doc/posix-functions/vprintf.texi: Likewise.
29455
29456         * modules/safe-write (Depends-on): Add write.
29457
29458         * modules/sigpipe-tests: New file.
29459         * tests/test-sigpipe.c: New file.
29460         * tests/test-sigpipe.sh: New file.
29461
29462         * modules/write: New file.
29463         * lib/unistd.in.h: Include <sys/types.h>.
29464         (write): New declaration.
29465         * lib/write.c: New file.
29466         * m4/write.m4: New file.
29467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29468         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29469         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29470         GNULIB_WRITE, REPLACE_WRITE.
29471         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29472         and the SIGPIPE issue.
29473
29474         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29475         (raise): New declaration.
29476         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29477         (ext_signal): New function.
29478         (rpl_raise): New function.
29479         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29480         GNULIB_SIGNAL_H_SIGPIPE.
29481         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29482         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29483
29484         * modules/sigpipe: New file.
29485         * m4/sigpipe.m4: New file.
29486
29487 2008-09-25  Derek Price  <derek@ximbiot.com>
29488             Bruno Haible  <bruno@clisp.org>
29489
29490         * gnulib-tool (func_import): Report all license incompatibilities, not
29491         just the first one.
29492
29493 2008-09-25  Bruno Haible  <bruno@clisp.org>
29494
29495         * gnulib-tool (func_import): When computing the edits, consider not
29496         only the Makefile.ams that exist but also those that will be generated.
29497
29498 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29499
29500         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29501         fixes gnulib-tool --test warning about duplicate dependency.
29502
29503 2008-09-25  Bruno Haible  <bruno@clisp.org>
29504
29505         * gnulib-tool: Don't ask the user to perform edits in the generated
29506         Makefile.ams.
29507         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29508         apply to the Makefile.am being generated.
29509         (func_emit_tests_Makefile_am): Execute edits that apply to the
29510         Makefile.am being generated.
29511         (func_import): Setup list of Makefile.am edits before emitting the
29512         Makefile.ams, not at the end.
29513         (func_create_testdir): Update.
29514         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29515
29516 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29517
29518         * gnulib-tool (func_import): Store the --tests-base option in the
29519         comment in gnulib-cache.m4.
29520
29521 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29522
29523         * NEWS: Document increased portability that sys_select now provides.
29524
29525         * lib/sys_select.in.h: Install select wrapper.
29526         * lib/sys_socket.in.h: Use more descriptive name when there is no
29527         select wrapper.
29528         * lib/winsock-select.c: New.
29529         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29530         Require gl_HEADER_SYS_SOCKET.
29531         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29532         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29533         * tests/test-sys_select.c: Add functional tests.
29534
29535 2008-09-24  Eric Blake  <ebb9@byu.net>
29536
29537         open, fopen: close fd leak in last patch
29538         * lib/open.c (rpl_open): Close fd before returning error.
29539         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29540         * doc/posix-functions/open.texi (open): Document that Irix also
29541         has the bug.
29542         * doc/posix-functions/fopen.texi (fopen): Likewise.
29543         Reported by Paolo Bonzini.
29544
29545 2008-09-24  Bruno Haible  <bruno@clisp.org>
29546
29547         Ensure that a filename ending in a slash cannot be used to access a
29548         non-directory.
29549         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29550         to check whether it's really a directory.
29551         * lib/fopen.c: Include fcntl.h, unistd.h.
29552         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29553         and fdopen().
29554         * modules/fopen (Depends-on): Add unistd.
29555         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29556         * tests/test-fopen.c (main): Likewise.
29557         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29558         * doc/posix-functions/fopen.texi: Likewise.
29559         Reported by Eric Blake.
29560
29561 2008-09-23  Eric Blake  <ebb9@byu.net>
29562
29563         c-stack: avoid compiler optimizations when provoking overflow
29564         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29565         recursion harder to optimize, to ensure a stack overflow occurs.
29566         * tests/test-c-stack.c (recurse): Likewise.
29567         Borrowed from libsigsegv.
29568
29569         c-stack: work around Irix sigaltstack bug
29570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29571         whether sigaltstack uses wrong end of stack_t (copied in part from
29572         libsigsegv).
29573         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29574         Irix bug, without requiring an over-allocation.
29575         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29576         bug.
29577
29578         fopen: document mingw bug on directories
29579         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29580         not allowing a stream visiting a directory, even though reading
29581         from such a stream is not portable.
29582
29583 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29584
29585         * lib/poll.c: Rewrite.
29586         * modules/poll: Depend on alloca.
29587
29588 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29589
29590         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29591         instead define prototypes for a full set of wrappers.  Ensure
29592         that Cygwin does not use the compatibility code, which is only
29593         for MinGW.
29594         * lib/winsock.c: New.
29595         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29596         * modules/sys_socket: Add lib/winsock.c.
29597
29598         * modules/poll-tests: Add errno and perror.
29599         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29600
29601 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29602
29603         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29604
29605 2008-09-23  Bruno Haible  <bruno@clisp.org>
29606
29607         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29608         * doc/glibc-functions/*: Likewise.
29609
29610 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29611
29612         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29613         success.
29614
29615 2008-09-22  Eric Blake  <ebb9@byu.net>
29616             Bruno Haible  <bruno@clisp.org>
29617
29618         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29619         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29620         supply %A but mishandle pseudo-NaN.
29621         Reported by Simon Josefsson.
29622
29623 2008-09-21  Bruno Haible  <bruno@clisp.org>
29624
29625         * tests/test-lock.c (main): Tweak skip message.
29626         * tests/test-tls.c (main): Likewise.
29627
29628 2008-09-21  Bruno Haible  <bruno@clisp.org>
29629
29630         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29631         whether 'struct sigaction' has sa_sigaction here...
29632         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29633         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29634
29635 2008-09-21  Bruno Haible  <bruno@clisp.org>
29636
29637         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29638         section.
29639         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29640         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29641         the new section.
29642         (Support for obsolete systems lacking POSIX:2001): New section.
29643         (String handling <string.h>): Move strdup to the new section.
29644         Suggested by Simon Josefsson and Paolo Bonzini.
29645
29646 2008-09-21  Bruno Haible  <bruno@clisp.org>
29647
29648         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29649         exponents in %e and %g results on 'long double'. Needed for mingw's
29650         improved *printf functions.
29651         * tests/test-vasprintf-posix.c (test_function): Likewise.
29652         * tests/test-snprintf-posix.h (test_function): Likewise.
29653         * tests/test-sprintf-posix.h (test_function): Likewise.
29654         Reported by Eric Blake.
29655
29656 2008-09-21  Bruno Haible  <bruno@clisp.org>
29657
29658         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29659         * tests/test-sprintf-posix.h (test_function): Likewise.
29660
29661 2008-09-21  Bruno Haible  <bruno@clisp.org>
29662
29663         * modules/getpass (Depends-on): Add strdup-posix.
29664
29665         New module 'strdup-posix'.
29666         * modules/strdup-posix: New file.
29667         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29668         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29670         REPLACE_STRDUP.
29671         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29672         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29674         strdup-posix.
29675
29676         * modules/strdup (Depends-on): Remove malloc-posix.
29677
29678 2008-09-20  Bruno Haible  <bruno@clisp.org>
29679
29680         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29681         Wildenhues.
29682
29683 2008-09-20  Bruno Haible  <bruno@clisp.org>
29684
29685         Ensure that wint_t gets defined on IRIX 5.3.
29686         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29687         * lib/wctype.in.h (wint_t): Likewise.
29688         (__wctype_wint_t): Remove type.
29689         (isw*): Use wint_t instead of __wctype_wint_t.
29690         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29691         * modules/wchar (Files): Add m4/wint_t.m4.
29692         (Makefile.am): Substitute HAVE_WINT_T.
29693         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29694         * tests/test-wctype.c: Check that wint_t is defined.
29695         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29696         * doc/posix-headers/wctype.texi: Likewise.
29697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29698
29699 2008-09-18  Bruno Haible  <bruno@clisp.org>
29700
29701         * gnulib-tool (func_exit): Update comment.
29702
29703 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29704
29705         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29706         assumes strdup exists and does not depend on strdup to return
29707         ENOMEM on out of memory conditions.
29708
29709 2008-09-18  Bruno Haible  <bruno@clisp.org>
29710
29711         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29712         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29713         digits for the exponent.
29714
29715 2008-09-18  Jim Meyering  <meyering@redhat.com>
29716             Bruno Haible  <bruno@clisp.org>
29717
29718         * lib/vasnprintf.c (decimal_point_char): Define also if
29719         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29720
29721 2008-09-16  Bruno Haible  <bruno@clisp.org>
29722         and Eric Blake  <ebb9@byu.net>
29723
29724         vasnprintf: support Irix 5.3
29725         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29726         that mishandle long double infinity.
29727         Reported by Tom G. Christensen.
29728
29729 2008-09-16  Bruno Haible  <bruno@clisp.org>
29730
29731         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29732         Solaris 9.
29733         * doc/glibc-functions/alphasort.texi: Likewise.
29734         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29735
29736 2008-09-16  Jim Meyering  <meyering@redhat.com>
29737
29738         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29739         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29740         a umask modification leak out of a subshell.  Otherwise, the
29741         opensolaris /bin/sh would be accepted and thus cause unwarranted
29742         failures in the coreutils test suite.
29743
29744 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29745
29746         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29747         to succeed.
29748
29749 2008-09-16  Jim Meyering  <meyering@redhat.com>
29750
29751         avoid spurious test failure when library is built without ACL support
29752         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29753         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29754         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29755         * tests/test-copy-acl.sh: Likewise.
29756
29757 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29758
29759         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29760         based on character occurrence counts.
29761
29762 2008-09-15  Eric Blake  <ebb9@byu.net>
29763
29764         tests: avoid some compiler warnings
29765         * tests/test-memchr.c (main): Pass NULL indirectly.
29766         * tests/test-closein.c (main): Avoid unused variable.
29767
29768 2008-09-15  Bruno Haible  <bruno@clisp.org>
29769
29770         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29771         are missing on OpenBSD 4.0 individually.
29772         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29773
29774 2008-09-15  Bruno Haible  <bruno@clisp.org>
29775
29776         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29777         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29778         * doc/posix-functions/perror.texi: Likewise.
29779         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29780         is missing.
29781         Reported by Eric Blake.
29782
29783         * lib/errno.in.h: Use replacement values >= 2000.
29784         Reported by Eric Blake.
29785
29786 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29787
29788         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29789         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29790         limit.
29791         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29792         compareseq was aborted.
29793
29794 2008-09-14  Bruno Haible  <bruno@clisp.org>
29795
29796         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29797         yvec_edit_count.
29798         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29799         (fstrcmp_bounded): Simplify result computation accordingly.
29800
29801 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29802
29803         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29804         (fstrcmp): Define in terms of fstrcmp_bounded.
29805         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29806         lower_bound argument.
29807         Return quickly if the result is certainly < lower_bound.
29808         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29809
29810 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29811
29812         * lib/diffseq.h (EARLY_ABORT): New macro.
29813         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29814         evaluates to true.
29815
29816 2008-09-14  Bruno Haible  <bruno@clisp.org>
29817
29818         * modules/perror-tests: New file.
29819         * tests/test-perror.sh: New file.
29820         * tests/test-perror.c: New file.
29821
29822         New module 'perror'.
29823         * lib/stdio.in.h (perror): New declaration.
29824         * lib/perror.c: New file.
29825         * m4/perror.m4: New file.
29826         * modules/perror: New file.
29827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29828         * doc/posix-functions/perror.texi: Mention the perror module.
29829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29830         REPLACE_PERROR.
29831         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29832         REPLACE_PERROR.
29833
29834 2008-09-14  Bruno Haible  <bruno@clisp.org>
29835
29836         * modules/stdio (Makefile.am): Reorder to match the order in
29837         lib/stdio.in.h.
29838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29839
29840 2008-09-13  Bruno Haible  <bruno@clisp.org>
29841
29842         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29843
29844 2008-09-13  Bruno Haible  <bruno@clisp.org>
29845
29846         Extend strerror to cover the added errno values.
29847         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29848         (rpl_strerror): Provide error messages for the added errno values and
29849         for the WSA* values.
29850         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29851         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29852         strerror.
29853         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29854         * modules/strerror (Depends-on): Add errno.
29855         * doc/posix-functions/strerror.texi: Document the change.
29856         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29857         and EOVERFLOW.
29858
29859 2008-09-13  Bruno Haible  <bruno@clisp.org>
29860
29861         * modules/EOVERFLOW: Remove file.
29862         * m4/eoverflow.m4: Remove file.
29863         * modules/EOVERFLOW-tests: Remove file.
29864         * tests/test-EOVERFLOW.c: Remove file.
29865         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
29866         * modules/ftell (Depends-on): Likewise.
29867         * modules/getdelim (Depends-on): Likewise.
29868         * modules/getugroups (Depends-on): Likewise.
29869         * modules/poll (Depends-on): Likewise.
29870         * modules/snprintf (Depends-on): Likewise.
29871         * modules/sprintf-posix (Depends-on): Likewise.
29872         * modules/vasnprintf (Depends-on): Likewise.
29873         * modules/vasprintf (Depends-on): Likewise.
29874         * modules/vfprintf-posix (Depends-on): Likewise.
29875         * modules/vsnprintf (Depends-on): Likewise.
29876         * modules/vsprintf-posix (Depends-on): Likewise.
29877         * modules/xvasprintf (Depends-on): Likewise.
29878         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29879         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
29880         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
29881         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
29882         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29883         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
29884         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
29885         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
29886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29887         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
29888         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
29889         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
29890         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29891         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
29892         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
29893         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
29894         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29895         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
29896         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
29897         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
29898         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29899         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
29900         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
29901         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
29902         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
29903         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29904         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
29905         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
29906         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
29907         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
29908         * MODULES.html.sh: Remove EOVERFLOW.
29909         * NEWS: Mention the change.
29910
29911 2008-09-13  Bruno Haible  <bruno@clisp.org>
29912
29913         * modules/errno-tests: New file.
29914         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
29915
29916         * lib/errno.in.h: New file.
29917         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
29918         * modules/errno: New file.
29919         * doc/posix-headers/errno.texi: Update documentation.
29920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
29921
29922 2008-09-13  Bruno Haible  <bruno@clisp.org>
29923
29924         * tests/test-poll.c: Use #if for native Windows, rather than testing
29925         __MSVCRT__.
29926
29927 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29928             Bruno Haible  <bruno@clisp.org>
29929
29930         * lib/glob.c: Don't include <pwd.h> on native Windows.
29931         (WINDOWS32): New macro.
29932         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
29933
29934 2008-09-13  Bruno Haible  <bruno@clisp.org>
29935
29936         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
29937         (ETIMEDOUT): Remove macro.
29938         (glthread_cond_timedwait_multithreaded): New declaration.
29939         (glthread_cond_timedwait): Use it.
29940         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
29941         (glthread_cond_timedwait_multithreaded): New function.
29942
29943 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29944
29945         * modules/poll-tests: Do not check for io.h.
29946         * tests/test-poll.c: Check for __MSVCRT__ instead.
29947
29948 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29949
29950         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
29951         * modules/poll-tests: Add inet_pton, stdbool, sockets.
29952         * tests/test-poll.c: Use them.  Use _pipe on Windows.
29953
29954 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
29955
29956         * modules/poll-tests: New.
29957         * tests/test-poll.c: New.
29958
29959 2008-09-12  Eric Blake  <ebb9@byu.net>
29960
29961         frexp: test for NetBSD failure on -0.0
29962         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
29963         not all, bugs from NetBSD 3.0 have been fixed.
29964         * doc/posix-functions/frexp.texi (frexp): Document bug.
29965         Reported by Thomas Klausner.
29966
29967         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
29968         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
29969         literal -0.0.
29970         Reported by Jonathan C. Patschke <jp@centtech.com>.
29971
29972 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29973
29974         * lib/glthread/cond.h: Use dummy implementation also if
29975         USE_WIN32_THREADS.
29976
29977 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29978
29979         * modules/fnmatch-posix (License): Change to LGPLv2+.
29980         * modules/fnmatch-gnu (License): Likewise.
29981
29982 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29983
29984         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
29985
29986 2008-09-11  Jim Meyering  <meyering@redhat.com>
29987
29988         * users.txt: Add gtk-vnc.
29989
29990 2008-09-08  Simon Josefsson  <simon@josefsson.org>
29991
29992         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
29993         rotate amounts.
29994
29995         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
29996         required for 16-bit and 8-bit rotates.
29997         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
29998         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
29999         UINT8_MAX instead of hard-coded constants.
30000         Suggested by Paul Eggert.
30001
30002 2008-09-07  Bruno Haible  <bruno@clisp.org>
30003
30004         * tests/test-striconveh.c (main): Check behaviour when converting from
30005         UTF-7.
30006
30007         Make striconveh work better with stateful encodings.
30008         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30009         that iconv does not increment the inptr when returning -1/EINVAL.
30010
30011 2008-09-07  Bruno Haible  <bruno@clisp.org>
30012
30013         * build-aux/config.rpath: Update according to libtool-2.2.6.
30014         * build-aux/config.libpath: Likewise.
30015
30016 2008-09-06  Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30019         * lib/freadptr.c (freadptr): Likewise.
30020         * lib/freadseek.c (freadptrinc): Likewise.
30021         Reported by Simon Josefsson.
30022
30023 2008-09-06  Bruno Haible  <bruno@clisp.org>
30024
30025         * modules/freadptr (License): Change to LGPLv2+.
30026         * modules/freadseek (License): Likewise.
30027         Suggested by Eric Blake.
30028
30029         * modules/memchr2 (License): Change to LGPLv2+.
30030         Approved by Eric Blake.
30031
30032 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30033             Bruno Haible  <bruno@clisp.org>
30034
30035         Make gnulib-tool work with native 'sed' on AIX.
30036         * gnulib-tool (sed_noop): New variable.
30037         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30038         func_add_or_update, func_create_testdir): Use it to initialize sed
30039         script variables.
30040         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30041
30042 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30043             Bruno Haible  <bruno@clisp.org>
30044
30045         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30046         also works after #include directives.
30047
30048 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30049
30050         getdate.y: reject an out-of-range timezone value
30051         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30052         the range [-24...+24].  When specified with only one or two digits,
30053         * tests/test-getdate.c: Tests for the fix.
30054         * doc/getdate.texi: Document this change.
30055
30056 2008-09-03  Bruno Haible  <bruno@clisp.org>
30057
30058         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30059
30060 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30061
30062         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30063         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30064         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30065         Blake <ebb9@byu.net>.
30066
30067         * tests/test-bitrotate.c: Add more test vectors.
30068
30069 2008-09-02  Eric Blake  <ebb9@byu.net>
30070
30071         vasnprintf-posix: handle large precision via %.*d
30072         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30073         when handling it ourselves.
30074         * tests/test-vasnprintf-posix.c (test_function): Add test.
30075         * tests/test-snprintf-posix.h (test_function): Likewise.
30076         * tests/test-sprintf-posix.h (test_function): Likewise.
30077         * tests/test-vasprintf-posix.c (test_function): Likewise.
30078         Reported by Alain Guibert.
30079
30080 2008-09-01  Eric Blake  <ebb9@byu.net>
30081
30082         c-stack: make configure-time check more robust
30083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30084         successful sigaction call.
30085         Reported by Tom G. Christensen.
30086
30087 2008-09-01  Bruno Haible  <bruno@clisp.org>
30088
30089         New module 'findprog-lgpl'.
30090         * modules/findprog-lgpl: New file.
30091         * lib/findprog-lgpl.c: New file.
30092         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30093         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30094         to decide whether to use strdup or xstrdup, concatenated_filename or
30095         xconcatenated_filename.
30096
30097 2008-09-01  Bruno Haible  <bruno@clisp.org>
30098
30099         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30100         'xconcat-filename' (GPL).
30101         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30102         (License): Change to LGPLv2+.
30103         * modules/xconcat-filename: New file.
30104         * lib/concat-filename.h (concatenated_filename): Change specification.
30105         (xconcatenated_filename): New declaration.
30106         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30107         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30108         memory situations.
30109         * lib/xconcat-filename.c: New file.
30110         * NEWS: Mention the change.
30111         * lib/findprog.c: Include concat-filename.h, not filename.h.
30112         (find_in_path): Use xconcatenated_filename instead of
30113         concatenated_filename.
30114         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30115         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30116         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30117         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30118         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30119         instead of concatenated_filename.
30120         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30121         (execute_java_class): Use xconcatenated_filename instead of
30122         concatenated_filename.
30123         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30124         * modules/javacomp (Depends-on): Likewise.
30125         * modules/javaexec (Depends-on): Likewise.
30126
30127 2008-09-01  Bruno Haible  <bruno@clisp.org>
30128
30129         Split module 'filename' into 'filename' and 'concat-filename'.
30130         * modules/filename: Keep only lib/filename.h.
30131         (License): Change to LGPLv2+.
30132         * modules/concat-filename: New file, extracted from modules/filename.
30133         * lib/filename.h (concatenated_filename): Remove declaration.
30134         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30135         * lib/concat-filename.c: Include concat-filename.h.
30136         * NEWS: Mention the change.
30137
30138 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30139
30140         * lib/bitrotate.h (rotl8, rotr8): Add.
30141
30142         * modules/bitrotate (configure.ac): Need
30143         AC_REQUIRE([AC_C_INLINE]).
30144         (Description): Mention stdint.h.  Reported by Bruno Haible
30145         <bruno@clisp.org>.
30146
30147         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30148         Paolo Bonzini <bonzini@gnu.org>.
30149
30150 2008-08-31  Bruno Haible  <bruno@clisp.org>
30151
30152         Assume Solaris specific bi-arch conventions on Solaris systems.
30153         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30154         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30155         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30156         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30157         like acl_libdirstem.
30158         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30159         acl_libdirstem.
30160         * NEWS: Mention the change.
30161         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30162
30163 2008-08-31  Jim Meyering  <meyering@redhat.com>
30164
30165         * lib/strftime.h: Add comments describing the two added arguments.
30166
30167         remove duplicate #include directives
30168         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30169         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30170
30171 2008-08-31  Bruno Haible  <bruno@clisp.org>
30172
30173         New module 'sigpipe-die'.
30174         * modules/sigpipe-die: New file.
30175         * lib/sigpipe-die.h: New file.
30176         * lib/sigpipe-die.c: New file.
30177         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30178
30179 2008-08-31  Bruno Haible  <bruno@clisp.org>
30180
30181         Don't override previously installed signal handlers.
30182         * lib/fatal-signal.c (saved_sigactions): New variable.
30183         (uninstall_handlers): Reset the signal to the saved handler, not
30184         to SIG_DFL (except when ignored).
30185         (install_handlers): Save the previous handlers.
30186
30187 2008-08-30  Bruno Haible  <bruno@clisp.org>
30188
30189         * gnulib-tool (func_reset_sigpipe): New function.
30190         (func_get_automake_snippet, func_modules_transitive_closure,
30191         func_import): Invoke it before a join command that reads from stdin,
30192         to avoid "echo: write error: Broken pipe" error messages on stderr.
30193         Reported by Sam Steingold <sds@gnu.org>.
30194
30195 2008-08-30  Bruno Haible  <bruno@clisp.org>
30196
30197         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30198         Code copied from m4/open.m4.
30199         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30200         access and the filename ends in a slash. Code copied from lib/open.c.
30201         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30202         * tests/test-fopen.c (main): Check against bug with trailing slash.
30203
30204 2008-08-29  Bruno Haible  <bruno@clisp.org>
30205
30206         Avoid some "gcc -pedantic" warnings.
30207         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30208         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30209         * lib/dirent.in.h: Likewise.
30210         * lib/fcntl.in.h: Likewise.
30211         * lib/float.in.h: Likewise.
30212         * lib/iconv.in.h: Likewise.
30213         * lib/inttypes.in.h: Likewise.
30214         * lib/locale.in.h: Likewise.
30215         * lib/math.in.h: Likewise.
30216         * lib/netinet_in.in.h: Likewise.
30217         * lib/search.in.h: Likewise.
30218         * lib/signal.in.h: Likewise.
30219         * lib/stdarg.in.h: Likewise.
30220         * lib/stdint.in.h: Likewise.
30221         * lib/stdio.in.h: Likewise.
30222         * lib/stdlib.in.h: Likewise.
30223         * lib/string.in.h: Likewise.
30224         * lib/strings.in.h: Likewise.
30225         * lib/sys_select.in.h: Likewise.
30226         * lib/sys_socket.in.h: Likewise.
30227         * lib/sys_stat.in.h: Likewise.
30228         * lib/sys_time.in.h: Likewise.
30229         * lib/sysexits.in.h: Likewise.
30230         * lib/time.in.h: Likewise.
30231         * lib/unistd.in.h: Likewise.
30232         * lib/wchar.in.h: Likewise.
30233         * lib/wctype.in.h: Likewise.
30234         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30235         * modules/fchdir (Makefile.am): Likewise.
30236         * modules/fcntl (Makefile.am): Likewise.
30237         * modules/float (Makefile.am): Likewise.
30238         * modules/iconv_open (Makefile.am): Likewise.
30239         * modules/inttypes (Makefile.am): Likewise.
30240         * modules/locale (Makefile.am): Likewise.
30241         * modules/math (Makefile.am): Likewise.
30242         * modules/netinet_in (Makefile.am): Likewise.
30243         * modules/search (Makefile.am): Likewise.
30244         * modules/signal (Makefile.am): Likewise.
30245         * modules/stdarg (Makefile.am): Likewise.
30246         * modules/stdint (Makefile.am): Likewise.
30247         * modules/stdio (Makefile.am): Likewise.
30248         * modules/stdlib (Makefile.am): Likewise.
30249         * modules/string (Makefile.am): Likewise.
30250         * modules/strings (Makefile.am): Likewise.
30251         * modules/sys_select (Makefile.am): Likewise.
30252         * modules/sys_socket (Makefile.am): Likewise.
30253         * modules/sys_stat (Makefile.am): Likewise.
30254         * modules/sys_time (Makefile.am): Likewise.
30255         * modules/sysexits (Makefile.am): Likewise.
30256         * modules/time (Makefile.am): Likewise.
30257         * modules/unistd (Makefile.am): Likewise.
30258         * modules/wchar (Makefile.am): Likewise.
30259         * modules/wctype (Makefile.am): Likewise.
30260         Reported by Reuben Thomas <rrt@sc3d.org>.
30261
30262 2008-08-29  Bruno Haible  <bruno@clisp.org>
30263
30264         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30265         any more.
30266
30267 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30268
30269         * MODULES.html.sh (Misc): Add bitrotate.
30270
30271         * modules/bitrotate: New file.
30272
30273         * lib/bitrotate.h: New file.
30274
30275         * modules/bitrotate-tests: New file.
30276
30277         * tests/test-bitrotate.c: New file.
30278
30279         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30280         on the bitrotate module.
30281
30282         * lib/arctwo.c: Use new bitrotate module.
30283
30284 2008-08-29  Jim Meyering  <meyering@redhat.com>
30285
30286         bootstrap: merge changes from coreutils
30287         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30288         of copied files.  Remove a kludge, now that this is fixed.
30289         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30290         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30291         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30292
30293 2008-08-29  Bruno Haible  <bruno@clisp.org>
30294
30295         * MODULES.html.sh: Remove --cvs-urls option.
30296
30297 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30298
30299         maint.mk: adjust to file name change
30300         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30301
30302 2008-08-28  Jim Meyering  <meyering@redhat.com>
30303
30304         * modules/getndelim2 (License): Relicense to LGPLv2+.
30305         Approved by Richard Stallman for the version of 1995, and by
30306         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30307
30308 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30309
30310         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30311         dummy if one is not available.  Do not touch them if
30312         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30313         (getc_maybe_unlocked): New.
30314         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30315
30316 2008-08-26  Eric Blake  <ebb9@byu.net>
30317
30318         doc/INSTALL: resync from autoconf
30319         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30320         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30321         moving...
30322         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30323         * INSTALL: Regenerate.
30324         * INSTALL.ISO: New file.
30325         * INSTALL.UTF-8: Likewise.
30326
30327 2008-08-26  Jim Meyering  <meyering@redhat.com>
30328
30329         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30330         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30331         these definitions conditional, so that they may be overridden, too.
30332
30333 2008-08-26  Bruno Haible  <bruno@clisp.org>
30334
30335         Generate INSTALL file variants with prettier quotes.
30336         * doc/Makefile (INSTALL_PRELUDE): New macro.
30337         (INSTALL): Use it.
30338         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30339
30340 2008-08-26  Bruno Haible  <bruno@clisp.org>
30341
30342         Run makeinfo in an English locale.
30343         * doc/Makefile (MAKEINFO): New variable.
30344
30345 2008-08-26  Bruno Haible  <bruno@clisp.org>
30346
30347         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30348         Suggested by Eric Blake.
30349
30350 2008-08-25  Bruno Haible  <bruno@clisp.org>
30351
30352         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30353
30354 2008-08-25  Eric Blake  <ebb9@byu.net>
30355
30356         c-stack: test that stack overflow can be caught
30357         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30358         that platform allows handling stack overflow; at least OS/2 EMX
30359         has sigaltstack, but crashes before transferring control to
30360         handler on stack overflow.
30361         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30362         check for HAVE_STACK_OVERFLOW_HANDLING.
30363         Reported by Elbert Pol.
30364
30365 2008-08-25  Bruno Haible  <bruno@clisp.org>
30366
30367         * doc/posix-functions/strftime.texi: Fix description of strftime
30368         module.
30369
30370 2008-08-24  Bruno Haible  <bruno@clisp.org>
30371
30372         * tests/uniwidth/test-uc_width2.c: New file.
30373         * tests/uniwidth/test-uc_width2.sh: New file.
30374         * modules/uniwidth/width-tests (Files): Add the new files.
30375         (TESTS): Add uniwidth/test-uc_width2.sh.
30376         (TESTS_ENVIRONMENT): New variable.
30377         (check_PROGRAMS): Add test-uc_width2.
30378         (test_uc_width2_SOURCES): New variable.
30379
30380         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30381         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30382         not 0x00AB.
30383         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30384
30385 2008-08-22  Eric Blake  <ebb9@byu.net>
30386
30387         test-lock, test-tls: mention why a test is skipped
30388         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30389         skipped.
30390         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30391
30392         count-one-bits: relax license
30393         * modules/count-one-bits (License): Relicense to LGPLv2+.
30394         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30395
30396 2008-08-22  Andreas Schwab  <schwab@suse.de>
30397
30398         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30399         Remove spurious space in assignment.
30400
30401 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30402
30403         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30404         Paul Eggert <eggert@CS.UCLA.EDU>.
30405
30406 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30407
30408         * modules/gettext: Add m4/threadlib.m4.
30409
30410 2008-08-19  Eric Blake  <ebb9@byu.net>
30411
30412         test-c-stack: fix compilation failure on FreeBSD 5.0
30413         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30414         headers before <sys/resource.h>.
30415         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30416         the bug.
30417         Reported by Nelson H. F. Beebe.
30418
30419         strverscmp: migrate from "strverscmp.h" to <string.h>
30420         * modules/string (Makefile.am): Add new hooks.
30421         * modules/strverscmp (Files): Remove strverscmp.h.
30422         (Depends-on): Add string.
30423         (configure.ac): Add indicator.
30424         (Include): Mention new header.
30425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30426         defaults.
30427         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30428         results.
30429         * lib/strverscmp.h: Delete.
30430         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30431         * tests/test-strverscmp.c (includes): Adjust client.
30432         * lib/check-version.c (includes): Likewise.
30433         * NEWS: Document the change.
30434
30435         strverscmp: add unit test
30436         * modules/strverscmp-tests: New file.
30437         * tests/test-strverscmp.c: Likewise.
30438
30439 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30440
30441         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30442         regarding Windows crypto stuff, from Mono.
30443
30444 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30445
30446         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30447         if present, for intel RND.  Return error on failures.
30448
30449 2008-08-18  Ben Pfaff  <blp@gnu.org>
30450
30451         gitlog-to-changelog: give better diagnostic for failed pipe-open
30452         * build-aux/gitlog-to-changelog: Improve error message: suggest
30453         that the version of Git may be too old.
30454
30455 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30456
30457         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30458         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30459
30460 2008-08-18  Bruno Haible  <bruno@clisp.org>
30461
30462         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30463         pthread_in_use().
30464
30465 2008-08-18  Bruno Haible  <bruno@clisp.org>
30466
30467         * lib/glthread/threadlib.c: Include <pthread.h>.
30468
30469 2008-08-18  Bruno Haible  <bruno@clisp.org>
30470
30471         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30472         glthread_recursive_lock_* macros.
30473         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30474         Fix syntax error.
30475
30476 2008-08-18  Bruno Haible  <bruno@clisp.org>
30477
30478         * lib/glthread/thread.c: Avoid forcing a context switch right after
30479         thread creation.
30480
30481 2008-08-17  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30484         * lib/glthread/thread.h: Provide Win32 specific implementation.
30485         * modules/thread (Files): Add lib/glthread/thread.c.
30486         (Depends-on): Add lock.
30487         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30488
30489 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30490
30491         New module 'yield'.
30492         * modules/yield: New file.
30493         * lib/glthread/yield.h: New file.
30494         * m4/yield.m4: New file.
30495         * MODULES.html.sh (Multithreading): Add yield.
30496
30497 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30498
30499         New module 'thread'.
30500         * modules/thread: New file.
30501         * lib/glthread/thread.h: New file.
30502         * m4/thread.m4: New file.
30503         * MODULES.html.sh (Multithreading): Add thread.
30504
30505 2008-08-17  Bruno Haible  <bruno@clisp.org>
30506
30507         * lib/glthread/lock.h: Include <stdlib.h> always.
30508         * lib/glthread/tls.h: Likewise.
30509         * lib/glthread/cond.h: Likewise.
30510
30511 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30512
30513         New module 'cond'.
30514         * modules/cond: New file.
30515         * lib/glthread/cond.h: New file.
30516         * lib/glthread/cond.c: New file.
30517         * m4/cond.m4: New file.
30518         * MODULES.html.sh (Multithreading): Add cond.
30519
30520 2008-08-16  Eric Blake  <ebb9@byu.net>
30521
30522         c-stack: fix regression on Irix 5.3 from 2008-06-21
30523         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30524         sa_sigaction...
30525         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30526         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30528         * modules/signal (Makefile.am): Use the value.
30529         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30530         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30531         * doc/posix-headers/signal.texi (signal.h): Document this
30532         portability issue.
30533         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30534         Reported by Tom G. Christensen.
30535
30536 2008-08-17  Bruno Haible  <bruno@clisp.org>
30537
30538         New module 'threadlib'.
30539         * modules/threadlib: New file.
30540         * lib/glthread/threadlib.c: New file, extracted from
30541         lib/glthread/lock.c.
30542         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30543         functions.
30544         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30545         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30546         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30547         macros.
30548         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30549         (gl_DISABLE_THREADS): Remove macro.
30550         * modules/lock (Files): Remove build-aux/config.rpath.
30551         (Depends-on): Remove havelib. Add threadlib.
30552         (configure.ac-early): Remove section.
30553         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30554         * modules/tls (Depends-on): Remove lock. Add threadlib.
30555         (Link): New section, copied from threadlib.
30556         * MODULES.html.sh (Multithreading): Add threadlib.
30557
30558 2008-08-14  Bruno Haible  <bruno@clisp.org>
30559
30560         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30561         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30562         glthread_rwlock_unlock, glthread_rwlock_destroy,
30563         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30564         glthread_recursive_lock_destroy): Define as macros always.
30565         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30566         glthread_lock_lock.
30567         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30568         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30569         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30570         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30571         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30572         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30573         (glthread_recursive_lock_lock_func): Renamed from
30574         glthread_recursive_lock_lock.
30575         (glthread_recursive_lock_unlock_func): Renamed from
30576         glthread_recursive_lock_unlock.
30577         (glthread_recursive_lock_destroy_func): Renamed from
30578         glthread_recursive_lock_destroy.
30579
30580 2008-08-14  Bruno Haible  <bruno@clisp.org>
30581
30582         * lib/glthread/lock.h: Renamed from lib/lock.h.
30583         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30584         * lib/glthread/tls.h: Renamed from lib/tls.h.
30585         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30586         * lib/fstrcmp.c: Update includes.
30587         * lib/strsignal.c: Update includes.
30588         * modules/lock (Files, Makefile.am): Update.
30589         (Include): Change to "glthread/lock.h".
30590         * modules/tls (Files, Makefile.am): Update.
30591         (Include): Change to "glthread/tls.h".
30592         * tests/test-lock.c: Update includes.
30593         * tests/test-tls.c: Update includes.
30594         * NEWS: Mention the renamed header files.
30595
30596 2008-08-11  Jim Meyering  <meyering@redhat.com>
30597
30598         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30599
30600 2008-08-11  Eric Blake  <ebb9@byu.net>
30601
30602         test-c-stack: avoid C99-ism
30603         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30604         before statement.
30605         Reported by Alain Guibert.
30606
30607 2008-08-10  Jim Meyering  <meyering@redhat.com>
30608
30609         ensure that return value of uinttostr et al are not ignored
30610         * lib/inttostr.h (__GNUC_PREREQ): Define.
30611         (__attribute_warn_unused_result__): Define.
30612         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30613
30614 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30615
30616         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30617         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30618
30619 2008-08-07  Jim Meyering  <meyering@redhat.com>
30620
30621         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30622
30623         * modules/mkstemp (License): Relicense under LGPLv2+.
30624         * modules/tempname (License): Likewise.
30625
30626 2008-08-06  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/poll.c (poll): Further micro-optimization.
30629
30630 2008-08-06  Jim Meyering  <meyering@redhat.com>
30631
30632         inet_pton.c: use locale-independent tolower
30633         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30634         (inet_pton6): Use c_tolower rather than tolower.
30635         * modules/inet_pton (Depends-on): Add c-ctype.
30636
30637 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30638
30639         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30640         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30641
30642 2008-08-06  Jim Meyering  <meyering@redhat.com>
30643
30644         * modules/inet_pton (License): Relicense under LGPLv2+.
30645
30646 2008-08-03  Bruno Haible  <bruno@clisp.org>
30647
30648         Additional non-aborting API for lock and tls.
30649         * lib/lock.h: Include <errno.h>.
30650         (glthread_lock_init): New macro/function.
30651         (gl_lock_init): Define as wrapper around glthread_lock_init.
30652         (glthread_lock_lock): New macro/function.
30653         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30654         (glthread_lock_unlock): New macro/function.
30655         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30656         (glthread_lock_destroy): New macro/function.
30657         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30658         (glthread_rwlock_init): New macro/function.
30659         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30660         (glthread_rwlock_rdlock): New macro/function.
30661         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30662         (glthread_rwlock_wrlock): New macro/function.
30663         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30664         (glthread_rwlock_unlock): New macro/function.
30665         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30666         (glthread_rwlock_destroy): New macro/function.
30667         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30668         (glthread_recursive_lock_init): New macro/function.
30669         (gl_recursive_lock_init): Define as wrapper around
30670         glthread_recursive_lock_init.
30671         (glthread_recursive_lock_lock): New macro/function.
30672         (gl_recursive_lock_lock): Define as wrapper around
30673         glthread_recursive_lock_lock.
30674         (glthread_recursive_lock_unlock): New macro/function.
30675         (gl_recursive_lock_unlock): Define as wrapper around
30676         glthread_recursive_lock_unlock.
30677         (glthread_recursive_lock_destroy): New macro/function.
30678         (gl_recursive_lock_destroy): Define as wrapper around
30679         glthread_recursive_lock_destroy.
30680         (glthread_once): New macro/function.
30681         (gl_once): Define as wrapper around glthread_once.
30682         Update function declarations.
30683         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30684         glthread_rwlock_init. Return error code.
30685         (glthread_rwlock_rdlock_multithreaded): Renamed from
30686         glthread_rwlock_rdlock. Return error code.
30687         (glthread_rwlock_wrlock_multithreaded): Renamed from
30688         glthread_rwlock_wrlock. Return error code.
30689         (glthread_rwlock_unlock_multithreaded): Renamed from
30690         glthread_rwlock_unlock. Return error code.
30691         (glthread_rwlock_destroy_multithreaded): Renamed from
30692         glthread_rwlock_destroy. Return error code.
30693         (glthread_recursive_lock_init_multithreaded): Renamed from
30694         glthread_recursive_lock_init. Return error code.
30695         (glthread_recursive_lock_lock_multithreaded): Renamed from
30696         glthread_recursive_lock_lock. Return error code.
30697         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30698         glthread_recursive_lock_unlock. Return error code.
30699         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30700         glthread_recursive_lock_destroy. Return error code.
30701         (glthread_once_call): Make static.
30702         (glthread_once_multithreaded): Renamed from glthread_once.
30703         * lib/tls.h: Include <errno.h>.
30704         (glthread_tls_key_init): New macro/function.
30705         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30706         (glthread_tls_set): New macro/function.
30707         (gl_tls_set): Define as wrapper around glthread_tls_set.
30708         (glthread_tls_key_destroy): New macro/function.
30709         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30710         Update function declarations.
30711         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30712         glthread_tls_get.
30713         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30714
30715 2008-08-04  Eric Blake  <ebb9@byu.net>
30716
30717         gnumakefile: use space, not TAB, outside of targets
30718         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30719
30720 2008-08-02  Jim Meyering  <meyering@redhat.com>
30721
30722         getdate.y: avoid locale-dependent date parsing failure
30723         In Turkish locales, getdate would fail to recognize keywords
30724         containing a lowercase "i".  The solution is not to rely on
30725         locale-sensitive case-conversion.
30726         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30727         (lookup_word): Use c_toupper in place of toupper.
30728         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30729         Reported by Vefa Bicakci <bicave@superonline.com> in
30730         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30731         * modules/getdate (Depends-on): Add c-ctype.
30732
30733 2008-08-02  Bruno Haible  <bruno@clisp.org>
30734
30735         * gnulib-tool (func_import): When updating or creating a .gitignore
30736         file, prepend each added line with a slash, and ignore leading slashes
30737         from the existing lines.
30738         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30739
30740 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30741
30742         Portability fix for GNU make 3.79.1.
30743         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30744         versions do not understand.
30745
30746 2008-08-01  Bruno Haible  <bruno@clisp.org>
30747
30748         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30749         * tests/test-isnanf.h (zero): New variable.
30750         (main): Avoid literal -0.0f.
30751         * tests/test-isnand.h (zero): New variable.
30752         (main): Avoid literal -0.0.
30753         * tests/test-isnanl.h (zero): New variable.
30754         (main): Avoid literal -0.0L.
30755         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30756         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30757         -0.0, -0.0L.
30758         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30759         (test_signbitd): Avoid literal -0.0.
30760         (test_signbitl): Avoid literal -0.0L.
30761         * tests/test-ceilf1.c (zero): New variable.
30762         (main): Avoid literal -0.0f.
30763         * tests/test-ceill.c (zero): New variable.
30764         (main): Avoid literal -0.0L.
30765         * tests/test-floorf1.c (zero): New variable.
30766         (main): Avoid literal -0.0f.
30767         * tests/test-floorl.c (zero): New variable.
30768         (main): Avoid literal -0.0L.
30769         * tests/test-roundf1.c (zero): New variable.
30770         (main): Avoid literal -0.0f.
30771         * tests/test-round1.c (zero): New variable.
30772         (main): Avoid literal -0.0.
30773         * tests/test-roundl.c (zero): New variable.
30774         (main): Avoid literal -0.0L.
30775         * tests/test-truncf1.c (zero): New variable.
30776         (main): Avoid literal -0.0f.
30777         * tests/test-trunc1.c (zero): New variable.
30778         (main): Avoid literal -0.0.
30779         * tests/test-truncl.c (zero): New variable.
30780         (main): Avoid literal -0.0L.
30781         * tests/test-frexp.c (zero): New variable.
30782         (main): Avoid literal -0.0.
30783         * tests/test-frexpl.c (zero): New variable.
30784         (main): Avoid literal -0.0L.
30785         * tests/test-ldexpl.c (zero): New variable.
30786         (main): Avoid literal -0.0L.
30787         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30788         (zerod, zerol): New variables.
30789         (test_function): Avoid literals -0.0, -0.0L.
30790         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30791         (zerod, zerol): New variables.
30792         (test_function): Avoid literals -0.0, -0.0L.
30793         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30794         (zerod, zerol): New variables.
30795         (test_function): Avoid literals -0.0, -0.0L.
30796         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30797         (zerod, zerol): New variables.
30798         (test_function): Avoid literals -0.0, -0.0L.
30799         * tests/test-strtod.c (zero): New variable.
30800         (main): Avoid literal -0.0.
30801         Reported by Jonathan C. Patschke <jp@centtech.com>.
30802
30803 2008-07-31  Jim Meyering  <meyering@redhat.com>
30804
30805         sha256.h: correct definition of SHA224_DIGEST_SIZE
30806         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30807         Reported by Paulie Pena IV <paulie4@gmail.com>.
30808         Define as 224 / 8, rather than as a literal.
30809         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30810         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30811         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30812
30813 2008-07-31  Bruno Haible  <bruno@clisp.org>
30814
30815         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30816         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30817         Reported by Jonathan Patschke <jp@centtech.com>.
30818
30819 2008-07-31  Bruno Haible  <bruno@clisp.org>
30820
30821         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30822         Reported by Paolo Bonzini <bonzini@gnu.org>.
30823
30824 2008-07-30  Eric Blake  <ebb9@byu.net>
30825
30826         test-strtod: allow compilation without -lm
30827         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30828         Reported by Dennis Clarke <blastwave@gmail.com>.
30829
30830 2008-07-28  Jim Meyering  <meyering@redhat.com>
30831
30832         bootstrap: work also when there are no .po files in po/
30833         * build-aux/bootstrap (update_po_files): Complete the change
30834         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30835
30836 2008-07-27  Jim Meyering  <meyering@redhat.com>
30837
30838         * users.txt: Add zile.
30839
30840 2008-07-26  Ben Pfaff  <blp@gnu.org>
30841
30842         Add missing dependencies on new m4/exponent[fdl].m4 files.
30843         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30844         * modules/isnand-nolibm: Add m4/exponentd.m4.
30845         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30846         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30847         m4/isnan[fdl].m4, because the macros actually used moved.
30848         Reported by Jim Meyering.
30849
30850 2008-07-14  Ben Pfaff  <blp@gnu.org>
30851
30852         Add isinf module.
30853         * lib/isinf.c: New file.
30854         * lib/math.in.h: Define isinf macro if we have decided to replace
30855         it.
30856         * m4/isinf.m4: New file.
30857         * m4/math_h.m4: Initialize and substitute variables for isinf
30858         module.
30859         * modules/isinf: New file.
30860         * modules/isinf-tests: New file.
30861         * modules/math: Add substitutions for new module.
30862         * tests/test-isinf.c: New file.
30863         * doc/posix-functions/isinf.texi: Mention new module.
30864         * MODULES.html.sh: Mention new module.
30865
30866 2008-07-14  Ben Pfaff  <blp@gnu.org>
30867
30868         Factor out some macros for use by additional modules.
30869         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
30870         exponentf.m4.
30871         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
30872         exponentd.m4.
30873         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
30874         file exponentl.m4.
30875         * m4/exponentf.m4: New file.
30876         * m4/exponentd.m4: New file.
30877         * m4/exponentl.m4: New file.
30878         * modules/isnanf: Use new file m4/exponentf.m4.
30879         * modules/isnand: Use new file m4/exponentd.m4.
30880         * modules/isnanl: Use new file m4/exponentl.m4.
30881
30882 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
30883
30884         mktime.c: normalize tp->tm_isdst value to -1/0/1.
30885         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
30886         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
30887         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
30888
30889         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
30890         readlink on platforms without PATH_MAX.
30891
30892 2008-07-21  Eric Blake  <ebb9@byu.net>
30893
30894         Warn, not fail, on stale version.
30895         * top/GNUmakefile (_curr-ver): Tone down previous patch.
30896
30897         Don't allow installation with stale devel version number.
30898         * top/GNUmakefile (_is-install-target): New macro.
30899         (_curr-ver): Forbid installation with stale version number.
30900
30901 2008-07-20  Bruno Haible  <bruno@clisp.org>
30902
30903         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
30904         TESTS_ENVIRONMENT.
30905         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
30906
30907 2008-07-20  Bruno Haible  <bruno@clisp.org>
30908
30909         * lib/c-stack.h (c_stack_action): Add documentation.
30910         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
30911
30912 2008-07-20  Bruno Haible  <bruno@clisp.org>
30913
30914         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
30915         * modules/readlink (License): Likewise.
30916
30917 2008-07-17  Eric Blake  <ebb9@byu.net>
30918
30919         * modules/c-stack (Link): Fix typo.
30920
30921         Make c-stack use libsigsegv, when available.
30922         * modules/c-stack (Depends-on): Add libsigsegv.
30923         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
30924         needed.
30925         * lib/c-stack.c (SIGSTKSZ): Define fallback.
30926         (segv_handler, overflow_handler, c_stack_action)
30927         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
30928         implementation when libsigsegv is available, but only when using
30929         the library is necessary.
30930         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
30931         comment, explaining why XSI check fails on Linux.
30932         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
30933         * tests/test-c-stack2.sh: Tweak skip message.
30934         * NEWS: Document new link-time requirements.
30935
30936 2008-07-16  Eric Blake  <ebb9@byu.net>
30937
30938         c-stack: Expose false positives when not using libsigsegv.
30939         * modules/c-stack-tests (Files): Expand test.
30940         * tests/test-c-stack.c (main): Add means to conditionally trigger
30941         non-overflow SIGSEGV.
30942         * tests/test-c-stack2.sh: New file.
30943
30944 2008-07-14  Bruno Haible  <bruno@clisp.org>
30945
30946         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
30947         Reported by Eric Blake.
30948
30949 2008-07-14  Sam Steingold  <sds@gnu.org>
30950             Bruno Haible  <bruno@clisp.org>
30951
30952         New module libsigsegv.
30953         * modules/libsigsegv: New file.
30954         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
30955         modifications.
30956         * MODULES.html.sh (Signal handling): New section.
30957
30958 2008-07-14  Bruno Haible  <bruno@clisp.org>
30959
30960         * modules/unictype/ctype-* (Description): Add the word "function".
30961         Improves the resulting doc in MODULES.html.
30962
30963 2008-07-12  Ben Pfaff  <blp@gnu.org>
30964
30965         Add longlong module.
30966         * modules/longlong: New file.
30967
30968 2008-07-12  Bruno Haible  <bruno@clisp.org>
30969
30970         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
30971         to empty.
30972
30973 2008-07-10  Ben Pfaff  <blp@gnu.org>
30974
30975         Add isnan module.
30976         * doc/posix-functions/isnan.texi: Mention new module.
30977         * lib/math.in.h: Define isnan macro if we have decided to replace
30978         it.
30979         * m4/isnan.m4: New file.
30980         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
30981         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
30982         also.
30983         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
30984         redundancy.
30985         * m4/math_h.m4: Initialize and substitute variables for isnan
30986         module.
30987         * modules/isnan: New file.
30988         * modules/isnan-tests: New file.
30989         * modules/math: Add substitutions for new module.
30990         * tests/test-isnan.c: New file.
30991         * MODULES.html.sh: Mention new module.
30992
30993 2008-07-10  Ben Pfaff  <blp@gnu.org>
30994
30995         Add isnanf module.
30996         * lib/isnanf.m4: New file.
30997         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
30998         (gl_HAVE_ISNANF_IN_LIBM): New macro.
30999         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31000         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31001         * modules/isnanf: New file.
31002         * modules/isnanf-tests: New file.
31003         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31004         files.
31005         * tests/test-isnanf-nolibm.c: factored most of its contents into
31006         new file tests/test-isnanf.h.
31007         * tests/test-isnanf.h: New file.
31008         * tests/test-isnanf.c: New file.
31009         * MODULES.html.sh: Mention new module.
31010         * doc/glibc-functions/isnanf.texi: Mention new module.
31011
31012 2008-07-10  Ben Pfaff  <blp@gnu.org>
31013
31014         Add isnand module.
31015         * lib/isnand.h: New file.
31016         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31017         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31018         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31019         functionality also.
31020         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31021         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31022         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31023         * modules/isnand: New file.
31024         * modules/isnand-tests: New file.
31025         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31026         files.
31027         * tests/test-isnand-nolibm.c: factored most of its contents into
31028         new file tests/test-isnand.h.
31029         * tests/test-isnand.h: New file.
31030         * tests/test-isnand.c: New file.
31031         * MODULES.html.sh: Mention new module.
31032
31033 2008-07-10  Ben Pfaff  <blp@gnu.org>
31034
31035         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31036         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31037         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31038         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31039         * modules/isnanf-nolibm: Update references to renamed files.
31040         * modules/isnand-nolibm: Likewise.
31041         * modules/isnanf-nolibm-tests: Likewise.
31042         * modules/isnand-nolibm-tests: Likewise.
31043         * lib/frexp.c: Likewise.
31044         * lib/isfinite.c: Likewise.
31045         * lib/signbitd.c: Likewise.
31046         * lib/signbitf.c: Likewise.
31047         * lib/vasnprintf.c: Likewise.
31048         * tests/test-ceilf1.c: Likewise.
31049         * tests/test-ceilf2.c: Likewise.
31050         * tests/test-floorf1.c: Likewise.
31051         * tests/test-floorf2.c: Likewise.
31052         * tests/test-frexp.c: Likewise.
31053         * tests/test-round1.c: Likewise.
31054         * tests/test-round2.c: Likewise.
31055         * tests/test-roundf1.c: Likewise.
31056         * tests/test-strtod.c: Likewise.
31057         * tests/test-trunc1.c: Likewise.
31058         * tests/test-trunc2.c: Likewise.
31059         * tests/test-truncf1.c: Likewise.
31060         * tests/test-truncf2.c: Likewise.
31061         * NEWS: Mention the renamed header files.
31062
31063 2008-07-11  Jim Meyering  <meyering@redhat.com>
31064
31065         vc-list-files: make the last-resort awk code more portable
31066         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31067         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31068         does not support it.
31069
31070 2008-07-10  Eric Blake  <ebb9@byu.net>
31071
31072         Work with tar's bootstrap.
31073         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31074         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31075         an m4 comment.
31076
31077 2008-07-09  Jim Meyering  <meyering@redhat.com>
31078
31079         posix-shell.m4: fix typo that made this test malfunction
31080         * m4/posix-shell.m4: Remove capitalization in variable name.
31081
31082 2008-07-08  Bruno Haible  <bruno@clisp.org>
31083
31084         * m4/onceonly.m4: Update comments.
31085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31086
31087 2008-07-04  Jim Meyering  <meyering@redhat.com>
31088
31089         * users.txt: Add vc-dwim.
31090         (bison, coreutils): Use the gitweb URL.
31091
31092 2008-07-03  Jim Meyering  <meyering@redhat.com>
31093
31094         * users.txt: Add libffcall.  From Sam Steingold.
31095
31096 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31097
31098         getdate.y: do not ignore TZ with relative day, month or year offset
31099         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31100         relative-date-handling, since otherwise, the latter would clobber the
31101         sole output (an updated Start value) of the tz-handling block.
31102         * tests/test-getdate.c: Tests for the fix
31103
31104 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31105
31106         Recognize 'foo_LIBRARIES += libgnu.a'.
31107         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31108         makefile snippet has already specified an installation location,
31109         also using '+='.
31110
31111 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31112
31113         getdate.y: factor out common actions
31114         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31115         Use them in place of open-coded actions.
31116
31117 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31118
31119         Add self-test for getdate module.
31120         * modules/getdate-tests: New file.
31121         * tests/test-getdate.c: New file.
31122
31123 2008-06-29  Bruno Haible  <bruno@clisp.org>
31124
31125         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31126         .gitignore.
31127         Reported by Sylvain Beucler <beuc@beuc.net>.
31128
31129 2008-06-29  Bruno Haible  <bruno@clisp.org>
31130
31131         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31132         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31133
31134 2008-06-29  Bruno Haible  <bruno@clisp.org>
31135
31136         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31137         EXTRA_DIST.
31138         Reported by Sylvain Beucler <beuc@beuc.net>.
31139
31140 2008-06-26  Jim Meyering  <meyering@redhat.com>
31141
31142         make several modules depend on the "open" module
31143         This provides slightly increased consistency when opening-for-write
31144         the name of a non-directory spelled with a trailing slash.
31145         * modules/chdir-safer: Likewise.
31146         * modules/chown: Likewise.
31147         * modules/clean-temp: Likewise.
31148         * modules/copy-file: Likewise.
31149         * modules/fchdir: Likewise.
31150         * modules/fcntl-safer: Likewise.
31151         * modules/pipe: Likewise.
31152         * modules/utime: Likewise.
31153         Prompted by Eric Blake and Bruno Haible.
31154
31155 2008-06-24  Andreas Schwab  <schwab@suse.de>
31156
31157         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31158         literals can be used as initializers for global variables.
31159
31160 2008-06-23  Eric Blake  <ebb9@byu.net>
31161
31162         Make gnulib-cache.m4 easier to diff.
31163         * gnulib-tool (func_import): Allow newlines when reading cached
31164         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31165
31166 2008-06-23  Bruno Haible  <bruno@clisp.org>
31167
31168         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31169         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31170         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31171         m4/signalblocking.m4.
31172         (gl_PREREQ_SIGACTION): Don't invoke it.
31173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31174         gl_PREREQ_SIG_HANDLER_H.
31175         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31176         Don't check for sigaction here.
31177
31178 2008-06-23  Bruno Haible  <bruno@clisp.org>
31179
31180         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31181         (install_handlers): Don't set the SA_RESETHAND flag.
31182
31183 2008-06-23  Bruno Haible  <bruno@clisp.org>
31184
31185         * m4/sigaction.m4: Comment fixes.
31186         * lib/signal.in.h: Likewise.
31187
31188 2008-06-23  Eric Blake  <ebb9@byu.net>
31189
31190         Fix typo.
31191         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31192
31193         Avoid SA_ namespace.
31194         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31195         Reported by Ralf Wildenhues.
31196
31197         Avoid test failure due to SA_RESTORER.
31198         * tests/test-sigaction.c (SA_MASK): New macro.
31199         (main): Avoid failing due to extension flags being set.
31200         Reported by Jim Meyering.
31201
31202         Revert use of sig-handler.h in sigprocmask.c.
31203         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31204         it requires the existence of struct sigaction.
31205         * lib/sigprocmask.c (handler_t): Restore typedef.
31206         (rpl_signal, old_handlers): Use local type.
31207
31208 2008-06-22  Bruno Haible  <bruno@clisp.org>
31209
31210         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31211         conditionally.
31212         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31213
31214 2008-06-22  Bruno Haible  <bruno@clisp.org>
31215
31216         * doc/posix-functions/siginterrupt.texi: Move note.
31217
31218         * lib/signal.in.h (SA_RESTART): New macro.
31219         * lib/sigaction.c: Update comment.
31220
31221         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31222
31223         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31224         (gl_PREREQ_SIGPROCMASK): Invoke it.
31225         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31226
31227         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31228
31229         * lib/sigprocmask.c: Update a comment.
31230
31231 2008-06-21  Eric Blake  <ebb9@byu.net>
31232
31233         Use sigaction module rather than signal().
31234         * modules/c-stack (Depends-on): Add sigaction.
31235         * modules/fatal-signal (Depends-on): Likewise.
31236         * modules/nanosleep (Depends-on): Likewise.
31237         * modules/sigprocmask (Files): Add sig-handler.h.
31238         * modules/sigaction (Files): Likewise.
31239         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31240         Eggert.
31241         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31242         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31243         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31244         (init_fatal_signals): Likewise.
31245         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31246         (siginterrupt): Delete fallback.
31247         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31248         instead.
31249         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31250         siginterrupt.
31251
31252         New module sigaction, for mingw.
31253         * modules/sigaction: New module...
31254         * modules/sigaction-tests: ...and its test.
31255         * m4/sigaction.m4: New file.
31256         * lib/sigaction.c: Likewise.
31257         * tests/test-sigaction.c: Likewise.
31258         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31259         * modules/signal (Makefile.am): Likewise.
31260         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31261         needed.
31262         * doc/posix-headers/signal.texi (signal.h): Mention provided
31263         types.
31264         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31265         that sigaction is preferable.
31266         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31267         module.
31268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31269         sigaction.
31270
31271         Improve robustness of sigprocmask by overriding signal.
31272         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31273         is in use.
31274         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31275         (SIGKILL, SIGSTOP): Provide fallbacks.
31276         (rpl_signal): Implement.
31277         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31278         signal can be called inside handlers.
31279
31280         Fix nanosleep module on mingw.
31281         * modules/nanosleep (Depends-on): Add sys_select.
31282         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31283
31284         Fix licensing of sigprocmask.
31285         * modules/raise (License): Relicense as LGPL.
31286
31287 2008-06-21  Bruno Haible  <bruno@clisp.org>
31288
31289         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31290         result if it contains question marks.
31291         Reported by Michael Geng <linux@michaelgeng.de>.
31292
31293 2008-06-19  Bruno Haible  <bruno@clisp.org>
31294
31295         Fix CVS-ism.
31296         * doc/gnulib.texi: Include updated-stamp.texi.
31297         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31298         (updated-stamp.texi): New rule.
31299         (gnulib.info): Depend on it.
31300         * doc/.gitignore: Add updated-stamp.texi.
31301         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31302
31303 2008-06-19  Bruno Haible  <bruno@clisp.org>
31304
31305         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31306         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31307
31308 2008-06-19  Eric Blake  <ebb9@byu.net>
31309
31310         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31311         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31312         Reported by Stepan Kasal.
31313
31314 2008-06-18  Bruno Haible  <bruno@clisp.org>
31315
31316         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31317         Reported by Eric Blake.
31318
31319 2008-06-18  Eric Blake  <ebb9@byu.net>
31320
31321         Work around cygwin 1.5.25 strsignal bug.
31322         * tests/test-strsignal.c: Allow for const char *.
31323         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31324
31325 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31326
31327         * users.txt: Update URL to article and add author/date
31328         information.
31329
31330 2008-06-17  Bruno Haible  <bruno@clisp.org>
31331
31332         New macro gl_DISABLE_THREADS.
31333         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31334         if the user did not pass --enable-threads or --disable-threads option.
31335         (gl_DISABLE_THREADS): New macro.
31336         Reported by Eric Blake <ebb9@byu.net>.
31337
31338 2008-06-17  Bruno Haible  <bruno@clisp.org>
31339
31340         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31341         when the macro ignores it.
31342         Based on a patch by Eric Blake <ebb9@byu.net>.
31343
31344 2008-06-17  Bruno Haible  <bruno@clisp.org>
31345
31346         * modules/tls (License): Change to LGPLv2+.
31347         Reported by Eric Blake.
31348
31349 2008-06-17  Eric Blake  <ebb9@byu.net>
31350
31351         Simplify c-stack prerequisites.
31352         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31354         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31355         check.
31356         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31357         <sys/resource.h>.
31358
31359         Move c-stack test into testsuite.
31360         * modules/c-stack-tests: New file.
31361         * lib/c-stack.c [DEBUG]: Move test program...
31362         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31363         fail test if sigaltstack is lacking.
31364         * tests/test-c-stack.sh: New driver file.
31365
31366 2008-06-16  Eric Blake  <ebb9@byu.net>
31367
31368         Use raise module consistently.
31369         * modules/fatal-signal (Depends-on): Add raise.
31370         * modules/sigprocmask (Depends-on): Likewise.
31371         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31372         * lib/sigprocmask.c (sigprocmask): Likewise.
31373         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31374         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31375
31376         Fix compliance bug in sigpending.
31377         * lib/sigprocmask.c (sigpending): Return pending array via
31378         parameter, not return value.
31379
31380 2008-06-14  Eric Blake  <ebb9@byu.net>
31381
31382         Improve obstack-printf test code.
31383         * tests/test-obstack-printf.c (test_function): Fix comment, and
31384         simplify usage of obstack_* in macros.  Add a test for coverage.
31385         Reported by Bruno Haible.
31386
31387 2008-06-14  Bruno Haible  <bruno@clisp.org>
31388
31389         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31390         array size as a constant, not as a const variable.
31391         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31392         AC_USE_SYSTEM_EXTENSIONS.
31393         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31394         Test whether the obstack_printf function actually exists.
31395         * modules/obstack-printf (Depends-on): Add extensions.
31396         (Include): Remove obstack.h.
31397         * modules/obstack-printf-posix (Depends-on): Add extensions.
31398         (Include): Remove obstack.h.
31399
31400 2008-06-13  Eric Blake  <ebb9@byu.net>
31401
31402         Add obstack-printf and obstack-printf-posix modules.
31403         * modules/obstack-printf: New file.
31404         * modules/obstack-printf-posix: Likewise.
31405         * MODULES.html.sh (Misc): Mention them.
31406         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31407         Likewise.
31408         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31409         Likewise.
31410         * modules/stdio (Makefile.am): Accomodate new modules.
31411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31412         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31413         Declare.
31414         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31415         functions.
31416         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31417         (gl_REPLACE_OBSTACK_PRINTF): New macros
31418         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31419         * tests/test-obstack-printf.c: New file.
31420         * modules/obstack-printf-tests: Likewise.
31421         * modules/obstack-printf-posix-tests: Likewise.
31422
31423 2008-06-11  Bruno Haible  <bruno@clisp.org>
31424
31425         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31426         * lib/open.c: Include errno.h.
31427         (open): Fail when attempting to write to a file that has a trailing
31428         slash.
31429         * tests/test-open.c (main): Test against trailing slash bug.
31430         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31431
31432 2008-06-10  Bruno Haible  <bruno@clisp.org>
31433
31434         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31435         for $? to work inside the trap command, with various /bin/sh-s.
31436         * tests/test-vc-list-files-cvs.sh: Likewise.
31437
31438 2008-06-10  Bruno Haible  <bruno@clisp.org>
31439
31440         * lib/acl-internal.h: Don't include gettext.h here.
31441         * lib/set-mode-acl.c: Include gettext.h here.
31442         * lib/copy-acl.c: Likewise.
31443
31444 2008-06-10  Bruno Haible  <bruno@clisp.org>
31445
31446         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31447         * lib/wait-process.c (wait_subprocess): Likewise.
31448         * lib/execute.h (execute): Add termsigp argument.
31449         * lib/execute.c (execute): Likewise.
31450         * lib/csharpcomp.c (compile_csharp_using_pnet,
31451         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31452         * lib/csharpexec.c (execute_csharp_using_pnet,
31453         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31454         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31455         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31456         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31457         is_jikes_present): Update.
31458         * lib/javaexec.c (execute_java_class): Update.
31459         * lib/javaversion.c (execute_and_read_line): Update.
31460         * NEWS: Document the changes.
31461         Reported by Eric Blake.
31462
31463 2008-06-10  Eric Blake  <ebb9@byu.net>
31464
31465         Add missing include.
31466         * tests/test-strstr.c (includes): Add <signal.h>.
31467         * tests/test-strcasestr.c (includes): Likewise.
31468         * tests/test-memmem.c (includes): Likewise.
31469
31470 2008-06-10  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/wait-process.c (wait_subprocess): Add an assertion.
31473
31474 2008-06-10  Bruno Haible  <bruno@clisp.org>
31475
31476         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31477
31478 2008-06-10  Bruno Haible  <bruno@clisp.org>
31479
31480         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31481         using alarm().
31482         * tests/test-strcasestr.c (main): Likewise.
31483         * tests/test-strstr.c (main): Likewise.
31484
31485 2008-06-09  Bruno Haible  <bruno@clisp.org>
31486
31487         Work around the Solaris 10 ACE ACLs ABI change.
31488         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31489         declare if ACL_NO_TRIVIAL is present.
31490         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31491         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31492         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31493         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31494         define if ACL_NO_TRIVIAL is present.
31495         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31496         and use the current ABI.
31497         (file_has_acl): Use same #if condition as elsewhere.
31498         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31499         in use, and use the current ABI.
31500         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31501         Reported by Jim Meyering.
31502
31503 2008-06-09  Eric Blake  <ebb9@byu.net>
31504
31505         Work around environments that (stupidly) ignore SIGALRM.
31506         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31507         before using alarm().
31508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31510         Reported by Ian Beckwith <ianb@erislabs.net>.
31511
31512         Produce autobuild blurb earlier in log.
31513         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31514
31515 2008-06-09  Jim Meyering  <meyering@redhat.com>
31516         and OndÅ™ej Vašík  <ovasik@redhat.com>
31517
31518         utimens.c: correct kernel bug work-around
31519         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31520         failure, not success, and the kernel bug we're trying to work
31521         around affects not just the utimensat call, but also the fallback
31522         futimens call.
31523         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31524         not success.
31525         [HAVE_FUTIMENS]: Use the same work-around, here.
31526
31527 2008-06-09  Jim Meyering  <meyering@redhat.com>
31528
31529         add more guards around definition of ACE_-related code
31530         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31531         ALLOW and ACE_OWNER are also defined.
31532
31533 2008-06-08  Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/acl-internal.h: Add me as co-author.
31536         * lib/file-has-acl.c: Likewise.
31537         * lib/set-mode-acl.c: Likewise.
31538         * lib/copy-acl.c: Likewise.
31539
31540 2008-06-08  Bruno Haible  <bruno@clisp.org>
31541
31542         Add support for AIX ACLs.
31543         * lib/acl-internal.h (acl_nontrivial): New declaration.
31544         * lib/file-has-acl.c (acl_nontrivial): New function.
31545         (file_has_acl): Add implementation using AIX 4 ACL API.
31546         * lib/set-mode-acl.c (qset_acl): Likewise.
31547         * lib/copy-acl.c (qcopy_acl): Likewise.
31548
31549 2008-06-08  Bruno Haible  <bruno@clisp.org>
31550
31551         Add support for HP-UX ACLs.
31552         * lib/acl-internal.h (acl_nontrivial): New declaration.
31553         * lib/file-has-acl.c (acl_nontrivial): New function.
31554         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31555         * lib/set-mode-acl.c (qset_acl): Likewise.
31556         * lib/copy-acl.c (qcopy_acl): Likewise.
31557
31558 2008-06-08  Bruno Haible  <bruno@clisp.org>
31559
31560         Add support for Cygwin ACLs.
31561         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31562         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31563         the chmod_or_fchmod call.
31564         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31565
31566 2008-06-08  Bruno Haible  <bruno@clisp.org>
31567
31568         Fix bug with setuid modes in Solaris 10+ code.
31569         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31570         succeeded, when the mode contains some special bits.
31571
31572 2008-06-08  Bruno Haible  <bruno@clisp.org>
31573
31574         Add support for Solaris 7..10 ACLs.
31575         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31576         declarations.
31577         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31578         functions.
31579         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31580         * lib/set-mode-acl.c (qset_acl): Likewise.
31581         * lib/copy-acl.c (qcopy_acl): Likewise.
31582
31583 2008-06-08  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31586         declaration.
31587         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31588         (acl_access_nontrivial): Remove MacOS X case.
31589         (file_has_acl): Use acl_extended_nontrivial.
31590         * lib/copy-acl.c (qcopy_acl): Likewise.
31591
31592 2008-06-08  Bruno Haible  <bruno@clisp.org>
31593
31594         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31595
31596 2008-06-08  Jim Meyering  <meyering@redhat.com>
31597
31598         * modules/acl (Maintainer): Add Bruno Haible.
31599
31600 2008-06-07  Bruno Haible  <bruno@clisp.org>
31601
31602         Improve support for Tru64 ACLs.
31603         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31604         ACL on OSF/1.
31605
31606 2008-06-07  Bruno Haible  <bruno@clisp.org>
31607
31608         Add support for MacOS X ACLs.
31609         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31610         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31611         * lib/set-mode-acl.c (qset_acl): Likewise.
31612         * lib/copy-acl.c (qcopy_acl): Likewise.
31613
31614 2008-06-07  Bruno Haible  <bruno@clisp.org>
31615
31616         Fix memory leak introduced on 2008-05-22.
31617         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31618         use.
31619
31620 2008-06-07  Bruno Haible  <bruno@clisp.org>
31621
31622         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31623         to construct an empty ACL.
31624
31625 2008-06-07  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31628         precisely.
31629         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31630
31631 2008-06-07  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31634         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31635
31636 2008-06-07  Bruno Haible  <bruno@clisp.org>
31637
31638         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31639         regardless of POSIX.
31640         * doc/posix-functions/_longjmp.texi: Likewise.
31641         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31642         SystemV platform in this case.
31643
31644 2008-06-06  Eric Blake  <ebb9@byu.net>
31645
31646         Document abort() bugs.
31647         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31648
31649         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31650         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31651         sigsetjmp.
31652         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31653         siglongjmp, but only as a macro.
31654         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31655         is obsolete.
31656         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31657
31658         Tweak documentation to cover cygwin argz bugs.
31659         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31660         argz bug fix; no code change needed since no cygwin releases
31661         occurred between the last fix and the bug being tested.
31662         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31663         module and recently fixed cygwin bugs.
31664         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31665         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31666         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31667         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31668         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31669         Likewise.
31670         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31671         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31672         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31673         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31674         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31675         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31676         Likewise.
31677
31678         Avoid gcc warning on cygwin.
31679         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31680         !ACL_NO_TRIVIAL]: Avoid unused variable.
31681
31682 2008-06-05  Eric Blake  <ebb9@byu.net>
31683
31684         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31685         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31686         git-version-gen fails to come up with a version.
31687         Reported by Simon Josefsson.
31688
31689 2008-06-05  Jim Meyering  <meyering@redhat.com>
31690             Paul Eggert  <eggert@cs.ucla.edu>
31691
31692         utimens.c: work around a probable Linux kernel bug
31693         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31694         appears to be a kernel bug that causes utimensat to return 280
31695         instead of 0, indicating success.
31696
31697 2008-06-04  Bruno Haible  <bruno@clisp.org>
31698
31699         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31700         2008-06-01 commit.
31701
31702 2008-06-04  Bruno Haible  <bruno@clisp.org>
31703
31704         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31705         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31706         (file_has_acl): Use it. Save errno afterwards.
31707         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31708
31709 2008-06-03  Bruno Haible  <bruno@clisp.org>
31710
31711         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31712         draft code. Simplify #ifs.
31713         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31714         Put Solaris code after POSIX-draft code. Fix comments regarding
31715         Solaris 10, HP-UX. Mention Cygwin.
31716         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31717
31718 2008-06-03  Eric Blake  <ebb9@byu.net>
31719
31720         Provide fallback for older kernels.
31721         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31722         Provide runtime fallback if kernel lacks support.
31723         Reported by Mike Frysinger.
31724
31725 2008-06-02  Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31728         it exists.
31729
31730 2008-06-02  Bruno Haible  <bruno@clisp.org>
31731
31732         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31733         * lib/copy-acl.c (qcopy_acl): Update comment.
31734
31735 2008-06-02  Bruno Haible  <bruno@clisp.org>
31736
31737         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31738         like ACL APIs.
31739
31740 2008-06-02  Bruno Haible  <bruno@clisp.org>
31741
31742         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31743         * tests/test-set-mode-acl.sh: Likewise.
31744         * tests/test-copy-acl.sh: Likewise.
31745         * tests/test-copy-file.sh: Likewise.
31746
31747 2008-06-02  Bruno Haible  <bruno@clisp.org>
31748
31749         * tests/test-file-has-acl.sh: Remove unused code.
31750
31751 2008-06-01  Bruno Haible  <bruno@clisp.org>
31752
31753         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31754         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31755         messages.
31756         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31757
31758 2008-06-01  Bruno Haible  <bruno@clisp.org>
31759
31760         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31761         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31762         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31763         APIs.
31764         * modules/acl-tests (configure.ac): Remove tests now contained in
31765         m4/acl.m4.
31766
31767 2008-06-02  Jim Meyering  <meyering@redhat.com>
31768
31769         announce-gen: use a better key-server host name
31770         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31771         it may be more consistently reliable.  Suggested by Werner Koch
31772         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31773
31774 2008-06-01  Bruno Haible  <bruno@clisp.org>
31775
31776         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31777         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31778
31779 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31780
31781         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31782
31783 2008-06-01  Bruno Haible  <bruno@clisp.org>
31784
31785         New ACL tests.
31786         * tests/test-file-has-acl.sh: New file.
31787         * tests/test-file-has-acl.c: New file.
31788         * tests/test-set-mode-acl.sh: New file.
31789         * tests/test-set-mode-acl.c: New file.
31790         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31791         * tests/test-copy-acl.c: New file.
31792         * modules/acl-tests: New file, based on modules/copy-file-tests.
31793         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31794         (Depends-on): Add acl-tests.
31795         (configure.ac): Remove checks.
31796         (Makefile.am): Don't create test-sameacls program here any more.
31797
31798 2008-06-01  Bruno Haible  <bruno@clisp.org>
31799
31800         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31801         * tests/test-sameacls.c: Include progname.h.
31802         (main): Invoke set_program_name. Portability fixes for MacOS X,
31803         Solaris, HP-UX.
31804
31805 2008-06-01  Bruno Haible  <bruno@clisp.org>
31806
31807         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31808         function.
31809         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31810
31811 2008-06-01  Bruno Haible  <bruno@clisp.org>
31812
31813         * modules/rpmatch (Depends-on): Add strdup.
31814
31815 2008-06-01  Bruno Haible  <bruno@clisp.org>
31816
31817         * lib/pipe.c: Include unistd-safer.h.
31818         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31819         * modules/pipe (Depends-on): Add unistd-safer.
31820
31821 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31822
31823         * modules/autobuild (configure.ac): Call AB_INIT.
31824
31825 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31826
31827         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31828         Suggested by Bruno Haible <bruno@clisp.org>.
31829
31830 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31831
31832         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31833         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31834         <bruno@clisp.org>.
31835
31836 2008-05-29  Eric Blake  <ebb9@byu.net>
31837
31838         Prefer new POSIX 200x interfaces over futimesat.
31839         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31840         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31841         when available.
31842         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31843
31844 2008-05-28  Bruno Haible  <bruno@clisp.org>
31845
31846         * modules/stpcpy (License): Change to LGPLv2+.
31847         Requested by David Lutterkort <dlutter@redhat.com>.
31848
31849 2008-05-27  Bruno Haible  <bruno@clisp.org>
31850
31851         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31852         current mingw.
31853         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31854
31855 2008-05-27  Bruno Haible  <bruno@clisp.org>
31856
31857         * modules/iconv_open (Link): New section, from module 'iconv'.
31858         * modules/striconv (Link): Likewise.
31859         * modules/striconveh (Link): Likewise.
31860         * modules/xstriconv (Link): Likewise.
31861         * modules/unicodeio (Link): Likewise.
31862         * modules/propername (Link): Likewise.
31863         Reported by Jim Meyering.
31864
31865 2008-05-26  Jim Meyering  <meyering@redhat.com>
31866
31867         sha256: do not artificially restrict buffer length to be < 2^32
31868         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
31869         uint32_t to size_t.
31870         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
31871         to match.
31872
31873         avoid unaligned access errors, e.g., on sparc
31874         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
31875         direct access through a possibly-unaligned uint64* pointer.
31876         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
31877         direct access through a possibly-unaligned uint32* pointer.
31878         Prompted by this patch from Tom "spot" Callaway:
31879         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
31880
31881         sha512.c: fix typo in comment
31882         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
31883
31884 2008-05-25  Bruno Haible  <bruno@clisp.org>
31885
31886         * lib/set-mode-acl.c: Renamed from lib/acl.c.
31887         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
31888         (Makefile.am): Update lib_SOURCES.
31889
31890 2008-05-25  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
31893
31894 2008-05-25  Jim Meyering  <meyering@redhat.com>
31895
31896         useless-if-before-free: freed expr may have white-space differences
31897         * build-aux/useless-if-before-free: Recognize cases in which the
31898         freed expression differs from the tested one in embedded white
31899         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
31900         $1 was used, so we can't make any regexp shy.  Improved tests now
31901         detect this.
31902
31903         useless-if-before-free: accept white space in the expression.
31904         * build-aux/useless-if-before-free: For now, any white space
31905         in the expression must be identical in the free argument.
31906
31907         useless-if-before-free: efficiency tweak
31908         * build-aux/useless-if-before-free: Make the expression-matching
31909         regexp "shy".
31910         Make the *outer* regexp shy, not the expr-matching one.
31911
31912         update code-in-comment to accept cast of free arg
31913         * build-aux/useless-if-before-free: Update regexp.
31914
31915 2008-05-25  Bruno Haible  <bruno@clisp.org>
31916
31917         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
31918         * modules/copy-file-tests (Files, Makefile.am): Update.
31919         * tests/test-copy-file.c (func_test_copy): Update.
31920
31921 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
31922
31923         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
31924
31925 2008-05-23  Bruno Haible  <bruno@clisp.org>
31926
31927         Improve support for ACLs on OSF/1.
31928         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
31929         Remove fallback for unknown flavors of ACLs.
31930
31931 2008-05-22  Bruno Haible  <bruno@clisp.org>
31932
31933         Add support for ACLs on OSF/1.
31934         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
31935         replacements.
31936         (acl_free_text): New macro fallback.
31937         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
31938         acl_free.
31939         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
31940         acl_free_text function. Require AC_C_INLINE.
31941
31942 2008-05-22  Bruno Haible  <bruno@clisp.org>
31943
31944         Make copy_acl work on MacOS X 10.5.
31945         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
31946         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
31947         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
31948         If MODE_INSIDE_ACL, don't assume that every system has the same text
31949         representation for ACLs as FreeBSD.
31950         * lib/copy-acl.c (copy_acl): Add support for platforms with
31951         !MODE_INSIDE_ACL.
31952         * lib/file-has-acl.c (file_has_acl): Likewise.
31953         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
31954         FreeBSD, MacOS X, or IRIX, respectively.
31955
31956 2008-05-22  Bruno Haible  <bruno@clisp.org>
31957
31958         * lib/acl.h: Don't include <sys/acl.h>.
31959         (GETACLCNT): Move fallback to lib/acl-internal.h.
31960         * lib/acl-internal.h: Include <sys/acl.h> here.
31961         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
31962
31963 2008-05-22  Bruno Haible  <bruno@clisp.org>
31964
31965         Split off copy_acl function to separate file.
31966         * lib/copy-acl.c: New file, extracted from lib/acl.c.
31967         * lib/acl.c (copy_acl): Moved function to separate file.
31968         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
31969         * modules/acl (Files): Add lib/copy-acl.c.
31970         (Makefiles.am): Augment lib_SOURCES.
31971
31972 2008-05-22  Bruno Haible  <bruno@clisp.org>
31973
31974         * modules/copy-file-tests: New file.
31975         * tests/test-copy-file.sh: New file.
31976         * tests/test-copy-file.c: New file.
31977         * tests/test-copy-file-sameacls.c: New file.
31978
31979 2008-05-22  Eric Blake  <ebb9@byu.net>
31980
31981         Avoid gcc warning.
31982         * tests/test-memcmp.c (main): Pass NULL indirectly.
31983
31984 2008-05-21  Bruno Haible  <bruno@clisp.org>
31985
31986         Add reference doc about ACLs.
31987         * doc/acl-resources.txt: New file.
31988         * doc/acl-cygwin.txt: New file.
31989
31990 2008-05-21  Bruno Haible  <bruno@clisp.org>
31991
31992         Avoid one more warning from gcc.
31993         * lib/vasnprintf.c (IF_LINT): Update comments.
31994         (VASNPRINTF): Use it also for the 'prefix' array initializer.
31995
31996 2008-05-21  Jim Meyering  <meyering@redhat.com>
31997
31998         avoid a warning from gcc
31999         * lib/vasnprintf.c (IF_LINT): Define.
32000         (scale10_round_decimal_long_double):
32001         Use it to avoid a "may be used uninitialized" warning.
32002         (scale10_round_decimal_double): Likewise.
32003
32004 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32005
32006         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32007         declared.
32008
32009 2008-05-20  Bruno Haible  <bruno@clisp.org>
32010
32011         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32012         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32013
32014 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32015
32016         * modules/memcmp-tests: New file.
32017         * tests/test-memcmp.c: New file.
32018
32019 2008-05-19  Bruno Haible  <bruno@clisp.org>
32020
32021         * modules/propername (Notice, configure.ac): Put quoted "..." into
32022         --keyword option.
32023         * lib/propername.h: Update comments accordingly.
32024         Reported by Eric Blake.
32025
32026 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32027
32028         * modules/getpass-gnu (Depends-on): Add fseeko.
32029
32030 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32031
32032         * modules/base64-tests: New file.
32033
32034 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32035
32036         * lib/base64.c (base64_decode_ctx): If a decode context structure
32037         was passed in use it to ignore newlines.  If a context structure
32038         was _not_ passed in, continue to treat newlines as garbage (this
32039         is the historical behavior).  Formerly base64_decode.
32040         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32041         takes a decode context structure.
32042         * lib/base64.h (base64_decode): Macro for four-argument calls.
32043         (base64_decode_alloc): Likewise.
32044         * lib/base64.c (base64_decode_ctx): If a decode context structure
32045         was passed in use it to ignore newlines.  If a context structure
32046         was _not_ passed in, continue to treat newlines as garbage (this
32047         is the historical behavior).  Formerly base64_decode.
32048         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32049         takes a decode context structure.
32050         * lib/base64.h (base64_decode): Macro for four-argument calls.
32051         (base64_decode_alloc): Likewise.
32052
32053 2008-05-19  Jim Meyering  <meyering@redhat.com>
32054
32055         avoid a warning from gcc
32056         * lib/trim.c (IF_LINT): Define.
32057         (trim2): Use it to avoid a "may be used uninitialized" warning.
32058
32059         Fix doc typo.
32060         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32061
32062 2008-05-19  Bruno Haible  <bruno@clisp.org>
32063
32064         * doc/glibc-functions/getpass.texi: Document limits of other
32065         implementations.
32066
32067 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32068             Bruno Haible <bruno@clisp.org>
32069
32070         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32071
32072 2008-05-18  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/propername: New file, from GNU gettext.
32075         * lib/propername.h: New file, from GNU gettext.
32076         * lib/propername.c: New file, from GNU gettext.
32077         * MODULES.html.sh (Internationalization functions): Add propername.
32078
32079 2008-05-16  Jim Meyering  <meyering@redhat.com>
32080             Bruno Haible  <bruno@clisp.org>
32081
32082         Avoid some warnings from "gcc -Wshadow".
32083         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32084
32085 2008-05-15  Eric Blake  <ebb9@byu.net>
32086
32087         Extend previous patch to cygwin 1.7.0.
32088         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32089         fast implementation in cygwin >= 1.7.0.
32090         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32092
32093 2008-05-15  Bruno Haible  <bruno@clisp.org>
32094
32095         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32096         implementation in glibc >= 2.9.
32097         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32099
32100 2008-05-15  Bruno Haible  <bruno@clisp.org>
32101
32102         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32103         (Unicode string functions): Add unilbrk/*.
32104         Reported by Karl Berry.
32105
32106 2008-05-15  Eric Blake  <ebb9@byu.net>
32107
32108         Fix violation of <stdbool.h> replacement in regex.
32109         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32110         * lib/regexec.c (re_search_internal): Likewise.
32111         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32112
32113 2008-05-15  Jim Meyering  <meyering@redhat.com>
32114
32115         avoid distracting test output when git or cvs is not found
32116         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32117         * tests/test-vc-list-files-git.sh: Likewise.
32118
32119 2008-05-15  Eric Blake  <ebb9@byu.net>
32120
32121         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32122         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32123         glibc version.
32124         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32125         * doc/posix-functions/strstr.texi (strstr): Likewise.
32126         * lib/str-two-way.h (MAX): Sychronize with glibc.
32127
32128 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32129
32130         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32131         opr.ctx_type.
32132         (calc_first): Initialize constraint field.
32133         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32134         Fix grammar.
32135         (duplicate_node): Merge constraint field for all node types.
32136         (calc_eclosure_iter): Look at constraint field for all node types.
32137         * lib/regex_internal.c (create_cd_newstate): Don't look at
32138         opr.ctx_type.
32139
32140 2008-05-14  Bruno Haible  <bruno@clisp.org>
32141
32142         Help GCC to do better code generation.
32143         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32144         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32145         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32146         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32147         Declare with attribute 'malloc' if supported.
32148
32149 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32150
32151         use "echo STR|wc -c" rather than unportable "expr length STR"
32152         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32153         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32154
32155 2008-05-14  Jim Meyering  <meyering@redhat.com>
32156
32157         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32158         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32159         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32160         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32161         via Collin Lasse.
32162
32163 2008-05-14  Eric Blake  <ebb9@byu.net>
32164
32165         Avoid quadratic growth in gl_LIBSOURCES.
32166         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32167         Suggested by Bruno Haible.
32168
32169         Test xmemdup0.
32170         * modules/xmemdup0-tests: New file.
32171         * tests/test-xmemdup0.c: Likewise.
32172
32173 2008-05-13  Eric Blake  <ebb9@byu.net>
32174
32175         Split xmemdup0 into its own module.
32176         * modules/xmemdup0: New file.
32177         * lib/xmemdup0.h: Likewise.
32178         * lib/xmemdup0.c: Likewise.
32179         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32180         * lib/xalloc.h (xmemdup0): Remove.
32181         * lib/xmalloc.c (xmemdup0): Likewise.
32182
32183 2008-05-13  Eric Blake  <ebb9@byu.net>
32184             Bruno Haible  <bruno@clisp.org>
32185
32186         Reduce number of forks required during autoconf.
32187         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32188         and gl_LIBSOURCES_DIR.
32189         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32190         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32191         m4_syscmd per file.
32192         <m4_foreach_w>: Move...
32193         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32194
32195 2008-05-13  Eric Blake  <ebb9@byu.net>
32196
32197         * gnulib-tool: Fix various comment typos.
32198
32199 2008-05-12  Bruno Haible  <bruno@clisp.org>
32200
32201         Tailor the linebreaking algorithm.
32202         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32203
32204 2008-05-12  Bruno Haible  <bruno@clisp.org>
32205
32206         Update to Unicode 5.0.0.
32207         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32208         LBP_JV, LBP_JT. Redistribute values.
32209         (unilbrk_table): Change size.
32210         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32211         Unicode TR#14 rev. 22.
32212         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32213         LBP_JV, LBP_JT. Redistribute values.
32214         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32215         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32216         Update.
32217         * lib/unilbrk/lbrkprop1.h: Regenerated.
32218         * lib/unilbrk/lbrkprop2.h: Regenerated.
32219         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32220         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32221         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32222         Likewise.
32223         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32224         Likewise.
32225         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32226         result.
32227         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32228         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32229         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32230         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32231         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32232         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32233
32234 2008-05-11  Bruno Haible  <bruno@clisp.org>
32235
32236         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32237
32238 2008-05-11  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32241         * modules/unilbrk/gen-lbrk: New file.
32242
32243 2008-05-11  Bruno Haible  <bruno@clisp.org>
32244
32245         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32246         * m4/sha512.m4 (gl_SHA512): Likewise.
32247
32248 2008-05-11  Jim Meyering  <meyering@redhat.com>
32249
32250         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32251         * modules/crypto/sha256: New file.
32252         * modules/crypto/sha512: Likewise.
32253         * lib/sha256.c: Likewise.
32254         * lib/sha256.h: Likewise.
32255         * lib/sha512.c: Likewise.
32256         * lib/sha512.h: Likewise.
32257         * lib/u64.h: Likewise.
32258         * m4/sha256.m4: Likewise.
32259         * m4/sha512.m4: Likewise.
32260         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32261
32262 2008-05-10  Bruno Haible  <bruno@clisp.org>
32263
32264         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32265         (Input/Output <stdio.h>): Add xprintf.
32266         (Signal handling <signal.h>): Add strsignal.
32267         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32268         (Core language properties): Add func.
32269         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32270         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32271         strings.
32272         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32273         (Input/output): New section.
32274         (File system functions): Add openat-die, stat-macros.
32275         (Networking functions): Add sockets.
32276         (Unicode string functions): Add unictype/*.
32277         (Support for building libraries and executables): Add gperf.
32278         (Support for building documentation): Add agpl-3.0.
32279         (Misc): Add nocrash.
32280
32281 2008-05-10  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/unictype/gen-ctype: New file.
32284
32285 2008-05-10  Jim Meyering  <meyering@redhat.com>
32286
32287         Make chdir-safer.c more efficient on a system with no symlinks.
32288         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32289         also if ELOOP is zero.  Suggested by Bruno Haible.
32290
32291         Make chdir-safer.c slightly safer.
32292         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32293         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32294
32295         Avoid compile failure on systems without ELOOP (like mingw).
32296         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32297         Reported by Bruno Haible.
32298
32299 2008-05-10  Bruno Haible  <bruno@clisp.org>
32300
32301         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32302         (is_utf8_encoding): Use a case-insensitive comparison.
32303         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32304         streq.
32305
32306 2008-05-10  Bruno Haible  <bruno@clisp.org>
32307
32308         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32309         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32310         * lib/unilbrk/ulc-common.h (iconv_string_length,
32311         iconv_string_keeping_offsets): Remove declarations.
32312         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32313         Don't include <iconv.h>, streq.h, xsize.h.
32314         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32315         conversion.
32316         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32317         <iconv.h>, streq.h, xsize.h.
32318         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32319         conversion.
32320         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32321         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32322         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32323         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32324
32325 2008-05-10  Bruno Haible  <bruno@clisp.org>
32326
32327         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32328         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32329
32330         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32331         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32332
32333         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32334         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32335
32336         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32337         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32338
32339         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32340         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32341
32342         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32343         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32344
32345         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32346         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32347
32348         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32349         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32350
32351 2008-05-10  Bruno Haible  <bruno@clisp.org>
32352
32353         Split up 'linebreak' module.
32354         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32355         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32356         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32357         modifications.
32358         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32359         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32360         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32361         lib/linebreak.c.
32362         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32363         lib/linebreak.c.
32364         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32365         lib/linebreak.c.
32366         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32367         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32368         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32369         lib/linebreak.c.
32370         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32371         lib/linebreak.c.
32372         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32373         lib/linebreak.c.
32374         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32375         lib/linebreak.c.
32376         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32377         lib/linebreak.c.
32378         * modules/unilbrk/base: New file.
32379         * modules/unilbrk/tables: New file.
32380         * modules/unilbrk/u8-possible-linebreaks: New file.
32381         * modules/unilbrk/u16-possible-linebreaks: New file.
32382         * modules/unilbrk/u32-possible-linebreaks: New file.
32383         * modules/unilbrk/ulc-common: New file.
32384         * modules/unilbrk/ulc-possible-linebreaks: New file.
32385         * modules/unilbrk/u8-width-linebreaks: New file.
32386         * modules/unilbrk/u16-width-linebreaks: New file.
32387         * modules/unilbrk/u32-width-linebreaks: New file.
32388         * modules/unilbrk/ulc-width-linebreaks: New file.
32389         * lib/linebreak.h: Remove file.
32390         * lib/linebreak.c: Remove file.
32391         * m4/linebreak.m4: Remove file.
32392         * modules/linebreak: Remove file.
32393         * NEWS: Mention the changes.
32394
32395 2008-05-09  Eric Blake  <ebb9@byu.net>
32396
32397         Add xmemdup0.
32398         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32399         implementation.
32400         * lib/xmalloc.c (xmemdup0): New C implementation.
32401
32402 2008-05-08  Bruno Haible  <bruno@clisp.org>
32403
32404         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32405
32406 2008-05-07  Eric Blake  <ebb9@byu.net>
32407
32408         Support cross-compilation of <wctype.h>.
32409         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32410         AC_CACHE_CHECK.
32411
32412 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32413
32414         * build-aux/vc-list-files: Add support for bzr.
32415
32416 2008-05-03  Jim Meyering  <meyering@redhat.com>
32417
32418         avoid failed assertion with tight malloc
32419         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32420
32421 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32422
32423         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32424         are needed from arpa/inet.h.
32425         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32426         Reported by Bruno Haible.
32427
32428 2008-05-02  Jim Meyering  <meyering@redhat.com>
32429
32430         avoid compilation error on FreeBSD 6
32431         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32432
32433 2008-05-01  Jim Meyering  <meyering@redhat.com>
32434
32435         useless-if-before-free: correct --help's exit status description
32436         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32437         for one or more matches, etc.  Reported by Bruno Haible.
32438
32439         vc-list-files: make the stand-alone gnulib test work
32440         * modules/vc-list-files-tests (configure.ac):
32441         Define and AC_SUBST abs_aux_dir.
32442         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32443         $(abs_top_srcdir) to each script and having each of them
32444         duplicate the work of setting PATH, set PATH here, using
32445         the new variable, abs_aux_dir instead.
32446         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32447         * tests/test-vc-list-files-git.sh: Likewise.
32448         Reported by Bruno Haible.
32449
32450 2008-05-01  Bruno Haible  <bruno@clisp.org>
32451
32452         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32453         reallocation. Rename 'done' to 'found_delimiter'.
32454
32455 2008-05-01  Jim Meyering  <meyering@redhat.com>
32456
32457         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32458         * build-aux/vc-list-files: Use `...`, not $(...).
32459
32460 2008-04-30  Jim Meyering  <meyering@redhat.com>
32461
32462         add tests for vc-list-files
32463         * modules/vc-list-files-tests: New module.
32464         * tests/test-vc-list-files-cvs.sh: New file.
32465         * tests/test-vc-list-files-git.sh: New file.
32466
32467         avoid a warning from gcc
32468         * lib/getndelim2.c (IF_LINT): Define.
32469         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32470
32471         vc-list-files: work properly with build-aux/cvsu, too
32472         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32473         to all cvs-based clauses.
32474
32475         vc-list-files: work properly in the CVS+awk case, too
32476         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32477
32478         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32479         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32480         take more than one file argument, so .  Add quotes, just in case $dir
32481         ever contains a shell meta-character.  Prompted by Soren Hansen in
32482         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32483
32484 2008-04-29  Eric Blake  <ebb9@byu.net>
32485
32486         Optimize getndelim2 to use block operations when possible.
32487         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32488         freadseek, and memchr2.
32489         * lib/getndelim2.c (getndelim2): Use them for block reads.
32490
32491 2008-04-29  Bruno Haible  <bruno@clisp.org>
32492
32493         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32494         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32495         * modules/inet_ntop (Depends-on): Add extensions.
32496         * modules/inet_pton (Depends-on): Likewise.
32497         Reported by Simon Josefsson.
32498
32499 2008-04-29  Jim Meyering  <meyering@redhat.com>
32500
32501         When the is more than one match in a block, match all of them.
32502         * build-aux/useless-if-before-free: Iterate through each block
32503         until there are no more matches.
32504
32505         Fix broken useless-if-before-free script.
32506         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32507         the expression to match cast of argument to free-like function.
32508
32509 2008-04-29  Eric Blake  <ebb9@byu.net>
32510
32511         Use new header.
32512         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32513
32514 2008-04-29  Jim Meyering  <meyering@redhat.com>
32515
32516         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32517         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32518         by gnulib to exist and to declare e.g., inet_ntop.
32519         Don't include "inet_ntop.h", now removed.
32520
32521         * m4/arpa_inet_h.m4: Remove trailing blanks.
32522
32523 2008-04-29  Eric Blake  <ebb9@byu.net>
32524
32525         Silence valgrind on safe reads beyond potential array bounds.
32526         * lib/rawmemchr.valgrind: New file.
32527         * lib/strchrnul.valgrind: Likewise.
32528         * modules/rawmemchr (Files): Distribute new file.
32529         * modules/strchrnul (Files): Likewise.
32530         Suggested by Bruno Haible.
32531
32532 2008-04-29  Bruno Haible  <bruno@clisp.org>
32533
32534         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32535         (inet_ntop, inet_pton): Change portability warning's wording.
32536         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32537         Invoke gl_CHECK_NEXT_HEADERS.
32538         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32539         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32540         set ARPA_INET_H.
32541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32542         * modules/arpa_inet (Description): No longer only for systems that
32543         lack it.
32544         (Depends-on): Add include_next.
32545         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32546         HAVE_ARPA_INET_H.
32547
32548 2008-04-29  Jim Meyering  <meyering@redhat.com>
32549
32550         * modules/mkdir (License): Re-license as LGPLv2+.
32551
32552 2008-04-29  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/rawmemchr (Maintainer): Set to Eric.
32555         * modules/strchrnul (Maintainer): Likewise.
32556
32557 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32558
32559         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32560         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32561
32562         * modules/arpa_inet (arpa/inet.h): Use them.
32563
32564 2008-04-28  Eric Blake  <ebb9@byu.net>
32565
32566         Test getndelim2.
32567         * modules/getndelim2-tests: New file.
32568         * tests/test-getndelim2.c: Likewise.
32569         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32570         stream.
32571         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32572
32573         * MODULES.html.sh: Document new module.
32574
32575 2008-04-20  Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/c-stack.c (die): Use raise.
32578         * modules/c-stack (Depends-on): Add raise.
32579
32580 2008-04-28  Bruno Haible  <bruno@clisp.org>
32581
32582         Expect rpmatch to be declared.
32583         * lib/yesno.c (rpmatch): Remove declaration.
32584
32585         Declare rpmatch.
32586         * lib/stdlib.in.h (rpmatch): New declaration.
32587         * lib/rpmatch.c: Include <stdlib.h> first.
32588         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32589         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32590         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32591         HAVE_RPMATCH.
32592         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32593         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32594         (Include): Set to <stdlib.h>.
32595         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32596         HAVE_RPMATCH.
32597         * NEWS: Document the change.
32598
32599 2008-04-28  Bruno Haible  <bruno@clisp.org>
32600
32601         Change rpmatch to use nl_langinfo when appropriate.
32602         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32603         (N_): New macro.
32604         (localized_pattern): New function/macro.
32605         (try): Remove match, nomatch arguments. Copy the pattern into safe
32606         memory before caching it.
32607         (rpmatch): Use localized_pattern. Add translator comments.
32608         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32609         Suggested by Eric Blake.
32610         * modules/rpmatch (Depends-on): Add stdbool.
32611
32612 2008-04-28  Eric Blake  <ebb9@byu.net>
32613
32614         Add rawmemchr module, matching glibc.
32615         * modules/string (Makefile.am): New indicator.
32616         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32617         * lib/string.in.h (rawmemchr): Declare when appropriate.
32618         * modules/rawmemchr: New file.
32619         * m4/rawmemchr.m4: Likewise.
32620         * lib/rawmemchr.c: Likewise.
32621         * modules/rawmemchr-tests: Likewise.
32622         * tests/test-rawmemchr.c: Likewise.
32623         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32624         module.
32625         * modules/strchrnul (Depends-on): Add rawmemchr.
32626         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32627
32628         Whitespace cleanup.
32629         * tests/test-strchrnul.c: Reindent.
32630         * lib/strchrnul.c: Likewise.
32631
32632         Optimize and test strchrnul.
32633         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32634         * modules/strchrnul-tests: New file.
32635         * tests/test-strchrnul.c: Likewise.
32636
32637         Remove intprops dependency.
32638         * modules/memchr (Depends-on): Remove intprops.
32639         * modules/memrchr (Depends-on): Likewise.
32640         * modules/memchr2 (Depends-on): Likewise.
32641         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32642         * lib/memrchr.c (__memrchr): Likewise.
32643         * lib/memrchr2.c (memchr2): Likewise.
32644         Reported by Simon Josefsson.
32645
32646 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32647
32648         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32649         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32650
32651 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32652
32653         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32654
32655         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32656
32657         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32658
32659         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32660         declarations.
32661         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32662
32663         * m4/inet_pton.m4: Don't check for header files.
32664
32665         * m4/inet_ntop.m4: Don't check for header files.
32666
32667 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32668
32669         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32670         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32671         trigger for cygwin).
32672         Reported by Bruno Haible  <bruno@clisp.org>.
32673
32674 2008-04-28  Bruno Haible  <bruno@clisp.org>
32675
32676         * doc/posix-functions/strdup.texi: Mention mingw problem.
32677
32678 2008-04-27  Bruno Haible  <bruno@clisp.org>
32679
32680         * modules/stat-time-tests (Depends-on): Add sleep.
32681         * tests/test-stat-time.c (force_unlink): New function.
32682         (cleanup): Use it.
32683         (test_mtime): Remove the ctime related tests.
32684         (test_ctime): New function, containing the ctime related tests.
32685         (main): Call test_ctime, except on native Windows platforms.
32686
32687 2008-04-27  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/rpmatch.c (rpmatch): Add some comments.
32690         Reported by James Youngman <jay@gnu.org>.
32691
32692 2008-04-27  Bruno Haible  <bruno@clisp.org>
32693
32694         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32695         quiet NaNs.
32696
32697 2008-04-27  Bruno Haible  <bruno@clisp.org>
32698
32699         Make test-yesno.sh work on mingw.
32700         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32701         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32702         (main): Set stdin to binary mode.
32703         * modules/yesno-tests (Depends-on): Add binary-io.
32704
32705 2008-04-27  Bruno Haible  <bruno@clisp.org>
32706
32707         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32708         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32709         argument that lie outside the IEEE 854 domain.
32710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32711         (gl_ISFINITE): Use it.
32712         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32713
32714 2008-04-27  Bruno Haible  <bruno@clisp.org>
32715
32716         Allow local renaming in config.h.
32717         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32718
32719 2008-04-27  Bruno Haible  <bruno@clisp.org>
32720
32721         * lib/memchr.c (__memchr): Change type of 'i'.
32722         * lib/memchr2.c (memchr2): Likewise.
32723
32724 2008-04-26  Eric Blake  <ebb9@byu.net>
32725         and Bruno Haible  <bruno@clisp.org>
32726
32727         Optimize and test memrchr.
32728         * modules/memrchr (Depends-on): Add intprops.
32729         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32730         * modules/memrchr-tests: New file.
32731         * tests/test-memrchr.c: New file.
32732
32733 2008-04-26  Bruno Haible  <bruno@clisp.org>
32734
32735         Add tentative support for DragonFly BSD.
32736         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32737         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32738         fp.
32739         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32740         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32741         * lib/fpurge.c (fpurge): Likewise.
32742         * lib/freadable.c (freaadable): Likewise.
32743         * lib/freadahead.c (freadahead): Likewise.
32744         * lib/freading.c (freading): Likewise.
32745         * lib/freadptr.c (freadptr): Likewise.
32746         * lib/freadseek.c (freadptrinc): Likewise.
32747         * lib/fseeko.c (fseeko): Likewise.
32748         * lib/fseterr.c (fseterr): Likewise.
32749         * lib/fwritable.c (fwritable): Likewise.
32750         * lib/fwriting.c (fwriting): Likewise.
32751
32752 2008-04-26  Bruno Haible  <bruno@clisp.org>
32753
32754         * lib/stdio-impl.h: New file.
32755         * lib/fbufmode.c: Include stdio-impl.h.
32756         (fbufmode): Use fp_, remove redundant #defines.
32757         * lib/fflush.c: Include stdio-impl.h.
32758         (clear_ungetc_buffer): Remove redundant #defines.
32759         * lib/fpurge.c: Include stdio-impl.h.
32760         (fpurge): Remove redundant #defines.
32761         * lib/freadable.c: Include stdio-impl.h.
32762         (freadable): Remove redundant #defines.
32763         * lib/freadahead.c: Include stdio-impl.h.
32764         (freadahead): Remove redundant #defines.
32765         * lib/freading.c: Include stdio-impl.h.
32766         (freading): Remove redundant #defines.
32767         * lib/freadptr.c: Include stdio-impl.h.
32768         (freadptr): Remove redundant #defines.
32769         * lib/freadseek.c: Include stdio-impl.h.
32770         (freadptrinc): Remove redundant #defines.
32771         * lib/fseeko.c: Include stdio-impl.h.
32772         (rpl_fseeko): Remove redundant #defines.
32773         * lib/fseterr.c: Include stdio-impl.h.
32774         (fseterr): Remove redundant #defines.
32775         * lib/fwritable.c: Include stdio-impl.h.
32776         (fwritable: Remove redundant #defines.
32777         * lib/fwriting.c: Include stdio-impl.h.
32778         (fwriting): Remove redundant #defines.
32779         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32780         * modules/fflush (Files): Likewise.
32781         * modules/fpurge (Files): Likewise.
32782         * modules/freadable (Files): Likewise.
32783         * modules/freadahead (Files): Likewise.
32784         * modules/freading (Files): Likewise.
32785         * modules/freadptr (Files): Likewise.
32786         * modules/freadseek (Files): Likewise.
32787         * modules/fseeko (Files): Likewise.
32788         * modules/fseterr (Files): Likewise.
32789         * modules/fwritable (Files): Likewise.
32790         * modules/fwriting (Files): Likewise.
32791
32792 2008-04-26  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32795         restore_seek_optimization, update_fpos_cache): New functions, extracted
32796         from rpl_fflush.
32797         (rpl_fflush): Use them.
32798         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32799         (gl_REPLACE_FFLUSH): Use it.
32800
32801 2008-04-26  Bruno Haible  <bruno@clisp.org>
32802
32803         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32804         on Solaris.
32805         * tests/test-xstrtoimax.sh: Likewise.
32806         * tests/test-xstrtoumax.sh: Likewise.
32807         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32808
32809 2008-04-26  Bruno Haible  <bruno@clisp.org>
32810
32811         * modules/memchr-tests: New file.
32812         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32813
32814 2008-04-26  Eric Blake  <ebb9@byu.net>
32815             Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/memchr.c: Include intprops.h.
32818         (__memchr): Optimize parallel detection of matching bytes. Rename local
32819         variables. Add explanatory comments.
32820
32821 2008-04-26  Bruno Haible  <bruno@clisp.org>
32822
32823         Fix module 'memchr', broken since 2000-10-28.
32824         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32825
32826 2008-04-26  Bruno Haible  <bruno@clisp.org>
32827
32828         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32829         comments.
32830
32831 2008-04-25  Eric Blake  <ebb9@byu.net>
32832
32833         Use native fstatat on cygwin 1.7.0.
32834         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32835         first.
32836
32837 2008-04-23  Eric Blake  <ebb9@byu.net>
32838
32839         Improve memchr2 performance.
32840         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32841         NUL bytes.
32842         * modules/memchr2 (Depends-on): Use intprops.h.
32843
32844 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32845
32846         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32847         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32848         <blp@cs.stanford.edu>.
32849
32850 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32851
32852         * lib/arpa_inet.in.h: New file.
32853
32854         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32855         (Makefile.am): Sed in substitute header file.
32856
32857         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32858         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32859
32860         * modules/inet_ntop (configure.ac): Use
32861         gl_ARPA_INET_MODULE_INDICATOR.
32862
32863         * modules/inet_pton (configure.ac): Use
32864         gl_ARPA_INET_MODULE_INDICATOR.
32865
32866 2008-04-22  Jim Meyering  <meyering@redhat.com>
32867
32868         * modules/verify (License): Re-license as LGPLv2+.
32869
32870 2008-04-22  Simon Josefsson  <simon@josefsson.org>
32871
32872         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
32873         parameter to void* as per POSIX standard (MinGW uses char*).
32874
32875 2008-04-21  Bruno Haible  <bruno@clisp.org>
32876
32877         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
32878         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
32879         Define to replacements if REPLACE_ISWCNTRL is 1.
32880         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
32881         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
32882         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
32883         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
32884         what it fixes.
32885         * doc/posix-functions/iswalpha.texi: Likewise.
32886         * doc/posix-functions/iswblank.texi: Likewise.
32887         * doc/posix-functions/iswcntrl.texi: Likewise.
32888         * doc/posix-functions/iswdigit.texi: Likewise.
32889         * doc/posix-functions/iswgraph.texi: Likewise.
32890         * doc/posix-functions/iswlower.texi: Likewise.
32891         * doc/posix-functions/iswprint.texi: Likewise.
32892         * doc/posix-functions/iswpunct.texi: Likewise.
32893         * doc/posix-functions/iswspace.texi: Likewise.
32894         * doc/posix-functions/iswupper.texi: Likewise.
32895         * doc/posix-functions/iswxdigit.texi: Likewise.
32896         Reported by Alain Guibert.
32897
32898 2008-04-21  Bruno Haible  <bruno@clisp.org>
32899
32900         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32901         Patch by Alain Guibert.
32902
32903 2008-04-21  Bruno Haible  <bruno@clisp.org>
32904
32905         Fix test failures on mingw.
32906         * tests/test-xstrtol.c (print_no_progname): New function.
32907         (main): Install it in error_print_progname hook.
32908         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
32909         * tests/test-xstrtoimax.sh: Likewise.
32910         * tests/test-xstrtoumax.sh: Likewise.
32911
32912 2008-04-21  Bruno Haible  <bruno@clisp.org>
32913
32914         Fix test failure on mingw.
32915         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
32916
32917 2008-04-21  Bruno Haible  <bruno@clisp.org>
32918
32919         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
32920         Actually assign a value.
32921
32922 2008-04-20  Bruno Haible  <bruno@clisp.org>
32923
32924         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
32925         take 2.
32926         * lib/canonicalize.c (canonicalize_file_name): Elide if the
32927         'canonicalize-lgpl' module is also used.
32928         * lib/canonicalize-lgpl.c: Undo last change.
32929         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
32930
32931 2008-04-20  Bruno Haible  <bruno@clisp.org>
32932
32933         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
32934         config.h. Provide _mkdir based fallback for mingw.
32935         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
32936         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
32937         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
32938         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
32939         rather than defining mkdir in config.h.
32940         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
32941         (gl_SYS_STAT_H_DEFAULTS): New macro.
32942         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
32943         HAVE_IO_H any more.
32944         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
32945         HAVE_DECL_MKDIR and HAVE_IO_H.
32946
32947 2008-04-20  Bruno Haible  <bruno@clisp.org>
32948
32949         * lib/isapipe.c: Port to native Windows platforms.
32950
32951 2008-04-20  Bruno Haible  <bruno@clisp.org>
32952
32953         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
32954
32955 2008-04-21  Eric Blake  <ebb9@byu.net>
32956
32957         Work around preprocessors that don't handle UINTMAX_MAX.
32958         * lib/memchr2.c (memchr2): Avoid embedded #if.
32959         Reported by Alain Guibert, fix suggested by Bruno Haible.
32960
32961 2008-04-21  Simon Josefsson  <simon@josefsson.org>
32962
32963         * doc/posix-functions/strftime.texi (strftime): Explain better
32964         Windows incompatibility.  Suggested by Micah Cowan
32965         <micah@cowan.name>.
32966
32967 2008-04-20  Bruno Haible  <bruno@clisp.org>
32968
32969         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
32970         unistr/u8-mblen.
32971
32972 2008-04-20  Bruno Haible  <bruno@clisp.org>
32973
32974         Fix test failure on platforms with non-GNU iconv.
32975         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
32976         (U_TO_U8): Use it, rather than u16_to_u8.
32977         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
32978         units at the end of the input string.
32979         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
32980
32981 2008-04-20  Bruno Haible  <bruno@clisp.org>
32982
32983         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
32984         when the resulting length is 0.
32985         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
32986
32987 2008-04-20  Bruno Haible  <bruno@clisp.org>
32988
32989         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
32990         works.
32991         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
32992
32993 2008-04-20  Bruno Haible  <bruno@clisp.org>
32994
32995         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
32996         * modules/tsearch-tests (configure.ac): Test for initstate function.
32997
32998 2008-04-20  Bruno Haible  <bruno@clisp.org>
32999
33000         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33001         for nlink_t if missing.
33002         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33003
33004 2008-04-19  Bruno Haible  <bruno@clisp.org>
33005
33006         Work around snprintf bug on Linux libc5.
33007         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33008         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33009         gl_SNPRINTF_SIZE1.
33010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33011         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33012         that test failed.
33013         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33014         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33015         * modules/snprintf (Files): Add m4/printf.m4.
33016         * modules/vsnprintf (Files): Likewise.
33017         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33018         * doc/posix-functions/vsnprintf.texi: Likewise.
33019
33020 2008-04-19  Bruno Haible  <bruno@clisp.org>
33021
33022         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33023         from 0.0058 to less than 10^-7.
33024
33025 2008-04-19  Bruno Haible  <bruno@clisp.org>
33026
33027         Fix rounding when a precision is given.
33028         * lib/vasnprintf.c (is_borderline): New function.
33029         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33030         9...9x.
33031         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33032         %e, %g.
33033         * tests/test-vasprintf-posix.c (test_function): Likewise.
33034         * tests/test-snprintf-posix.h (test_function): Likewise.
33035         * tests/test-sprintf-posix.h (test_function): Likewise.
33036         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33037         * tests/test-printf-posix.h (test_function): Likewise.
33038         * tests/test-printf-posix.output: Update.
33039         Reported by John Darrington <john@darrington.wattle.id.au> via
33040         Ben Pfaff <blp@cs.stanford.edu>.
33041
33042 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33043
33044         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33045         Suggested by Bruno Haible <bruno@clisp.org>.
33046
33047 2008-04-17  Bruno Haible  <bruno@clisp.org>
33048
33049         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33050         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33051         implementation.
33052         Patch by Bruce Merry <bmerry@gmail.com>.
33053
33054 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33055
33056         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33057         doesn't work under Windows.
33058
33059 2008-04-16  Bruno Haible  <bruno@clisp.org>
33060
33061         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33062         New macros.
33063         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33064         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33065         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33066         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33067         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33068         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33069         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33070         macros.
33071         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33072         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33073         Northern Sotho, Uighur.
33074
33075 2008-04-16  Bruno Haible  <bruno@clisp.org>
33076
33077         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33078         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33079         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33080         Reported by Daniel Bergström <daniel@octocode.com>.
33081
33082 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33083             Bruno Haible  <bruno@clisp.org>
33084
33085         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33086         function.
33087         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33088         New functions, mostly extracted from gl_locale_name_default.
33089         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33090
33091 2008-04-16  Eric Blake  <ebb9@byu.net>
33092
33093         Adjust strtod detection to catch glibc 2.7 bug.
33094         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33095         Reported by John Gatewood Ham.
33096
33097 2008-04-16  Bruno Haible  <bruno@clisp.org>
33098
33099         Add tentative support for Linux libc5.
33100         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33101         * lib/fpurge.c (fpurge): Likewise.
33102         * lib/freadable.c (freadable): Likewise.
33103         * lib/freadahead.c (freadahead): Likewise.
33104         * lib/freading.c (freading): Likewise.
33105         * lib/freadptr.c (freadptr): Likewise.
33106         * lib/freadseek.c (freadptrinc): Likewise.
33107         * lib/fseeko.c (rpl_fseeko): Likewise.
33108         * lib/fseterr.c (fseterr): Likewise.
33109         * lib/fwritable.c (fwritable): Likewise.
33110         * lib/fwriting.c (fwriting): Likewise.
33111         Reported by Alain Guibert <alguibert+bts@free.fr>.
33112
33113 2008-04-15  Bruno Haible  <bruno@clisp.org>
33114
33115         * modules/mathl (configure.ac): Define module indicator.
33116
33117 2008-04-15  Bruno Haible  <bruno@clisp.org>
33118
33119         * lib/logl.c (logl): Remove unused variables.
33120
33121 2008-04-15  Bruno Haible  <bruno@clisp.org>
33122
33123         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33124         fails.
33125
33126 2008-04-15  Bruno Haible  <bruno@clisp.org>
33127
33128         * lib/trim.c (trim2): Fix argument of isspace() macro.
33129
33130 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33131
33132         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33133         to 0.
33134         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33135
33136 2008-04-14  Bruno Haible  <bruno@clisp.org>
33137
33138         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33139         AC_LANG_PROGRAM argument.
33140         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33141         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33143         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33144         * m4/math_h.m4 (gl_MATH_H): Likewise.
33145         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33147         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33148         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33149         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33150         * m4/regex.m4 (gl_REGEX): Likewise.
33151         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33152         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33156         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33157         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33158         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33159
33160 2008-04-14  Jim Meyering  <meyering@redhat.com>
33161
33162         test-strtod: fix typos: s/abs/fabs/
33163         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33164
33165 2008-04-13  Bruno Haible  <bruno@clisp.org>
33166
33167         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33168         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33169         module is also used and while not building the reloc-wrapper.
33170
33171 2008-04-13  Bruno Haible  <bruno@clisp.org>
33172
33173         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33174
33175 2008-04-13  Bruno Haible  <bruno@clisp.org>
33176
33177         Fix AIX compilation failure introduced on 2008-04-02.
33178         * tests/test-frexp.c (exp): Undefine before redefining.
33179         * tests/test-frexpl.c (exp): Likewise.
33180
33181 2008-04-13  Bruno Haible  <bruno@clisp.org>
33182
33183         Work around a HP-UX stdio bug.
33184         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33185         * tests/test-ftello.c (main): Likewise.
33186         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33187         * doc/posix-functions/ftello.texi: Likewise.
33188
33189 2008-04-13  Bruno Haible  <bruno@clisp.org>
33190
33191         Make test-signbit pass on HP-UX/hppa.
33192         * tests/test-signbit.c (minus_zerol): New variable.
33193         (test_signbitl): Use it.
33194
33195 2008-04-13  Bruno Haible  <bruno@clisp.org>
33196
33197         Make truncl work on OSF/1 4.0.
33198         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33199         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33200         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33202         HAVE_DECL_TRUNCL.
33203         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33204         HAVE_DECL_TRUNCL.
33205         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33206
33207 2008-04-13  Bruno Haible  <bruno@clisp.org>
33208
33209         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33210
33211 2008-04-13  Bruno Haible  <bruno@clisp.org>
33212
33213         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33214         expression, so as to avoid HP-UX 11 cc compiler bug.
33215
33216 2008-04-13  Bruno Haible  <bruno@clisp.org>
33217
33218         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33219
33220 2008-04-13  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/git-merge-changelog.c: Remove empty declaration outside of
33223         functions.
33224
33225 2008-04-13  Bruno Haible  <bruno@clisp.org>
33226
33227         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33228
33229 2008-04-13  Bruno Haible  <bruno@clisp.org>
33230
33231         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33232         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33234         also if it exists but lacks definitions of the SHUT_* macros.
33235         * modules/sys_socket (Description): Update.
33236         Reported by Elbert Pol <e.pol@chello.nl>.
33237
33238 2008-04-13  Bruno Haible  <bruno@clisp.org>
33239
33240         * lib/localcharset.c (OS2): Don't redefine if already defined.
33241         Reported by Elbert Pol <e.pol@chello.nl>.
33242
33243 2008-04-13  Bruno Haible  <bruno@clisp.org>
33244
33245         * lib/binary-io.h [__EMX__]: Include <io.h>.
33246         Reported by Elbert Pol <e.pol@chello.nl>.
33247
33248 2008-04-12  Bruno Haible  <bruno@clisp.org>
33249
33250         * lib/fpucw.h: Enable the definitions also for x86_64.
33251         Needed for NetBSD/x86_64.
33252         Reported by Thomas Klausner <tk@giga.or.at>.
33253
33254 2008-04-12  Bruno Haible  <bruno@clisp.org>
33255
33256         * tests/test-strtod.c: Include isnand.h.
33257         (main): Use isnand instead of isnan.
33258         Reported by Jim Meyering.
33259
33260 2008-04-12  Bruno Haible  <bruno@clisp.org>
33261
33262         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33263         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33264
33265 2008-04-12  Jim Meyering  <meyering@redhat.com>
33266
33267         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33268
33269 2008-04-12  Bruno Haible  <bruno@clisp.org>
33270
33271         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33272         Reported by Elbert Pol <e.pol@chello.nl>.
33273
33274 2008-04-12  Eric Blake  <ebb9@byu.net>
33275
33276         Work around Solaris 10 math.h bug.
33277         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33278         (gl_MATH_H_DEFAULTS): Set up default.
33279         * modules/math (Makefile.am): Replace new indicators.
33280         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33281         * tests/test-math.c (main): Test this.
33282         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33283         * doc/posix-headers/math.texi (math.h): Mention bug.
33284         Reported by Nelson H. F. Beebe and Jim Meyering.
33285
33286 2008-04-11  Bruno Haible  <bruno@clisp.org>
33287
33288         Adapt to future versions of Apple GCC.
33289         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33290         Reported by Peter O'Gorman <peter@pogma.com>.
33291
33292 2008-04-11  Bruno Haible  <bruno@clisp.org>
33293
33294         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33295
33296 2008-04-11  Bruno Haible  <bruno@clisp.org>
33297
33298         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33299
33300         * modules/getaddrinfo-tests (Makefile.am): Define
33301         test_getaddrinfo_LDADD.
33302
33303 2008-04-11  Bruno Haible  <bruno@clisp.org>
33304
33305         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33306         (init): Fix syntax error.
33307         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33308         is declared.
33309
33310 2008-04-11  Bruno Haible  <bruno@clisp.org>
33311
33312         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33313         * modules/glob (Depends-on): Add stdbool.
33314
33315 2008-04-11  Bruno Haible  <bruno@clisp.org>
33316
33317         * lib/trim.c: Include <string.h>.
33318
33319 2008-04-11  Eric Blake  <ebb9@byu.net>
33320
33321         Avoid compile failure on OS/2.
33322         * lib/regex_internal.h (internal_function): Disable optimization
33323         on OS/2 (__EMX__), where it caused compiler error.
33324         Reported by Elbert Pol.
33325
33326 2008-04-11  Bruno Haible  <bruno@clisp.org>
33327
33328         Flush the standard error stream before aborting. Needed on mingw.
33329         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33330         * tests/test-array_list.c (ASSERT): Likewise.
33331         * tests/test-array_oset.c (ASSERT): Likewise.
33332         * tests/test-avltree_list.c (ASSERT): Likewise.
33333         * tests/test-avltree_oset.c (ASSERT): Likewise.
33334         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33335         * tests/test-binary-io.c (ASSERT): Likewise.
33336         * tests/test-byteswap.c (ASSERT): Likewise.
33337         * tests/test-c-ctype.c (ASSERT): Likewise.
33338         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33339         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33340         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33341         * tests/test-c-strstr.c (ASSERT): Likewise.
33342         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33343         * tests/test-canonicalize.c (ASSERT): Likewise.
33344         * tests/test-carray_list.c (ASSERT): Likewise.
33345         * tests/test-ceilf1.c (ASSERT): Likewise.
33346         * tests/test-ceilf2.c (ASSERT): Likewise.
33347         * tests/test-ceill.c (ASSERT): Likewise.
33348         * tests/test-count-one-bits.c (ASSERT): Likewise.
33349         * tests/test-fbufmode.c (ASSERT): Likewise.
33350         * tests/test-fflush2.c (ASSERT): Likewise.
33351         * tests/test-floorf1.c (ASSERT): Likewise.
33352         * tests/test-floorf2.c (ASSERT): Likewise.
33353         * tests/test-floorl.c (ASSERT): Likewise.
33354         * tests/test-fopen.c (ASSERT): Likewise.
33355         * tests/test-fpending.c (ASSERT): Likewise.
33356         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33357         * tests/test-fpurge.c (ASSERT): Likewise.
33358         * tests/test-freadable.c (ASSERT): Likewise.
33359         * tests/test-freadahead.c (ASSERT): Likewise.
33360         * tests/test-freading.c (ASSERT): Likewise.
33361         * tests/test-freadptr.c (ASSERT): Likewise.
33362         * tests/test-freadptr2.c (ASSERT): Likewise.
33363         * tests/test-freadseek.c (ASSERT): Likewise.
33364         * tests/test-freopen.c (ASSERT): Likewise.
33365         * tests/test-frexp.c (ASSERT): Likewise.
33366         * tests/test-frexpl.c (ASSERT): Likewise.
33367         * tests/test-fseek.c (ASSERT): Likewise.
33368         * tests/test-fseeko.c (ASSERT): Likewise.
33369         * tests/test-fstrcmp.c (ASSERT): Likewise.
33370         * tests/test-ftell.c (ASSERT): Likewise.
33371         * tests/test-ftello.c (ASSERT): Likewise.
33372         * tests/test-func.c (ASSERT): Likewise.
33373         * tests/test-fwritable.c (ASSERT): Likewise.
33374         * tests/test-fwriting.c (ASSERT): Likewise.
33375         * tests/test-getdelim.c (ASSERT): Likewise.
33376         * tests/test-getline.c (ASSERT): Likewise.
33377         * tests/test-i-ring.c (ASSERT): Likewise.
33378         * tests/test-iconv-utf.c (ASSERT): Likewise.
33379         * tests/test-iconv.c (ASSERT): Likewise.
33380         * tests/test-isfinite.c (ASSERT): Likewise.
33381         * tests/test-isnand.c (ASSERT): Likewise.
33382         * tests/test-isnanf.c (ASSERT): Likewise.
33383         * tests/test-isnanl.h (ASSERT): Likewise.
33384         * tests/test-ldexpl.c (ASSERT): Likewise.
33385         * tests/test-linked_list.c (ASSERT): Likewise.
33386         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33387         * tests/test-localename.c (ASSERT): Likewise.
33388         * tests/test-lseek.c (ASSERT): Likewise.
33389         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33390         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33391         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33392         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33393         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33394         * tests/test-mbschr.c (ASSERT): Likewise.
33395         * tests/test-mbscspn.c (ASSERT): Likewise.
33396         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33397         * tests/test-mbspbrk.c (ASSERT): Likewise.
33398         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33399         * tests/test-mbsrchr.c (ASSERT): Likewise.
33400         * tests/test-mbsspn.c (ASSERT): Likewise.
33401         * tests/test-mbsstr1.c (ASSERT): Likewise.
33402         * tests/test-mbsstr2.c (ASSERT): Likewise.
33403         * tests/test-mbsstr3.c (ASSERT): Likewise.
33404         * tests/test-memchr2.c (ASSERT): Likewise.
33405         * tests/test-memmem.c (ASSERT): Likewise.
33406         * tests/test-open.c (ASSERT): Likewise.
33407         * tests/test-printf-frexp.c (ASSERT): Likewise.
33408         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33409         * tests/test-printf-posix.c (ASSERT): Likewise.
33410         * tests/test-quotearg.c (ASSERT): Likewise.
33411         * tests/test-rbtree_list.c (ASSERT): Likewise.
33412         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33413         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33414         * tests/test-round1.c (ASSERT): Likewise.
33415         * tests/test-roundf1.c (ASSERT): Likewise.
33416         * tests/test-roundl.c (ASSERT): Likewise.
33417         * tests/test-signbit.c (ASSERT): Likewise.
33418         * tests/test-sleep.c (ASSERT): Likewise.
33419         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33420         * tests/test-snprintf.c (ASSERT): Likewise.
33421         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33422         * tests/test-stat-time.c (ASSERT): Likewise.
33423         * tests/test-strcasestr.c (ASSERT): Likewise.
33424         * tests/test-strerror.c (ASSERT): Likewise.
33425         * tests/test-striconv.c (ASSERT): Likewise.
33426         * tests/test-striconveh.c (ASSERT): Likewise.
33427         * tests/test-striconveha.c (ASSERT): Likewise.
33428         * tests/test-strsignal.c (ASSERT): Likewise.
33429         * tests/test-strstr.c (ASSERT): Likewise.
33430         * tests/test-strtod.c (ASSERT): Likewise.
33431         * tests/test-trunc1.c (ASSERT): Likewise.
33432         * tests/test-trunc2.c (ASSERT): Likewise.
33433         * tests/test-truncf1.c (ASSERT): Likewise.
33434         * tests/test-truncf2.c (ASSERT): Likewise.
33435         * tests/test-truncl.c (ASSERT): Likewise.
33436         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33437         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33438         * tests/test-vasnprintf.c (ASSERT): Likewise.
33439         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33440         * tests/test-vasprintf.c (ASSERT): Likewise.
33441         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33442         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33443         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33444         * tests/test-vsnprintf.c (ASSERT): Likewise.
33445         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33446         * tests/test-wcwidth.c (ASSERT): Likewise.
33447         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33448         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33449         * tests/test-xvasprintf.c (ASSERT): Likewise.
33450         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33451         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33452         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33453         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33454         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33455         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33456         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33457         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33458         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33459         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33460         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33461         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33462         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33463         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33464         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33465         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33466         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33467         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33468         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33469         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33470         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33471         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33472         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33473         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33474         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33475         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33476         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33477         * tests/unictype/test-combining.c (ASSERT): Likewise.
33478         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33479         * tests/unictype/test-digit.c (ASSERT): Likewise.
33480         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33481         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33482         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33483         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33484         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33485         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33486         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33487         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33488         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33489         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33490         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33491         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33492         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33493         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33494         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33495         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33496         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33497         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33498         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33499         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33500         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33501         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33502         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33503         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33504         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33505         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33506         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33507         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33508         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33509         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33510         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33511         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33512         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33513         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33514         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33515         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33516         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33517         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33518         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33519         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33520         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33521         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33522         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33523         Reported by Eric Blake.
33524
33525 2008-04-11  Bruno Haible  <bruno@clisp.org>
33526
33527         * lib/wchar.in.h: Tweak comment.
33528
33529 2008-04-11  Bruno Haible  <bruno@clisp.org>
33530
33531         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33532         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33533         gl_COMMON.
33534         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33535
33536 2008-04-11  Bruno Haible  <bruno@clisp.org>
33537
33538         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33539
33540 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33541
33542         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33543         of attempting to use non-existing /dev/*random.  Based on patch
33544         from Adam Strzelecki <ono@java.pl> in
33545         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33546
33547 2008-04-08  Bruno Haible  <bruno@clisp.org>
33548
33549         Add tentative support for emx+gcc.
33550         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33551         * lib/fpurge.c (fpurge): Likewise.
33552         * lib/freadable.c (freadable): Likewise.
33553         * lib/freadahead.c (freadahead): Likewise.
33554         * lib/freading.c (freading): Likewise.
33555         * lib/freadptr.c (freadptr): Likewise.
33556         * lib/freadseek.c (freadptrinc): Likewise.
33557         * lib/fseeko.c (rpl_fseeko): Likewise.
33558         * lib/fseterr.c (fseterr): Likewise.
33559         * lib/fwritable.c (fwritable): Likewise.
33560         * lib/fwriting.c (fwriting): Likewise.
33561         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33562
33563 2008-04-09  Eric Blake  <ebb9@byu.net>
33564
33565         Avoid some autoconf warnings.
33566         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33567         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33568         * m4/afs.m4 (gl_AFS): Likewise.
33569         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33570         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33572         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33573         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33574         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33575         (AC_CHECK_DECLS_ONCE): Likewise.
33576         Rename file...
33577         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33578         gnulib-tool requires autoconf 2.59 or better.
33579         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33580
33581 2008-04-08  Eric Blake  <ebb9@byu.net>
33582
33583         Use 'git describe --match' if present (added in git 1.5.5).
33584         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33585         if possible.
33586
33587 2008-04-08  Bruno Haible  <bruno@clisp.org>
33588
33589         Add tentative support for OpenServer.
33590         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33591         _ptr, _cnt.
33592         * lib/fpurge.c (fpurge): Likewise.
33593         * lib/freadable.c (freadable): Likewise.
33594         * lib/freadahead.c (freadahead): Likewise.
33595         * lib/freading.c (freading): Likewise.
33596         * lib/freadptr.c (freadptr): Likewise.
33597         * lib/freadseek.c (freadptrinc): Likewise.
33598         * lib/fseeko.c (rpl_fseeko): Likewise.
33599         * lib/fseterr.c (fseterr): Likewise.
33600         * lib/fwritable.c (fwritable): Likewise.
33601         * lib/fwriting.c (fwriting): Likewise.
33602         Reported by Roger Cornelius <rac@tenzing.org> and
33603         Brian K. White <brian@aljex.com>.
33604
33605 2008-04-06  Jim Meyering  <meyering@redhat.com>
33606
33607         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33608
33609 2008-04-06  Bruno Haible  <bruno@clisp.org>
33610
33611         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33612         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33613         * tests/test-printf-posix.sh: Likewise.
33614         * tests/test-vfprintf-posix.sh: Likewise.
33615         * tests/test-vprintf-posix.sh: Likewise.
33616         * tests/test-xprintf-posix.sh: Likewise.
33617
33618 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33619
33620         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33621         hide error from 'ls', needed on OS/2.
33622         Report by Elbert Pol <elbert.pol@gmail.com>.
33623
33624 2008-04-04  Eric Blake  <ebb9@byu.net>
33625
33626         Make test-fseeko.c failures meaningful.
33627         * tests/test-fseeko.c: Print line number on failure.
33628         * tests/test-fseek.c: Likewise.
33629         Reported by Nelson H. F. Beebe.
33630
33631         Improve strtod bug detection check.
33632         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33633         required for Solaris 10.
33634         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33635
33636 2008-04-04  Bruno Haible  <bruno@clisp.org>
33637
33638         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33639         by m4/setenv.m4.
33640
33641 2008-04-03  Eric Blake  <ebb9@byu.net>
33642
33643         Ensure sane .version contents.
33644         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33645         version string.
33646         * build-aux/git-version-gen: Improve documentation.
33647
33648         Make GNU make output nicer.
33649         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33650         MAKECMDGOALS to enforce message for all command line targets.  Set
33651         srcdir for use in maint.mk.
33652
33653         Another maintainer tweak.
33654         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33655         a target that regenerates version.
33656
33657 2008-04-03  Jim Meyering  <meyering@redhat.com>
33658
33659         vc-list-files: don't cause coreutils "make po-check" failure
33660         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33661
33662 2008-04-03  Eric Blake  <ebb9@byu.net>
33663
33664         Allow VPATH usage of vc-list-files.
33665         * build-aux/vc-list-files (scriptversion): Add timestamp.
33666         (options): Add --help, --version, -C.
33667         (CVS): Support installed cvsu.
33668
33669 2008-04-02  Bruno Haible  <bruno@clisp.org>
33670
33671         Avoid some "statement with no effect" warnings from gcc.
33672         * tests/test-wctype.c (main): Explicitly ignore unused values.
33673         Reported by Jim Meyering.
33674
33675 2008-04-02  Jim Meyering  <meyering@redhat.com>
33676
33677         Avoid some warnings from "gcc -Wshadow".
33678         * tests/test-frexp.c (exp): Define to a different identifier.
33679         * tests/test-frexpl.c (exp): Likewise.
33680
33681 2008-04-03  Jim Meyering  <meyering@redhat.com>
33682
33683         bootstrap: remove dangling *.[ch] symlinks from lib
33684         * build-aux/bootstrap [dangling symlink removal]: Move find's
33685         -depth option to precede all others, to avoid a warning.
33686         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33687
33688 2008-04-02  Bruno Haible  <bruno@clisp.org>
33689
33690         Avoid some warnings from "gcc -Wshadow".
33691         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33692         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33693         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33694         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33695         Reported by Jim Meyering.
33696
33697 2008-04-01  Bruno Haible  <bruno@clisp.org>
33698
33699         Fix test to work on IRIX 6.5 with cc.
33700         * tests/test-math.c (numeric_equal): New function.
33701         (main): Use it.
33702
33703 2008-04-01  Bruno Haible  <bruno@clisp.org>
33704
33705         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33706
33707 2008-04-01  Bruno Haible  <bruno@clisp.org>
33708
33709         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33710         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33711         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33712         (Depends-on): Remove math.
33713
33714         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33715         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33716         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33717         (Depends-on): Remove math.
33718
33719         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33720         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33721         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33722         (Depends-on): Remove math.
33723         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33724         (Depends-on): Remove math.
33725
33726         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33727         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33728         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33729         (Depends-on): Remove math.
33730         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33731         (Depends-on): Remove math.
33732
33733         * tests/test-round1.c: Include nan.h.
33734         (main): Use NaNd instead of NAN.
33735         * modules/round-tests (Files): Add tests/nan.h.
33736
33737         * tests/test-trunc1.c: Include nan.h.
33738         (main): Use NaNd instead of NAN.
33739         * modules/trunc-tests (Files): Add tests/nan.h.
33740
33741         * tests/test-roundf1.c: Include nan.h.
33742         (main): Use NaNf instead of NAN.
33743         * modules/roundf-tests (Files): Add tests/nan.h.
33744
33745         * tests/test-truncf1.c: Include nan.h.
33746         (main): Use NaNf instead of NAN.
33747         * modules/truncf-tests (Files): Add tests/nan.h.
33748
33749         * tests/test-ceilf1.c: Include nan.h.
33750         (main): Use NaNf instead of NAN.
33751         * modules/ceilf-tests (Files): Add tests/nan.h.
33752
33753         * tests/test-floorf1.c: Include nan.h.
33754         (main): Use NaNf instead of NAN.
33755         * modules/floorf-tests (Files): Add tests/nan.h.
33756
33757         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33758         (main): Use NaNf instead of NAN.
33759         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33760
33761         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33762         (main): Use NaNd instead of NAN.
33763         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33764
33765         * tests/test-frexp.c: Include nan.h.
33766         (main): Use NaNd instead of NAN.
33767         * modules/frexp-tests (Files): Add tests/nan.h.
33768
33769         * lib/isnan.c: Don't include <math.h>.
33770         (FUNC): Don't use NAN macro.
33771         * modules/isnand-nolibm (Depends-on): Remove math.
33772         * modules/isnanf-nolibm (Depends-on): Remove math.
33773         * modules/isnanl (Depends-on): Remove math.
33774         * modules/isnanl-nolibm (Depends-on): Remove math.
33775
33776         * tests/nan.h: New file.
33777
33778 2008-04-01  Eric Blake  <ebb9@byu.net>
33779
33780         Fix typos.
33781         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33782         values to be the right type.
33783
33784         For now, cater to gnulib strtod inaccuracies.
33785         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33786         fractional results.  While not as nice from a QoI perspective, it
33787         is a quicker patch than correctly implementing decimal to binary
33788         rounding.
33789
33790 2008-03-31  Eric Blake  <ebb9@byu.net>
33791
33792         Guarantee a definition of NAN.
33793         * lib/math.in.h (NAN): Define if missing.
33794         * tests/test-math.c (main): Test it.
33795         * doc/posix-headers/math.texi (math.h): Document this.
33796         * lib/isnan.c (rpl_isnand): Use it.
33797         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33798         * tests/test-floorf1.c (NaN): Likewise.
33799         * tests/test-frexp.c (NaN): Likewise.
33800         * tests/test-isnand.c (NaN): Likewise.
33801         * tests/test-isnanf.c (NaN): Likewise.
33802         * tests/test-round1.c (NaN): Likewise.
33803         * tests/test-roundf1.c (NaN): Likewise.
33804         * tests/test-snprintf-posix.h (NaN): Likewise.
33805         * tests/test-sprintf-posix.h (NaN): Likewise.
33806         * tests/test-trunc1.c (NaN): Likewise.
33807         * tests/test-truncf1.c (NaN): Likewise.
33808         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33809         * tests/test-vasprintf-posix.c (NaN): Likewise.
33810         * modules/isnand-nolibm (Depends-on): Add math.
33811         * modules/isnanf-nolibm (Depends-on): Likewise.
33812         * modules/isnanl (Depends-on): Likewise.
33813         * modules/isnanl-nolibm (Depends-on): Likewise.
33814         * modules/snprintf-posix-tests (Depends-on): Likewise.
33815         * modules/sprintf-posix-tests (Depends-on): Likewise.
33816         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33817         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33818         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33819         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33820
33821 2008-03-31  Bruno Haible  <bruno@clisp.org>
33822
33823         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33824         * doc/posix-functions/strtod.texi: Likewise.
33825
33826 2008-03-31  Bruno Haible  <bruno@clisp.org>
33827
33828         * tests/test-strtod.c (main): Don't use C99 syntax.
33829
33830 2008-03-31  Bruno Haible  <bruno@clisp.org>
33831
33832         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33833         Reported by Eric Blake.
33834
33835 2008-03-31  Jim Meyering  <meyering@redhat.com>
33836
33837         Don't compare actual signbit return values.
33838         * tests/test-strtod.c (main): Rather, compare only their
33839         zero/non-zero nature.
33840
33841 2008-03-31  Eric Blake  <ebb9@byu.net>
33842
33843         More strtod documentation.
33844         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33845         failures as distinct bugs.
33846
33847 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33848
33849         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33850         Problem reported by Erik Benada in
33851         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33852
33853 2008-03-30  Bruno Haible  <bruno@clisp.org>
33854
33855         * tests/test-strtod.c: Add comments about which assertion fails on which
33856         platform.
33857         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33858
33859 2008-03-30  Eric Blake  <ebb9@byu.net>
33860
33861         Test signbit behavior on zeros.
33862         * tests/test-signbit.c (test_signbitf): Add tests for zero.
33863         (test_signbitd, test_signbitl): Likewise.
33864
33865         More strtod touchups.
33866         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
33867         sign of negative underflow, for now.  Use .5, not .1.
33868         * doc/posix-functions/strtod.texi (strtod): Mention these
33869         limitations.
33870         Reported by Jim Meyering.
33871
33872 2008-03-30  Bruno Haible  <bruno@clisp.org>
33873
33874         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
33875         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
33876
33877 2008-03-30  Bruno Haible  <bruno@clisp.org>
33878
33879         Avoid failure when attempting to return empty iconv results on some
33880         platforms.
33881         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
33882         allocation, don't report ENOMEM when the resulting string is empty.
33883
33884 2008-03-30  Bruno Haible  <bruno@clisp.org>
33885
33886         Fix buffer overrun.
33887         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
33888         Don't consider the width for tmp_length. Check count against tmp_length
33889         before doing the padding. Ensure enough allocation during padding.
33890
33891 2008-03-30  Eric Blake  <ebb9@byu.net>
33892
33893         strtod touchups.
33894         * lib/strtod.c (strtod): Avoid compiler warnings.
33895         Reported by Jim Meyering.
33896
33897 2008-03-30  Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
33900         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
33901         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
33902         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
33903         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
33904         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
33905         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
33906         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
33907
33908         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
33909         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
33910         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
33911         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
33912         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
33913         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
33914         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
33915         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
33916
33917         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
33918         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
33919         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
33920         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
33921         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
33922         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
33923         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
33924         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
33925
33926         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
33927         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
33928
33929         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
33930         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
33931
33932         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
33933         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
33934
33935         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
33936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
33937         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
33938
33939         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
33940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
33941         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
33942
33943         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
33944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
33945         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
33946
33947         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
33948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
33949         * modules/vasprintf (Depends-on): Add EOVERFLOW.
33950
33951         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
33952         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
33953         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
33954         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
33955         (Depends-on): Add EOVERFLOW.
33956         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
33957         (Depends-on): Add EOVERFLOW.
33958         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33959         (Depends-on): Add EOVERFLOW.
33960         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
33961         (Depends-on): Add EOVERFLOW.
33962         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33963         (Depends-on): Add EOVERFLOW.
33964         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
33965         (Depends-on): Add EOVERFLOW.
33966         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33967         (Depends-on): Add EOVERFLOW.
33968         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
33969         (Depends-on): Add EOVERFLOW.
33970
33971         * lib/sprintf.c (EOVERFLOW): Remove fallback.
33972         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
33973         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
33974
33975         * lib/snprintf.c (EOVERFLOW): Remove fallback.
33976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
33977         * modules/snprintf (Depends-on): Add EOVERFLOW.
33978
33979         * lib/poll.c (EOVERFLOW): Remove fallback.
33980         * modules/poll (Depends-on): Add EOVERFLOW.
33981
33982         * lib/getugroups.c (EOVERFLOW): Remove fallback.
33983         * modules/getugroups (Depends-on): Add EOVERFLOW.
33984
33985         * lib/getdelim.c (EOVERFLOW): Remove fallback.
33986         * modules/getdelim (Depends-on): Add EOVERFLOW.
33987
33988         * lib/ftell.c (EOVERFLOW): Remove fallback.
33989         * modules/ftell (Depends-on): Add EOVERFLOW.
33990
33991         * lib/fprintf.c (EOVERFLOW): Remove fallback.
33992         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
33993         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
33994
33995         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
33996
33997         * modules/EOVERFLOW-tests: New file.
33998         * tests/test-EOVERFLOW.c: New file.
33999
34000         * modules/EOVERFLOW: New file.
34001         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34002
34003 2008-03-30  Bruno Haible  <bruno@clisp.org>
34004
34005         Fix bug introduced on 2007-06-10.
34006         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34007         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34008
34009 2008-03-30  Bruno Haible  <bruno@clisp.org>
34010
34011         Improve freadseek's efficiency after ungetc.
34012         * lib/freadseek.c: Include freadahead.h.
34013         (freadptrinc): New function, extracted from freadseek.
34014         (freadseek): Use it in a loop. Use freadahead to determine the number
34015         of loop iterations.
34016         * modules/freadseek (Depends-on): Add freadahead.
34017         (configure.ac): Require AC_C_INLINE.
34018
34019 2008-03-30  Bruno Haible  <bruno@clisp.org>
34020
34021         * lib/freadseek.c (freadseek): Don't ignore the return value of
34022         freadptr.
34023
34024 2008-03-29  Eric Blake  <ebb9@byu.net>
34025
34026         Add hex float support.
34027         * modules/strtod (Depends-on): Add c-ctype.
34028         (Link): Mention POW_LIB.
34029         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34030         whitespace between 'e' and exponent.
34031         * tests/test-strtod.c (main): Enable hex float tests.
34032         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34033         now provides.
34034
34035         Document various strtod bugs, with some fixes.
34036         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34037         "-0x", "inf", "nan", and hex constants.
34038         * doc/posix-functions/atof.texi (atof): Likewise.
34039         * modules/stdlib (Makefile.am): Support strtod.
34040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34041         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34042         detect additional strtod bugs.
34043         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34044         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34045         bool where appropriate.  Parse 'inf' and 'nan'.
34046         * tests/test-strtod.c: New file.
34047         * modules/strtod (Depends-on): Add stdbool, stdlib.
34048         (configure.ac): Turn on module indicator.
34049         * modules/strtod-tests: New module.
34050
34051 2008-03-29  Eric Blake  <ebb9@byu.net>
34052
34053         Fix ftell on mingw.
34054         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34055         * modules/ftell-tests (Depends-on): Add binary-io.
34056         * modules/ftello-tests (Depends-on): Likewise.
34057         * tests/test-ftell.c (main): Enhance test to cover behavior after
34058         ungetc.  Enforce binary mode.
34059         * tests/test-ftello.c (main): Likewise.
34060
34061         Pass test-freadseek on cygwin.
34062         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34063         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34064         ungetc buffer.
34065
34066         * tests/test-fflush2.c (main): Fix typo.
34067
34068 2008-03-29  Bruno Haible  <bruno@clisp.org>
34069
34070         * tests/test-fflush2.c (main): Temporarily disable the contents of
34071         this test.
34072         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34073         Reported by Eric Blake.
34074
34075 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34076
34077         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34078         (GC_SHA224_DIGEST_SIZE): Add.
34079
34080         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34081         (gc_hash_digest_length): Likewise.
34082         (gc_hash_buffer): Likewise.
34083
34084 2008-03-25  Bruno Haible  <bruno@clisp.org>
34085
34086         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34087         detail which gettext release to use.
34088         Reported by Simon Josefsson.
34089
34090 2008-03-26  Jim Meyering  <meyering@redhat.com>
34091
34092         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34093         * modules/gnumakefile (clean-GNUmakefile): Also, use
34094         test ... && ... || : syntax rather than if-then ... fi.
34095
34096         gnumakefile: Don't double-quote-expand $(VPATH) value.
34097         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34098
34099 2008-03-24  Eric Blake  <ebb9@byu.net>
34100
34101         Alter GNUmakefile to install into top directory.
34102         * modules/maintainer-makefile: Split, and add dependency...
34103         * modules/gnumakefile: to this new module.
34104         * build-aux/GNUmakefile: Move...
34105         * top/GNUmakefile: ...here.
34106         * build-aux/maint.mk: Move...
34107         * top/maint.mk: ...here.
34108         * MODULES.html.sh (Support for maintaining...): Document new
34109         module.
34110
34111 2008-03-23  Bruno Haible  <bruno@clisp.org>
34112
34113         * gnulib-tool: New options --vc-files, --no-vc-files.
34114         (func_usage): Document them.
34115         (vc_files): New variable.
34116         (func_import): Consider vc_files.
34117         (func_create_testdir): Set vc_files to empty.
34118         Suggested by Jim Meyering and Karl Berry.
34119
34120 2008-03-23  Bruno Haible  <bruno@clisp.org>
34121
34122         Fix regex compilation error on HP-UX 11.
34123         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34124         * modules/regex (Files): Add m4/mbstate_t.m4.
34125         Reported by Ton Voon <ton.voon@altinity.com>.
34126
34127 2008-03-23  Bruno Haible  <bruno@clisp.org>
34128
34129         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34130
34131 2008-03-23  Eric Blake  <ebb9@byu.net>
34132             Bruno Haible  <bruno@clisp.org>
34133
34134         Install files from top/ in the destination directory.
34135         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34136         augmentation also for the files from top/.
34137         (func_import, func_create_testdir): Rewrite file names:
34138         top/filename -> filename.
34139
34140 2008-03-23  Bruno Haible  <bruno@clisp.org>
34141
34142         Tweak "gnulib --version" output.
34143         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34144
34145 2008-03-23  Bruno Haible  <bruno@clisp.org>
34146
34147         Tweak "gnulib --version" output.
34148         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34149         rather than contents of ChangeLog, when possible.
34150
34151 2008-03-21  Eric Blake  <ebb9@byu.net>
34152
34153         More --version tweaks.
34154         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34155         date of last ChangeLog entry.
34156
34157 2008-03-21  Jim Meyering  <meyering@redhat.com>
34158
34159         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34160
34161 2008-03-20  Eric Blake  <ebb9@byu.net>
34162
34163         VPATH fix.
34164         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34165
34166 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34167
34168         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34169         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34170
34171 2008-03-20  Eric Blake  <ebb9@byu.net>
34172
34173         Sync GNUmakefile with coreutils.
34174         * build-aux/GNUmakefile (have-Makefile): Rename...
34175         (_have-Makefile): ...to this, for namespace consideration.
34176         (GNUmakefile.cfg): Include, if present.
34177         (_autoreconf): Define a default.
34178         (_is-dist-target): New rule for rebuilds to pick up intra-release
34179         version.
34180         (maint-cfg.mk): Rename...
34181         (cfg.mk): ...to this.
34182
34183 2008-03-18  Jim Meyering  <meyering@redhat.com>
34184
34185         New script and module: mktempd
34186         * MODULES.html.sh (maint+release support): Add mktempd.
34187         * build-aux/mktempd: New file.
34188         * modules/mktempd: New file.
34189
34190 2008-03-15  Jim Meyering  <meyering@redhat.com>
34191
34192         Undo last change.
34193         * lib/sha1.c, lib/md5.c: 63 != ~63.
34194         Reported by Andreas Schwab.
34195
34196         sha1.c, md5.c: Hoist a redundant expression.
34197         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34198         "ctx->buflen" only once, before calling *_process_block.
34199         * lib/md5.c (md5_process_bytes): Likewise.
34200
34201 2008-03-14  Eric Blake  <ebb9@byu.net>
34202
34203         Bump copyright year in files generated by gnulib-tool.
34204         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34205         gnulib-tool, rather than hard-coding it.
34206
34207         Fix 'gnulib-tool --version' output to work with git.
34208         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34209         (startup): ...here.
34210         (func_version): Use it to invoke git-version-gen, rather than
34211         relying on CVS keyword expansion.  Modernize wording.
34212         (cvsdatestamp, last_checkin_date, version): Kill unused
34213         variables.
34214
34215 2008-03-12  Jim Meyering  <meyering@redhat.com>
34216
34217         Recognize optional cast of the argument to free.
34218         * build-aux/useless-if-before-free: Update regexps.
34219
34220         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34221
34222 2008-03-11  Bruno Haible  <bruno@clisp.org>
34223
34224         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34225         by a single package.
34226         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34227         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34228         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34229         Reported by Sam Steingold <sds@gnu.org>.
34230
34231 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34232
34233         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34234         repositories.
34235
34236 2008-03-11  Bruno Haible  <bruno@clisp.org>
34237
34238         Avoid conflicts between local macro definitions.
34239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34240         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34241
34242 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34243             Bruno Haible  <bruno@clisp.org>
34244
34245         Make va_copy work with some version of xlc on AIX 5.1.
34246         * lib/stdarg.in.h: New file.
34247         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34248         On AIX, use a <stdarg.h> file substitute.
34249         * modules/stdarg (Files): Add lib/stdarg.in.h.
34250         (Depends-on): Add include_next.
34251         (Makefile.am): Build a stdarg.h substitute if requested.
34252         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34253
34254 2008-03-10  Bruno Haible  <bruno@clisp.org>
34255
34256         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34257         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34258         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34259
34260 2008-03-10  Bruno Haible  <bruno@clisp.org>
34261
34262         * modules/stdlib (Depends-on): Add include_next, remove
34263         absolute-header.
34264
34265 2008-03-09  Bruno Haible  <bruno@clisp.org>
34266
34267         * lib/freadahead.h (freadahead): Document more precisely.
34268         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34269         the sum of both buffer sizes.
34270         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34271         * NEWS: Document the change.
34272
34273 2008-03-09  Bruno Haible  <bruno@clisp.org>
34274
34275         Extend freadptr to return also the buffer size.
34276         * lib/freadptr.h (freadptr): Add sizep argument.
34277         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34278         (freadptr): Add sizep argument. Determine buffer size like freadahead
34279         does.
34280         * tests/test-freadptr.c: Don't include freadahead.h.
34281         (main): Adapt for new calling convention of freadptr.
34282         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34283         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34284         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34285         tests/test-freadptr2.sh.
34286         (Depends): Remove freadahead.
34287         (TESTS): Add test-freadptr2.sh.
34288         (check_PROGRAMS): Add test-freadptr2.
34289
34290 2008-03-09  Bruno Haible  <bruno@clisp.org>
34291
34292         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34293         Report and solution by Simon Josefsson.
34294
34295 2008-03-06  Bruno Haible  <bruno@clisp.org>
34296
34297         Make fflush after ungetc work on BSD platforms.
34298         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34299         * tests/test-fflush2.c: New file.
34300         * tests/test-fflush2.sh: New file.
34301         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34302         tests/test-fflush2.c.
34303         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34304         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34305
34306 2008-03-06  Eric Blake  <ebb9@byu.net>
34307
34308         Likewise for ftello.
34309         * modules/ftello (Dependencies): Add extensions.
34310         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34311
34312 2008-03-06  Bruno Haible  <bruno@clisp.org>
34313
34314         * modules/fseeko (Dependencies): Add extensions.
34315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34316         Needed on glibc systems.
34317
34318 2008-03-06  Bruno Haible  <bruno@clisp.org>
34319
34320         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34321         email address.
34322         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34323
34324 2008-03-06  Bruno Haible  <bruno@clisp.org>
34325
34326         * users.txt: Add libgnupdf.
34327
34328 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34329
34330         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34331         (Header File Substitutes, Function Substitutes,
34332         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34333         (Build robot for gnulib): Fix typo.
34334
34335 2008-03-06  Bruno Haible  <bruno@clisp.org>
34336
34337         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34338         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34339
34340 2008-03-06  Bruno Haible  <bruno@clisp.org>
34341
34342         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34343         * doc/gnulib.texi: Include it.
34344
34345 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34346
34347         * modules/func (License): Change license to unlimited; there was
34348         no LGPL parts in the module anyway.
34349
34350 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34351
34352         * modules/__func__: Renamed to modules/func.
34353         * modules/__func__-tests: Renamed to modules/func-tests.
34354         * tests/test-__func__.c: Renamed to tests/test-func.c.
34355         * m4/__func__.m4: Renamed to m4/func.m4.
34356         * doc/gnulib.texi (__func__): Section renamed to func.
34357         Suggested by Eric Blake <ebb9@byu.net>.
34358
34359 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34360
34361         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34362         about __func__.  Make example self-contained.  Suggested by Eric
34363         Blake <ebb9@byu.net>.
34364
34365         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34366         Suggested by Eric Blake <ebb9@byu.net>.
34367
34368 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34369
34370         * modules/__func__: New file.
34371         * modules/__func__-tests: New file.
34372         * tests/test-__func__.c: New file.
34373         * m4/__func__.m4: New file.
34374         * doc/gnulib.texi (__func__): Document __func__ module.
34375
34376 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34377
34378         * modules/byteswap (License): Re-license as LGPLv2+.
34379
34380 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34381
34382         * doc/Makefile: Add pdf target.
34383
34384 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34385
34386         * modules/inline (License): Use 'unlimited', since there are only
34387         *.m4 files in this module.
34388
34389 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34390             Bruno Haible  <bruno@clisp.org>
34391
34392         Add support for HP C 7.1 on OpenVMS 8.3.
34393         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34394
34395 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34396
34397         Update VMS specifics.
34398         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34399
34400 2008-03-02  Jim Meyering  <meyering@redhat.com>
34401
34402         Remove the last dependency on the "free" module.
34403         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34404         Reported by Bob Proulx.
34405
34406         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34407
34408         Remove useless "if" tests before free.  Deprecate "free" module.
34409         * doc/posix-functions/free.texi: Mention that this
34410         module is no longer useful.
34411         * modules/free (Notice): Say this module is obsolete.
34412         * modules/readutmp (Depends-on): Remove free.
34413         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34414         * lib/putenv.c (putenv): Likewise.
34415         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34416         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34417         * tests/test-c-strcasestr.c (main): Likewise.
34418         * tests/test-c-strstr.c (main): Likewise.
34419         * tests/test-mbscasestr1.c (main): Likewise.
34420         * tests/test-mbscasestr2.c (main): Likewise.
34421         * tests/test-mbsstr1.c (main): Likewise.
34422         * tests/test-mbsstr2.c (main): Likewise.
34423         * tests/test-memmem.c (main): Likewise.
34424         * tests/test-strcasestr.c (main): Likewise.
34425         * tests/test-striconv.c (main): Likewise.
34426         * tests/test-striconveh.c (main): Likewise.
34427         * tests/test-striconveha.c (main): Likewise.
34428         * tests/test-strstr.c (main): Likewise.
34429
34430         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34431
34432         bootstrap: sync from coreutils again
34433         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34434
34435 2008-03-01  Jim Meyering  <meyering@redhat.com>
34436
34437         bootstrap: sync from coreutils
34438         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34439         also when the target doesn't exist.
34440
34441 2008-03-01  Eric Blake  <ebb9@byu.net>
34442
34443         Fix bugs in last patch.
34444         * lib/memchr2.c (memchr2): Fix typo.
34445         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34446         extension.
34447         Reported by Bruce Korb.
34448
34449         New module 'memchr2'.
34450         * modules/memchr2: New file.
34451         * modules/memchr2-tests: Likewise.
34452         * lib/memchr2.h: Likewise.
34453         * lib/memchr2.c: Likewise, based on memchr.c.
34454         * tests/test-memchr2.c: New test.
34455         * MODULES.html.sh (String handling): Add memchr2.
34456
34457 2008-02-29  Bruno Haible  <bruno@clisp.org>
34458
34459         * modules/freadseek-tests: New file.
34460         * tests/test-freadseek.sh: New file.
34461         * tests/test-freadseek.c: New file.
34462
34463         New module 'freadseek'.
34464         * modules/freadseek: New file.
34465         * lib/freadseek.h: New file.
34466         * lib/freadseek.c: New file.
34467         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34468
34469 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34470
34471         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34472         wydawca.
34473
34474         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34475         program_invocation_name and program_invocation_short_name are
34476         present.
34477
34478 2008-02-28  Bruno Haible  <bruno@clisp.org>
34479
34480         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34481         * tests/test-freadptr.sh: Also test non-seekable stdin.
34482
34483 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34484
34485         * build-aux/bootstrap (source_base, m4_base)
34486         (doc_base, tests_base): New variables.
34487         (gnulib_tool_options): Do not hardcode base directories, use
34488         the above variables instead.
34489
34490 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34491
34492         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34493
34494 2008-02-28  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/freadptr-tests: New file.
34497         * tests/test-freadptr.sh: New file.
34498         * tests/test-freadptr.c: New file.
34499
34500         New module 'freadptr'.
34501         * modules/freadptr: New file.
34502         * lib/freadptr.h: New file.
34503         * lib/freadptr.c: New file.
34504         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34505
34506 2008-02-26  Karl Berry  <karl@freefriends.org>
34507
34508         Sync from Libtool:
34509         * libltdl/argz.c (argz_add, argz_count): New functions.
34510         * libltdl/argz.in.h: Declare them.
34511         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34512
34513 2008-02-22  Bruno Haible  <bruno@clisp.org>
34514
34515         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34516         is a pointer type.  Needed for HP-UX 10.
34517         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34518         * doc/posix-functions/gmtime_r.texi: Likewise.
34519         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34520
34521 2008-02-24  Bruno Haible  <bruno@clisp.org>
34522
34523         * modules/environ-tests: New file.
34524         * tests/test-environ.c: New file.
34525
34526         New module 'environ'.
34527         * modules/environ: New file.
34528         * lib/unistd.in.h (environ): New declaration.
34529         * m4/environ.m4: New file.
34530         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34531         after use.
34532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34533         HAVE_DECL_ENVIRON.
34534         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34535         HAVE_DECL_ENVIRON.
34536         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34537         wrong claim that 'environ' is missing on some systems.
34538         * modules/execute (Depends-on): Add environ.
34539         * lib/execute.c (environ): Remove fallback declaration.
34540         * modules/pipe (Depends-on): Add environ.
34541         * lib/pipe.c (environ): Remove fallback declaration.
34542         * modules/setenv (Depends-on): Add environ.
34543         * lib/setenv.c (environ): Remove fallback declaration.
34544         * modules/unsetenv (Depends-on): Add environ.
34545         * lib/unsetenv.c (environ): Remove fallback declaration.
34546         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34547         m4/environ.m4.
34548         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34549         (gl_PREREQ_UNSETENV): Likewise.
34550
34551 2008-02-24  Bruno Haible  <bruno@clisp.org>
34552
34553         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34554
34555 2008-02-20  Bob Proulx  <bob@proulx.com>
34556
34557         Enable use of older two part flavor 'git describe'.
34558         * build-aux/git-version-gen: If using the older two part flavor of
34559         git version then recreate the third part now present in the
34560         newer three part flavor of git describe.
34561
34562 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34563
34564         * lib/fts.c (fts_build): Typo correction to comment.
34565
34566 2008-02-17  Bruno Haible  <bruno@clisp.org>
34567
34568         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34569         generating no-op conflicts.
34570
34571 2008-02-17  Bruno Haible  <bruno@clisp.org>
34572
34573         Speed up by 10%.
34574         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34575         result_entries, rather than an index-based loop.
34576
34577 2008-02-17  Bruno Haible  <bruno@clisp.org>
34578
34579         Speed up by 25%.
34580         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34581         'hashcode_cached'.
34582         (entry_create): New function.
34583         (entry_hashcode): Use the cached hashcode if possible.
34584         (read_changelog_file, try_split_merged_entry): Use entry_create.
34585
34586 2008-02-17  Bruno Haible  <bruno@clisp.org>
34587
34588         Speed up from O(n^2) to O(n) for long ChangeLog files.
34589         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34590         (read_changelog_file): Change implementation of entries_reversed list
34591         to rbtreehash.
34592         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34593
34594 2008-02-17  Bruno Haible  <bruno@clisp.org>
34595
34596         New option --split-merged-entry.
34597         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34598         (find_paragraph_end, try_split_merged_entry): New functions.
34599         (long_options): Add option --split-merged-entry.
34600         (usage): Document option --split-merged-entry.
34601         (main): Implement option --split-merged-entry.
34602         Reported by Eric Blake.
34603
34604 2008-02-17  Bruno Haible  <bruno@clisp.org>
34605
34606         * lib/git-merge-changelog.c: Include c-strstr.h.
34607         (main): Support the "git pull --rebase" situation.
34608         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34609         Reported by Eric Blake.
34610
34611 2008-02-16  Eric Blake  <ebb9@byu.net>
34612
34613         Avoid doubling \ in common case of "c-maybe" quoting style.
34614         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34615         eliding outer quotes.
34616         * lib/quotearg.h: Document this.
34617         * tests/test-quotearg.c (result_strings, inputs, results_g)
34618         (flag_results, locale_results): Test it by adding a new string to
34619         each test group.
34620         (compare_strings): Test new string.
34621
34622 2008-02-13  Eric Blake  <ebb9@byu.net>
34623
34624         Avoid trigraph quoting in default output.
34625         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34626         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34627         unless explicitly requested.
34628         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34629
34630 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34631
34632         Don't rely on signed integer overflowing to negative value.
34633         * lib/getugroups.c (getugroups): Include <limits.h>.
34634         Instead, compare against INT_MAX, and increment only if the test passes.
34635
34636 2008-02-13  Jim Meyering  <meyering@redhat.com>
34637         and Eric Blake  <ebb9@byu.net>
34638
34639         Avoid shadowing warning and compile errors on Linux.
34640         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34641         forwarding macros on Linux.
34642         (dcgettext): Define a stub, for Linux.
34643         (results_g, main): Avoid warnings.
34644
34645 2008-02-12  Eric Blake  <ebb9@byu.net>
34646
34647         Silence warning in last patch.
34648         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34649
34650         Quotearg part 4: add tests, fix c-maybe colon quoting.
34651         * lib/quotearg.h: Improve documentation.
34652         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34653         escapes when adding outer quotes.  When quoting trigraphs, use
34654         valid C notation.  When quoting NUL, omit extra characters if next
34655         character is not digit.  Alter prototype.
34656         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34657         callers.
34658         * modules/quotearg-tests: New module.
34659         * tests/test-quotearg.c: New test.
34660
34661 2008-02-07  Eric Blake  <ebb9@byu.net>
34662
34663         Quotearg part 3: add flag to control outer quote elision.
34664         * lib/quotearg.h (c_maybe_quoting_style): New style.
34665         (enum quoting_flags): Better documentation of flags.
34666         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34667         c-maybe style.
34668         (quotearg_buffer_restyled): Handle new flag to elide outer
34669         quotes.
34670
34671         Quotearg part 2: add flag that can control NUL elision.
34672         * lib/quotearg.h (set_quoting_flags): New prototype.
34673         * lib/quotearg.c (struct quoting_options): Add flag field.
34674         (set_quoting_flags): New function.
34675         (quotearg_buffer_restyled): Add flags parameter.
34676         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34677         (quotearg_n_options): Set the flag, since length cannot be
34678         returned.
34679         (quoting_options_from_style): Default flags correctly.
34680
34681         Quotearg part 1: more wrappers, restore quotearg_char state.
34682         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34683         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34684         (quotearg_colon_mem): New wrappers.
34685         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34686         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34687         functions.
34688         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34689         (quotearg_colon_mem): New functions.
34690
34691 2008-02-11  Bruno Haible  <bruno@clisp.org>
34692
34693         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34694         library in the current directory: it does not work with parallel make.
34695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34696
34697 2008-02-11  Bruno Haible  <bruno@clisp.org>
34698
34699         * .gitattributes: New file.
34700
34701 2008-02-11  Jim Meyering  <meyering@redhat.com>
34702
34703         useless-if-before-free: Fix reversed exit values.
34704         * build-aux/useless-if-before-free: Use correct values
34705         for EXIT_MATCH and EXIT_NO_MATCH.
34706
34707         * build-aux/useless-if-before-free: Close stdout carefully.
34708
34709 2008-02-10  Bruno Haible  <bruno@clisp.org>
34710
34711         New module 'git-merge-changelog'.
34712         * modules/git-merge-changelog: New file.
34713         * lib/git-merge-changelog.c: New file.
34714
34715 2008-02-10  Jim Meyering  <meyering@redhat.com>
34716
34717         useless-if-before-free: New option: --list (-l).
34718
34719         useless-if-before-free: Don't exit immediately upon open failure.
34720         * build-aux/useless-if-before-free: Exit 2 for errors.
34721         Upon failure to open a file, don't exit immediately.
34722         Rather, just warn and continue with any remaining files.
34723
34724 2008-02-10  Bruno Haible  <bruno@clisp.org>
34725
34726         New abstract list operation 'node_set_value'.
34727         * lib/gl_list.h (gl_list_node_set_value): New function.
34728         (struct gl_list_implementation): New field node_set_value.
34729         * lib/gl_list.c (gl_list_node_set_value): New function.
34730         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34731         (gl_array_list_implementation): Update.
34732         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34733         (gl_carray_list_implementation): Update.
34734         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34735         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34736         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34737         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34738         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34739         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34740         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34741         Update.
34742         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34743         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34744         (gl_sublist_list_implementation): Update.
34745
34746 2008-02-10  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34749         Needed when ELEMENT is #defined to 'some_type *'.
34750
34751 2008-02-10  Jim Meyering  <meyering@redhat.com>
34752
34753         New script and module: useless-if-before-free
34754         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34755         * build-aux/useless-if-before-free: New file.
34756         * modules/useless-if-before-free: New file.
34757
34758         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34759
34760         xstrtol_error: Fix typo.
34761         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34762         s/exit_failure/exit_status/.
34763
34764 2008-02-09  Jim Meyering  <meyering@redhat.com>
34765
34766         New script and module: gitlog-to-changelog
34767         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34768         * modules/gitlog-to-changelog: New file.
34769         * build-aux/gitlog-to-changelog: New file.
34770
34771 2008-02-08  Jim Meyering  <meyering@redhat.com>
34772
34773         Avoid two "parameter unused" warnings.
34774         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34775         Mark "st" as used.
34776
34777         Use "git COMMAND", not "git-COMMAND".
34778         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34779         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34780         * build-aux/git-version-gen: Use "git status", not "git-status".
34781
34782 2008-02-07  Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34785         Avoids a crash on Windows Vista.
34786         Reported by Adam Strzelecki <ono@java.pl> via
34787         Simon Josefsson <simon@josefsson.org>.
34788
34789 2008-02-06  Bruno Haible  <bruno@clisp.org>
34790
34791         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34792         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34793         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34795         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34796         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34797         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34798         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34799         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34800         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34801         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34802         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34803         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34804         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34805         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34806         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34807         left-adjust flag.
34808         * tests/test-snprintf-posix.h (test_function): Likewise.
34809         * tests/test-sprintf-posix.h (test_function): Likewise.
34810         * tests/test-vasprintf-posix.c (test_function): Likewise.
34811         * doc/posix-functions/fprintf.texi: Update.
34812         * doc/posix-functions/printf.texi: Update.
34813         * doc/posix-functions/snprintf.texi: Update.
34814         * doc/posix-functions/sprintf.texi: Update.
34815         * doc/posix-functions/vfprintf.texi: Update.
34816         * doc/posix-functions/vprintf.texi: Update.
34817         * doc/posix-functions/vsnprintf.texi: Update.
34818         * doc/posix-functions/vsprintf.texi: Update.
34819         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34820
34821 2008-02-06  Bruno Haible  <bruno@clisp.org>
34822
34823         Fix bug introduced on 2008-01-26.
34824         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34825
34826 2008-02-06  Bruno Haible  <bruno@clisp.org>
34827
34828         Fix bug introduced on 2007-06-10.
34829         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34830         !NEED_PRINTF_FLAG_ZERO.
34831
34832 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34833
34834         getloadavg: use libperfstat on AIX5
34835         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34836
34837 2008-02-03  Bruno Haible  <bruno@clisp.org>
34838
34839         * lib/diffseq.h: Add comments about required #includes.
34840         Reported by Michael Biggs <gnulib@doubleplum.net>.
34841
34842 2008-02-01  Bruno Haible  <bruno@clisp.org>
34843
34844         * users.txt: Add gnuit.
34845
34846 2008-01-31  Bruno Haible  <bruno@clisp.org>
34847
34848         * lib/md4.c (set_uint32): Mark as inline.
34849         * lib/md5.c (set_uint32): Likewise.
34850         * lib/sha1.c (set_uint32): Likewise.
34851         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34852         * m4/md5.m4 (gl_MD5): Likewise.
34853         * m4/sha1.m4 (gl_SHA1): Likewise.
34854
34855 2008-01-31  Jim Meyering  <meyering@redhat.com>
34856
34857         Use "sizeof VAR", rather than a literal "4".
34858         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34859         * lib/md4.c (md4_read_ctx): Likewise.
34860         * lib/sha1.c (sha1_read_ctx): Likewise.
34861
34862 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34863
34864         * tests/test-sha1.c: New file, based on test-md5.c.
34865
34866         * modules/crypto/sha1-tests: New file.
34867
34868 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34869
34870         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
34871
34872 2008-01-31  Jim Meyering  <meyering@redhat.com>
34873
34874         Prefer "sizeof v" over the equivalent "4".
34875         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
34876         * lib/md5.c (set_uint32): Likewise.
34877         * lib/sha1.c (set_uint32): Likewise.
34878
34879 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34880
34881         * lib/sha1.c (set_uint32): Mark function as static.
34882
34883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34884
34885         md2: clarify comments to say that alignment is not required.
34886         * lib/md2.h: Remove warning about alignment in comment.
34887         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
34888         never been required.
34889
34890 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34891
34892         md4: adapt alignment constraint fix from sha1.
34893         * lib/md4.c (set_uint32): New function, from sha1.c
34894         (md4_read_ctx): Use it.
34895         (md4_finish_ctx): Doc fix.
34896         * lib/md4.h: Doc fix.
34897
34898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
34899
34900         md5: adapt alignment constraint fix from sha1.
34901         * lib/md5.c (set_uint32): New function, from sha1.c
34902         (md5_read_ctx): Use it.
34903         (md5_finish_ctx): Doc fix.
34904         * lib/md5.h: Doc fix.
34905
34906 2008-01-30  Peter Palfrader  <weasel@debian.org>
34907
34908         sha1: remove the result buffer alignment constraint
34909         * lib/sha1.c (set_uint32): New function.
34910         (sha1_read_ctx): Rewrite to remove the result buffer alignment
34911         constraint.
34912         (sha1_finish_ctx): Remove comment warning about alignment constraint.
34913         * lib/sha1.h: Likewise.
34914
34915 2008-01-30  Andreas Schwab  <schwab@suse.de>
34916             Bruno Haible  <bruno@clisp.org>
34917
34918         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
34919         correct definition of LDBL_MIN_EXP.
34920
34921 2008-01-30  Karl Berry  <karl@gnu.org>
34922
34923         * config/srclist-update: try to preserve x bit on updates.
34924         * config/srclistvars.sh: update for karl.
34925
34926 2008-01-29  Jim Meyering  <meyering@redhat.com>
34927
34928         vasnprintf.c: Avoid warning about unused label
34929         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
34930         "overflow" label definition and associated code with the
34931         same cpp condition that guards the sole use of that label.
34932
34933 2008-01-26  Bruno Haible  <bruno@clisp.org>
34934
34935         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
34936         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
34937         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
34938         * lib/isnanl-nolibm.h (isnanl): Likewise.
34939         Reported by Paul Eggert <eggert@cs.ucla.edu>.
34940
34941 2008-01-26  Bruno Haible  <bruno@clisp.org>
34942
34943         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
34944         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
34945
34946 2008-01-26  Bruno Haible  <bruno@clisp.org>
34947
34948         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
34949         GCC >= 4.0 built-in.
34950         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
34951
34952 2008-01-26  Bruno Haible  <bruno@clisp.org>
34953
34954         Rename isnan, applicable to 'double' only, to isnand.
34955         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
34956         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
34957         (configure.ac): Update.
34958         (Include): Replace "isnan.h" with "isnand.h".
34959         * m4/isnand.m4: Renamed from m4/isnan.m4.
34960         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
34961         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
34962         instead of isnan.c.
34963         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
34964         instead of HAVE_ISNAN_IN_LIBC.
34965         (isnand): Renamed from isnan.
34966         * lib/isnand.c: New file.
34967         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
34968         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
34969         (Makefile.am): Update.
34970         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
34971         Include isnand.h instead of isnan.h.
34972         (main): Test isnand instead of isnan.
34973         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
34974         isnan-nolibm.
34975         * modules/frexp (Depends-on): Likewise.
34976         * modules/frexp-tests (Depends-on): Likewise.
34977         * modules/frexp-nolibm (Depends-on): Likewise.
34978         * modules/frexp-nolibm-tests (Depends-on): Likewise.
34979         * modules/isfinite (Depends-on): Likewise.
34980         * modules/round-tests (Depends-on): Likewise.
34981         * modules/signbit (Depends-on): Likewise.
34982         * modules/signbit-tests (Depends-on): Likewise.
34983         * modules/snprintf-posix (Depends-on): Likewise.
34984         * modules/sprintf-posix (Depends-on): Likewise.
34985         * modules/trunc-tests (Depends-on): Likewise.
34986         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34987         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34988         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34989         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34990         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34991         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34992         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34993         * modules/vasnprintf-posix (Depends-on): Likewise.
34994         * modules/vasprintf-posix (Depends-on): Likewise.
34995         * modules/vfprintf-posix (Depends-on): Likewise.
34996         * modules/vsnprintf-posix (Depends-on): Likewise.
34997         * modules/vsprintf-posix (Depends-on): Likewise.
34998         * lib/frexp.c: Include isnand.h instead of isnan.h.
34999         (ISNAN): Set to isnand instead of isnan.
35000         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35001         (gl_isfinited): Use isnand instead of isnan.
35002         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35003         (gl_signbitd): Use isnand instead of isnan.
35004         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35005         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35006         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35007         (main): Use isnand instead of isnan.
35008         * tests/test-round1.c: Include isnand.h.
35009         (main): Use isnand instead of isnan.
35010         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35011         (ISNAN): Set to isnand instead of isnan.
35012         * tests/test-trunc1.c: Include isnand.h.
35013         (main): Use isnand instead of isnan.
35014         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35015         (equal): Use isnand instead of isnan.
35016         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35017         isnand-nolibm.
35018         * NEWS: Mention the change.
35019
35020 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35021             Bruno Haible  <bruno@clisp.org>
35022
35023         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35024         the GCC builtins for signbits are present and set
35025         REPLACE_SIGNBIT_USING_GCC if so.
35026         * lib/math.in.h (signbit): Define using GCC builtins if
35027         REPLACE_SIGNBIT_USING_GCC is set.
35028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35029         REPLACE_SIGNBIT_USING_GCC.
35030         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35031
35032 2008-01-25  Jim Meyering  <meyering@redhat.com>
35033
35034         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35035         * lib/poll.c: Include <config.h>, not "config.h".
35036         * tests/test-getaddrinfo.c: Likewise.
35037
35038 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35039
35040         * modules/sockets-tests: New file.
35041
35042 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35043
35044         * modules/sockets: New module, can be used to call WSA_Startup and
35045         WSA_Cleanup when needed.
35046
35047         * lib/sockets.h, lib/sockets.c: New files.
35048
35049         * m4/sockets.m4: New file.
35050
35051         * tests/test-sockets.c: New file.
35052
35053 2008-01-19  Bruno Haible  <bruno@clisp.org>
35054
35055         * doc/posix-headers: Renamed from doc/headers.
35056         * doc/posix-functions: Renamed from doc/functions.
35057         * doc/gnulib.texi: Update.
35058
35059 2008-01-19  Bruno Haible  <bruno@clisp.org>
35060
35061         * doc/glibc-functions/strcasestr.texi: Include contents of
35062         doc/functions/strcasestr.texi, fixing the list of platforms.
35063         * doc/functions/strcasestr.texi: Remove file.
35064
35065 2008-01-19  Bruno Haible  <bruno@clisp.org>
35066
35067         * doc/glibc-functions/memmem.texi: Include contents of
35068         doc/functions/memmem.texi.
35069         * doc/functions/memmem.texi: Remove file.
35070
35071 2008-01-18  Bruno Haible  <bruno@clisp.org>
35072
35073         * doc/glibc-functions/*.texi: New files.
35074         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35075         to use the new files.
35076
35077 2008-01-17  Bruno Haible  <bruno@clisp.org>
35078
35079         * tests/test-gethostname.c (main): Fix printf statement.
35080
35081 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35082
35083         * modules/gethostname-tests: New file.
35084
35085         * tests/test-gethostname.c: New file.
35086
35087 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35088
35089         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35090         used by the UNAME case.  Reported by Bruno Haible
35091         <bruno@clisp.org>.
35092
35093 2008-01-17  Eric Blake  <ebb9@byu.net>
35094
35095         Convert c-strcasestr to be more efficient.
35096         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35097         (Depends-on): Add c-strcase, remove malloca, strnlen.
35098         * tests/test-c-strcasestr.c (main): Enhance test.
35099         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35100
35101 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35102
35103         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35104         Use it in creating po/Makevars.
35105
35106 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35107
35108         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35109         Applications that requires it should initialize libgcrypt
35110         manually.
35111
35112 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35113
35114         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35115
35116 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35117
35118         Fix problem with getdate on mingw32 reported by Simon Josefsson
35119         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35120         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35121         tzname", when deciding whether to declare tzname.
35122         * lib/strftime.c (tzname): Likewise.
35123
35124 2008-01-15  Bruno Haible  <bruno@clisp.org>
35125
35126         Work around a MacOS X 10.5 bug in frexpl().
35127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35128         * doc/functions/frexpl.texi: Document the bug.
35129         Reported by Elias Pipping <pipping@gentoo.org>.
35130
35131 2008-01-14  Eric Blake  <ebb9@byu.net>
35132
35133         Touch up previous patch.
35134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35135         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35136
35137         Convert strcasestr module to use Two-Way algorithm.
35138         * modules/strcasestr-simple: New module, based on the old
35139         strcasestr, but with Two-Way rather than KMP.
35140         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35141         * lib/string.in.h (rpl_strcasestr): Declare.
35142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35143         performance.
35144         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35145         * modules/string (Makefile.am): Support strcasestr.
35146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35147         * modules/strcasestr-tests (Depends-on): Check for alarm.
35148         * tests/test-strcasestr.c: Augment test.
35149         * lib/str-two-way.h: Clean up stray macro.
35150         * NEWS: Document new module.
35151         * MODULES.html.sh (string handling): Likewise.
35152         * doc/functions/strcasestr.texi: New file.
35153         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35154         here, since it is not a POSIX function.
35155
35156 2008-01-14  Colin Watson  <cjwatson@debian.org>
35157             Bruno Haible  <bruno@clisp.org>
35158
35159         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35160         works fine; if not, set REPLACE_STRSIGNAL.
35161         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35163         REPLACE_STRSIGNAL.
35164         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35165         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35166         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35167
35168 2008-01-14  Bruno Haible  <bruno@clisp.org>
35169
35170         * modules/strsignal (Include): Change to <string.h>.
35171
35172 2008-01-14  Colin Watson  <cjwatson@debian.org>
35173
35174         * modules/argp (Notice): Add a notice recommending to change
35175         XGETTEXT_OPTIONS.
35176         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35177
35178 2008-01-13  Colin Watson  <cjwatson@debian.org>
35179
35180         * modules/strsignal-tests: New file.
35181         * tests/test-strsignal.c: New file.
35182
35183         * lib/strsignal.c: New file, from glibc with modifications.
35184         * lib/siglist.h: New file, from glibc with modifications.
35185         * lib/string.in.h (strsignal): New declaration.
35186         * m4/strsignal.m4: New file.
35187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35188         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35189         * modules/strsignal: New file.
35190         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35191         HAVE_DECL_STRSIGNAL.
35192
35193 2008-01-13  Bruno Haible  <bruno@clisp.org>
35194
35195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35196         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35199
35200 2008-01-13  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35203         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35204         * lib/argp.h (__attribute__): Likewise.
35205         * lib/c-stack.c (__attribute__): Likewise.
35206         * lib/error.h (__attribute__): Likewise.
35207         * lib/fts.c (__attribute__): Likewise.
35208         * lib/openat.h (__attribute__): Likewise.
35209         * lib/stdio.in.h (__attribute__): Likewise.
35210         * lib/string.in.h (__attribute__): Likewise.
35211         * lib/utimens.c (__attribute__): Likewise.
35212         * lib/vasnprintf.h (__attribute__): Likewise.
35213         * lib/xalloc.h (__attribute__): Likewise.
35214         * lib/xprintf.h (__attribute__): Likewise.
35215         * lib/xstrtol.h (__attribute__): Likewise.
35216         * lib/xvasprintf.h (__attribute__): Likewise.
35217
35218 2008-01-12  Bruno Haible  <bruno@clisp.org>
35219
35220         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35221         * doc/glibc-headers/a.out.texi: New file.
35222         * doc/glibc-headers/aliases.texi: New file.
35223         * doc/glibc-headers/alloca.texi: New file.
35224         * doc/glibc-headers/ar.texi: New file.
35225         * doc/glibc-headers/argp.texi: New file.
35226         * doc/glibc-headers/argz.texi: New file.
35227         * doc/glibc-headers/byteswap.texi: New file.
35228         * doc/glibc-headers/crypt.texi: New file.
35229         * doc/glibc-headers/endian.texi: New file.
35230         * doc/glibc-headers/envz.texi: New file.
35231         * doc/glibc-headers/err.texi: New file.
35232         * doc/glibc-headers/error.texi: New file.
35233         * doc/glibc-headers/execinfo.texi: New file.
35234         * doc/glibc-headers/fpu_control.texi: New file.
35235         * doc/glibc-headers/fstab.texi: New file.
35236         * doc/glibc-headers/fts.texi: New file.
35237         * doc/glibc-headers/getopt.texi: New file.
35238         * doc/glibc-headers/ieee754.texi: New file.
35239         * doc/glibc-headers/ifaddrs.texi: New file.
35240         * doc/glibc-headers/libintl.texi: New file.
35241         * doc/glibc-headers/mcheck.texi: New file.
35242         * doc/glibc-headers/mntent.texi: New file.
35243         * doc/glibc-headers/obstack.texi: New file.
35244         * doc/glibc-headers/paths.texi: New file.
35245         * doc/glibc-headers/printf.texi: New file.
35246         * doc/glibc-headers/pty.texi: New file.
35247         * doc/glibc-headers/resolv.texi: New file.
35248         * doc/glibc-headers/shadow.texi: New file.
35249         * doc/glibc-headers/sysexits.texi: New file.
35250         * doc/glibc-headers/ttyent.texi: New file.
35251
35252 2008-01-12  Jim Meyering  <meyering@redhat.com>
35253
35254         announce-gen: emit Gnulib's git-based version string.
35255         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35256         New option --gnulib-version=V, where V is expected to be
35257         the output of running git describe in the gnulib directory.
35258         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35259         not useful, and plan to stop publishing an xdelta file with each
35260         coreutils release.
35261
35262         * build-aux/announce-gen: Also check for lzma-compressed files.
35263
35264 2008-01-11  Bruno Haible  <bruno@clisp.org>
35265
35266         * tests/test-memmem.c (main): Increase maximum allowed time.
35267         * tests/test-strstr.c (main): Likewise.
35268
35269 2008-01-11  Bruno Haible  <bruno@clisp.org>
35270
35271         * doc/functions/memmem.texi: Add more precisions about platforms.
35272         * doc/functions/strstr.texi: Likewise.
35273
35274 2008-01-10  Eric Blake  <ebb9@byu.net>
35275
35276         * m4/strstr.m4: Delete cruft from copy-n-paste.
35277         Reported by Bruno Haible.
35278
35279 2008-01-10  Bruno Haible  <bruno@clisp.org>
35280
35281         Make c-strstr rely on strstr.
35282         * lib/c-strstr.c: Don't include str-kmp.h.
35283         (c_strstr): Define in terms of strstr.
35284         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35285         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35286
35287 2008-01-10  Bruno Haible  <bruno@clisp.org>
35288
35289         * doc/gnulib.texi (String Functions in C Locale): New section.
35290         * doc/c-ctype.texi: New file.
35291         * doc/c-strcase.texi: New file.
35292         * doc/c-strcaseeq.texi: New file.
35293         * doc/c-strcasestr.texi: New file.
35294         * doc/c-strstr.texi: New file.
35295         * doc/c-strtod.texi: New file.
35296         * doc/c-strtold.texi: New file.
35297
35298 2008-01-10  Eric Blake  <ebb9@byu.net>
35299
35300         * lib/relocatable.h: Fix a comment.
35301
35302 2008-01-10  Eric Blake  <ebb9@byu.net>
35303
35304         Share two-way algorithm.
35305         * lib/str-two-way.h: New file, merged from...
35306         * lib/memmem.c: ...here...
35307         * lib/strstr.c: ...and here.
35308         * modules/memmem (Files): Use it.
35309         * modules/strstr (Files): Likewise.
35310
35311         Avoid quadratic strstr implementations.
35312         * lib/strstr.c: New file.
35313         * m4/strstr.m4: Likewise.
35314         * modules/strstr: Likewise.
35315         * modules/strstr-tests: Likewise.
35316         * tests/test-strstr.c: Likewise.
35317         * lib/string.in.h (rpl_strstr): Declare.
35318         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35320         * modules/string (Makefile.am): Likewise.
35321         * MODULES.html.sh (string handling): Mention new module.
35322         * doc/functions/strstr.texi (strstr): Document the bug.
35323
35324 2008-01-10  Bruno Haible  <bruno@clisp.org>
35325
35326         * lib/relocatable.h (relocate): State whether result is freshly
35327         allocated or not.
35328         * lib/relocatable.c (relocate): Return a freshly allocated string
35329         instead of a pointer to a privately held string.
35330         Reported by Sylvain Beucler <beuc@gnu.org>.
35331
35332 2008-01-10  Colin Watson  <cjwatson@debian.org>
35333
35334         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35335         s/S_ISNLK/S_ISLNK/.
35336
35337 2008-01-09  Bruno Haible  <bruno@clisp.org>
35338
35339         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35340         and other files.
35341         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35342         if it's only a guess.
35343         * modules/memmem: Simplify by depending on memmem-simple.
35344
35345 2008-01-09  Bruno Haible  <bruno@clisp.org>
35346
35347         Work around OpenBSD 4.0 tdelete() bug.
35348         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35349         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35350         macros and don't redefine the enum values.
35351         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35352         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35353         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35354
35355 2008-01-09  Bruno Haible  <bruno@clisp.org>
35356
35357         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35358         (main): Don't perform the tests if setlocale did not install a UTF-8
35359         locale. Needed on OpenBSD 4.0.
35360         * modules/wcwidth-tests (Depends-on): Add localcharset.
35361
35362 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35363
35364         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35365         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35366         * NEWS: announce this.
35367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35368
35369 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35370         and Eric Blake  <ebb9@byu.net>
35371
35372         Add memmem-simple module.
35373         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35374         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35375         * modules/memmem-simple: New file.
35376         * modules/memmem (Description): Tweak.
35377         * MODULES.html.sh (string handling): Mention new module.
35378         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35379         addressed by memmem-simple.
35380         * NEWS: Document the difference.
35381
35382 2008-01-09  Eric Blake  <ebb9@byu.net>
35383
35384         Give gcc some memmem optimization hints.
35385         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35386         (strcasestr): Declare as pure.
35387         * modules/memmem (Maintainer): Claim my implementation.
35388
35389 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35390
35391         Support AIX 6.1 and higher.
35392         * build-aux/config.libpath: Likewise.
35393         * build-aux/config.rpath: Likewise.
35394
35395 2008-01-08  Jim Meyering  <meyering@redhat.com>
35396             Bruno Haible  <bruno@clisp.org>
35397
35398         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35399         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35400         Reported by Peter Fales in
35401         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35402
35403 2008-01-08  Bruno Haible  <bruno@clisp.org>
35404
35405         * modules/unictype/category-of (Depends-on): Add
35406         unictype/category-none.
35407         * modules/unictype/category-and-tests (Depends-on): Add
35408         unictype/category-{L,N,Lu,Nd}.
35409         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35410         * modules/unictype/category-or-tests (Depends-on): Add
35411         unictype/category-{L,N}.
35412         * modules/unictype/category-name-tests (Depends-on): Add
35413         unictype/category-{Z,Nl}.
35414         Reported by Simon Josefsson.
35415
35416 2008-01-08  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35419         convention better.
35420         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35421         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35422         Reported by Peter Miller <millerp@canb.auug.org.au>.
35423
35424 2008-01-08  Eric Blake  <ebb9@byu.net>
35425
35426         Rewrite memmem to guarantee linear complexity without malloc.
35427         * lib/memmem.c (memmem): Use Two-Way rather than
35428         Knuth-Morris-Pratt, to allow O(1) space usage.
35429         (critical_factorization, two_way_short_needle)
35430         (two_way_long_needle): New functions.
35431         (knuth_morris_pratt): Delete.
35432         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35433         Add stdint.
35434         * tests/test-memmem.c (main): Add tests for periodic needle and
35435         sublinear performance.
35436         * doc/functions/memmem.texi (memmem): Document other deficiencies
35437         in cygwin and older glibc.
35438
35439 2008-01-08  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35442         augmentation.
35443
35444 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35445
35446         Add a configure time option: --disable-acl.
35447         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35448         AC_ARG_ENABLE(acl).
35449
35450 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35451
35452         * tests/test-localename.c: Don't include obsolete "setenv.h".
35453
35454         * modules/localename-tests (Depends-on): Need unsetenv.
35455
35456 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35457
35458         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35459
35460 2008-01-06  Colin Watson  <cjwatson@debian.org>
35461
35462         * users.txt: Add man-db.
35463
35464 2008-01-07  Bruno Haible  <bruno@clisp.org>
35465
35466         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35467         previous section name.
35468
35469 2008-01-07  Bruno Haible  <bruno@clisp.org>
35470
35471         * lib/progname.c (set_program_name): Don't strip off a leading
35472         "lt-" prefix outside a .libs directory.
35473         Suggested by Paul Eggert.
35474
35475 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35476             Bruno Haible  <bruno@clisp.org>
35477
35478         Improve memory cleanup in 'relocatable' module.
35479         * lib/relocatable.h (compute_curr_prefix): Change return type to
35480         'char *'.
35481         * lib/relocatable.c (compute_curr_prefix): Change return type to
35482         'char *'. Free curr_installdir after use.
35483         (relocate): Free curr_prefix_better after use.
35484         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35485
35486 2008-01-01  Bruno Haible  <bruno@clisp.org>
35487
35488         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35489         failure on older glibc systems.
35490         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35491
35492 2008-01-05  Eric Blake  <ebb9@byu.net>
35493
35494         Avoid quadratic system memmem.
35495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35496         Reported by Ralf Wildenhues.
35497
35498         Fix memmem test for mingw.
35499         * modules/memmem-tests (configure.ac): Check for alarm.
35500         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35501         it.
35502         * doc/functions/memmem.texi: New file.
35503         * doc/gnulib.texi (Function Substitutes): Add memmem.
35504         Reported by Bruno Haible.
35505
35506 2008-01-04  Bruno Haible  <bruno@clisp.org>
35507
35508         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35509         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35510         gl_HEADER_STRING_H_DEFAULTS.
35511
35512 2008-01-04  Eric Blake  <ebb9@byu.net>
35513
35514         Shorten duration of memmem test.
35515         * tests/test-memmem.c (main): Use alarm to declare failure if test
35516         is taking too long.
35517         Reported by Ralf Wildenhues.
35518
35519 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35520
35521         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35522         string, needed by strerror.
35523
35524 2008-01-03  Colin Watson  <cjwatson@debian.org>
35525             Bruno Haible  <bruno@clisp.org>
35526
35527         * doc/gnulib-tool.texi (Localization): New section.
35528
35529 2008-01-02  Bruno Haible  <bruno@clisp.org>
35530
35531         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35532         variables to 'unsigned char *' type.
35533         Reported by Paul Eggert.
35534
35535 2008-01-02  Jim Meyering  <jim@meyering.net>
35536
35537         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35538
35539 2007-12-31  Jim Meyering  <jim@meyering.net>
35540
35541         Avoid use of private FTS type name.
35542         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35543
35544 2007-12-30  Karl Berry  <karl@gnu.org>
35545
35546         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35547         work around defect in Texinfo and/or the standalone Info browser.
35548
35549 2007-12-30  Bruno Haible  <bruno@clisp.org>
35550
35551         Unify 5 copies of the KMP code.
35552         * lib/str-kmp.h: New file.
35553         * lib/c-strcasestr.c: Include str-kmp.h.
35554         (knuth_morris_pratt): Remove function.
35555         (c_strcasestr): Update.
35556         * lib/c-strstr.c: Include str-kmp.h.
35557         (knuth_morris_pratt): Remove function.
35558         (c_strcasestr): Update.
35559         * lib/mbscasestr.c: Include str-kmp.h.
35560         (knuth_morris_pratt_unibyte): Remove function.
35561         * lib/mbsstr.c: Include str-kmp.h.
35562         (knuth_morris_pratt_unibyte): Remove function.
35563         * lib/strcasestr.c: Include str-kmp.h.
35564         (knuth_morris_pratt): Remove function.
35565         (strcasestr): Update.
35566         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35567         * modules/c-strstr (Files): Likewise.
35568         * modules/mbscasestr (Files): Likewise.
35569         * modules/mbsstr (Files): Likewise.
35570         * modules/strcasestr (Files): Likewise.
35571         Suggested by Paul Eggert.
35572
35573 2007-12-30  Bruno Haible  <bruno@clisp.org>
35574
35575         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35576         defined.
35577
35578 2007-12-30  Bruno Haible  <bruno@clisp.org>
35579
35580         * lib/xmalloca.h: Include xalloc.h.
35581         (xnmalloca): New macro.
35582
35583 2007-12-30  Bruno Haible  <bruno@clisp.org>
35584
35585         * lib/malloca.h (nmalloca): New macro.
35586         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35587         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35588         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35589         knuth_morris_pratt_multibyte): Likewise.
35590         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35591         knuth_morris_pratt_multibyte): Likewise.
35592         * lib/memmem.c (knuth_morris_pratt): Likewise.
35593         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35594
35595 2007-12-25  Bruno Haible  <bruno@clisp.org>
35596
35597         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35598         * lib/glob.c: Don't include openat.h.
35599         (link_exists2_p): Add back the code that deals with the
35600         !GLOB_ALTDIRFUNC case.
35601         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35602         let it do the filename concatenation.
35603         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35604         * modules/glob (Depends-on): Remove openat.
35605
35606 2007-12-31  Bruno Haible  <bruno@clisp.org>
35607
35608         * modules/dirfd (License): Change to LGPLv2+.
35609         Approved by Jim Meyering.
35610
35611 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35612
35613         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35614         when multiplying M by sizeof (size_t).
35615
35616 2007-12-10  Martin Lambers  <marlam@marlam.de>
35617
35618         Override getpagesize on mingw.
35619         * lib/getpagesize.c: New file.
35620         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35621         * modules/getpagesize (Files): Add lib/getpagesize.c.
35622         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35624         REPLACE_GETPAGESIZE.
35625         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35626
35627 2007-12-25  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/localcharset (Notice): New field.
35630         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35631         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35632
35633 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35634             Bruno Haible  <bruno@clisp.org>
35635
35636         Avoid using the syntax symbol() in formatted documentation.
35637         * MODULES.html.sh (func_module): When replacing symbol() with a
35638         hyperlink, remove the parentheses. Show an error if some remain.
35639         Recognize and render the '...' syntax.
35640         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35641         Rework. Add paragraph about GCC's inlining.
35642         * doc/alloca.texi: Likewise.
35643         * doc/error.texi: Remove parentheses from symbol reference.
35644         * doc/gnulib-intro.texi: Likewise.
35645         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35646         * modules/fnmatch (Description): Reword to say "the ... function".
35647         * modules/full-read (Description): Likewise.
35648         * modules/full-write (Description): Likewise.
35649         * modules/safe-read (Description): Likewise.
35650         * modules/safe-write (Description): Likewise.
35651         * modules/strchrnul (Description): Likewise.
35652         * modules/trim (Description): Likewise.
35653         * modules/error (Description): Remove parentheses from symbol
35654         references.
35655         * modules/verror (Description): Likewise.
35656         Reported by Karl Berry.
35657
35658 2007-12-25  Bruno Haible  <bruno@clisp.org>
35659
35660         Fixup after 2007-10-16 commit.
35661         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35662
35663 2007-12-24  Bruno Haible  <bruno@clisp.org>
35664
35665         Make --enable-relocatable work with DESTDIR.
35666         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35667         to compute installdir from destprog.
35668         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35669         also set the RELOC_DESTDIR variable.
35670         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35671
35672 2007-12-24  Bruno Haible  <bruno@clisp.org>
35673
35674         Fix link error due to xalloc_die().
35675         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35676         of xreadlink.
35677         * lib/relocwrapper.c: Update comments.
35678         * build-aux/install-reloc: Remove xreadlink.c from file list.
35679         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35680         xreadlink.c.
35681         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35682
35683 2007-12-24  Bruno Haible  <bruno@clisp.org>
35684
35685         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35686         * lib/setenv.h: Remove file.
35687         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35688         lib/setenv.h.
35689         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35690         (Depends-on): Add stdlib.
35691         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35692         gl_FUNC_UNSETENV.
35693         (Include): Replace setenv.h with <stdlib.h>.
35694         * modules/unsetenv: New file.
35695         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35696         * lib/unsetenv.c: Include <stdlib.h> first.
35697         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35698         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35699         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35700         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35701         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35702         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35704         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35705         * doc/functions/unsetenv.texi: Update.
35706         * modules/xsetenv (Depends-on): Add unsetenv.
35707         * modules/getdate (Depends-on): Likewise.
35708         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35709         * lib/xsetenv.c: Don't include setenv.h.
35710         * lib/getdate.y: Likewise.
35711         * lib/relocwrapper.c: Likewise.
35712         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35713         (Depends-on): Add stdlib.
35714         * NEWS: Mention the changes.
35715         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35716
35717 2007-12-23  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35720         indentation.
35721
35722 2007-12-23  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/c-strcasestr.c: Add more comments.
35725         * lib/c-strstr.c: Likewise.
35726         * lib/mbscasestr.c: Likewise.
35727         * lib/mbsstr.c: Likewise.
35728         * lib/strcasestr.c: Likewise.
35729         * lib/memmem.c: Likewise.
35730
35731 2007-12-23  Bruno Haible  <bruno@clisp.org>
35732
35733         * tests/test-memmem.c: Include <string.h> first.
35734
35735 2007-12-22  Bruno Haible  <bruno@clisp.org>
35736
35737         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35738         the contents of $testsbase.
35739         Reported by Ralf Wildenhues.
35740
35741 2007-12-22  Bruno Haible  <bruno@clisp.org>
35742
35743         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35744         two variables local_ldadd_before, local_ldadd_last.
35745
35746 2007-12-20  Eric Blake  <ebb9@byu.net>
35747
35748         Work around circular library issue when cross-compiling.
35749         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35750         that progname.o does not need to pull in rpl_memcmp.
35751
35752 2007-12-19  Eric Blake  <ebb9@byu.net>
35753
35754         Fix memmem to avoid O(n^2) worst-case complexity.
35755         * lib/memmem.c (knuth_morris_pratt): New function.
35756         (memmem): Use it if first few naive iterations fail.
35757         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35758         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35759         * modules/memchr (License): Likewise.
35760         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35761         malloca.
35762         * tests/test-memmem.c: Rewrite, borrowing ideas from
35763         test-mbsstr1.c; the old version wouldn't even compile!
35764         * modules/memmem-tests: New file.
35765         * lib/string.in.h (rpl_memmem): Add declaration.
35766         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35767         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35768         REPLACE_MEMMEM.
35769
35770 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35771
35772         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35773         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35774         before any system include files, and undef after them all.  This
35775         should fix a problem on VMS reported by John E. Malmberg in
35776         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35777
35778 2007-12-17  Eric Blake  <ebb9@byu.net>
35779
35780         Revert addition of verify, for BSD/OS.
35781         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35782         can't handle large files, for the sake of obsolete platforms.
35783         * modules/fseeko (Depends-on): Remove verify.
35784         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35785         * doc/functions/ftello.texi (ftello): Likewise.
35786         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35787         Reported by Larry Jones.
35788
35789 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35790
35791         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35792         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35793
35794 2007-12-17  Jim Meyering  <meyering@redhat.com>
35795
35796         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35797         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35798         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35799         * modules/getcwd (Depends-on): Add openat.
35800         Reported by Petr Salinger.
35801
35802 2007-12-17  Bruno Haible  <bruno@clisp.org>
35803
35804         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35805         avoid a segmentation fault of the configure test on x86_64 systems.
35806
35807 2007-12-15  Jim Meyering  <meyering@redhat.com>
35808
35809         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35810
35811 2007-12-13  Eric Blake  <ebb9@byu.net>
35812
35813         Another fseek test.
35814         * tests/test-fseek.c (main): Also test ungetc handling.
35815         * tests/test-fseeko.c (main): Likewise.
35816         * modules/fseeko (Depends-on): Add verify.
35817         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35818         large.
35819         Reported by Larry Jones.
35820
35821         Fix fseeko on mingw.
35822         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35823         seek.
35824
35825         Beef up fseek tests.
35826         * tests/test-fseek.c (main): Also test eof handling.
35827         * tests/test-fseeko.c (main): Likewise.
35828         Reported by Larry Jones.
35829
35830 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35831
35832         Fix fseeko on BSD-based platforms.
35833         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35834         successful seek.
35835
35836 2007-12-12  Eric Blake  <ebb9@byu.net>
35837
35838         Allow circular dependency of separate libtests.a
35839         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35840         when use_libtests.
35841
35842 2007-12-11  Eric Blake  <ebb9@byu.net>
35843
35844         Fix bug with -0.0L in previous patch.
35845         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35846         * tests/test-isnan.c (main): Also test on zeroes.
35847         * tests/test-isnanf.c (main): Likewise.
35848         * tests/test-isnanl.h (main): Likewise.
35849
35850         Detect pseudo-denormals on x86 even when cross-compiling.
35851         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35852         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35853         invalid bit patterns that happen to satisfy ==.
35854
35855         Avoid link failures with separate libtests.a.
35856         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35857         last, to satisfy circular dependencies.
35858
35859 2007-12-11  Eric Blake  <ebb9@byu.net>
35860         and Bruno Haible  <bruno@clisp.org>
35861
35862         Fix OpenBSD 4.0 <float.h> handling of long double.
35863         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
35864         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
35865         * doc/headers/float.texi (float.h): Document OpenBSD bug.
35866
35867 2007-12-11  Jim Meyering  <meyering@redhat.com>
35868
35869         * users.txt: Add libvirt.
35870
35871         Support versions of autoconf prior to 2.59c.
35872         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
35873         if it is not already defined.
35874
35875 2007-12-09  Bruno Haible  <bruno@clisp.org>
35876
35877         Let 'gnulib-tool --import' collect sources needed for the tests in
35878         tests/ rather than in lib/.
35879         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
35880         argument. If true, add rules to generate libtests.a, and put libtests.a
35881         into $(LDADD). Consider source files in subdirectories and set
35882         uses_subdirs.
35883         (func_emit_initmacro_start, func_emit_initmacro_end,
35884         func_emit_initmacro_done): Pass all arguments explicitly.
35885         (func_import): Determine two module lists main_modules,
35886         testsrelated_modules. Determine use_libtests. Determine two variables
35887         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
35888         instead of just sed_transform_lib_file. Determine two variables
35889         main_files and testsrelated_files. Compute 'files' as the union of
35890         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
35891         func_add_or_update. In the generated gnulib-comp.m4, collect the
35892         object files for tests/ in different variables than those for lib/.
35893         Substitute LIBTESTS_LIBDEPS.
35894         (func_create_testdir): Combine the uses_subdirs results from
35895         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
35896
35897 2007-12-09  Bruno Haible  <bruno@clisp.org>
35898
35899         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
35900         the build-aux directory.
35901
35902 2007-12-09  Bruno Haible  <bruno@clisp.org>
35903
35904         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
35905         introduced on 2006-09-09.
35906
35907 2007-12-07  Jim Meyering  <meyering@redhat.com>
35908
35909         Let these macros work also with autoconf-2.59.
35910         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
35911         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
35912         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35913
35914 2007-12-06  Jim Meyering  <meyering@redhat.com>
35915
35916         Avoid a configure-time syntax error in gl_FUNC_ACL.
35917         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
35918         function in each branch, before testing the cache variable.
35919
35920 2007-12-04  Eric Blake  <ebb9@byu.net>
35921
35922         Make scripts executable.
35923         * build-aux/config.guess: Add execute permissions.
35924         * build-aux/config.sub: Likewise.
35925         * build-aux/gendocs.sh: Likewise.
35926
35927         Fix frexp on mingw.
35928         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
35929         cross-compiling.
35930         * doc/functions/frexp.texi (frexp): Document the bug.
35931
35932         Make cygwin fseeko check more reliable.
35933         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
35934         version numbers, rather than unrelated feature check.
35935         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
35936         * doc/functions/ftello.texi (ftello): Likewise.
35937         Reported by Bruno Haible.
35938
35939         * m4/strerror.m4: Bump version number.
35940
35941 2007-12-03  Bruno Haible  <bruno@clisp.org>
35942
35943         * doc/functions/mprotect.texi: Mention the mingw problem.
35944
35945 2007-12-03  Eric Blake  <ebb9@byu.net>
35946
35947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
35948         REPLACE_STRERROR is initialized before this macro.
35949
35950 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
35951
35952         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
35953         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
35954         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
35955         put -lsec in even for programs other than 'ls'.  This fixes a problem
35956         for gettext reported by Bruno Haible in
35957         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
35958         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
35959         Add support for Solaris 10.  This isn't efficient, but should get the
35960         job done for now.
35961
35962 2007-12-03  James Youngman  <jay@gnu.org>
35963
35964         * doc/regexprops-generic.texi: change "an close-group" to "a
35965         close-group" and "illegal" to "not allowed".
35966
35967 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35968
35969         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
35970         pr_byname.h. Needed for the rare case when the maintainer has done
35971         "make maintainer-clean" in the source directory and then attempts a
35972         build outside the source directory.
35973         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
35974         scripts_byname.h.
35975
35976 2007-12-02  Martin Lambers <marlam@marlam.de>
35977             Bruno Haible  <bruno@clisp.org>
35978
35979         * lib/getpagesize.h: Remove file.
35980         * lib/unistd.in.h: Include declaration of getpagesize here.
35981         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
35982         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
35983         HAVE_SYS_PARAM_H.
35984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
35985         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35986         * modules/getpagesize (Files): Remove lib/getpagesize.h.
35987         (Depends-on): Add unistd.
35988         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35989         (Include): Use <unistd.h> instead of getpagesize.h.
35990         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
35991         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
35992         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
35993         gl_GETPAGESIZE invocation, already handled by module dependency.
35994         * lib/pagealign_alloc.c: Don't include getpagesize.h.
35995
35996 2007-12-02  Bruno Haible  <bruno@clisp.org>
35997
35998         * modules/strings-tests: New file.
35999         * tests/test-strings.c: New file.
36000
36001         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36002         * lib/strings.in.h: New file.
36003         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36004         * m4/strings_h.m4: New file.
36005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36006         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36007         * modules/strings: New file.
36008         * modules/string (Makefile.am): Update.
36009         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36010         Reported by Karl Berry.
36011
36012 2007-12-01  Eric Blake  <ebb9@byu.net>
36013
36014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36015         accomodate fix in cygwin 1.5.25.
36016
36017 2007-12-01  Jim Meyering  <meyering@redhat.com>
36018
36019         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36020         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36021         that would inhibit utf8-optimization of a regexp containing line-
36022         or buffer-anchors, e.g., `^', `$'.
36023
36024 2007-11-30  Bruno Haible  <bruno@clisp.org>
36025
36026         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36027         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36028         glthread_recursive_lock_init.
36029         * lib/lock.c (glthread_recursive_lock_init)
36030         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36032
36033 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36034
36035         New function qset_acl, like set_acl but with syscall semantics.
36036         * lib/acl.h (qset_acl): New decl.
36037         * lib/acl.c (qset_acl): New function.
36038         (set_acl): Use new function.  Use more-consistent diagnostics.
36039
36040 2007-11-28  Jim Meyering  <meyering@redhat.com>
36041
36042         * modules/physmem (License): Change from GPL to LGPLv2+.
36043
36044 2007-11-26  Bruno Haible  <bruno@clisp.org>
36045
36046         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36047         'long double' type has excess precision.
36048         Reported by Jim Meyering in
36049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36050
36051 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36052
36053         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36054         Sync from <http://gnu.org/licenses>.
36055         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36056         with license text from same location.
36057         * doc/maintain.texi, doc/standards.texi:  Sync from
36058         <http://savannah.gnu.org/projects/gnustandards>.
36059
36060 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36061         and Jim Meyering  <meyering@redhat.com>
36062
36063         Adjust getdate' grammar to accept a slightly more regular language.
36064         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36065         Before, the former was rejected.
36066         * lib/getdate.y (digits_to_date_time): New function, factored
36067         out of ...
36068         (number): ...here.  Just call digits_to_date_time.
36069         (hybrid): New non-terminal to handle an <unsigned number,
36070         signed relative offset> sequence consistently.
36071
36072 2007-11-18  Jim Meyering  <meyering@redhat.com>
36073
36074         Pull my changes from coreutils:
36075         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36076         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36077         use of $gnulib_tool_option_extras, so that it's separated from the
36078         preceding argument.
36079
36080         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36081         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36082         parent destination directories before copying a file into place.
36083
36084 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36085
36086         bootstrap: work also with 4-argument variant of AC_INIT
36087         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36088
36089 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36090
36091         Port test-getaddrinfo to Solaris.
36092         Problem reported by Bruno Haible in
36093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36094         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36095         explanation of setting 'hints'.
36096         Don't reject an implementation merely because it returns EAI_SERVICE.
36097         (EAI_SERVICE): Define to 0 if not defined.
36098
36099 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         The license of gnu-make and posix-shell is now "GPLed build tool".
36102         * modules/gnu-make (License): Likewise.
36103         * modules/posix-shell (License): Likewise.
36104
36105         New module posix-shell, for determining a POSIX shell
36106         or perhaps something that is close enough to a POSIX shell.
36107         * m4/posix-shell.m4: New file.
36108         * modules/posix-shell: New file.
36109
36110         * MODULES.html.sh: Mention new module.
36111
36112         New module gnu-make, for determining whether we're using GNU Make.
36113         * m4/gnu-make.m4: New file.
36114         * modules/gnu-make: New file.
36115         * MODULES.html.sh: Mention new module.
36116
36117 2007-11-14  Jim Meyering  <meyering@redhat.com>
36118
36119         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36120         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36121         use this macro to create a function _definition_.
36122         Remove useless "#undef ARGMATCH_DIE".
36123
36124 2007-11-14  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/config.charset: Update for OpenBSD 4.1.
36127         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36128
36129 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36130
36131         Document 64-bit #if problems in stdint.texi.
36132         * doc/headers/stdint.texi (stdint.h): Mention problems with
36133         64-bit-#if, and how to work around them.
36134
36135         Don't insist on 'long long int' support in the preprocessor.  It
36136         breaks too many things.  For example, PRIdMAX still uses a 'long
36137         long int' format with the latest Sun compiler, even though
36138         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36139         preprocessor problem.  This causes the latest coreutils to dump
36140         core on Solaris 10 sparc with the Sun C compiler.
36141         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36142         the troublesome expressions at configure-time, not at #if-time.
36143         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36144         preprocessor.
36145         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36146         compile-time C checks, done at 'configure'-time.
36147         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36148         * modules/inttypes (Makefile): Substitute the new symbols that
36149         gl_INTTYPES_H now generates.
36150         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36151
36152 2007-11-12  Bruno Haible  <bruno@clisp.org>
36153
36154         Tests for Unicode character classification functions.
36155
36156         * modules/unictype/bidicategory-byname-tests: New file.
36157         * modules/unictype/bidicategory-name-tests: New file.
36158         * modules/unictype/bidicategory-of-tests: New file.
36159         * modules/unictype/bidicategory-test-tests: New file.
36160         * modules/unictype/block-list-tests: New file.
36161         * modules/unictype/block-of-tests: New file.
36162         * modules/unictype/block-test-tests: New file.
36163         * modules/unictype/category-C-tests: New file.
36164         * modules/unictype/category-Cc-tests: New file.
36165         * modules/unictype/category-Cf-tests: New file.
36166         * modules/unictype/category-Cn-tests: New file.
36167         * modules/unictype/category-Co-tests: New file.
36168         * modules/unictype/category-Cs-tests: New file.
36169         * modules/unictype/category-L-tests: New file.
36170         * modules/unictype/category-Ll-tests: New file.
36171         * modules/unictype/category-Lm-tests: New file.
36172         * modules/unictype/category-Lo-tests: New file.
36173         * modules/unictype/category-Lt-tests: New file.
36174         * modules/unictype/category-Lu-tests: New file.
36175         * modules/unictype/category-M-tests: New file.
36176         * modules/unictype/category-Mc-tests: New file.
36177         * modules/unictype/category-Me-tests: New file.
36178         * modules/unictype/category-Mn-tests: New file.
36179         * modules/unictype/category-N-tests: New file.
36180         * modules/unictype/category-Nd-tests: New file.
36181         * modules/unictype/category-Nl-tests: New file.
36182         * modules/unictype/category-No-tests: New file.
36183         * modules/unictype/category-P-tests: New file.
36184         * modules/unictype/category-Pc-tests: New file.
36185         * modules/unictype/category-Pd-tests: New file.
36186         * modules/unictype/category-Pe-tests: New file.
36187         * modules/unictype/category-Pf-tests: New file.
36188         * modules/unictype/category-Pi-tests: New file.
36189         * modules/unictype/category-Po-tests: New file.
36190         * modules/unictype/category-Ps-tests: New file.
36191         * modules/unictype/category-S-tests: New file.
36192         * modules/unictype/category-Sc-tests: New file.
36193         * modules/unictype/category-Sk-tests: New file.
36194         * modules/unictype/category-Sm-tests: New file.
36195         * modules/unictype/category-So-tests: New file.
36196         * modules/unictype/category-Z-tests: New file.
36197         * modules/unictype/category-Zl-tests: New file.
36198         * modules/unictype/category-Zp-tests: New file.
36199         * modules/unictype/category-Zs-tests: New file.
36200         * modules/unictype/category-and-not-tests: New file.
36201         * modules/unictype/category-and-tests: New file.
36202         * modules/unictype/category-byname-tests: New file.
36203         * modules/unictype/category-name-tests: New file.
36204         * modules/unictype/category-none-tests: New file.
36205         * modules/unictype/category-of-tests: New file.
36206         * modules/unictype/category-or-tests: New file.
36207         * modules/unictype/category-test-withtable-tests: New file.
36208         * modules/unictype/combining-class-tests: New file.
36209         * modules/unictype/ctype-alnum-tests: New file.
36210         * modules/unictype/ctype-alpha-tests: New file.
36211         * modules/unictype/ctype-blank-tests: New file.
36212         * modules/unictype/ctype-cntrl-tests: New file.
36213         * modules/unictype/ctype-digit-tests: New file.
36214         * modules/unictype/ctype-graph-tests: New file.
36215         * modules/unictype/ctype-lower-tests: New file.
36216         * modules/unictype/ctype-print-tests: New file.
36217         * modules/unictype/ctype-punct-tests: New file.
36218         * modules/unictype/ctype-space-tests: New file.
36219         * modules/unictype/ctype-upper-tests: New file.
36220         * modules/unictype/ctype-xdigit-tests: New file.
36221         * modules/unictype/decimal-digit-tests: New file.
36222         * modules/unictype/digit-tests: New file.
36223         * modules/unictype/mirror-tests: New file.
36224         * modules/unictype/numeric-tests: New file.
36225         * modules/unictype/property-alphabetic-tests: New file.
36226         * modules/unictype/property-ascii-hex-digit-tests: New file.
36227         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36228         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36229         * modules/unictype/property-bidi-block-separator-tests: New file.
36230         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36231         * modules/unictype/property-bidi-common-separator-tests: New file.
36232         * modules/unictype/property-bidi-control-tests: New file.
36233         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36234         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36235         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36236         * modules/unictype/property-bidi-european-digit-tests: New file.
36237         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36238         * modules/unictype/property-bidi-left-to-right-tests: New file.
36239         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36240         * modules/unictype/property-bidi-other-neutral-tests: New file.
36241         * modules/unictype/property-bidi-pdf-tests: New file.
36242         * modules/unictype/property-bidi-segment-separator-tests: New file.
36243         * modules/unictype/property-bidi-whitespace-tests: New file.
36244         * modules/unictype/property-byname-tests: New file.
36245         * modules/unictype/property-combining-tests: New file.
36246         * modules/unictype/property-composite-tests: New file.
36247         * modules/unictype/property-currency-symbol-tests: New file.
36248         * modules/unictype/property-dash-tests: New file.
36249         * modules/unictype/property-decimal-digit-tests: New file.
36250         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36251         * modules/unictype/property-deprecated-tests: New file.
36252         * modules/unictype/property-diacritic-tests: New file.
36253         * modules/unictype/property-extender-tests: New file.
36254         * modules/unictype/property-format-control-tests: New file.
36255         * modules/unictype/property-grapheme-base-tests: New file.
36256         * modules/unictype/property-grapheme-extend-tests: New file.
36257         * modules/unictype/property-grapheme-link-tests: New file.
36258         * modules/unictype/property-hex-digit-tests: New file.
36259         * modules/unictype/property-hyphen-tests: New file.
36260         * modules/unictype/property-id-continue-tests: New file.
36261         * modules/unictype/property-id-start-tests: New file.
36262         * modules/unictype/property-ideographic-tests: New file.
36263         * modules/unictype/property-ids-binary-operator-tests: New file.
36264         * modules/unictype/property-ids-trinary-operator-tests: New file.
36265         * modules/unictype/property-ignorable-control-tests: New file.
36266         * modules/unictype/property-iso-control-tests: New file.
36267         * modules/unictype/property-join-control-tests: New file.
36268         * modules/unictype/property-left-of-pair-tests: New file.
36269         * modules/unictype/property-line-separator-tests: New file.
36270         * modules/unictype/property-logical-order-exception-tests: New file.
36271         * modules/unictype/property-lowercase-tests: New file.
36272         * modules/unictype/property-math-tests: New file.
36273         * modules/unictype/property-non-break-tests: New file.
36274         * modules/unictype/property-not-a-character-tests: New file.
36275         * modules/unictype/property-numeric-tests: New file.
36276         * modules/unictype/property-other-alphabetic-tests: New file.
36277         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36278         * modules/unictype/property-other-grapheme-extend-tests: New file.
36279         * modules/unictype/property-other-id-continue-tests: New file.
36280         * modules/unictype/property-other-id-start-tests: New file.
36281         * modules/unictype/property-other-lowercase-tests: New file.
36282         * modules/unictype/property-other-math-tests: New file.
36283         * modules/unictype/property-other-uppercase-tests: New file.
36284         * modules/unictype/property-paired-punctuation-tests: New file.
36285         * modules/unictype/property-paragraph-separator-tests: New file.
36286         * modules/unictype/property-pattern-syntax-tests: New file.
36287         * modules/unictype/property-pattern-white-space-tests: New file.
36288         * modules/unictype/property-private-use-tests: New file.
36289         * modules/unictype/property-punctuation-tests: New file.
36290         * modules/unictype/property-quotation-mark-tests: New file.
36291         * modules/unictype/property-radical-tests: New file.
36292         * modules/unictype/property-sentence-terminal-tests: New file.
36293         * modules/unictype/property-soft-dotted-tests: New file.
36294         * modules/unictype/property-space-tests: New file.
36295         * modules/unictype/property-terminal-punctuation-tests: New file.
36296         * modules/unictype/property-test-tests: New file.
36297         * modules/unictype/property-titlecase-tests: New file.
36298         * modules/unictype/property-unassigned-code-value-tests: New file.
36299         * modules/unictype/property-unified-ideograph-tests: New file.
36300         * modules/unictype/property-uppercase-tests: New file.
36301         * modules/unictype/property-variation-selector-tests: New file.
36302         * modules/unictype/property-white-space-tests: New file.
36303         * modules/unictype/property-xid-continue-tests: New file.
36304         * modules/unictype/property-xid-start-tests: New file.
36305         * modules/unictype/property-zero-width-tests: New file.
36306         * modules/unictype/scripts-tests: New file.
36307         * modules/unictype/syntax-c-ident-tests: New file.
36308         * modules/unictype/syntax-c-whitespace-tests: New file.
36309         * modules/unictype/syntax-java-ident-tests: New file.
36310         * modules/unictype/syntax-java-whitespace-tests: New file.
36311         * tests/unictype/test-bidi_byname.c: New file.
36312         * tests/unictype/test-bidi_name.c: New file.
36313         * tests/unictype/test-bidi_of.c: New file.
36314         * tests/unictype/test-bidi_test.c: New file.
36315         * tests/unictype/test-block_list.c: New file.
36316         * tests/unictype/test-block_of.c: New file.
36317         * tests/unictype/test-block_test.c: New file.
36318         * tests/unictype/test-categ_and.c: New file.
36319         * tests/unictype/test-categ_and_not.c: New file.
36320         * tests/unictype/test-categ_byname.c: New file.
36321         * tests/unictype/test-categ_name.c: New file.
36322         * tests/unictype/test-categ_none.c: New file.
36323         * tests/unictype/test-categ_of.c: New file.
36324         * tests/unictype/test-categ_or.c: New file.
36325         * tests/unictype/test-categ_test_withtable.c: New file.
36326         * tests/unictype/test-combining.c: New file.
36327         * tests/unictype/test-decdigit.c: New file.
36328         * tests/unictype/test-digit.c: New file.
36329         * tests/unictype/test-mirror.c: New file.
36330         * tests/unictype/test-numeric.c: New file.
36331         * tests/unictype/test-pr_byname.c: New file.
36332         * tests/unictype/test-pr_test.c: New file.
36333         * tests/unictype/test-predicate-part1.h: New file.
36334         * tests/unictype/test-predicate-part2.h: New file.
36335         * tests/unictype/test-scripts.c: New file.
36336         * tests/unictype/test-sy_c_ident.c: New file.
36337         * tests/unictype/test-sy_java_ident.c: New file.
36338
36339         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36340         for Unicode 5.0.0.
36341         * tests/unictype/test-categ_Cc.c: Likewise.
36342         * tests/unictype/test-categ_Cf.c: Likewise.
36343         * tests/unictype/test-categ_Cn.c: Likewise.
36344         * tests/unictype/test-categ_Co.c: Likewise.
36345         * tests/unictype/test-categ_Cs.c: Likewise.
36346         * tests/unictype/test-categ_L.c: Likewise.
36347         * tests/unictype/test-categ_Ll.c: Likewise.
36348         * tests/unictype/test-categ_Lm.c: Likewise.
36349         * tests/unictype/test-categ_Lo.c: Likewise.
36350         * tests/unictype/test-categ_Lt.c: Likewise.
36351         * tests/unictype/test-categ_Lu.c: Likewise.
36352         * tests/unictype/test-categ_M.c: Likewise.
36353         * tests/unictype/test-categ_Mc.c: Likewise.
36354         * tests/unictype/test-categ_Me.c: Likewise.
36355         * tests/unictype/test-categ_Mn.c: Likewise.
36356         * tests/unictype/test-categ_N.c: Likewise.
36357         * tests/unictype/test-categ_Nd.c: Likewise.
36358         * tests/unictype/test-categ_Nl.c: Likewise.
36359         * tests/unictype/test-categ_No.c: Likewise.
36360         * tests/unictype/test-categ_P.c: Likewise.
36361         * tests/unictype/test-categ_Pc.c: Likewise.
36362         * tests/unictype/test-categ_Pd.c: Likewise.
36363         * tests/unictype/test-categ_Pe.c: Likewise.
36364         * tests/unictype/test-categ_Pf.c: Likewise.
36365         * tests/unictype/test-categ_Pi.c: Likewise.
36366         * tests/unictype/test-categ_Po.c: Likewise.
36367         * tests/unictype/test-categ_Ps.c: Likewise.
36368         * tests/unictype/test-categ_S.c: Likewise.
36369         * tests/unictype/test-categ_Sc.c: Likewise.
36370         * tests/unictype/test-categ_Sk.c: Likewise.
36371         * tests/unictype/test-categ_Sm.c: Likewise.
36372         * tests/unictype/test-categ_So.c: Likewise.
36373         * tests/unictype/test-categ_Z.c: Likewise.
36374         * tests/unictype/test-categ_Zl.c: Likewise.
36375         * tests/unictype/test-categ_Zp.c: Likewise.
36376         * tests/unictype/test-categ_Zs.c: Likewise.
36377         * tests/unictype/test-ctype_alnum.c: Likewise.
36378         * tests/unictype/test-ctype_alpha.c: Likewise.
36379         * tests/unictype/test-ctype_blank.c: Likewise.
36380         * tests/unictype/test-ctype_cntrl.c: Likewise.
36381         * tests/unictype/test-ctype_digit.c: Likewise.
36382         * tests/unictype/test-ctype_graph.c: Likewise.
36383         * tests/unictype/test-ctype_lower.c: Likewise.
36384         * tests/unictype/test-ctype_print.c: Likewise.
36385         * tests/unictype/test-ctype_punct.c: Likewise.
36386         * tests/unictype/test-ctype_space.c: Likewise.
36387         * tests/unictype/test-ctype_upper.c: Likewise.
36388         * tests/unictype/test-ctype_xdigit.c: Likewise.
36389         * tests/unictype/test-decdigit.h: Likewise.
36390         * tests/unictype/test-digit.h: Likewise.
36391         * tests/unictype/test-numeric.h: Likewise.
36392         * tests/unictype/test-pr_alphabetic.c: Likewise.
36393         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36394         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36396         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36397         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36398         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36399         * tests/unictype/test-pr_bidi_control.c: Likewise.
36400         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36401         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36402         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36403         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36404         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36405         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36406         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36407         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36408         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36409         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36410         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36411         * tests/unictype/test-pr_combining.c: Likewise.
36412         * tests/unictype/test-pr_composite.c: Likewise.
36413         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36414         * tests/unictype/test-pr_dash.c: Likewise.
36415         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36416         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36417         * tests/unictype/test-pr_deprecated.c: Likewise.
36418         * tests/unictype/test-pr_diacritic.c: Likewise.
36419         * tests/unictype/test-pr_extender.c: Likewise.
36420         * tests/unictype/test-pr_format_control.c: Likewise.
36421         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36422         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36423         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36424         * tests/unictype/test-pr_hex_digit.c: Likewise.
36425         * tests/unictype/test-pr_hyphen.c: Likewise.
36426         * tests/unictype/test-pr_id_continue.c: Likewise.
36427         * tests/unictype/test-pr_id_start.c: Likewise.
36428         * tests/unictype/test-pr_ideographic.c: Likewise.
36429         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36430         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36431         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36432         * tests/unictype/test-pr_iso_control.c: Likewise.
36433         * tests/unictype/test-pr_join_control.c: Likewise.
36434         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36435         * tests/unictype/test-pr_line_separator.c: Likewise.
36436         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36437         * tests/unictype/test-pr_lowercase.c: Likewise.
36438         * tests/unictype/test-pr_math.c: Likewise.
36439         * tests/unictype/test-pr_non_break.c: Likewise.
36440         * tests/unictype/test-pr_not_a_character.c: Likewise.
36441         * tests/unictype/test-pr_numeric.c: Likewise.
36442         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36443         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36444         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36445         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36446         * tests/unictype/test-pr_other_id_start.c: Likewise.
36447         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36448         * tests/unictype/test-pr_other_math.c: Likewise.
36449         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36450         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36451         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36452         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36453         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36454         * tests/unictype/test-pr_private_use.c: Likewise.
36455         * tests/unictype/test-pr_punctuation.c: Likewise.
36456         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36457         * tests/unictype/test-pr_radical.c: Likewise.
36458         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36459         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36460         * tests/unictype/test-pr_space.c: Likewise.
36461         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36462         * tests/unictype/test-pr_titlecase.c: Likewise.
36463         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36464         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36465         * tests/unictype/test-pr_uppercase.c: Likewise.
36466         * tests/unictype/test-pr_variation_selector.c: Likewise.
36467         * tests/unictype/test-pr_white_space.c: Likewise.
36468         * tests/unictype/test-pr_xid_continue.c: Likewise.
36469         * tests/unictype/test-pr_xid_start.c: Likewise.
36470         * tests/unictype/test-pr_zero_width.c: Likewise.
36471         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36472         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36473
36474 2007-11-12  Bruno Haible  <bruno@clisp.org>
36475
36476         Unicode character classification functions.
36477         * lib/unictype.h: New file.
36478         * modules/unictype/base: New file.
36479         * modules/unictype/category-L: New file.
36480         * modules/unictype/category-Lu: New file.
36481         * modules/unictype/category-Ll: New file.
36482         * modules/unictype/category-Lt: New file.
36483         * modules/unictype/category-Lm: New file.
36484         * modules/unictype/category-Lo: New file.
36485         * modules/unictype/category-M: New file.
36486         * modules/unictype/category-Mn: New file.
36487         * modules/unictype/category-Mc: New file.
36488         * modules/unictype/category-Me: New file.
36489         * modules/unictype/category-N: New file.
36490         * modules/unictype/category-Nd: New file.
36491         * modules/unictype/category-Nl: New file.
36492         * modules/unictype/category-No: New file.
36493         * modules/unictype/category-P: New file.
36494         * modules/unictype/category-Pc: New file.
36495         * modules/unictype/category-Pd: New file.
36496         * modules/unictype/category-Ps: New file.
36497         * modules/unictype/category-Pe: New file.
36498         * modules/unictype/category-Pi: New file.
36499         * modules/unictype/category-Pf: New file.
36500         * modules/unictype/category-Po: New file.
36501         * modules/unictype/category-S: New file.
36502         * modules/unictype/category-Sm: New file.
36503         * modules/unictype/category-Sc: New file.
36504         * modules/unictype/category-Sk: New file.
36505         * modules/unictype/category-So: New file.
36506         * modules/unictype/category-Z: New file.
36507         * modules/unictype/category-Zs: New file.
36508         * modules/unictype/category-Zl: New file.
36509         * modules/unictype/category-Zp: New file.
36510         * modules/unictype/category-C: New file.
36511         * modules/unictype/category-Cc: New file.
36512         * modules/unictype/category-Cf: New file.
36513         * modules/unictype/category-Cs: New file.
36514         * modules/unictype/category-Co: New file.
36515         * modules/unictype/category-Cn: New file.
36516         * modules/unictype/category-or: New file.
36517         * modules/unictype/category-of: New file.
36518         * modules/unictype/category-test: New file.
36519         * modules/unictype/category-test-withtable: New file.
36520         * modules/unictype/category-byname: New file.
36521         * modules/unictype/category-none: New file.
36522         * modules/unictype/category-and: New file.
36523         * modules/unictype/category-and-not: New file.
36524         * modules/unictype/category-name: New file.
36525         * modules/unictype/combining-class: New file.
36526         * modules/unictype/category-all: New file.
36527         * modules/unictype/bidicategory-all: New file.
36528         * modules/unictype/bidicategory-byname: New file.
36529         * modules/unictype/bidicategory-name: New file.
36530         * modules/unictype/bidicategory-of: New file.
36531         * modules/unictype/bidicategory-test: New file.
36532         * modules/unictype/decimal-digit: New file.
36533         * modules/unictype/digit: New file.
36534         * modules/unictype/numeric: New file.
36535         * modules/unictype/mirror: New file.
36536         * modules/unictype/property-white-space: New file.
36537         * modules/unictype/property-alphabetic: New file.
36538         * modules/unictype/property-other-alphabetic: New file.
36539         * modules/unictype/property-not-a-character: New file.
36540         * modules/unictype/property-default-ignorable-code-point: New file.
36541         * modules/unictype/property-other-default-ignorable-code-point: New
36542         file.
36543         * modules/unictype/property-deprecated: New file.
36544         * modules/unictype/property-logical-order-exception: New file.
36545         * modules/unictype/property-variation-selector: New file.
36546         * modules/unictype/property-private-use: New file.
36547         * modules/unictype/property-unassigned-code-value: New file.
36548         * modules/unictype/property-uppercase: New file.
36549         * modules/unictype/property-other-uppercase: New file.
36550         * modules/unictype/property-lowercase: New file.
36551         * modules/unictype/property-other-lowercase: New file.
36552         * modules/unictype/property-titlecase: New file.
36553         * modules/unictype/property-soft-dotted: New file.
36554         * modules/unictype/property-id-start: New file.
36555         * modules/unictype/property-other-id-start: New file.
36556         * modules/unictype/property-id-continue: New file.
36557         * modules/unictype/property-other-id-continue: New file.
36558         * modules/unictype/property-xid-start: New file.
36559         * modules/unictype/property-xid-continue: New file.
36560         * modules/unictype/property-pattern-white-space: New file.
36561         * modules/unictype/property-pattern-syntax: New file.
36562         * modules/unictype/property-join-control: New file.
36563         * modules/unictype/property-grapheme-base: New file.
36564         * modules/unictype/property-grapheme-extend: New file.
36565         * modules/unictype/property-other-grapheme-extend: New file.
36566         * modules/unictype/property-grapheme-link: New file.
36567         * modules/unictype/property-bidi-control: New file.
36568         * modules/unictype/property-bidi-left-to-right: New file.
36569         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36570         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36571         * modules/unictype/property-bidi-european-digit: New file.
36572         * modules/unictype/property-bidi-eur-num-separator: New file.
36573         * modules/unictype/property-bidi-eur-num-terminator: New file.
36574         * modules/unictype/property-bidi-arabic-digit: New file.
36575         * modules/unictype/property-bidi-common-separator: New file.
36576         * modules/unictype/property-bidi-block-separator: New file.
36577         * modules/unictype/property-bidi-segment-separator: New file.
36578         * modules/unictype/property-bidi-whitespace: New file.
36579         * modules/unictype/property-bidi-non-spacing-mark: New file.
36580         * modules/unictype/property-bidi-boundary-neutral: New file.
36581         * modules/unictype/property-bidi-pdf: New file.
36582         * modules/unictype/property-bidi-embedding-or-override: New file.
36583         * modules/unictype/property-bidi-other-neutral: New file.
36584         * modules/unictype/property-hex-digit: New file.
36585         * modules/unictype/property-ascii-hex-digit: New file.
36586         * modules/unictype/property-ideographic: New file.
36587         * modules/unictype/property-unified-ideograph: New file.
36588         * modules/unictype/property-radical: New file.
36589         * modules/unictype/property-ids-binary-operator: New file.
36590         * modules/unictype/property-ids-trinary-operator: New file.
36591         * modules/unictype/property-zero-width: New file.
36592         * modules/unictype/property-space: New file.
36593         * modules/unictype/property-non-break: New file.
36594         * modules/unictype/property-iso-control: New file.
36595         * modules/unictype/property-format-control: New file.
36596         * modules/unictype/property-dash: New file.
36597         * modules/unictype/property-hyphen: New file.
36598         * modules/unictype/property-punctuation: New file.
36599         * modules/unictype/property-line-separator: New file.
36600         * modules/unictype/property-paragraph-separator: New file.
36601         * modules/unictype/property-quotation-mark: New file.
36602         * modules/unictype/property-sentence-terminal: New file.
36603         * modules/unictype/property-terminal-punctuation: New file.
36604         * modules/unictype/property-currency-symbol: New file.
36605         * modules/unictype/property-math: New file.
36606         * modules/unictype/property-other-math: New file.
36607         * modules/unictype/property-paired-punctuation: New file.
36608         * modules/unictype/property-left-of-pair: New file.
36609         * modules/unictype/property-combining: New file.
36610         * modules/unictype/property-composite: New file.
36611         * modules/unictype/property-decimal-digit: New file.
36612         * modules/unictype/property-numeric: New file.
36613         * modules/unictype/property-diacritic: New file.
36614         * modules/unictype/property-extender: New file.
36615         * modules/unictype/property-ignorable-control: New file.
36616         * modules/unictype/property-test: New file.
36617         * modules/unictype/property-byname: New file.
36618         * modules/unictype/property-all: New file.
36619         * modules/unictype/scripts: New file.
36620         * modules/unictype/scripts-all: New file.
36621         * modules/unictype/block-of: New file.
36622         * modules/unictype/block-test: New file.
36623         * modules/unictype/block-list: New file.
36624         * modules/unictype/block-all: New file.
36625         * modules/unictype/syntax-c-whitespace: New file.
36626         * modules/unictype/syntax-java-whitespace: New file.
36627         * modules/unictype/syntax-c-ident: New file.
36628         * modules/unictype/syntax-java-ident: New file.
36629         * modules/unictype/ctype-alnum: New file.
36630         * modules/unictype/ctype-alpha: New file.
36631         * modules/unictype/ctype-cntrl: New file.
36632         * modules/unictype/ctype-digit: New file.
36633         * modules/unictype/ctype-graph: New file.
36634         * modules/unictype/ctype-lower: New file.
36635         * modules/unictype/ctype-print: New file.
36636         * modules/unictype/ctype-punct: New file.
36637         * modules/unictype/ctype-space: New file.
36638         * modules/unictype/ctype-upper: New file.
36639         * modules/unictype/ctype-xdigit: New file.
36640         * modules/unictype/ctype-blank: New file.
36641         * lib/unictype/bidi_byname.c: New file.
36642         * lib/unictype/bidi_name.c: New file.
36643         * lib/unictype/bidi_of.c: New file.
36644         * lib/unictype/bidi_test.c: New file.
36645         * lib/unictype/bitmap.h: New file.
36646         * lib/unictype/block_test.c: New file.
36647         * lib/unictype/blocks.c: New file.
36648         * lib/unictype/categ_C.c: New file.
36649         * lib/unictype/categ_Cc.c: New file.
36650         * lib/unictype/categ_Cf.c: New file.
36651         * lib/unictype/categ_Cn.c: New file.
36652         * lib/unictype/categ_Co.c: New file.
36653         * lib/unictype/categ_Cs.c: New file.
36654         * lib/unictype/categ_L.c: New file.
36655         * lib/unictype/categ_Ll.c: New file.
36656         * lib/unictype/categ_Lm.c: New file.
36657         * lib/unictype/categ_Lo.c: New file.
36658         * lib/unictype/categ_Lt.c: New file.
36659         * lib/unictype/categ_Lu.c: New file.
36660         * lib/unictype/categ_M.c: New file.
36661         * lib/unictype/categ_Mc.c: New file.
36662         * lib/unictype/categ_Me.c: New file.
36663         * lib/unictype/categ_Mn.c: New file.
36664         * lib/unictype/categ_N.c: New file.
36665         * lib/unictype/categ_Nd.c: New file.
36666         * lib/unictype/categ_Nl.c: New file.
36667         * lib/unictype/categ_No.c: New file.
36668         * lib/unictype/categ_P.c: New file.
36669         * lib/unictype/categ_Pc.c: New file.
36670         * lib/unictype/categ_Pd.c: New file.
36671         * lib/unictype/categ_Pe.c: New file.
36672         * lib/unictype/categ_Pf.c: New file.
36673         * lib/unictype/categ_Pi.c: New file.
36674         * lib/unictype/categ_Po.c: New file.
36675         * lib/unictype/categ_Ps.c: New file.
36676         * lib/unictype/categ_S.c: New file.
36677         * lib/unictype/categ_Sc.c: New file.
36678         * lib/unictype/categ_Sk.c: New file.
36679         * lib/unictype/categ_Sm.c: New file.
36680         * lib/unictype/categ_So.c: New file.
36681         * lib/unictype/categ_Z.c: New file.
36682         * lib/unictype/categ_Zl.c: New file.
36683         * lib/unictype/categ_Zp.c: New file.
36684         * lib/unictype/categ_Zs.c: New file.
36685         * lib/unictype/categ_and.c: New file.
36686         * lib/unictype/categ_and_not.c: New file.
36687         * lib/unictype/categ_byname.c: New file.
36688         * lib/unictype/categ_name.c: New file.
36689         * lib/unictype/categ_none.c: New file.
36690         * lib/unictype/categ_of.c: New file.
36691         * lib/unictype/categ_or.c: New file.
36692         * lib/unictype/categ_test.c: New file.
36693         * lib/unictype/combining.c: New file.
36694         * lib/unictype/ctype_alnum.c: New file.
36695         * lib/unictype/ctype_alpha.c: New file.
36696         * lib/unictype/ctype_blank.c: New file.
36697         * lib/unictype/ctype_cntrl.c: New file.
36698         * lib/unictype/ctype_digit.c: New file.
36699         * lib/unictype/ctype_graph.c: New file.
36700         * lib/unictype/ctype_lower.c: New file.
36701         * lib/unictype/ctype_print.c: New file.
36702         * lib/unictype/ctype_punct.c: New file.
36703         * lib/unictype/ctype_space.c: New file.
36704         * lib/unictype/ctype_upper.c: New file.
36705         * lib/unictype/ctype_xdigit.c: New file.
36706         * lib/unictype/decdigit.c: New file.
36707         * lib/unictype/digit.c: New file.
36708         * lib/unictype/identsyntaxmap.h: New file.
36709         * lib/unictype/mirror.c: New file.
36710         * lib/unictype/numeric.c: New file.
36711         * lib/unictype/pr_alphabetic.c: New file.
36712         * lib/unictype/pr_ascii_hex_digit.c: New file.
36713         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36714         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36715         * lib/unictype/pr_bidi_block_separator.c: New file.
36716         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36717         * lib/unictype/pr_bidi_common_separator.c: New file.
36718         * lib/unictype/pr_bidi_control.c: New file.
36719         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36720         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36721         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36722         * lib/unictype/pr_bidi_european_digit.c: New file.
36723         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36724         * lib/unictype/pr_bidi_left_to_right.c: New file.
36725         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36726         * lib/unictype/pr_bidi_other_neutral.c: New file.
36727         * lib/unictype/pr_bidi_pdf.c: New file.
36728         * lib/unictype/pr_bidi_segment_separator.c: New file.
36729         * lib/unictype/pr_bidi_whitespace.c: New file.
36730         * lib/unictype/pr_byname.c: New file.
36731         * lib/unictype/pr_byname.gperf: New file.
36732         * lib/unictype/pr_combining.c: New file.
36733         * lib/unictype/pr_composite.c: New file.
36734         * lib/unictype/pr_currency_symbol.c: New file.
36735         * lib/unictype/pr_dash.c: New file.
36736         * lib/unictype/pr_decimal_digit.c: New file.
36737         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36738         * lib/unictype/pr_deprecated.c: New file.
36739         * lib/unictype/pr_diacritic.c: New file.
36740         * lib/unictype/pr_extender.c: New file.
36741         * lib/unictype/pr_format_control.c: New file.
36742         * lib/unictype/pr_grapheme_base.c: New file.
36743         * lib/unictype/pr_grapheme_extend.c: New file.
36744         * lib/unictype/pr_grapheme_link.c: New file.
36745         * lib/unictype/pr_hex_digit.c: New file.
36746         * lib/unictype/pr_hyphen.c: New file.
36747         * lib/unictype/pr_id_continue.c: New file.
36748         * lib/unictype/pr_id_start.c: New file.
36749         * lib/unictype/pr_ideographic.c: New file.
36750         * lib/unictype/pr_ids_binary_operator.c: New file.
36751         * lib/unictype/pr_ids_trinary_operator.c: New file.
36752         * lib/unictype/pr_ignorable_control.c: New file.
36753         * lib/unictype/pr_iso_control.c: New file.
36754         * lib/unictype/pr_join_control.c: New file.
36755         * lib/unictype/pr_left_of_pair.c: New file.
36756         * lib/unictype/pr_line_separator.c: New file.
36757         * lib/unictype/pr_logical_order_exception.c: New file.
36758         * lib/unictype/pr_lowercase.c: New file.
36759         * lib/unictype/pr_math.c: New file.
36760         * lib/unictype/pr_non_break.c: New file.
36761         * lib/unictype/pr_not_a_character.c: New file.
36762         * lib/unictype/pr_numeric.c: New file.
36763         * lib/unictype/pr_other_alphabetic.c: New file.
36764         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36765         * lib/unictype/pr_other_grapheme_extend.c: New file.
36766         * lib/unictype/pr_other_id_continue.c: New file.
36767         * lib/unictype/pr_other_id_start.c: New file.
36768         * lib/unictype/pr_other_lowercase.c: New file.
36769         * lib/unictype/pr_other_math.c: New file.
36770         * lib/unictype/pr_other_uppercase.c: New file.
36771         * lib/unictype/pr_paired_punctuation.c: New file.
36772         * lib/unictype/pr_paragraph_separator.c: New file.
36773         * lib/unictype/pr_pattern_syntax.c: New file.
36774         * lib/unictype/pr_pattern_white_space.c: New file.
36775         * lib/unictype/pr_private_use.c: New file.
36776         * lib/unictype/pr_punctuation.c: New file.
36777         * lib/unictype/pr_quotation_mark.c: New file.
36778         * lib/unictype/pr_radical.c: New file.
36779         * lib/unictype/pr_sentence_terminal.c: New file.
36780         * lib/unictype/pr_soft_dotted.c: New file.
36781         * lib/unictype/pr_space.c: New file.
36782         * lib/unictype/pr_terminal_punctuation.c: New file.
36783         * lib/unictype/pr_test.c: New file.
36784         * lib/unictype/pr_titlecase.c: New file.
36785         * lib/unictype/pr_unassigned_code_value.c: New file.
36786         * lib/unictype/pr_unified_ideograph.c: New file.
36787         * lib/unictype/pr_uppercase.c: New file.
36788         * lib/unictype/pr_variation_selector.c: New file.
36789         * lib/unictype/pr_white_space.c: New file.
36790         * lib/unictype/pr_xid_continue.c: New file.
36791         * lib/unictype/pr_xid_start.c: New file.
36792         * lib/unictype/pr_zero_width.c: New file.
36793         * lib/unictype/scripts.c: New file.
36794         * lib/unictype/sy_c_ident.c: New file.
36795         * lib/unictype/sy_c_whitespace.c: New file.
36796         * lib/unictype/sy_java_ident.c: New file.
36797         * lib/unictype/sy_java_whitespace.c: New file.
36798
36799         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36800         Unicode 5.0.0.
36801         * lib/unictype/blocks.h: Likewise.
36802         * lib/unictype/categ_C.h: Likewise.
36803         * lib/unictype/categ_Cc.h: Likewise.
36804         * lib/unictype/categ_Cf.h: Likewise.
36805         * lib/unictype/categ_Cn.h: Likewise.
36806         * lib/unictype/categ_Co.h: Likewise.
36807         * lib/unictype/categ_Cs.h: Likewise.
36808         * lib/unictype/categ_L.h: Likewise.
36809         * lib/unictype/categ_Ll.h: Likewise.
36810         * lib/unictype/categ_Lm.h: Likewise.
36811         * lib/unictype/categ_Lo.h: Likewise.
36812         * lib/unictype/categ_Lt.h: Likewise.
36813         * lib/unictype/categ_Lu.h: Likewise.
36814         * lib/unictype/categ_M.h: Likewise.
36815         * lib/unictype/categ_Mc.h: Likewise.
36816         * lib/unictype/categ_Me.h: Likewise.
36817         * lib/unictype/categ_Mn.h: Likewise.
36818         * lib/unictype/categ_N.h: Likewise.
36819         * lib/unictype/categ_Nd.h: Likewise.
36820         * lib/unictype/categ_Nl.h: Likewise.
36821         * lib/unictype/categ_No.h: Likewise.
36822         * lib/unictype/categ_P.h: Likewise.
36823         * lib/unictype/categ_Pc.h: Likewise.
36824         * lib/unictype/categ_Pd.h: Likewise.
36825         * lib/unictype/categ_Pe.h: Likewise.
36826         * lib/unictype/categ_Pf.h: Likewise.
36827         * lib/unictype/categ_Pi.h: Likewise.
36828         * lib/unictype/categ_Po.h: Likewise.
36829         * lib/unictype/categ_Ps.h: Likewise.
36830         * lib/unictype/categ_S.h: Likewise.
36831         * lib/unictype/categ_Sc.h: Likewise.
36832         * lib/unictype/categ_Sk.h: Likewise.
36833         * lib/unictype/categ_Sm.h: Likewise.
36834         * lib/unictype/categ_So.h: Likewise.
36835         * lib/unictype/categ_Z.h: Likewise.
36836         * lib/unictype/categ_Zl.h: Likewise.
36837         * lib/unictype/categ_Zp.h: Likewise.
36838         * lib/unictype/categ_Zs.h: Likewise.
36839         * lib/unictype/categ_of.h: Likewise.
36840         * lib/unictype/combining.h: Likewise.
36841         * lib/unictype/ctype_alnum.h: Likewise.
36842         * lib/unictype/ctype_alpha.h: Likewise.
36843         * lib/unictype/ctype_blank.h: Likewise.
36844         * lib/unictype/ctype_cntrl.h: Likewise.
36845         * lib/unictype/ctype_digit.h: Likewise.
36846         * lib/unictype/ctype_graph.h: Likewise.
36847         * lib/unictype/ctype_lower.h: Likewise.
36848         * lib/unictype/ctype_print.h: Likewise.
36849         * lib/unictype/ctype_punct.h: Likewise.
36850         * lib/unictype/ctype_space.h: Likewise.
36851         * lib/unictype/ctype_upper.h: Likewise.
36852         * lib/unictype/ctype_xdigit.h: Likewise.
36853         * lib/unictype/decdigit.h: Likewise.
36854         * lib/unictype/digit.h: Likewise.
36855         * lib/unictype/mirror.h: Likewise.
36856         * lib/unictype/numeric.h: Likewise.
36857         * lib/unictype/pr_alphabetic.h: Likewise.
36858         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36859         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36860         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
36861         * lib/unictype/pr_bidi_block_separator.h: Likewise.
36862         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
36863         * lib/unictype/pr_bidi_common_separator.h: Likewise.
36864         * lib/unictype/pr_bidi_control.h: Likewise.
36865         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
36866         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
36867         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
36868         * lib/unictype/pr_bidi_european_digit.h: Likewise.
36869         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
36870         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
36871         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
36872         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
36873         * lib/unictype/pr_bidi_pdf.h: Likewise.
36874         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
36875         * lib/unictype/pr_bidi_whitespace.h: Likewise.
36876         * lib/unictype/pr_combining.h: Likewise.
36877         * lib/unictype/pr_composite.h: Likewise.
36878         * lib/unictype/pr_currency_symbol.h: Likewise.
36879         * lib/unictype/pr_dash.h: Likewise.
36880         * lib/unictype/pr_decimal_digit.h: Likewise.
36881         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
36882         * lib/unictype/pr_deprecated.h: Likewise.
36883         * lib/unictype/pr_diacritic.h: Likewise.
36884         * lib/unictype/pr_extender.h: Likewise.
36885         * lib/unictype/pr_format_control.h: Likewise.
36886         * lib/unictype/pr_grapheme_base.h: Likewise.
36887         * lib/unictype/pr_grapheme_extend.h: Likewise.
36888         * lib/unictype/pr_grapheme_link.h: Likewise.
36889         * lib/unictype/pr_hex_digit.h: Likewise.
36890         * lib/unictype/pr_hyphen.h: Likewise.
36891         * lib/unictype/pr_id_continue.h: Likewise.
36892         * lib/unictype/pr_id_start.h: Likewise.
36893         * lib/unictype/pr_ideographic.h: Likewise.
36894         * lib/unictype/pr_ids_binary_operator.h: Likewise.
36895         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
36896         * lib/unictype/pr_ignorable_control.h: Likewise.
36897         * lib/unictype/pr_iso_control.h: Likewise.
36898         * lib/unictype/pr_join_control.h: Likewise.
36899         * lib/unictype/pr_left_of_pair.h: Likewise.
36900         * lib/unictype/pr_line_separator.h: Likewise.
36901         * lib/unictype/pr_logical_order_exception.h: Likewise.
36902         * lib/unictype/pr_lowercase.h: Likewise.
36903         * lib/unictype/pr_math.h: Likewise.
36904         * lib/unictype/pr_non_break.h: Likewise.
36905         * lib/unictype/pr_not_a_character.h: Likewise.
36906         * lib/unictype/pr_numeric.h: Likewise.
36907         * lib/unictype/pr_other_alphabetic.h: Likewise.
36908         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
36909         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
36910         * lib/unictype/pr_other_id_continue.h: Likewise.
36911         * lib/unictype/pr_other_id_start.h: Likewise.
36912         * lib/unictype/pr_other_lowercase.h: Likewise.
36913         * lib/unictype/pr_other_math.h: Likewise.
36914         * lib/unictype/pr_other_uppercase.h: Likewise.
36915         * lib/unictype/pr_paired_punctuation.h: Likewise.
36916         * lib/unictype/pr_paragraph_separator.h: Likewise.
36917         * lib/unictype/pr_pattern_syntax.h: Likewise.
36918         * lib/unictype/pr_pattern_white_space.h: Likewise.
36919         * lib/unictype/pr_private_use.h: Likewise.
36920         * lib/unictype/pr_punctuation.h: Likewise.
36921         * lib/unictype/pr_quotation_mark.h: Likewise.
36922         * lib/unictype/pr_radical.h: Likewise.
36923         * lib/unictype/pr_sentence_terminal.h: Likewise.
36924         * lib/unictype/pr_soft_dotted.h: Likewise.
36925         * lib/unictype/pr_space.h: Likewise.
36926         * lib/unictype/pr_terminal_punctuation.h: Likewise.
36927         * lib/unictype/pr_titlecase.h: Likewise.
36928         * lib/unictype/pr_unassigned_code_value.h: Likewise.
36929         * lib/unictype/pr_unified_ideograph.h: Likewise.
36930         * lib/unictype/pr_uppercase.h: Likewise.
36931         * lib/unictype/pr_variation_selector.h: Likewise.
36932         * lib/unictype/pr_white_space.h: Likewise.
36933         * lib/unictype/pr_xid_continue.h: Likewise.
36934         * lib/unictype/pr_xid_start.h: Likewise.
36935         * lib/unictype/pr_zero_width.h: Likewise.
36936         * lib/unictype/scripts.h: Likewise.
36937         * lib/unictype/scripts_byname.gperf: Likewise.
36938         * lib/unictype/sy_c_ident.h: Likewise.
36939         * lib/unictype/sy_c_whitespace.h: Likewise.
36940         * lib/unictype/sy_java_ident.h: Likewise.
36941         * lib/unictype/sy_java_whitespace.h: Likewise.
36942
36943         * lib/unictype/Makefile: New file.
36944         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
36945         glibc.
36946         * lib/unictype/3level.h: New file, copied from glibc.
36947         * lib/unictype/3levelbit.h: New file.
36948
36949 2007-11-11  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/gperf: New file.
36952         * modules/iconv_open (Depends-on): Add it.
36953         (Makefile.am): Remove the GPERF definition.
36954
36955 2007-11-11  Bruno Haible  <bruno@clisp.org>
36956
36957         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
36958         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
36959
36960 2007-11-11  Bruno Haible  <bruno@clisp.org>
36961
36962         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
36963         (usage): Remove function.
36964
36965 2007-11-11  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
36968         gl_FUNC_CEILF_LIBS.
36969         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
36970         gl_FUNC_CEIL_LIBS.
36971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
36972         gl_FUNC_CEILL_LIBS.
36973         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
36974         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
36975         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
36976
36977 2007-11-11  Bruno Haible  <bruno@clisp.org>
36978
36979         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
36980         roundf were declared but do not exist on functions.
36981         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
36982         roundl were declared but do not exist on functions.
36983         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
36984         HAVE_FLOORL_AND_CEILL, respectively.
36985         Needed for Sun C on Solaris 10.
36986
36987 2007-11-11  Bruno Haible  <bruno@clisp.org>
36988
36989         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
36990         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
36991         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
36992         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
36993         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
36994         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
36995         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
36996         HAVE_DECL_ROUNDF.
36997         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
36998         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
36999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37000         of HAVE_DECL_ROUND*.
37001         * modules/math (Makefile.am): Update.
37002
37003 2007-11-10  Bruno Haible  <bruno@clisp.org>
37004
37005         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37006         ptrdiff_t as m4/intl.m4.
37007
37008 2007-11-10  Jim Meyering  <meyering@redhat.com>
37009
37010         Avoid link failure for the argmatch test.
37011         * tests/test-argmatch.c (usage): Define function to avoid a link
37012         failure: argmatch_die requires a usage function.
37013
37014 2007-11-09  Bruno Haible  <bruno@clisp.org>
37015
37016         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37017         * doc/functions/vsnprintf.texi: Likewise.
37018         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37019         with a size argument < 2.
37020
37021 2007-11-09  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37024         buffer. Fixes an inefficiency introduced on 2007-11-03.
37025
37026 2007-11-09  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37029         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37030
37031 2007-11-08  Jim Meyering  <meyering@redhat.com>
37032
37033         Change cache variable name prefix "jm_" to "gl_" everywhere.
37034         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37035         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37036         * m4/uptime.m4: s/gl_/jm_/
37037
37038 2007-11-07  Bruno Haible  <bruno@clisp.org>
37039
37040         Update to GNU gettext 0.17.
37041         * m4/intl.m4: Update to GNU gettext 0.17.
37042         * m4/po.m4: Likewise.
37043         * modules/gettext (Files): Remove m4/ulonglong.m4.
37044         (configure.ac): Require gettext infrastructure from version 0.17.
37045
37046 2007-11-06  Bruno Haible  <bruno@clisp.org>
37047
37048         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37049         symbolic values are not defined in a public header.
37050         * lib/freadable.c (freadable) [QNX]: Likewise.
37051         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37052         * lib/freading.c (freading) [QNX]: Likewise.
37053         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37054         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37055         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37056         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37057         Reported by Alain Magloire.
37058
37059         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37060
37061 2007-11-05  Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37064         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37065         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37066         Reported by Eric Blake.
37067
37068 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37069             Bruno Haible  <bruno@clisp.org>
37070
37071         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37072         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37073         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37074         (malloc): Undefine also before including <stdlib.h>.
37075         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37076         Needed on OSF/1 4.0.
37077
37078 2007-11-05  Jim Meyering  <meyering@redhat.com>
37079
37080         git-version-gen: sync from coreutils.
37081         * build-aux/git-version-gen: Add comments.
37082         Change the first '-' to '.' in the snapshot version string,
37083         e.g., 6.9-377-08144 -> 6.9.377-08144
37084         Remove first parameter.
37085         Don't declare a version "-dirty" merely because a time
37086         stamp has changed.
37087
37088 2007-11-04  Bruno Haible  <bruno@clisp.org>
37089
37090         * lib/lock.h: Protect all macro definitions containing an 'if'
37091         statement through a "do { ... } while (0)".
37092         * lib/tls.h: Likewise.
37093
37094 2007-11-04  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37097
37098 2007-11-04  Bruno Haible  <bruno@clisp.org>
37099
37100         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37101         * modules/fprintf-posix (Depends-on): Add nocrash.
37102         * modules/snprintf-posix (Depends-on): Likewise.
37103         * modules/sprintf-posix (Depends-on): Likewise.
37104         * modules/vasnprintf-posix (Depends-on): Likewise.
37105         * modules/vasprintf-posix (Depends-on): Likewise.
37106         * modules/vfprintf-posix (Depends-on): Likewise.
37107         * modules/vsnprintf-posix (Depends-on): Likewise.
37108         * modules/vsprintf-posix (Depends-on): Likewise.
37109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37111         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37112         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37113         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37114         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37115         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37116
37117 2007-11-04  Bruno Haible  <bruno@clisp.org>
37118
37119         * modules/nocrash: New file.
37120         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37121         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37122
37123 2007-11-04  Bruno Haible  <bruno@clisp.org>
37124
37125         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37126         precision handling.
37127         * tests/test-vasprintf-posix.c (test_function): Likewise.
37128         * tests/test-snprintf-posix.h (test_function): Likewise.
37129         * tests/test-sprintf-posix.h (test_function): Likewise.
37130
37131         Fix *printf behaviour for large precisions on mingw and BeOS.
37132         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37133         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37135         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37137         gl_PRINTF_PRECISION and test its result. Invoke
37138         gl_PREREQ_VASNPRINTF_PRECISION.
37139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37143         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37144         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37145         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37146         * doc/functions/fprintf.texi: Update.
37147         * doc/functions/printf.texi: Update.
37148         * doc/functions/snprintf.texi: Update.
37149         * doc/functions/sprintf.texi: Update.
37150         * doc/functions/vfprintf.texi: Update.
37151         * doc/functions/vprintf.texi: Update.
37152         * doc/functions/vsnprintf.texi: Update.
37153         * doc/functions/vsprintf.texi: Update.
37154
37155 2007-11-04  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37158
37159 2007-11-04  Bruno Haible  <bruno@clisp.org>
37160
37161         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37162         Reported by Sylvain Beucler <beuc@gnu.org>.
37163
37164 2007-11-03  Bruno Haible  <bruno@clisp.org>
37165
37166         * tests/test-fprintf-posix2.sh: New file.
37167         * tests/test-fprintf-posix2.c: New file.
37168         * modules/fprintf-posix-tests (Files): Add them.
37169         (TESTS): Add test-fprintf-posix2.sh.
37170         (configure.ac): Check for getrlimit and setrlimit.
37171         (check_PROGRAMS): Add test-fprintf-posix2.
37172
37173         * tests/test-printf-posix2.sh: New file.
37174         * tests/test-printf-posix2.c: New file.
37175         * modules/printf-posix-tests (Files): Add them.
37176         (TESTS): Add test-printf-posix2.sh.
37177         (configure.ac): Check for getrlimit and setrlimit.
37178         (check_PROGRAMS): Add test-printf-posix2.
37179
37180         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37181         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37182         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37183         (decode_double): New function, copied from decode_long_double.
37184         (scale10_round_decimal_decoded): New function, extracted from
37185         scale10_round_decimal_long_double.
37186         (scale10_round_decimal_long_double): Use it.
37187         (scale10_round_decimal_double): New function.
37188         (floorlog10): New function.
37189         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37191         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37193         gl_PRINTF_ENOMEM and test its result. Invoke
37194         gl_PREREQ_VASNPRINTF_ENOMEM.
37195         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37196         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37197         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37198         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37199         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37200         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37201         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37202         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37203         * modules/snprintf-posix (Depends-on): Likewise.
37204         * modules/sprintf-posix (Depends-on): Likewise.
37205         * modules/vasnprintf-posix (Depends-on): Likewise.
37206         * modules/vasprintf-posix (Depends-on): Likewise.
37207         * modules/vfprintf-posix (Depends-on): Likewise.
37208         * modules/vsnprintf-posix (Depends-on): Likewise.
37209         * modules/vsprintf-posix (Depends-on): Likewise.
37210         * doc/functions/fprintf.texi: Update.
37211         * doc/functions/printf.texi: Update.
37212         * doc/functions/snprintf.texi: Update.
37213         * doc/functions/sprintf.texi: Update.
37214         * doc/functions/vfprintf.texi: Update.
37215         * doc/functions/vprintf.texi: Update.
37216         * doc/functions/vsnprintf.texi: Update.
37217         * doc/functions/vsprintf.texi: Update.
37218
37219 2007-11-03  Bruno Haible  <bruno@clisp.org>
37220
37221         * modules/frexp-nolibm-tests: New file.
37222
37223         * modules/frexp-nolibm: New file.
37224         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37225
37226 2007-11-03  Bruno Haible  <bruno@clisp.org>
37227
37228         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37229         value is C99 compliant.
37230         Needed for OSF/1 5.1.
37231
37232 2007-11-03  Bruno Haible  <bruno@clisp.org>
37233
37234         Fix out-of-memory handling of vasnprintf.
37235         * lib/printf-parse.c: Include <errno.h>.
37236         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37237         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37238         is already set.
37239
37240 2007-11-02  Eric Blake  <ebb9@byu.net>
37241
37242         Fix tests on cygwin.
37243         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37244
37245 2007-11-01  Bruno Haible  <bruno@clisp.org>
37246
37247         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37248         warning.
37249         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37250         needed for POSIX compatibility.
37251
37252 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37253
37254         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37255         for compatibility with GNU.
37256
37257 2007-11-01  Bruno Haible  <bruno@clisp.org>
37258
37259         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37260         (putenv): Renamed from rpl_putenv. Change argument type from
37261         'const char *' to 'char *'.
37262         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37263         of defining putenv in config.h, just set REPLACE_PUTENV.
37264         * modules/putenv (Depends-on): Add stdlib.
37265         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37266         (Include): Use <stdlib.h>.
37267         * lib/stdlib.in.h (putenv): New declaration.
37268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37269         REPLACE_PUTENV.
37270         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37271         REPLACE_PUTENV.
37272         Needed for MacOS X 10.5.0.
37273         Reported by Peter O'Gorman <peter@pogma.com>.
37274
37275 2007-11-01  Jim Meyering  <meyering@redhat.com>
37276
37277         Treat an empty date string exactly like "0".
37278         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37279         if the remaining date string (to be parsed) is empty, use "0".
37280         Reported by Mischa Molhoek and discussed in this thread:
37281         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37282
37283 2007-10-31  Bruno Haible  <bruno@clisp.org>
37284
37285         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37286         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37287         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37288         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37289         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37290         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37291
37292 2007-10-31  Bruno Haible  <bruno@clisp.org>
37293
37294         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37295         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37296         (AC_TYPE_LONG_LONG_INT): Use it.
37297         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37298         it as well.
37299         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37300         to m4/longlong.m4.
37301         * modules/stdint (Files): Remove m4/ulonglong.m4.
37302         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37303         m4/ulonglong.m4.
37304         * modules/strtoumax (Files): Likewise.
37305
37306 2007-10-30  Bruno Haible  <bruno@clisp.org>
37307
37308         * modules/xvasprintf-posix: New file.
37309         Suggested by Eric Blake.
37310
37311 2007-10-30  Bruno Haible  <bruno@clisp.org>
37312
37313         * modules/xprintf-posix-tests: New file.
37314         * tests/test-xprintf-posix.sh: New file.
37315         * tests/test-xprintf-posix.c: New file.
37316         * tests/test-xfprintf-posix.c: New file.
37317
37318         * modules/xprintf-posix: New file.
37319
37320 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37321
37322         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37323         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37324         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37325
37326 2007-10-29  Bruno Haible  <bruno@clisp.org>
37327
37328         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37329         contain the special marker '_cv_'.
37330         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37331         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37332         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37333         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37334         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37335         Reported by Ralf Wildenhues.
37336
37337 2007-10-29  Bruno Haible  <bruno@clisp.org>
37338
37339         * gnulib-tool (func_import): When --lgpl is not specified, set
37340         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37341         GPLv3.
37342         Reported by Simon Josefsson.
37343
37344 2007-10-28  Bruno Haible  <bruno@clisp.org>
37345
37346         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37347         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37348         HAVE_DECL_ISFINITE.
37349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37350         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37351         HAVE_DECL_ISFINITE.
37352
37353 2007-10-28  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37356         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37357
37358 2007-10-28  Bruno Haible  <bruno@clisp.org>
37359
37360         Fix link errors with Sun C 5.0 on Solaris 10.
37361         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37362         function is declared but not present in the compiler's libm.
37363         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37364         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37365         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37366         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37367         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37368         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37369         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37371         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37372         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37373         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37374         HAVE_DECL_FLOORL.
37375
37376 2007-10-28  Bruno Haible  <bruno@clisp.org>
37377
37378         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37379         gl_FUNC_FLOORL. Cache the result.
37380         (gl_FUNC_FLOORL): Use it.
37381         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37382         gl_FUNC_CEILL. Cache the result.
37383         (gl_FUNC_CEILL): Use it.
37384
37385         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37386         gl_FUNC_FLOOR. Cache the result.
37387         (gl_FUNC_FLOOR): Use it.
37388         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37389         gl_FUNC_CEIL. Cache the result.
37390         (gl_FUNC_CEIL): Use it.
37391
37392         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37393         gl_FUNC_FLOORF. Cache the result.
37394         (gl_FUNC_FLOORF): Use it.
37395         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37396         gl_FUNC_CEILF. Cache the result.
37397         (gl_FUNC_CEILF): Use it.
37398
37399 2007-10-28  Bruno Haible  <bruno@clisp.org>
37400
37401         * gnulib-tool: Allow specifying the LGPL version number through
37402         --lgpl=2 or --lgpl=3.
37403         (func_usage): Document --lgpl with argument.
37404         Handle --lgpl=... arguments.
37405         (func_import): Recognize also gl_LGPL calls with an argument. When
37406         --lgpl=2 is used and the module's license is just LGPL, report an
37407         error. Set sed_transform_lib_file according to the lgpl variable. In
37408         the generated files, use --lgpl or gl_LGPL invocations with argument,
37409         if necessary.
37410         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37411         an LGPv2+ license.
37412         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37413         gl_LGPL macro.
37414
37415 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37416             Bruno Haible  <bruno@clisp.org>
37417
37418         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37419         (u16_uctomb_aux): Likewise.
37420         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37421         !HAVE_INLINE.
37422         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37423
37424 2007-10-28  Bruno Haible  <bruno@clisp.org>
37425
37426         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37427         Invoke AM_GETTEXT_OPTION if it exists.
37428         * modules/vasprintf: Likewise.
37429         * modules/verror: Likewise.
37430         * modules/xprintf: Likewise.
37431         * modules/xvasprintf: Likewise.
37432
37433 2007-10-27  Ben Pfaff  <blp@gnu.org>
37434
37435         * lib/math.in.h: Define isfinite macro and prototypes for
37436         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37437         implementations.
37438         * m4/math_h.m4: New substitutions for isfinite module.
37439         * lib/isfinite.c: New file.
37440         * m4/isfinite.m4: New file.
37441         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37442         * modules/isfinite: New file.
37443         * modules/isfinite-tests: New file.
37444         * tests/tests-isfinite.c: New file.
37445         * doc/functions/isfinite.texi: Mention isfinite module.
37446         * MODULES.html.sh: Mention new module.
37447
37448 2007-10-27  Ben Pfaff  <blp@gnu.org>
37449
37450         Ralf Wildenhues reported that Tru64 4.0D declares the round
37451         functions but does not have definitions.
37452         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37453         cannot be found in any library, set the output variable to
37454         "missing" instead of "".
37455         * m4/round.m4: Also use our substitute if we cannot find round in
37456         any library, even if it is declared.
37457         * m4/roundf.m4: Likewise for roundf.
37458         * m4/roundl.m4: Likewise for roundl.
37459         * lib/math.in.h: Undefine roundf, round, roundl before defining
37460         their replacements, to allow for hypothetical systems where these
37461         may be defined as macros but not available in libraries.
37462
37463 2007-10-27  Bruno Haible  <bruno@clisp.org>
37464
37465         * doc/gnulib.texi: Invoke @firstparagraphindent.
37466         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37467         changes in gnulib.
37468         (Source changes): New section.
37469
37470 2007-10-26  Bruno Haible  <bruno@clisp.org>
37471
37472         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37473         borrowed from autoconf.
37474
37475 2007-10-26  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37478         strerror returned the empty string. Needed on HP-UX 11.00.
37479
37480 2007-10-24  Micah Cowan  <micah@cowan.name>
37481
37482         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37483         * build-aux/bootstrap: Remove support for now-unnecessary option,
37484         --cvs-user, and envvars CVS_USER, CVS_RSH.
37485
37486 2007-10-24  Jim Meyering  <meyering@redhat.com>
37487
37488         Avoid diagnostics from sha1sum when there is no cached checksum.
37489         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37490         if the po.s1 file hasn't been created yet.
37491
37492         * build-aux/bootstrap: Sync from coreutils:
37493         2007-10-24  Jim Meyering  <meyering@redhat.com>
37494         Get gnulib from the git repository, not from an obsolete cvs one.
37495         * build-aux/bootstrap: Suggestion from Micah Cowan.
37496         2007-10-04  Jim Meyering  <jim@meyering.net>
37497         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37498         (update_po_files): Work also when there are no .po files in po/.
37499
37500 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37501
37502         * README: Append ".git" to git and cg examples.
37503         Problem reported by Benoit Sigoure.
37504
37505 2007-10-23  Micah Cowan  <micah@cowan.name>
37506
37507         * users.txt: Add wget.
37508
37509 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37510
37511         Fix linking of some unistdio tests on FreeBSD.
37512         * modules/unistdio/u16-vsnprintf-tests
37513         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37514         * modules/unistdio/u16-vsprintf-tests
37515         (test_u16_vsnprintf1_LDADD): Likewise.
37516         * modules/unistdio/u32-vsnprintf-tests
37517         (test_u32_vsnprintf1_LDADD): Likewise.
37518         * modules/unistdio/u32-vsprintf-tests
37519         (test_u32_vsprintf1_LDADD): Likewise.
37520         * modules/unistdio/u8-vsnprintf-tests
37521         (test_u8_vsnprintf1_LDADD): Likewise.
37522         * modules/unistdio/u8-vsprintf-tests
37523         (test_u8_vsprintf1_LDADD): Likewise.
37524         * modules/unistdio/ulc-vsnprintf-tests
37525         (test_ulc_vsnprintf1_LDADD): Likewise.
37526         * modules/unistdio/ulc-vsprintf-tests
37527         (test_ulc_vsprintf1_LDADD): Likewise.
37528
37529         Fix linking of some uniconv tests on FreeBSD.
37530         * modules/uniconv/u16-conv-from-enc-tests
37531         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37532         * modules/uniconv/u16-conv-to-enc-tests
37533         (test_u16_conv_to_enc_LDADD): Likewise.
37534         * modules/uniconv/u16-strconv-from-enc-tests
37535         (test_u16_strconv_from_enc_LDADD): Likewise.
37536         * modules/uniconv/u16-strconv-to-enc-tests
37537         (test_u16_strconv_to_enc_LDADD): Likewise.
37538         * modules/uniconv/u32-conv-from-enc-tests
37539         (test_u32_conv_from_enc_LDADD): Likewise.
37540         * modules/uniconv/u32-conv-to-enc-tests
37541         (test_u32_conv_to_enc_LDADD): Likewise.
37542         * modules/uniconv/u32-strconv-from-enc-tests
37543         (test_u32_strconv_from_enc_LDADD): Likewise.
37544         * modules/uniconv/u32-strconv-to-enc-tests
37545         (test_u32_strconv_to_enc_LDADD): Likewise.
37546         * modules/uniconv/u8-conv-from-enc-tests
37547         (test_u8_conv_from_enc_LDADD): Likewise.
37548         * modules/uniconv/u8-conv-to-enc-tests
37549         (test_u8_conv_to_enc_LDADD): Likewise.
37550         * modules/uniconv/u8-strconv-from-enc-tests
37551         (test_u8_strconv_from_enc_LDADD): Likewise.
37552         * modules/uniconv/u8-strconv-to-enc-tests
37553         (test_u8_strconv_to_enc_LDADD): Likewise.
37554
37555 2007-10-22  Bruno Haible  <bruno@clisp.org>
37556
37557         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37558         size.
37559
37560 2007-10-22  Eric Blake  <ebb9@byu.net>
37561
37562         Tweak x*printf documentation.
37563         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37564         variable name and comments.
37565         Suggested by Bruno Haible.
37566
37567 2007-10-22  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/acl.c (copy_acl): Fix file name in comment.
37570
37571 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37572
37573         Fix Tru64 problem with stdbool.h.
37574         * lib/stdbool.in.h (false, true):
37575         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37576         Don't declare as an enum in this situation; it runs afoul of Tru64.
37577         Problem reported by Steven M. Schweda in
37578         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37579
37580 2007-10-22  Eric Blake  <ebb9@byu.net>
37581
37582         Also wrap vf?printf.
37583         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37584         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37585         (xvprintf, xvfprintf): New functions.
37586
37587 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37588
37589         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37590         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37591
37592         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37593         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37594
37595 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37596
37597         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37598         by Bruno Haible.
37599
37600 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37601
37602         * lib/getloadavg.c
37603         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37604         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37605
37606         * tests/test-i-ring.c: Work for C89.
37607
37608 2007-10-22  Bruno Haible  <bruno@clisp.org>
37609
37610         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37611         -1u, in preprocessor expression, so that we don't test for the bug
37612         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37614
37615 2007-10-22  Eric Blake  <ebb9@byu.net>
37616
37617         * tests/test-yesno.sh: Silence stderr during test.
37618
37619 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37620
37621         * modules/crypto/gc-camellia: New file.
37622
37623         * m4/gc-camellia.m4: New file.
37624
37625         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37626
37627         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37628
37629 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37630
37631         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37632         --help to stdout.  Reported by sms@antinode.org (Steven
37633         M. Schweda).
37634
37635 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37636
37637         * users.txt: Fix link to libksba.
37638
37639 2007-10-21  Ben Pfaff  <blp@gnu.org>
37640
37641         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37642         round.c roundf implementation that depends on floorf and ceilf to
37643         be tested unconditionally.
37644
37645 2007-10-21  Ben Pfaff  <blp@gnu.org>
37646
37647         * m4/check-libm-func.m4: Removed.
37648         * m4/check-math-lib.m4: New file.
37649         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37650         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37651         definition and lack of AC_LIBOBJ([roundf]).
37652         * m4/roundl.m4: Ditto, and similarly for roundl.
37653         * modules/round: Reference new m4 file.
37654         * modules/roundf: Ditto.
37655         * modules/roundl: Ditto.
37656         * tests/test-round2.c (main): Use ROUND instead of round.
37657         Bug report from Bruno Haible.
37658
37659 2007-10-21  Bruno Haible  <bruno@clisp.org>
37660
37661         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37662         context.
37663
37664 2007-10-21  Bruno Haible  <bruno@clisp.org>
37665
37666         * tests/test-wcwidth.c (main): Allow negative result for some control
37667         characters.
37668
37669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37670         Needed on OSF/1 5.1.
37671
37672 2007-10-21  Bruno Haible  <bruno@clisp.org>
37673
37674         * tests/test-floorf1.c: Include isnanf.h.
37675         (main): Use isnanf() instead of isnan().
37676         * tests/test-ceilf1.c: Include isnanf.h.
37677         (main): Use isnanf() instead of isnan().
37678         * tests/test-truncf1.c: Include isnanf.h.
37679         (main): Use isnanf() instead of isnan().
37680         * tests/test-roundf1.c: Include isnanf.h.
37681         (main): Use isnanf() instead of isnan().
37682
37683 2007-10-21  Eric Blake  <ebb9@byu.net>
37684
37685         * users.txt: Update URL for m4.
37686
37687 2007-10-21  Bruno Haible  <bruno@clisp.org>
37688
37689         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37690
37691 2007-10-21  Bruno Haible  <bruno@clisp.org>
37692
37693         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37694         Git's management files if the CVS files are not present.
37695
37696 2007-10-20  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37699         gcc-3.4.x.
37700
37701 2007-10-20  Ben Pfaff  <blp@gnu.org>
37702
37703         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37704         implementations.
37705         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37706         * lib/round.c: New file.
37707         * lib/roundf.c: New file.
37708         * lib/roundl.c: New file.
37709         * m4/round.m4: New file.
37710         * m4/roundf.m4: New file.
37711         * m4/roundl.m4: New file.
37712         * m4/check-libm-func-m4: New file.
37713         * modules/math: Replace round, roundf, roundl related @VARS@ in
37714         math.in.h.
37715         * modules/round: New file.
37716         * modules/round-tests: New file.
37717         * modules/roundf: New file.
37718         * modules/roundf-tests: New file.
37719         * modules/roundl: New file.
37720         * modules/roundl-tests: New file.
37721         * tests/test-round1.c: New file.
37722         * tests/test-round2.c: New file.
37723         * tests/test-roundf1.c: New file.
37724         * tests/test-roundf2.c: New file.
37725         * tests/test-roundl.c: New file.
37726         * doc/functions/round.texi: Mention round module.
37727         * doc/functions/roundf.texi: Mention roundf module.
37728         * doc/functions/roundl.texi: Mention roundl module.
37729         * MODULES.html.sh: Mention new modules.
37730         Thanks to Bruno Haible for suggestions.
37731
37732 2007-10-20  Jim Meyering  <meyering@redhat.com>
37733
37734         * lib/xprintf.c: Include <config.h> unconditionally.
37735
37736         Change xprintf's license to GPL.
37737         * modules/xprintf (License): s/LGPL/GPL/, since this module
37738         depends on modules (exit and exitfail) which are GPL.
37739         Suggestion from Bruno Haible.
37740
37741         xprintf fixes.
37742         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37743         Use a clearer diagnostic.
37744         Patch from Bruno Haible.
37745
37746 2007-10-20  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37749         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37751
37752 2007-10-20  Bruno Haible  <bruno@clisp.org>
37753
37754         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37755         precision in the comparison result > x - 1 or similar.
37756         * tests/test-ceilf2.c (correct_result_p): Likewise.
37757         * tests/test-truncf2.c (correct_result_p): Likewise.
37758         * tests/test-trunc2.c (correct_result_p): Likewise.
37759         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37760
37761 2007-10-20  Bruno Haible  <bruno@clisp.org>
37762
37763         * modules/ceil: New file.
37764         * m4/ceil.m4: New file.
37765         * doc/functions/ceil.texi: Mention the 'ceil' module.
37766
37767 2007-10-20  Bruno Haible  <bruno@clisp.org>
37768
37769         * modules/floor: New file.
37770         * m4/floor.m4: New file.
37771         * doc/functions/floor.texi: Mention the 'floor' module.
37772
37773 2007-10-20  Bruno Haible  <bruno@clisp.org>
37774
37775         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37776         of %a.
37777         * modules/floorf-tests (Depends-on): Likewise.
37778         * modules/truncf-tests (Depends-on): Likewise.
37779         * modules/trunc-tests (Depends-on): Likewise.
37780         Reported by Ben Pfaff.
37781
37782 2007-10-19  Jim Meyering  <meyering@redhat.com>
37783
37784         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37785         Don't bother testing specific errno values.  Just test ferror.
37786
37787         New module: xprintf
37788         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37789
37790 2007-10-19  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37793         syntax.
37794         * modules/javaexec (Makefile.am): Likewise.
37795         * modules/relocatable-prog (Makefile.am): Likewise.
37796         Suggested by Jim Meyering.
37797
37798 2007-10-18  Bruno Haible  <bruno@clisp.org>
37799
37800         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37801         Reported by Jim Meyering.
37802
37803 2007-10-18  Eric Blake  <ebb9@byu.net>
37804
37805         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37806
37807 2007-10-18  Bruno Haible  <bruno@clisp.org>
37808
37809         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37810         the format string into writable memory. Needed in Fortify conditions.
37811
37812 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37813             Bruno Haible  <bruno@clisp.org>
37814
37815         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37816         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37817         * modules/trim (Depends-on): Add mbchar.
37818         (configure.ac): Add gl_FUNC_MBRTOWC.
37819         (Makefile.am): Augment lib_SOURCES.
37820
37821 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37822
37823         Modify glob.c to use fstatat and dirfd, to simplify it.
37824         Suggested by Eric Blake.
37825         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37826         Don't include <stdbool.h>; not used.
37827         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37828         (link_exists_p): Simplify implementation, since we can now assume
37829         dirfd and fstatat.
37830         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37831
37832 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37833
37834         * gnulib-tool (func_get_dependencies): Fix sed script to
37835         match only tests.
37836
37837 2007-10-17  Bruno Haible  <bruno@clisp.org>
37838
37839         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37840         allow locale names without encoding suffix.
37841         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37842         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37843
37844 2007-10-16  Bruno Haible  <bruno@clisp.org>
37845
37846         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37847         * lib/getgroups.c (getgroups): Likewise.
37848         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37849
37850 2007-10-16  Bruno Haible  <bruno@clisp.org>
37851
37852         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37853         * modules/malloc-posix (License): Likewise.
37854         * modules/realloc-posix (License): Likewise.
37855         * modules/calloc-posix (License): Likewise.
37856         * modules/intprops (License): Change from GPL to LGPL, with
37857         Paul Eggert's approval.
37858
37859 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37860
37861         Merge glibc changes into lib/glob.c.
37862
37863         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
37864         2007-10-15 04:59:03 UTC.  Here are the changes:
37865
37866         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
37867
37868         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
37869
37870         * lib/glob.c: Add some branch prediction throughout.
37871
37872         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
37873
37874         [BZ #5103]
37875         * lib/glob.c (glob): Recognize patterns starting \/.
37876
37877         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
37878
37879         [BZ #3996]
37880         * lib/glob.c (attribute_hidden): Define if not defined.
37881         (glob): Unescape dirname, filename or username when needed and not
37882         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
37883         is NULL.  Handle unescaped [ in pattern without closing ].
37884         Don't pass GLOB_CHECK down to recursive glob for directories.
37885         (__glob_pattern_type): New function.
37886         (__glob_pattern_p): Implement using __glob_pattern_type.
37887         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
37888         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
37889         Remove unreachable code.
37890
37891         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
37892
37893         * lib/glob.c (glob_in_dir): Add some comments and asserts to
37894         explain why there are no leaks.
37895
37896         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
37897
37898         [BZ #3253]
37899         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
37900         time, rather allocate increasingly bigger arrays of pointers, if
37901         possible with alloca, if too large with malloc.
37902
37903 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37904
37905         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
37906         Problem reported by H.Merijn Brand in
37907         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
37908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
37909         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37910
37911 2007-10-15  Bruno Haible  <bruno@clisp.org>
37912
37913         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
37914         with explicit rpl_ prefix.
37915         * lib/fopen.c (fopen): Likewise.
37916         * lib/freopen.c (freopen): Likewise.
37917         * lib/iconv.c (iconv): Likewise.
37918         * lib/iconv_close.c (iconv_close): Likewise.
37919
37920 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37921
37922         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
37923
37924 2007-10-15  Bruno Haible  <bruno@clisp.org>
37925
37926         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
37927         <stddef.h> instead of <stdlib.h> since we only need NULL.
37928         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37929
37930 2007-10-15  Bruno Haible  <bruno@clisp.org>
37931
37932         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
37933         Replace paragraph talking about LIBOBJS.
37934         Reported by Colin Watson <cjwatson@debian.org>.
37935
37936 2007-10-15  Bruno Haible  <bruno@clisp.org>
37937
37938         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
37939         <stdlib.h> before using NULL.
37940
37941 2007-10-15  Simon Josefsson  <simon@josefsson.org>
37942
37943         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
37944         Reported by Albert Chin <china@thewrittenword.com>.
37945
37946 2007-10-14  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/iconv_open-utf-tests: New file.
37949         * tests/test-iconv-utf.c: New file.
37950
37951         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
37952         * modules/iconv_open-utf: New file.
37953         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
37954         (iconv, iconv_close): New declarations.
37955         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
37956         be defined.
37957         (iconv_open): Add special handling of conversion between UTF-8 and
37958         UTF-{16,32}{BE,LE}.
37959         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
37960         * lib/iconv_close.c: New file.
37961         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
37962         gl_FUNC_ICONV_OPEN.
37963         (gl_FUNC_ICONV_OPEN): Use it.
37964         (gl_FUNC_ICONV_OPEN_UTF): New macro.
37965         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
37966         and REPLACE_ICONV_UTF.
37967         * modules/iconv_open (Depends-on): Add c-strcase.
37968         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
37969         ICONV_CONST.
37970         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
37971
37972 2007-10-13  Albert Chin  <china@thewrittenword.com>
37973             Bruno Haible  <bruno@clisp.org>
37974
37975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
37976         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
37977
37978 2007-10-13  Bruno Haible  <bruno@clisp.org>
37979
37980         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
37981         defined, use the ISO C99 inline semantics.
37982         * lib/argp.h (ARGP_EI): Likewise.
37983
37984 2007-10-13  Bruno Haible  <bruno@clisp.org>
37985
37986         Handle 'inline' change in gcc 4.3.0.
37987         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
37988         argp_fmtstream_write, argp_fmtstream_set_lmargin,
37989         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
37990         argp_fmtstream_point): Disable 'extern' declaration if the function
37991         definition is going to be provided inline.
37992         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
37993         semantics, not the ISO C99 inline semantics.
37994         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
37995         'extern' declaration if the function definition is going to be provided
37996         inline.
37997         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
37998         the GNU C inline semantics, not the ISO C99 inline semantics. With
37999         GCC 4.2, avoid a warning.
38000
38001 2007-10-13  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/freading.h (freading): Enable the use of __freading for
38004         glibc >= 2.7.
38005         * lib/freading.c (freading): Likewise.
38006
38007 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38008
38009         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38010         "warning: C99 inline functions are not supported; using GNU89".
38011
38012 2007-10-12  Bruno Haible  <bruno@clisp.org>
38013
38014         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38015         of 2.
38016         * tests/test-ceilf2.c: New file.
38017         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38018
38019         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38020         * modules/ceilf-tests: Update.
38021
38022 2007-10-12  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38025         of 2.
38026         * tests/test-floorf2.c: New file.
38027         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38028
38029         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38030         * modules/floorf-tests: Update.
38031
38032 2007-10-12  Bruno Haible  <bruno@clisp.org>
38033
38034         * tests/test-trunc2.c: New file.
38035         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38036
38037         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38038         * modules/trunc-tests: Update.
38039
38040 2007-10-12  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38043         of 2.
38044         * tests/test-truncf2.c: New file.
38045         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38046
38047         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38048         * modules/truncf-tests: Update.
38049
38050 2007-10-11  Eric Blake  <ebb9@byu.net>
38051
38052         Don't claim strerror is broken on Interix.
38053         * doc/functions/strerror.texi (strerror): Known broken systems are
38054         now Solaris 8, and not Interix.
38055         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38056         Interix on cross-compile.
38057         Reported by Martin Koeppe in
38058         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38059
38060 2007-10-11  Bruno Haible  <bruno@clisp.org>
38061
38062         * modules/i-ring-tests: New file.
38063         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38064         instead of assert.
38065
38066 2007-10-11  Bruno Haible  <bruno@clisp.org>
38067
38068         * modules/filenamecat-tests: New file.
38069         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38070         * lib/filenamecat.c: Remove test code.
38071
38072 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38073
38074         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38075
38076         * lib/strerror.c: Include <string.h> always, to test interface,
38077         and to remove the need for the dummy.
38078         Include intprops.h to compute width instead of doing it ourselves
38079         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38080         (strerror): Define it to return NULL if there's no system strerror.
38081         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38082         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38083         ancient pre-strerror Unix systems well any more.  Saying "unknown
38084         system error" is enough.
38085         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38086         simpler strerror.c implementation.
38087         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38088         Simplify the tests to reflect the simpler strerror implementation.
38089         * modules/strerror (Depends-on): Add intprops.
38090
38091 2007-10-09  Eric Blake  <ebb9@byu.net>
38092
38093         Silence test-fpending.
38094         * modules/fpending-tests (Files): Add wrapper script.
38095         * tests/test-fpending.sh: New file.
38096
38097 2007-10-09  Bruno Haible  <bruno@clisp.org>
38098
38099         * MODULES.html.sh (func_module): Don't create a hyperlink for
38100         function names like 'printf_frexp'.
38101         (Misc): Add crc, memxor.
38102         (Characteristics of floating types): New section.
38103         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38104         isnanf-nolibm, signbit, trunc, truncf, truncl.
38105         (Enhancements for ISO C 99 functions): New subsection Input/output.
38106         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38107         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38108         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38109         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38110         (Enhancements for POSIX:2001 functions): Add chdir-long.
38111         (File system functions): Add areadlink, chdir-safer, read-file.
38112         Remove cycle-check.
38113         (File system as inode set): New section.
38114         (Date and time): Add gethrxtime.
38115         (Multithreading): Add openmp.
38116         (Internationalization functions): Add localename.
38117         (Unicode string functions): Add unistr/u*-mbsnlen.
38118         (Support for maintaining and releasing projects): Add git-version-gen.
38119         (Lone files): Remove directories.
38120
38121 2007-10-08  Ben Pfaff  <blp@gnu.org>
38122
38123         * lib/xmalloca.h: Fix typo in comment.
38124
38125 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38126
38127         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38128         when avoiding problems with integer overflow.  Use a portable test
38129         instead.
38130
38131 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38132
38133         * modules/dummy (License): Change to LGPLv2+.
38134         * modules/float (License): Likewise
38135         * modules/realloc (License): Likewise
38136         * modules/stdlib (License): Likewise
38137
38138 2007-10-07  Bruno Haible  <bruno@clisp.org>
38139
38140         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38141         * floor.c (TWO_MANT_DIG): Likewise.
38142         * ceil.c (TWO_MANT_DIG): Likewise.
38143         Reported by Ben Pfaff.
38144
38145 2007-10-07  Bruno Haible  <bruno@clisp.org>
38146
38147         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38148         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38149         * lib/frexp.c (FUNC): Likewise.
38150         * lib/printf-frexp.h (printf_frexp): Likewise.
38151         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38152         * lib/printf-frexp.c (FUNC): Likewise.
38153         Suggested by Jim Meyering.
38154
38155 2007-10-07  Jim Meyering  <meyering@redhat.com>
38156
38157         Make xnanosleep's integer overflow test more robust.
38158         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38159         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38160
38161 2007-10-07  Bruno Haible  <bruno@clisp.org>
38162
38163         * NEWS: Mention the license change.
38164
38165         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38166         abbreviations in the modules files.
38167
38168         Change copyright notice from GPLv2+ to GPLv3+.
38169         * README: Change copyright notice.
38170         * MODULES.html.sh: Likewise.
38171         * build-aux/bootstrap.conf: Likewise.
38172         * build-aux/config.libpath: Likewise.
38173         * build-aux/csharpcomp.sh.in: Likewise.
38174         * build-aux/csharpexec.sh.in: Likewise.
38175         * build-aux/install-reloc: Likewise.
38176         * build-aux/javacomp.sh.in: Likewise.
38177         * build-aux/javaexec.sh.in: Likewise.
38178         * build-aux/ldd.sh.in: Likewise.
38179         * build-aux/reloc-ldflags: Likewise.
38180         * build-aux/relocatable.sh.in: Likewise.
38181         * build-aux/x-to-1.in: Likewise.
38182         * check-module: Likewise.
38183         * config/srclistvars.sh: Likewise.
38184         * gnulib-tool: Likewise.
38185         * lib/acl-internal.h: Likewise.
38186         * lib/acl.c: Likewise.
38187         * lib/acl.h: Likewise.
38188         * lib/acl_entries.c: Likewise.
38189         * lib/areadlink-with-size.c: Likewise.
38190         * lib/areadlink.c: Likewise.
38191         * lib/areadlink.h: Likewise.
38192         * lib/argmatch.c: Likewise.
38193         * lib/argmatch.h: Likewise.
38194         * lib/argp-ba.c: Likewise.
38195         * lib/argp-eexst.c: Likewise.
38196         * lib/argp-fmtstream.c: Likewise.
38197         * lib/argp-fmtstream.h: Likewise.
38198         * lib/argp-fs-xinl.c: Likewise.
38199         * lib/argp-help.c: Likewise.
38200         * lib/argp-namefrob.h: Likewise.
38201         * lib/argp-parse.c: Likewise.
38202         * lib/argp-pin.c: Likewise.
38203         * lib/argp-pv.c: Likewise.
38204         * lib/argp-pvh.c: Likewise.
38205         * lib/argp-xinl.c: Likewise.
38206         * lib/argp.h: Likewise.
38207         * lib/at-func.c: Likewise.
38208         * lib/atanl.c: Likewise.
38209         * lib/backupfile.c: Likewise.
38210         * lib/backupfile.h: Likewise.
38211         * lib/basename.c: Likewise.
38212         * lib/binary-io.h: Likewise.
38213         * lib/byteswap.in.h: Likewise.
38214         * lib/c-stack.c: Likewise.
38215         * lib/c-stack.h: Likewise.
38216         * lib/c-strcasestr.c: Likewise.
38217         * lib/c-strcasestr.h: Likewise.
38218         * lib/c-strstr.c: Likewise.
38219         * lib/c-strstr.h: Likewise.
38220         * lib/c-strtod.c: Likewise.
38221         * lib/calloc.c: Likewise.
38222         * lib/canon-host.c: Likewise.
38223         * lib/canon-host.h: Likewise.
38224         * lib/canonicalize-lgpl.c: Likewise.
38225         * lib/canonicalize.c: Likewise.
38226         * lib/canonicalize.h: Likewise.
38227         * lib/ceil.c: Likewise.
38228         * lib/ceilf.c: Likewise.
38229         * lib/ceill.c: Likewise.
38230         * lib/chdir-long.c: Likewise.
38231         * lib/chdir-long.h: Likewise.
38232         * lib/chdir-safer.c: Likewise.
38233         * lib/chdir-safer.h: Likewise.
38234         * lib/chown.c: Likewise.
38235         * lib/classpath.c: Likewise.
38236         * lib/classpath.h: Likewise.
38237         * lib/clean-temp.c: Likewise.
38238         * lib/clean-temp.h: Likewise.
38239         * lib/cloexec.c: Likewise.
38240         * lib/close-stream.c: Likewise.
38241         * lib/closein.c: Likewise.
38242         * lib/closein.h: Likewise.
38243         * lib/closeout.c: Likewise.
38244         * lib/closeout.h: Likewise.
38245         * lib/concat-filename.c: Likewise.
38246         * lib/copy-file.c: Likewise.
38247         * lib/copy-file.h: Likewise.
38248         * lib/count-one-bits.h: Likewise.
38249         * lib/crc.c: Likewise.
38250         * lib/crc.h: Likewise.
38251         * lib/creat-safer.c: Likewise.
38252         * lib/csharpcomp.c: Likewise.
38253         * lib/csharpcomp.h: Likewise.
38254         * lib/csharpexec.c: Likewise.
38255         * lib/csharpexec.h: Likewise.
38256         * lib/cycle-check.c: Likewise.
38257         * lib/cycle-check.h: Likewise.
38258         * lib/diacrit.c: Likewise.
38259         * lib/diacrit.h: Likewise.
38260         * lib/diffseq.h: Likewise.
38261         * lib/dirchownmod.c: Likewise.
38262         * lib/dirent.in.h: Likewise.
38263         * lib/dirfd.c: Likewise.
38264         * lib/dirfd.h: Likewise.
38265         * lib/dirname.c: Likewise.
38266         * lib/dirname.h: Likewise.
38267         * lib/dummy.c: Likewise.
38268         * lib/dup-safer.c: Likewise.
38269         * lib/dup2.c: Likewise.
38270         * lib/eealloc.h: Likewise.
38271         * lib/error.c: Likewise.
38272         * lib/error.h: Likewise.
38273         * lib/euidaccess.c: Likewise.
38274         * lib/exclude.c: Likewise.
38275         * lib/exclude.h: Likewise.
38276         * lib/execute.c: Likewise.
38277         * lib/execute.h: Likewise.
38278         * lib/exitfail.c: Likewise.
38279         * lib/exitfail.h: Likewise.
38280         * lib/expl.c: Likewise.
38281         * lib/fatal-signal.c: Likewise.
38282         * lib/fatal-signal.h: Likewise.
38283         * lib/fbufmode.c: Likewise.
38284         * lib/fbufmode.h: Likewise.
38285         * lib/fchdir.c: Likewise.
38286         * lib/fchmodat.c: Likewise.
38287         * lib/fchownat.c: Likewise.
38288         * lib/fcntl--.h: Likewise.
38289         * lib/fcntl-safer.h: Likewise.
38290         * lib/fcntl.in.h: Likewise.
38291         * lib/fd-safer.c: Likewise.
38292         * lib/fflush.c: Likewise.
38293         * lib/file-has-acl.c: Likewise.
38294         * lib/file-set.c: Likewise.
38295         * lib/file-type.c: Likewise.
38296         * lib/file-type.h: Likewise.
38297         * lib/fileblocks.c: Likewise.
38298         * lib/filemode.c: Likewise.
38299         * lib/filemode.h: Likewise.
38300         * lib/filename.h: Likewise.
38301         * lib/filenamecat.c: Likewise.
38302         * lib/filenamecat.h: Likewise.
38303         * lib/findprog.c: Likewise.
38304         * lib/findprog.h: Likewise.
38305         * lib/float.in.h: Likewise.
38306         * lib/floor.c: Likewise.
38307         * lib/floorf.c: Likewise.
38308         * lib/floorl.c: Likewise.
38309         * lib/fopen-safer.c: Likewise.
38310         * lib/fopen.c: Likewise.
38311         * lib/fpending.c: Likewise.
38312         * lib/fpending.h: Likewise.
38313         * lib/fprintf.c: Likewise.
38314         * lib/fprintftime.h: Likewise.
38315         * lib/fpucw.h: Likewise.
38316         * lib/fpurge.c: Likewise.
38317         * lib/fpurge.h: Likewise.
38318         * lib/freadable.c: Likewise.
38319         * lib/freadable.h: Likewise.
38320         * lib/freadahead.c: Likewise.
38321         * lib/freadahead.h: Likewise.
38322         * lib/freading.c: Likewise.
38323         * lib/freading.h: Likewise.
38324         * lib/free.c: Likewise.
38325         * lib/freopen.c: Likewise.
38326         * lib/frexp.c: Likewise.
38327         * lib/frexpl.c: Likewise.
38328         * lib/fseek.c: Likewise.
38329         * lib/fseterr.c: Likewise.
38330         * lib/fseterr.h: Likewise.
38331         * lib/fstatat.c: Likewise.
38332         * lib/fstrcmp.c: Likewise.
38333         * lib/fstrcmp.h: Likewise.
38334         * lib/fsusage.c: Likewise.
38335         * lib/fsusage.h: Likewise.
38336         * lib/ftell.c: Likewise.
38337         * lib/ftello.c: Likewise.
38338         * lib/fts-cycle.c: Likewise.
38339         * lib/fts.c: Likewise.
38340         * lib/fts_.h: Likewise.
38341         * lib/full-read.c: Likewise.
38342         * lib/full-read.h: Likewise.
38343         * lib/full-write.c: Likewise.
38344         * lib/full-write.h: Likewise.
38345         * lib/fwritable.c: Likewise.
38346         * lib/fwritable.h: Likewise.
38347         * lib/fwriteerror.c: Likewise.
38348         * lib/fwriteerror.h: Likewise.
38349         * lib/fwriting.c: Likewise.
38350         * lib/fwriting.h: Likewise.
38351         * lib/gcd.c: Likewise.
38352         * lib/gcd.h: Likewise.
38353         * lib/getcwd.c: Likewise.
38354         * lib/getdate.h: Likewise.
38355         * lib/getdate.y: Likewise.
38356         * lib/getdomainname.c: Likewise.
38357         * lib/getdomainname.h: Likewise.
38358         * lib/getgroups.c: Likewise.
38359         * lib/gethostname.c: Likewise.
38360         * lib/gethrxtime.c: Likewise.
38361         * lib/gethrxtime.h: Likewise.
38362         * lib/getloadavg.c: Likewise.
38363         * lib/getndelim2.c: Likewise.
38364         * lib/getndelim2.h: Likewise.
38365         * lib/getnline.c: Likewise.
38366         * lib/getnline.h: Likewise.
38367         * lib/getopt.c: Likewise.
38368         * lib/getopt.in.h: Likewise.
38369         * lib/getopt1.c: Likewise.
38370         * lib/getopt_int.h: Likewise.
38371         * lib/getpagesize.h: Likewise.
38372         * lib/getsubopt.c: Likewise.
38373         * lib/gettime.c: Likewise.
38374         * lib/getugroups.c: Likewise.
38375         * lib/getugroups.h: Likewise.
38376         * lib/getusershell.c: Likewise.
38377         * lib/gl_anyavltree_list1.h: Likewise.
38378         * lib/gl_anyavltree_list2.h: Likewise.
38379         * lib/gl_anyhash_list1.h: Likewise.
38380         * lib/gl_anyhash_list2.h: Likewise.
38381         * lib/gl_anylinked_list1.h: Likewise.
38382         * lib/gl_anylinked_list2.h: Likewise.
38383         * lib/gl_anyrbtree_list1.h: Likewise.
38384         * lib/gl_anyrbtree_list2.h: Likewise.
38385         * lib/gl_anytree_list1.h: Likewise.
38386         * lib/gl_anytree_list2.h: Likewise.
38387         * lib/gl_anytree_oset.h: Likewise.
38388         * lib/gl_anytreehash_list1.h: Likewise.
38389         * lib/gl_anytreehash_list2.h: Likewise.
38390         * lib/gl_array_list.c: Likewise.
38391         * lib/gl_array_list.h: Likewise.
38392         * lib/gl_array_oset.c: Likewise.
38393         * lib/gl_array_oset.h: Likewise.
38394         * lib/gl_avltree_list.c: Likewise.
38395         * lib/gl_avltree_list.h: Likewise.
38396         * lib/gl_avltree_oset.c: Likewise.
38397         * lib/gl_avltree_oset.h: Likewise.
38398         * lib/gl_avltreehash_list.c: Likewise.
38399         * lib/gl_avltreehash_list.h: Likewise.
38400         * lib/gl_carray_list.c: Likewise.
38401         * lib/gl_carray_list.h: Likewise.
38402         * lib/gl_linked_list.c: Likewise.
38403         * lib/gl_linked_list.h: Likewise.
38404         * lib/gl_linkedhash_list.c: Likewise.
38405         * lib/gl_linkedhash_list.h: Likewise.
38406         * lib/gl_list.c: Likewise.
38407         * lib/gl_list.h: Likewise.
38408         * lib/gl_oset.c: Likewise.
38409         * lib/gl_oset.h: Likewise.
38410         * lib/gl_rbtree_list.c: Likewise.
38411         * lib/gl_rbtree_list.h: Likewise.
38412         * lib/gl_rbtree_oset.c: Likewise.
38413         * lib/gl_rbtree_oset.h: Likewise.
38414         * lib/gl_rbtreehash_list.c: Likewise.
38415         * lib/gl_rbtreehash_list.h: Likewise.
38416         * lib/gl_sublist.c: Likewise.
38417         * lib/gl_sublist.h: Likewise.
38418         * lib/group-member.c: Likewise.
38419         * lib/group-member.h: Likewise.
38420         * lib/hard-locale.c: Likewise.
38421         * lib/hard-locale.h: Likewise.
38422         * lib/hash-pjw.c: Likewise.
38423         * lib/hash-pjw.h: Likewise.
38424         * lib/hash-triple.c: Likewise.
38425         * lib/hash.c: Likewise.
38426         * lib/hash.h: Likewise.
38427         * lib/human.c: Likewise.
38428         * lib/human.h: Likewise.
38429         * lib/i-ring.c: Likewise.
38430         * lib/i-ring.h: Likewise.
38431         * lib/idcache.c: Likewise.
38432         * lib/imaxabs.c: Likewise.
38433         * lib/imaxdiv.c: Likewise.
38434         * lib/inet_pton.c: Likewise.
38435         * lib/inet_pton.h: Likewise.
38436         * lib/intprops.h: Likewise.
38437         * lib/inttostr.c: Likewise.
38438         * lib/inttostr.h: Likewise.
38439         * lib/inttypes.in.h: Likewise.
38440         * lib/isapipe.c: Likewise.
38441         * lib/isdir.c: Likewise.
38442         * lib/isnan.c: Likewise.
38443         * lib/isnan.h: Likewise.
38444         * lib/isnanf.c: Likewise.
38445         * lib/isnanf.h: Likewise.
38446         * lib/isnanl-nolibm.h: Likewise.
38447         * lib/isnanl.c: Likewise.
38448         * lib/isnanl.h: Likewise.
38449         * lib/javacomp.c: Likewise.
38450         * lib/javacomp.h: Likewise.
38451         * lib/javaexec.c: Likewise.
38452         * lib/javaexec.h: Likewise.
38453         * lib/javaversion.c: Likewise.
38454         * lib/javaversion.h: Likewise.
38455         * lib/javaversion.java: Likewise.
38456         * lib/lbrkprop.h: Likewise.
38457         * lib/lchmod.h: Likewise.
38458         * lib/lchown.c: Likewise.
38459         * lib/ldexpl.c: Likewise.
38460         * lib/linebreak.c: Likewise.
38461         * lib/linebreak.h: Likewise.
38462         * lib/linebuffer.c: Likewise.
38463         * lib/linebuffer.h: Likewise.
38464         * lib/locale.in.h: Likewise.
38465         * lib/logl.c: Likewise.
38466         * lib/long-options.c: Likewise.
38467         * lib/long-options.h: Likewise.
38468         * lib/lstat.c: Likewise.
38469         * lib/lstat.h: Likewise.
38470         * lib/math.in.h: Likewise.
38471         * lib/mbchar.c: Likewise.
38472         * lib/mbchar.h: Likewise.
38473         * lib/mbfile.h: Likewise.
38474         * lib/mbiter.h: Likewise.
38475         * lib/mbscasecmp.c: Likewise.
38476         * lib/mbscasestr.c: Likewise.
38477         * lib/mbschr.c: Likewise.
38478         * lib/mbscspn.c: Likewise.
38479         * lib/mbslen.c: Likewise.
38480         * lib/mbsncasecmp.c: Likewise.
38481         * lib/mbsnlen.c: Likewise.
38482         * lib/mbspbrk.c: Likewise.
38483         * lib/mbspcasecmp.c: Likewise.
38484         * lib/mbsrchr.c: Likewise.
38485         * lib/mbssep.c: Likewise.
38486         * lib/mbsspn.c: Likewise.
38487         * lib/mbsstr.c: Likewise.
38488         * lib/mbstok_r.c: Likewise.
38489         * lib/mbswidth.c: Likewise.
38490         * lib/mbswidth.h: Likewise.
38491         * lib/mbuiter.h: Likewise.
38492         * lib/memcasecmp.c: Likewise.
38493         * lib/memcasecmp.h: Likewise.
38494         * lib/memchr.c: Likewise.
38495         * lib/memcmp.c: Likewise.
38496         * lib/memcoll.c: Likewise.
38497         * lib/memcoll.h: Likewise.
38498         * lib/memcpy.c: Likewise.
38499         * lib/memrchr.c: Likewise.
38500         * lib/mkancesdirs.c: Likewise.
38501         * lib/mkdir-p.c: Likewise.
38502         * lib/mkdir-p.h: Likewise.
38503         * lib/mkdir.c: Likewise.
38504         * lib/mkdirat.c: Likewise.
38505         * lib/mkdtemp.c: Likewise.
38506         * lib/mkstemp-safer.c: Likewise.
38507         * lib/mkstemp.c: Likewise.
38508         * lib/modechange.c: Likewise.
38509         * lib/modechange.h: Likewise.
38510         * lib/mountlist.c: Likewise.
38511         * lib/mountlist.h: Likewise.
38512         * lib/mpsort.c: Likewise.
38513         * lib/nanosleep.c: Likewise.
38514         * lib/obstack.c: Likewise.
38515         * lib/obstack.h: Likewise.
38516         * lib/open-safer.c: Likewise.
38517         * lib/open.c: Likewise.
38518         * lib/openat-die.c: Likewise.
38519         * lib/openat-priv.h: Likewise.
38520         * lib/openat-proc.c: Likewise.
38521         * lib/openat.c: Likewise.
38522         * lib/openat.h: Likewise.
38523         * lib/pagealign_alloc.c: Likewise.
38524         * lib/pagealign_alloc.h: Likewise.
38525         * lib/physmem.c: Likewise.
38526         * lib/physmem.h: Likewise.
38527         * lib/pipe-safer.c: Likewise.
38528         * lib/pipe.c: Likewise.
38529         * lib/pipe.h: Likewise.
38530         * lib/posixtm.c: Likewise.
38531         * lib/posixtm.h: Likewise.
38532         * lib/posixver.c: Likewise.
38533         * lib/printf-frexp.c: Likewise.
38534         * lib/printf-frexp.h: Likewise.
38535         * lib/printf-frexpl.c: Likewise.
38536         * lib/printf-frexpl.h: Likewise.
38537         * lib/printf.c: Likewise.
38538         * lib/progname.c: Likewise.
38539         * lib/progname.h: Likewise.
38540         * lib/progreloc.c: Likewise.
38541         * lib/putenv.c: Likewise.
38542         * lib/quote.c: Likewise.
38543         * lib/quote.h: Likewise.
38544         * lib/quotearg.c: Likewise.
38545         * lib/quotearg.h: Likewise.
38546         * lib/raise.c: Likewise.
38547         * lib/readline.c: Likewise.
38548         * lib/readline.h: Likewise.
38549         * lib/readlink.c: Likewise.
38550         * lib/readtokens.c: Likewise.
38551         * lib/readtokens.h: Likewise.
38552         * lib/readtokens0.c: Likewise.
38553         * lib/readtokens0.h: Likewise.
38554         * lib/readutmp.c: Likewise.
38555         * lib/readutmp.h: Likewise.
38556         * lib/realloc.c: Likewise.
38557         * lib/relocwrapper.c: Likewise.
38558         * lib/rename-dest-slash.c: Likewise.
38559         * lib/rename.c: Likewise.
38560         * lib/rmdir.c: Likewise.
38561         * lib/rpmatch.c: Likewise.
38562         * lib/safe-read.c: Likewise.
38563         * lib/safe-read.h: Likewise.
38564         * lib/safe-write.c: Likewise.
38565         * lib/safe-write.h: Likewise.
38566         * lib/same-inode.h: Likewise.
38567         * lib/same.c: Likewise.
38568         * lib/same.h: Likewise.
38569         * lib/save-cwd.c: Likewise.
38570         * lib/save-cwd.h: Likewise.
38571         * lib/savedir.c: Likewise.
38572         * lib/savedir.h: Likewise.
38573         * lib/savewd.c: Likewise.
38574         * lib/savewd.h: Likewise.
38575         * lib/search.in.h: Likewise.
38576         * lib/setenv.c: Likewise.
38577         * lib/setenv.h: Likewise.
38578         * lib/settime.c: Likewise.
38579         * lib/sh-quote.c: Likewise.
38580         * lib/sh-quote.h: Likewise.
38581         * lib/sig2str.c: Likewise.
38582         * lib/sig2str.h: Likewise.
38583         * lib/signal.in.h: Likewise.
38584         * lib/signbitd.c: Likewise.
38585         * lib/signbitf.c: Likewise.
38586         * lib/signbitl.c: Likewise.
38587         * lib/sigprocmask.c: Likewise.
38588         * lib/sincosl.c: Likewise.
38589         * lib/sleep.c: Likewise.
38590         * lib/sprintf.c: Likewise.
38591         * lib/sqrtl.c: Likewise.
38592         * lib/stat-time.h: Likewise.
38593         * lib/stdio--.h: Likewise.
38594         * lib/stdio-safer.h: Likewise.
38595         * lib/stdlib--.h: Likewise.
38596         * lib/stdlib-safer.h: Likewise.
38597         * lib/stdlib.in.h: Likewise.
38598         * lib/stpcpy.c: Likewise.
38599         * lib/stpncpy.c: Likewise.
38600         * lib/strchrnul.c: Likewise.
38601         * lib/strcspn.c: Likewise.
38602         * lib/strerror.c: Likewise.
38603         * lib/strftime.c: Likewise.
38604         * lib/strftime.h: Likewise.
38605         * lib/striconveh.c: Likewise.
38606         * lib/striconveh.h: Likewise.
38607         * lib/striconveha.c: Likewise.
38608         * lib/striconveha.h: Likewise.
38609         * lib/stripslash.c: Likewise.
38610         * lib/strnlen1.c: Likewise.
38611         * lib/strnlen1.h: Likewise.
38612         * lib/strtod.c: Likewise.
38613         * lib/strtoimax.c: Likewise.
38614         * lib/strtok_r.c: Likewise.
38615         * lib/strtol.c: Likewise.
38616         * lib/strtoll.c: Likewise.
38617         * lib/strtoul.c: Likewise.
38618         * lib/strtoull.c: Likewise.
38619         * lib/sysexits.in.h: Likewise.
38620         * lib/tempname.c: Likewise.
38621         * lib/tempname.h: Likewise.
38622         * lib/timespec.h: Likewise.
38623         * lib/tls.c: Likewise.
38624         * lib/tls.h: Likewise.
38625         * lib/tmpdir.c: Likewise.
38626         * lib/tmpdir.h: Likewise.
38627         * lib/tmpfile-safer.c: Likewise.
38628         * lib/tmpfile.c: Likewise.
38629         * lib/trigl.c: Likewise.
38630         * lib/trigl.h: Likewise.
38631         * lib/trim.c: Likewise.
38632         * lib/trim.h: Likewise.
38633         * lib/trunc.c: Likewise.
38634         * lib/truncf.c: Likewise.
38635         * lib/truncl.c: Likewise.
38636         * lib/tsearch.c: Likewise.
38637         * lib/unicodeio.c: Likewise.
38638         * lib/unicodeio.h: Likewise.
38639         * lib/unistd--.h: Likewise.
38640         * lib/unistd-safer.h: Likewise.
38641         * lib/unistdio/ulc-fprintf.c: Likewise.
38642         * lib/unistdio/ulc-vfprintf.c: Likewise.
38643         * lib/unlinkdir.c: Likewise.
38644         * lib/unlinkdir.h: Likewise.
38645         * lib/unlocked-io.h: Likewise.
38646         * lib/unsetenv.c: Likewise.
38647         * lib/userspec.c: Likewise.
38648         * lib/utime.c: Likewise.
38649         * lib/utimecmp.c: Likewise.
38650         * lib/utimecmp.h: Likewise.
38651         * lib/utimens.c: Likewise.
38652         * lib/verify.h: Likewise.
38653         * lib/verror.c: Likewise.
38654         * lib/verror.h: Likewise.
38655         * lib/version-etc-fsf.c: Likewise.
38656         * lib/version-etc.c: Likewise.
38657         * lib/version-etc.h: Likewise.
38658         * lib/vfprintf.c: Likewise.
38659         * lib/vprintf.c: Likewise.
38660         * lib/vsprintf.c: Likewise.
38661         * lib/w32spawn.h: Likewise.
38662         * lib/wait-process.c: Likewise.
38663         * lib/wait-process.h: Likewise.
38664         * lib/wcwidth.c: Likewise.
38665         * lib/write-any-file.c: Likewise.
38666         * lib/xalloc-die.c: Likewise.
38667         * lib/xalloc.h: Likewise.
38668         * lib/xasprintf.c: Likewise.
38669         * lib/xgetcwd.c: Likewise.
38670         * lib/xgetcwd.h: Likewise.
38671         * lib/xgetdomainname.c: Likewise.
38672         * lib/xgetdomainname.h: Likewise.
38673         * lib/xgethostname.c: Likewise.
38674         * lib/xmalloc.c: Likewise.
38675         * lib/xmalloca.c: Likewise.
38676         * lib/xmalloca.h: Likewise.
38677         * lib/xmemcoll.c: Likewise.
38678         * lib/xnanosleep.c: Likewise.
38679         * lib/xreadlink.c: Likewise.
38680         * lib/xreadlink.h: Likewise.
38681         * lib/xsetenv.c: Likewise.
38682         * lib/xsetenv.h: Likewise.
38683         * lib/xstriconv.c: Likewise.
38684         * lib/xstriconv.h: Likewise.
38685         * lib/xstrndup.c: Likewise.
38686         * lib/xstrndup.h: Likewise.
38687         * lib/xstrtod.c: Likewise.
38688         * lib/xstrtod.h: Likewise.
38689         * lib/xstrtol-error.c: Likewise.
38690         * lib/xstrtol.c: Likewise.
38691         * lib/xstrtol.h: Likewise.
38692         * lib/xtime.h: Likewise.
38693         * lib/xvasprintf.c: Likewise.
38694         * lib/xvasprintf.h: Likewise.
38695         * lib/yesno.c: Likewise.
38696         * lib/yesno.h: Likewise.
38697         * posix-modules: Likewise.
38698         * tests/test-alloca-opt.c: Likewise.
38699         * tests/test-arcfour.c: Likewise.
38700         * tests/test-arctwo.c: Likewise.
38701         * tests/test-argmatch.c: Likewise.
38702         * tests/test-argp-2.sh: Likewise.
38703         * tests/test-argp.c: Likewise.
38704         * tests/test-arpa_inet.c: Likewise.
38705         * tests/test-array_list.c: Likewise.
38706         * tests/test-array_oset.c: Likewise.
38707         * tests/test-atexit.c: Likewise.
38708         * tests/test-avltree_list.c: Likewise.
38709         * tests/test-avltree_oset.c: Likewise.
38710         * tests/test-avltreehash_list.c: Likewise.
38711         * tests/test-base64.c: Likewise.
38712         * tests/test-binary-io.c: Likewise.
38713         * tests/test-byteswap.c: Likewise.
38714         * tests/test-c-ctype.c: Likewise.
38715         * tests/test-c-strcasecmp.c: Likewise.
38716         * tests/test-c-strcasestr.c: Likewise.
38717         * tests/test-c-strncasecmp.c: Likewise.
38718         * tests/test-c-strstr.c: Likewise.
38719         * tests/test-canonicalize-lgpl.c: Likewise.
38720         * tests/test-canonicalize.c: Likewise.
38721         * tests/test-carray_list.c: Likewise.
38722         * tests/test-ceilf.c: Likewise.
38723         * tests/test-ceill.c: Likewise.
38724         * tests/test-count-one-bits.c: Likewise.
38725         * tests/test-crc.c: Likewise.
38726         * tests/test-dirname.c: Likewise.
38727         * tests/test-fbufmode.c: Likewise.
38728         * tests/test-fcntl.c: Likewise.
38729         * tests/test-fflush.c: Likewise.
38730         * tests/test-floorf.c: Likewise.
38731         * tests/test-floorl.c: Likewise.
38732         * tests/test-fopen.c: Likewise.
38733         * tests/test-fprintf-posix.c: Likewise.
38734         * tests/test-fprintf-posix.h: Likewise.
38735         * tests/test-fpurge.c: Likewise.
38736         * tests/test-freadable.c: Likewise.
38737         * tests/test-freadahead.c: Likewise.
38738         * tests/test-freading.c: Likewise.
38739         * tests/test-freopen.c: Likewise.
38740         * tests/test-frexp.c: Likewise.
38741         * tests/test-frexpl.c: Likewise.
38742         * tests/test-fseek.c: Likewise.
38743         * tests/test-fseeko.c: Likewise.
38744         * tests/test-fseterr.c: Likewise.
38745         * tests/test-fstrcmp.c: Likewise.
38746         * tests/test-ftell.c: Likewise.
38747         * tests/test-ftello.c: Likewise.
38748         * tests/test-fwritable.c: Likewise.
38749         * tests/test-fwriting.c: Likewise.
38750         * tests/test-getaddrinfo.c: Likewise.
38751         * tests/test-getpass.c: Likewise.
38752         * tests/test-gettimeofday.c: Likewise.
38753         * tests/test-hmac-md5.c: Likewise.
38754         * tests/test-hmac-sha1.c: Likewise.
38755         * tests/test-iconv.c: Likewise.
38756         * tests/test-iconvme.c: Likewise.
38757         * tests/test-inttypes.c: Likewise.
38758         * tests/test-isnan.c: Likewise.
38759         * tests/test-isnanf.c: Likewise.
38760         * tests/test-isnanl-nolibm.c: Likewise.
38761         * tests/test-isnanl.c: Likewise.
38762         * tests/test-isnanl.h: Likewise.
38763         * tests/test-ldexpl.c: Likewise.
38764         * tests/test-linked_list.c: Likewise.
38765         * tests/test-linkedhash_list.c: Likewise.
38766         * tests/test-locale.c: Likewise.
38767         * tests/test-localename.c: Likewise.
38768         * tests/test-lock.c: Likewise.
38769         * tests/test-lseek.c: Likewise.
38770         * tests/test-malloca.c: Likewise.
38771         * tests/test-math.c: Likewise.
38772         * tests/test-mbscasecmp.c: Likewise.
38773         * tests/test-mbscasestr1.c: Likewise.
38774         * tests/test-mbscasestr2.c: Likewise.
38775         * tests/test-mbscasestr3.c: Likewise.
38776         * tests/test-mbscasestr4.c: Likewise.
38777         * tests/test-mbschr.c: Likewise.
38778         * tests/test-mbscspn.c: Likewise.
38779         * tests/test-mbsncasecmp.c: Likewise.
38780         * tests/test-mbspbrk.c: Likewise.
38781         * tests/test-mbspcasecmp.c: Likewise.
38782         * tests/test-mbsrchr.c: Likewise.
38783         * tests/test-mbsspn.c: Likewise.
38784         * tests/test-mbsstr1.c: Likewise.
38785         * tests/test-mbsstr2.c: Likewise.
38786         * tests/test-mbsstr3.c: Likewise.
38787         * tests/test-md5.c: Likewise.
38788         * tests/test-memmem.c: Likewise.
38789         * tests/test-netinet_in.c: Likewise.
38790         * tests/test-open.c: Likewise.
38791         * tests/test-printf-frexp.c: Likewise.
38792         * tests/test-printf-frexpl.c: Likewise.
38793         * tests/test-printf-posix.c: Likewise.
38794         * tests/test-printf-posix.h: Likewise.
38795         * tests/test-rbtree_list.c: Likewise.
38796         * tests/test-rbtree_oset.c: Likewise.
38797         * tests/test-rbtreehash_list.c: Likewise.
38798         * tests/test-read-file.c: Likewise.
38799         * tests/test-rijndael.c: Likewise.
38800         * tests/test-search.c: Likewise.
38801         * tests/test-signbit.c: Likewise.
38802         * tests/test-sleep.c: Likewise.
38803         * tests/test-snprintf-posix.c: Likewise.
38804         * tests/test-snprintf-posix.h: Likewise.
38805         * tests/test-snprintf.c: Likewise.
38806         * tests/test-sprintf-posix.c: Likewise.
38807         * tests/test-sprintf-posix.h: Likewise.
38808         * tests/test-stat-time.c: Likewise.
38809         * tests/test-stdbool.c: Likewise.
38810         * tests/test-stdint.c: Likewise.
38811         * tests/test-stdio.c: Likewise.
38812         * tests/test-stdlib.c: Likewise.
38813         * tests/test-stpncpy.c: Likewise.
38814         * tests/test-strcasestr.c: Likewise.
38815         * tests/test-striconv.c: Likewise.
38816         * tests/test-striconveh.c: Likewise.
38817         * tests/test-striconveha.c: Likewise.
38818         * tests/test-string.c: Likewise.
38819         * tests/test-sys_select.c: Likewise.
38820         * tests/test-sys_socket.c: Likewise.
38821         * tests/test-sys_stat.c: Likewise.
38822         * tests/test-sys_time.c: Likewise.
38823         * tests/test-sysexits.c: Likewise.
38824         * tests/test-time.c: Likewise.
38825         * tests/test-tls.c: Likewise.
38826         * tests/test-trunc.c: Likewise.
38827         * tests/test-truncf.c: Likewise.
38828         * tests/test-truncl.c: Likewise.
38829         * tests/test-unistd.c: Likewise.
38830         * tests/test-vasnprintf-posix.c: Likewise.
38831         * tests/test-vasnprintf-posix2.c: Likewise.
38832         * tests/test-vasnprintf.c: Likewise.
38833         * tests/test-vasprintf-posix.c: Likewise.
38834         * tests/test-vasprintf.c: Likewise.
38835         * tests/test-verify.c: Likewise.
38836         * tests/test-vfprintf-posix.c: Likewise.
38837         * tests/test-vprintf-posix.c: Likewise.
38838         * tests/test-vsnprintf-posix.c: Likewise.
38839         * tests/test-vsnprintf.c: Likewise.
38840         * tests/test-vsprintf-posix.c: Likewise.
38841         * tests/test-wchar.c: Likewise.
38842         * tests/test-wctype.c: Likewise.
38843         * tests/test-wcwidth.c: Likewise.
38844         * tests/test-xstrtol.c: Likewise.
38845         * tests/test-xvasprintf.c: Likewise.
38846         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38847         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38848         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38849         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38850         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38851         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38854         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38855         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38856         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38857         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38858         * tests/uniname/test-uninames.c: Likewise.
38859         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38860         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
38861         * tests/unistdio/test-u16-printf1.h: Likewise.
38862         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38863         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38864         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38865         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38866         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38867         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38868         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38869         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
38870         * tests/unistdio/test-u32-printf1.h: Likewise.
38871         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38872         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38873         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38874         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38875         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38876         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38877         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38878         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
38879         * tests/unistdio/test-u8-printf1.h: Likewise.
38880         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38881         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38882         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38883         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38884         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38885         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38886         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38887         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
38888         * tests/unistdio/test-ulc-printf1.h: Likewise.
38889         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38890         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38891         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38892         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38893         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38894         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38895         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38896         * tests/uniwidth/test-u16-width.c: Likewise.
38897         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38898         * tests/uniwidth/test-u32-width.c: Likewise.
38899         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38900         * tests/uniwidth/test-u8-width.c: Likewise.
38901         * tests/uniwidth/test-uc_width.c: Likewise.
38902         * config/srclist-update: Likewise.
38903         (fixlicense): Update to GPLv3+.
38904
38905         Change copyright notice from LGPLv2.1+ to LGPLv3+.
38906         * tests/test-tsearch.c: Change copyright notice.
38907
38908         Change copyright notice from LGPLv2.0+ to LGPLv3+.
38909         * lib/c-strcaseeq.h: Change copyright notice.
38910         * lib/streq.h: Likewise.
38911         * lib/uniconv.h: Likewise.
38912         * lib/uniconv/u-conv-from-enc.h: Likewise.
38913         * lib/uniconv/u-conv-to-enc.h: Likewise.
38914         * lib/uniconv/u-strconv-from-enc.h: Likewise.
38915         * lib/uniconv/u-strconv-to-enc.h: Likewise.
38916         * lib/uniconv/u16-conv-from-enc.c: Likewise.
38917         * lib/uniconv/u16-conv-to-enc.c: Likewise.
38918         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
38919         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
38920         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
38921         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
38922         * lib/uniconv/u32-conv-from-enc.c: Likewise.
38923         * lib/uniconv/u32-conv-to-enc.c: Likewise.
38924         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
38925         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
38926         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
38927         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
38928         * lib/uniconv/u8-conv-from-enc.c: Likewise.
38929         * lib/uniconv/u8-conv-to-enc.c: Likewise.
38930         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
38931         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
38932         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
38933         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
38934         * lib/uniname.h: Likewise.
38935         * lib/uniname/uniname.c: Likewise.
38936         * lib/unistdio.h: Likewise.
38937         * lib/unistdio/u-asnprintf.h: Likewise.
38938         * lib/unistdio/u-asprintf.h: Likewise.
38939         * lib/unistdio/u-printf-args.c: Likewise.
38940         * lib/unistdio/u-printf-args.h: Likewise.
38941         * lib/unistdio/u-printf-parse.h: Likewise.
38942         * lib/unistdio/u-snprintf.h: Likewise.
38943         * lib/unistdio/u-sprintf.h: Likewise.
38944         * lib/unistdio/u-vasprintf.h: Likewise.
38945         * lib/unistdio/u-vsnprintf.h: Likewise.
38946         * lib/unistdio/u-vsprintf.h: Likewise.
38947         * lib/unistdio/u16-asnprintf.c: Likewise.
38948         * lib/unistdio/u16-asprintf.c: Likewise.
38949         * lib/unistdio/u16-printf-parse.c: Likewise.
38950         * lib/unistdio/u16-snprintf.c: Likewise.
38951         * lib/unistdio/u16-sprintf.c: Likewise.
38952         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
38953         * lib/unistdio/u16-u16-asprintf.c: Likewise.
38954         * lib/unistdio/u16-u16-snprintf.c: Likewise.
38955         * lib/unistdio/u16-u16-sprintf.c: Likewise.
38956         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
38957         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
38958         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
38959         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
38960         * lib/unistdio/u16-vasnprintf.c: Likewise.
38961         * lib/unistdio/u16-vasprintf.c: Likewise.
38962         * lib/unistdio/u16-vsnprintf.c: Likewise.
38963         * lib/unistdio/u16-vsprintf.c: Likewise.
38964         * lib/unistdio/u32-asnprintf.c: Likewise.
38965         * lib/unistdio/u32-asprintf.c: Likewise.
38966         * lib/unistdio/u32-printf-parse.c: Likewise.
38967         * lib/unistdio/u32-snprintf.c: Likewise.
38968         * lib/unistdio/u32-sprintf.c: Likewise.
38969         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
38970         * lib/unistdio/u32-u32-asprintf.c: Likewise.
38971         * lib/unistdio/u32-u32-snprintf.c: Likewise.
38972         * lib/unistdio/u32-u32-sprintf.c: Likewise.
38973         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
38974         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
38975         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
38976         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
38977         * lib/unistdio/u32-vasnprintf.c: Likewise.
38978         * lib/unistdio/u32-vasprintf.c: Likewise.
38979         * lib/unistdio/u32-vsnprintf.c: Likewise.
38980         * lib/unistdio/u32-vsprintf.c: Likewise.
38981         * lib/unistdio/u8-asnprintf.c: Likewise.
38982         * lib/unistdio/u8-asprintf.c: Likewise.
38983         * lib/unistdio/u8-printf-parse.c: Likewise.
38984         * lib/unistdio/u8-snprintf.c: Likewise.
38985         * lib/unistdio/u8-sprintf.c: Likewise.
38986         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
38987         * lib/unistdio/u8-u8-asprintf.c: Likewise.
38988         * lib/unistdio/u8-u8-snprintf.c: Likewise.
38989         * lib/unistdio/u8-u8-sprintf.c: Likewise.
38990         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
38991         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
38992         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
38993         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
38994         * lib/unistdio/u8-vasnprintf.c: Likewise.
38995         * lib/unistdio/u8-vasprintf.c: Likewise.
38996         * lib/unistdio/u8-vsnprintf.c: Likewise.
38997         * lib/unistdio/u8-vsprintf.c: Likewise.
38998         * lib/unistdio/ulc-asnprintf.c: Likewise.
38999         * lib/unistdio/ulc-asprintf.c: Likewise.
39000         * lib/unistdio/ulc-printf-parse.c: Likewise.
39001         * lib/unistdio/ulc-snprintf.c: Likewise.
39002         * lib/unistdio/ulc-sprintf.c: Likewise.
39003         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39004         * lib/unistdio/ulc-vasprintf.c: Likewise.
39005         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39006         * lib/unistdio/ulc-vsprintf.c: Likewise.
39007         * lib/unistr.h: Likewise.
39008         * lib/unistr/u-cpy-alloc.h: Likewise.
39009         * lib/unistr/u-cpy.h: Likewise.
39010         * lib/unistr/u-endswith.h: Likewise.
39011         * lib/unistr/u-move.h: Likewise.
39012         * lib/unistr/u-set.h: Likewise.
39013         * lib/unistr/u-startswith.h: Likewise.
39014         * lib/unistr/u-stpcpy.h: Likewise.
39015         * lib/unistr/u-stpncpy.h: Likewise.
39016         * lib/unistr/u-strcat.h: Likewise.
39017         * lib/unistr/u-strcpy.h: Likewise.
39018         * lib/unistr/u-strcspn.h: Likewise.
39019         * lib/unistr/u-strdup.h: Likewise.
39020         * lib/unistr/u-strlen.h: Likewise.
39021         * lib/unistr/u-strncat.h: Likewise.
39022         * lib/unistr/u-strncpy.h: Likewise.
39023         * lib/unistr/u-strnlen.h: Likewise.
39024         * lib/unistr/u-strpbrk.h: Likewise.
39025         * lib/unistr/u-strspn.h: Likewise.
39026         * lib/unistr/u-strstr.h: Likewise.
39027         * lib/unistr/u-strtok.h: Likewise.
39028         * lib/unistr/u16-check.c: Likewise.
39029         * lib/unistr/u16-chr.c: Likewise.
39030         * lib/unistr/u16-cmp.c: Likewise.
39031         * lib/unistr/u16-cpy-alloc.c: Likewise.
39032         * lib/unistr/u16-cpy.c: Likewise.
39033         * lib/unistr/u16-endswith.c: Likewise.
39034         * lib/unistr/u16-mblen.c: Likewise.
39035         * lib/unistr/u16-mbsnlen.c: Likewise.
39036         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39037         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39038         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39039         * lib/unistr/u16-mbtouc.c: Likewise.
39040         * lib/unistr/u16-mbtoucr.c: Likewise.
39041         * lib/unistr/u16-move.c: Likewise.
39042         * lib/unistr/u16-next.c: Likewise.
39043         * lib/unistr/u16-prev.c: Likewise.
39044         * lib/unistr/u16-set.c: Likewise.
39045         * lib/unistr/u16-startswith.c: Likewise.
39046         * lib/unistr/u16-stpcpy.c: Likewise.
39047         * lib/unistr/u16-stpncpy.c: Likewise.
39048         * lib/unistr/u16-strcat.c: Likewise.
39049         * lib/unistr/u16-strchr.c: Likewise.
39050         * lib/unistr/u16-strcmp.c: Likewise.
39051         * lib/unistr/u16-strcpy.c: Likewise.
39052         * lib/unistr/u16-strcspn.c: Likewise.
39053         * lib/unistr/u16-strdup.c: Likewise.
39054         * lib/unistr/u16-strlen.c: Likewise.
39055         * lib/unistr/u16-strmblen.c: Likewise.
39056         * lib/unistr/u16-strmbtouc.c: Likewise.
39057         * lib/unistr/u16-strncat.c: Likewise.
39058         * lib/unistr/u16-strncmp.c: Likewise.
39059         * lib/unistr/u16-strncpy.c: Likewise.
39060         * lib/unistr/u16-strnlen.c: Likewise.
39061         * lib/unistr/u16-strpbrk.c: Likewise.
39062         * lib/unistr/u16-strrchr.c: Likewise.
39063         * lib/unistr/u16-strspn.c: Likewise.
39064         * lib/unistr/u16-strstr.c: Likewise.
39065         * lib/unistr/u16-strtok.c: Likewise.
39066         * lib/unistr/u16-to-u32.c: Likewise.
39067         * lib/unistr/u16-to-u8.c: Likewise.
39068         * lib/unistr/u16-uctomb-aux.c: Likewise.
39069         * lib/unistr/u16-uctomb.c: Likewise.
39070         * lib/unistr/u32-check.c: Likewise.
39071         * lib/unistr/u32-chr.c: Likewise.
39072         * lib/unistr/u32-cmp.c: Likewise.
39073         * lib/unistr/u32-cpy-alloc.c: Likewise.
39074         * lib/unistr/u32-cpy.c: Likewise.
39075         * lib/unistr/u32-endswith.c: Likewise.
39076         * lib/unistr/u32-mblen.c: Likewise.
39077         * lib/unistr/u32-mbsnlen.c: Likewise.
39078         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39079         * lib/unistr/u32-mbtouc.c: Likewise.
39080         * lib/unistr/u32-mbtoucr.c: Likewise.
39081         * lib/unistr/u32-move.c: Likewise.
39082         * lib/unistr/u32-next.c: Likewise.
39083         * lib/unistr/u32-prev.c: Likewise.
39084         * lib/unistr/u32-set.c: Likewise.
39085         * lib/unistr/u32-startswith.c: Likewise.
39086         * lib/unistr/u32-stpcpy.c: Likewise.
39087         * lib/unistr/u32-stpncpy.c: Likewise.
39088         * lib/unistr/u32-strcat.c: Likewise.
39089         * lib/unistr/u32-strchr.c: Likewise.
39090         * lib/unistr/u32-strcmp.c: Likewise.
39091         * lib/unistr/u32-strcpy.c: Likewise.
39092         * lib/unistr/u32-strcspn.c: Likewise.
39093         * lib/unistr/u32-strdup.c: Likewise.
39094         * lib/unistr/u32-strlen.c: Likewise.
39095         * lib/unistr/u32-strmblen.c: Likewise.
39096         * lib/unistr/u32-strmbtouc.c: Likewise.
39097         * lib/unistr/u32-strncat.c: Likewise.
39098         * lib/unistr/u32-strncmp.c: Likewise.
39099         * lib/unistr/u32-strncpy.c: Likewise.
39100         * lib/unistr/u32-strnlen.c: Likewise.
39101         * lib/unistr/u32-strpbrk.c: Likewise.
39102         * lib/unistr/u32-strrchr.c: Likewise.
39103         * lib/unistr/u32-strspn.c: Likewise.
39104         * lib/unistr/u32-strstr.c: Likewise.
39105         * lib/unistr/u32-strtok.c: Likewise.
39106         * lib/unistr/u32-to-u16.c: Likewise.
39107         * lib/unistr/u32-to-u8.c: Likewise.
39108         * lib/unistr/u32-uctomb.c: Likewise.
39109         * lib/unistr/u8-check.c: Likewise.
39110         * lib/unistr/u8-chr.c: Likewise.
39111         * lib/unistr/u8-cmp.c: Likewise.
39112         * lib/unistr/u8-cpy-alloc.c: Likewise.
39113         * lib/unistr/u8-cpy.c: Likewise.
39114         * lib/unistr/u8-endswith.c: Likewise.
39115         * lib/unistr/u8-mblen.c: Likewise.
39116         * lib/unistr/u8-mbsnlen.c: Likewise.
39117         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39118         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39119         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39120         * lib/unistr/u8-mbtouc.c: Likewise.
39121         * lib/unistr/u8-mbtoucr.c: Likewise.
39122         * lib/unistr/u8-move.c: Likewise.
39123         * lib/unistr/u8-next.c: Likewise.
39124         * lib/unistr/u8-prev.c: Likewise.
39125         * lib/unistr/u8-set.c: Likewise.
39126         * lib/unistr/u8-startswith.c: Likewise.
39127         * lib/unistr/u8-stpcpy.c: Likewise.
39128         * lib/unistr/u8-stpncpy.c: Likewise.
39129         * lib/unistr/u8-strcat.c: Likewise.
39130         * lib/unistr/u8-strchr.c: Likewise.
39131         * lib/unistr/u8-strcmp.c: Likewise.
39132         * lib/unistr/u8-strcpy.c: Likewise.
39133         * lib/unistr/u8-strcspn.c: Likewise.
39134         * lib/unistr/u8-strdup.c: Likewise.
39135         * lib/unistr/u8-strlen.c: Likewise.
39136         * lib/unistr/u8-strmblen.c: Likewise.
39137         * lib/unistr/u8-strmbtouc.c: Likewise.
39138         * lib/unistr/u8-strncat.c: Likewise.
39139         * lib/unistr/u8-strncmp.c: Likewise.
39140         * lib/unistr/u8-strncpy.c: Likewise.
39141         * lib/unistr/u8-strnlen.c: Likewise.
39142         * lib/unistr/u8-strpbrk.c: Likewise.
39143         * lib/unistr/u8-strrchr.c: Likewise.
39144         * lib/unistr/u8-strspn.c: Likewise.
39145         * lib/unistr/u8-strstr.c: Likewise.
39146         * lib/unistr/u8-strtok.c: Likewise.
39147         * lib/unistr/u8-to-u16.c: Likewise.
39148         * lib/unistr/u8-to-u32.c: Likewise.
39149         * lib/unistr/u8-uctomb-aux.c: Likewise.
39150         * lib/unistr/u8-uctomb.c: Likewise.
39151         * lib/unitypes.h: Likewise.
39152         * lib/uniwidth.h: Likewise.
39153         * lib/uniwidth/cjk.h: Likewise.
39154         * lib/uniwidth/u16-strwidth.c: Likewise.
39155         * lib/uniwidth/u16-width.c: Likewise.
39156         * lib/uniwidth/u32-strwidth.c: Likewise.
39157         * lib/uniwidth/u32-width.c: Likewise.
39158         * lib/uniwidth/u8-strwidth.c: Likewise.
39159         * lib/uniwidth/u8-width.c: Likewise.
39160         * lib/uniwidth/width.c: Likewise.
39161
39162 2007-10-07  Bruno Haible  <bruno@clisp.org>
39163
39164         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39165         The file is still under LGPL (see modules/inttypes).
39166
39167 2007-10-06  Bruno Haible  <bruno@clisp.org>
39168
39169         * modules/trunc (Dependencies): Add 'extensions'.
39170         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39171         Reported by Ben Pfaff <blp@gnu.org>.
39172
39173 2007-10-06  Bruno Haible  <bruno@clisp.org>
39174
39175         * modules/freopen-tests: New file.
39176         * tests/test-freopen.c: New file.
39177
39178         * modules/fopen-tests: New file.
39179         * tests/test-fopen.c: New file.
39180
39181         * modules/fopen: New file.
39182         * lib/fopen.c: New file.
39183         * m4/fopen.m4: New file.
39184         * modules/freopen: New file.
39185         * lib/freopen.c: New file.
39186         * m4/freopen.m4: New file.
39187         * lib/stdio.in.h (fopen, freopen): New declarations.
39188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39189         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39190         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39191         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39192         * doc/functions/fopen.texi: Mention the 'fopen' module.
39193         * doc/functions/freopen.texi: Mention the 'freopen' module.
39194
39195 2007-10-06  Bruno Haible  <bruno@clisp.org>
39196
39197         * modules/open-tests: New file.
39198         * tests/test-open.c: New file.
39199
39200         * modules/open: New file.
39201         * lib/open.c: New file.
39202         * m4/open.m4: New file.
39203         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39204         lib/open.c does.
39205         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39206         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39207         macros.
39208         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39209         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39210         REPLACE_OPEN.
39211         * doc/functions/open.texi: Mention the 'open' module.
39212
39213 2007-10-04  Bruno Haible  <bruno@clisp.org>
39214
39215         * modules/ceill-tests: New file.
39216         * tests/test-ceill.c: New file.
39217
39218         * modules/ceill: New file.
39219         * lib/ceill.c: Replace entire file.
39220         * m4/ceill.m4: New file.
39221         * lib/math.in.h (ceill): Replace declaration.
39222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39223         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39224         * doc/functions/ceill.texi: Mention the 'ceill' module.
39225         * modules/mathl (Files): Remove lib/ceill.c.
39226         (Depends-on): Add ceill.
39227
39228 2007-10-04  Bruno Haible  <bruno@clisp.org>
39229
39230         * modules/ceilf-tests: New file.
39231         * tests/test-ceilf.c: New file.
39232
39233         * modules/ceilf: New file.
39234         * lib/ceil.c: New file.
39235         * lib/ceilf.c: New file.
39236         * m4/ceilf.m4: New file.
39237         * lib/math.in.h (ceilf): New declaration.
39238         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39239         HAVE_DECL_CEILF.
39240         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39241         HAVE_DECL_CEILF.
39242         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39243
39244 2007-10-04  Bruno Haible  <bruno@clisp.org>
39245
39246         * modules/floorl-tests: New file.
39247         * tests/test-floorl.c: New file.
39248
39249         * modules/floorl: New file.
39250         * lib/floorl.c: Replace entire file.
39251         * m4/floorl.m4: New file.
39252         * lib/math.in.h (floorl): Replace declaration.
39253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39254         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39255         * doc/functions/floorl.texi: Mention the 'floorl' module.
39256         * modules/mathl (Files): Remove lib/floorl.c.
39257         (Depends-on): Add floorl.
39258
39259 2007-10-04  Bruno Haible  <bruno@clisp.org>
39260
39261         * modules/floorf-tests: New file.
39262         * tests/test-floorf.c: New file.
39263
39264         * modules/floorf: New file.
39265         * lib/floor.c: New file.
39266         * lib/floorf.c: New file.
39267         * m4/floorf.m4: New file.
39268         * lib/math.in.h (floorf): New declaration.
39269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39270         HAVE_DECL_FLOORF.
39271         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39272         HAVE_DECL_FLOORF.
39273         * doc/functions/floorf.texi: Mention the 'floorf' module.
39274
39275 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39276             Bruno Haible  <bruno@clisp.org>
39277
39278         Advertise for the Git server instead of the CVS server.
39279         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39280         repository instead of the CVS one.
39281         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39282         about all VCS systems generically.
39283         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39284
39285 2007-10-04  Bruno Haible  <bruno@clisp.org>
39286
39287         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39288         means.
39289         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39290
39291 2007-10-04  Bruno Haible  <bruno@clisp.org>
39292
39293         * modules/truncl-tests: New file.
39294         * tests/test-truncl.c: New file.
39295
39296         * modules/truncl: New file.
39297         * lib/truncl.c: New file.
39298         * m4/truncl.m4: New file.
39299         * lib/math.in.h (truncl): New declaration.
39300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39301         HAVE_DECL_TRUNCL.
39302         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39303         HAVE_DECL_TRUNCL.
39304         * doc/functions/truncl.texi: Mention the 'truncl' module.
39305
39306 2007-10-04  Bruno Haible  <bruno@clisp.org>
39307
39308         * modules/truncf-tests: New file.
39309         * tests/test-truncf.c: New file.
39310
39311         * modules/truncf: New file.
39312         * lib/trunc.c: Make paramerizable through USE_* macros.
39313         * lib/truncf.c: New file.
39314         * m4/truncf.m4: New file.
39315         * lib/math.in.h (truncf): New declaration.
39316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39317         HAVE_DECL_TRUNCF.
39318         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39319         HAVE_DECL_TRUNCF.
39320         * doc/functions/truncf.texi: Mention the 'truncf' module.
39321
39322 2007-10-03  Bruno Haible  <bruno@clisp.org>
39323
39324         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39325         augmentation also for tests modules.
39326         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39327         * modules/atexit-tests (Makefile.am): Likewise.
39328         * modules/binary-io-tests (Makefile.am): Likewise.
39329         * modules/c-strcase-tests (Makefile.am): Likewise.
39330         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39331         * modules/canonicalize-tests (Makefile.am): Likewise.
39332         * modules/closein-tests (Makefile.am): Likewise.
39333         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39334         * modules/freadahead-tests (Makefile.am): Likewise.
39335         * modules/fseek-tests (Makefile.am): Likewise.
39336         * modules/fseeko-tests (Makefile.am): Likewise.
39337         * modules/ftell-tests (Makefile.am): Likewise.
39338         * modules/ftello-tests (Makefile.am): Likewise.
39339         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39340         * modules/isnanl-tests (Makefile.am): Likewise.
39341         * modules/lseek-tests (Makefile.am): Likewise.
39342         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39343         * modules/mbscasestr-tests (Makefile.am): Likewise.
39344         * modules/mbschr-tests (Makefile.am): Likewise.
39345         * modules/mbscspn-tests (Makefile.am): Likewise.
39346         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39347         * modules/mbspbrk-tests (Makefile.am): Likewise.
39348         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39349         * modules/mbsrchr-tests (Makefile.am): Likewise.
39350         * modules/mbsspn-tests (Makefile.am): Likewise.
39351         * modules/mbsstr-tests (Makefile.am): Likewise.
39352         * modules/printf-posix-tests (Makefile.am): Likewise.
39353         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39354         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39355         * modules/tsearch-tests (Makefile.am): Likewise.
39356         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39357         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39358         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39359         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39360         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39361         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39362         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39363         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39364         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39365         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39366         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39367         * modules/xstrtol-tests (Makefile.am): Likewise.
39368         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39369         * modules/yesno-tests (Makefile.am): Likewise.
39370
39371 2007-10-03  Bruno Haible  <bruno@clisp.org>
39372
39373         * modules/trunc-tests: New file.
39374         * tests/test-trunc.c: New file.
39375
39376         * modules/trunc: New file.
39377         * lib/trunc.c: New file.
39378         * m4/trunc.m4: New file.
39379         * lib/math.in.h (trunc): New declaration.
39380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39381         HAVE_DECL_TRUNC.
39382         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39383         HAVE_DECL_TRUNC.
39384         * doc/functions/trunc.texi: Mention the 'trunc' module.
39385
39386 2007-10-03  Bruno Haible  <bruno@clisp.org>
39387
39388         * tests/test-fpending.c: New file, mostly copied
39389         from coreutils/lib/t-fpending.c.
39390         * modules/fpending-tests: New file.
39391
39392 2007-10-03  Bruno Haible  <bruno@clisp.org>
39393
39394         Port the stdio extensions to QNX (untested).
39395         * lib/fseterr.c (fseterr): Add support for QNX.
39396         * lib/fbufmode.c (fbufmode): Likewise.
39397         * lib/freadable.c (freadable): Likewise.
39398         * lib/fwritable.c (fwritable): Likewise.
39399         * lib/freading.c (freading): Likewise.
39400         * lib/fwriting.c (fwriting): Likewise.
39401         * lib/freadahead.c (freadahed): Likewise.
39402         * lib/fpurge.c (fpurge): Likewise.
39403         * lib/fseeko.c (rpl_fseeko): Likewise.
39404
39405 2007-10-03  Bruno Haible  <bruno@clisp.org>
39406             Jim Meyering  <jim@meyering.net>
39407             Eric Blake  <ebb9@byu.net>
39408
39409         * doc/relocatable.texi: Use @command instead of @program.
39410
39411 2007-10-02  Jim Meyering  <jim@meyering.net>
39412
39413         Perform one more "_.h" -> ".in.h" substitution.
39414         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39415         instead of unistd_.h here, too.
39416
39417 2007-10-01  Bruno Haible  <bruno@clisp.org>
39418
39419         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39420         Needed for the alloca-opt module.
39421
39422 2007-09-30  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39425         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39426         alloca_.h.
39427         * lib/argz.in.h: Renamed from lib/argz_.h.
39428         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39429         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39430         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39431         byteswap_.h.
39432         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39433         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39434         dirent_.h.
39435         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39436         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39437         fcntl_.h.
39438         * lib/float.in.h: Renamed from lib/float_.h.
39439         * modules/float (Files, Makefile.am): Use float.in.h instead of
39440         float_.h.
39441         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39442         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39443         fnmatch_.h.
39444         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39445         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39446         getopt_.h.
39447         * lib/glob.in.h: Renamed from lib/glob_.h.
39448         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39449         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39450         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39451         iconv_.h.
39452         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39453         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39454         inttypes_.h.
39455         * lib/locale.in.h: Renamed from lib/locale_.h.
39456         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39457         locale_.h.
39458         * lib/math.in.h: Renamed from lib/math_.h.
39459         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39460         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39461         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39462         of netinet_in_.h. Add dependency.
39463         * lib/poll.in.h: Renamed from lib/poll_.h.
39464         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39465         * lib/search.in.h: Renamed from lib/search_.h.
39466         * modules/search (Files, Makefile.am): Use search.in.h instead of
39467         search_.h.
39468         * lib/signal.in.h: Renamed from lib/signal_.h.
39469         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39470         _signal.h.
39471         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39472         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39473         stdbool_.h.
39474         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39475         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39476         stdint_.h.
39477         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39478         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39479         stdio_.h.
39480         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39481         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39482         stdlib_.h.
39483         * lib/string.in.h: Renamed from lib/string_.h.
39484         * modules/string (Files, Makefile.am): Use string.in.h instead of
39485         string_.h.
39486         * doc/gnulib-tool.texi (Initial import): Update.
39487         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39488         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39489         of sys_select_.h. Add dependency.
39490         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39491         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39492         of sys_socket_.h.
39493         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39494         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39495         sys_stat_.h.
39496         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39497         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39498         sys_time_.h.
39499         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39500         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39501         sysexits_.h.
39502         * lib/time.in.h: Renamed from lib/time_.h.
39503         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39504         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39505         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39506         unistd_.h.
39507         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39508         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39509         wchar_.h.
39510         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39511         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39512         wctype_.h.
39513         * build-aux/bootstrap (slurp): Update.
39514         * lib/.cppi-disable: Update.
39515
39516 2007-09-30  Bruno Haible  <bruno@clisp.org>
39517
39518         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39519         Needed on BeOS.
39520
39521 2007-09-30  Bruno Haible  <bruno@clisp.org>
39522
39523         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39524
39525 2007-09-29  Bruno Haible  <bruno@clisp.org>
39526
39527         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39528
39529 2007-09-29  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39532         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39533         * build-aux/install-reloc: Compile also areadlink.c.
39534         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39535
39536 2007-09-29  Bruno Haible  <bruno@clisp.org>
39537
39538         * gnulib-tool (func_emit_initmacro_done): Indentation.
39539
39540 2007-09-29  Bruno Haible  <bruno@clisp.org>
39541
39542         * README: Add CVS checkout update instructions.
39543         Info from Bob Proulx <bob@proulx.com>.
39544
39545 2007-09-28  Eric Blake  <ebb9@byu.net>
39546
39547         Provide move-if-change.
39548         * build-aux/move-if-change: New file, based on best practice
39549         rather than any canonical upstream location.
39550
39551 2007-09-28  Jim Meyering  <jim@meyering.net>
39552
39553         Fix canonicalize loop-detection corner case.
39554         Do not attempt to stat the symlink values stored via seen_triple.
39555         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39556         on linux-2.6.18, (but not 2.6.22).
39557         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39558         triple_compare.  The former compares dev,ino,filename, while the latter
39559         would actually stat dirname(filename) when dev and ino were equal.
39560         * lib/hash-triple.c: Install <string.h>.
39561         (STREQ): Define.
39562         (triple_compare_ino_str): New function.
39563         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39564
39565 2007-09-28  Eric Blake  <ebb9@byu.net>
39566
39567         Enforce that AC_REPLACE_FUNCS files exist.
39568         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39569         override check for typos.
39570
39571         Fix test-closein on Solaris 10.
39572         * tests/test-closein.c (main): Don't assume stdin can be inherited
39573         closed on all systems.
39574         * tests/test-closein.sh: Likewise.
39575         Reported by Piotr Tarnowski.
39576
39577 2007-09-28  Jim Meyering  <jim@meyering.net>
39578
39579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39580
39581 2007-09-27  Jim Meyering  <jim@meyering.net>
39582
39583         canonicalize: Avoid a false-positive cycle failure.
39584         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39585         Sort.  Remove cycle-check.
39586         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39587         not cycle-check.h.
39588         (seen_triple): New function.
39589         (canonicalize_filename_mode): Use it instead of cycle-check.
39590         * tests/test-canonicalize.c: Add a test for this bug.
39591         * tests/test-canonicalize.sh: Set up and run the test.
39592
39593         New module, file-set, from coreutils.
39594         * modules/file-set: Define it.
39595         * lib/file-set.c, lib/file-set.h: Implement.
39596
39597         New module, hash-triple, from coreutils.
39598         * modules/hash-triple: Define it.
39599         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39600
39601 2007-09-25  Eric Blake  <ebb9@byu.net>
39602
39603         Fix strerror on Interix.
39604         * lib/string_.h (strerror): Declare replacement.
39605         * doc/functions/strerror.texi (strerror): Document the Interix
39606         shortcoming.
39607         * modules/string (Makefile.am): Support new hooks.
39608         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39609         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39610         gl_FUNC_STRERROR_SEPARATE.
39611         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39612         * lib/strerror.c (rpl_strerror): Provide replacement.
39613         * modules/strerror (Depends-on): Add string.
39614         (configure.ac): Detect use of module.
39615         * tests/test-strerror.c: New file.
39616         * modules/strerror-tests: New test module.
39617         * modules/argp (Depends-on): Add strerror.
39618         * modules/error (Depends-on): Likewise.
39619         Reported by Martin Koeppe.
39620
39621 2007-09-24  Bruno Haible  <bruno@clisp.org>
39622
39623         * README: Update git instructions.
39624
39625 2007-09-24  Eric Blake  <ebb9@byu.net>
39626
39627         Revert fpending breakage from 2007-09-08.
39628         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39629         __fpending.c.
39630
39631 2007-09-24  Jim Meyering  <jim@meyering.net>
39632
39633         filenamecat.c: Add a test.
39634         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39635         showing how the function works when DIR is the empty string.
39636
39637 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39638
39639         * tests/test-canonicalize.sh: Turn on executable bit.
39640
39641 2007-09-19  Eric Blake  <ebb9@byu.net>
39642
39643         * README: Update CVS instructions.
39644
39645 2007-09-18  Bruno Haible  <bruno@clisp.org>
39646
39647         * modules/areadlink: New file.
39648         * lib/areadlink.h (areadlink): New declaration.
39649         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39650
39651 2007-09-17  Jim Meyering  <jim@meyering.net>
39652
39653         * lib/savewd.c (ESTALE) [!defined]: Define.
39654         Reported to be required on Interix by Martin Koeppe.
39655
39656 2007-09-17  Bruno Haible  <bruno@clisp.org>
39657
39658         * gnulib-tool (func_version): Use $version.
39659
39660 2007-09-16  Bruno Haible  <bruno@clisp.org>
39661
39662         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39663         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39664         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39665         Reported by Greg Schafer <gschafer@zip.com.au>.
39666
39667 2007-09-15  Bruno Haible  <bruno@clisp.org>
39668
39669         * gnulib-tool (sed): Try a little harder to make bash understand the
39670         alias.
39671         Reported by Bruce Korb <bruce.korb@gmail.com>.
39672
39673 2007-09-13  Eric Blake  <ebb9@byu.net>
39674
39675         * ChangeLog: Remove conflict markers.
39676
39677 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39678
39679         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39680         Reported by Bruno Haible <bruno@clisp.org>.
39681
39682 2007-09-12  Bruno Haible  <bruno@clisp.org>
39683
39684         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39685         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39686         is not defined.
39687
39688 2007-09-12  Eric Blake  <ebb9@byu.net>
39689
39690         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39692         Autoconf definition.
39693         * modules/euidaccess (Depends-on): Add extensions, for
39694         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39695         * modules/fnmatch (Depends-on): Likewise.
39696         * modules/getaddrinfo (Depends-on): Likewise.
39697         * modules/getdelim (Depends-on): Likewise.
39698         * modules/getline (Depends-on): Likewise.
39699         * modules/getsubopt (Depends-on): Likewise.
39700         * modules/gettext (Depends-on): Likewise.
39701         * modules/group-member (Depends-on): Likewise.
39702         * modules/mbchar (Depends-on): Likewise.
39703         * modules/memmem (Depends-on): Likewise.
39704         * modules/mempcpy (Depends-on): Likewise.
39705         * modules/memrchr (Depends-on): Likewise.
39706         * modules/pagealign_alloc (Depends-on): Likewise.
39707         * modules/readutmp (Depends-on): Likewise.
39708         * modules/stpcpy (Depends-on): Likewise.
39709         * modules/stpncpy (Depends-on): Likewise.
39710         * modules/strchrnul (Depends-on): Likewise.
39711         * modules/strndup (Depends-on): Likewise.
39712         * modules/strsep (Depends-on): Likewise.
39713         * modules/strverscmp (Depends-on): Likewise.
39714         * modules/vasprintf (Depends-on): Likewise.
39715         * modules/wcwidth (Depends-on): Likewise.
39716         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39717         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39718         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39719         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39720         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39721         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39722         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39723         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39724         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39725         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39727         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39728         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39729         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39730         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39731         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39732         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39733         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39734         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39735         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39736         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39737         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39738         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39739         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39740         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39742         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39743         so that lock.m4 can be used in gettext without extensions module.
39744
39745 2007-09-11  Bruno Haible  <bruno@clisp.org>
39746
39747         * m4/isc-posix.m4: Remove file.
39748         Suggested by Eric Blake.
39749
39750 2007-09-11  Eric Blake  <ebb9@byu.net>
39751
39752         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39753
39754 2007-09-10  Bruno Haible  <bruno@clisp.org>
39755
39756         * posix-modules: Fix typo in error message.
39757         Reported by Matt <mkraai@beckman.com>.
39758
39759 2007-09-09  Bruno Haible  <bruno@clisp.org>
39760
39761         * doc/functions/getdelim.texi: Update list of platforms lacking the
39762         function.
39763         * doc/functions/getline.texi: Likewise.
39764
39765 2007-09-09  Jim Meyering  <jim@meyering.net>
39766
39767         * lib/hash.c (hash_initialize): Detect calloc failure.
39768         Reported by Bruno Haible.
39769
39770 2007-09-09  Bruno Haible  <bruno@clisp.org>
39771
39772         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39773         malloc or realloc fails.
39774
39775 2007-09-09  Bruno Haible  <bruno@clisp.org>
39776
39777         * modules/getcwd (Depends-on): Add malloc-posix.
39778         * modules/glob (Depends-on): Likewise.
39779         * modules/putenv (Depends-on): Likewise.
39780         * modules/strdup (Depends-on): Likewise.
39781         * modules/getdelim (Depends-on): Add realloc-posix.
39782         * modules/read-file (Depends-on): Likewise.
39783
39784 2007-09-09  Bruno Haible  <bruno@clisp.org>
39785
39786         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39787         (gl_FUNC_MALLOC_POSIX): Require it.
39788         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39789         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39790         * modules/realloc (Files): Add m4/malloc.m4.
39791         * modules/calloc (Files): Likewise.
39792
39793 2007-09-09  Bruno Haible  <bruno@clisp.org>
39794
39795         * modules/malloc-posix: New file.
39796         * modules/malloc (Depends-on): Add malloc-posix.
39797         * lib/malloc.c: Include errno.h.
39798         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39799         and a POSIX-compatible malloc into a single function. Set ENOMEM
39800         when returning NULL.
39801         * m4/malloc.m4: New file.
39802         * doc/functions/malloc.texi: Mention the malloc-posix module.
39803         * lib/stdlib_.h (malloc): New declaration.
39804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39805         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39806         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39807         and HAVE_MALLOC_POSIX.
39808
39809 2007-09-09  Bruno Haible  <bruno@clisp.org>
39810
39811         * modules/realloc-posix: New file.
39812         * modules/realloc (Depends-on): Add realloc-posix.
39813         * lib/realloc.c: Include errno.h.
39814         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39815         and a POSIX-compatible realloc into a single function. Set ENOMEM
39816         when returning NULL.
39817         * m4/realloc.m4: New file.
39818         * doc/functions/realloc.texi: Mention the realloc-posix module.
39819         * lib/stdlib_.h (realloc): New declaration.
39820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39821         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39822         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39823         and HAVE_REALLOC_POSIX.
39824
39825 2007-09-09  Bruno Haible  <bruno@clisp.org>
39826
39827         * modules/calloc-posix: New file.
39828         * modules/calloc (Depends-on): Add calloc-posix.
39829         * lib/calloc.c: Include errno.h.
39830         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39831         and a POSIX-compatible calloc into a single function. Set ENOMEM
39832         when returning NULL.
39833         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39834         * doc/functions/calloc.texi: Mention the calloc-posix module.
39835         * lib/stdlib_.h (calloc): New declaration.
39836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39837         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39838         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39839         and HAVE_CALLOC_POSIX.
39840
39841 2007-09-09  Bruno Haible  <bruno@clisp.org>
39842
39843         Allow for modules to show an arbitrary notice.
39844         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39845         * gnulib-tool: New option --extract-notice.
39846         (func_usage): Document it.
39847         (sed_extract_prog): Update.
39848         (func_get_notice): New function.
39849         (func_modules_notice): New function.
39850         (func_import, func_create_testdir): Invoke it.
39851         Suggested by Jim Meyering.
39852
39853 2007-09-09  Bruno Haible  <bruno@clisp.org>
39854
39855         * gnulib-tool: New options --verbose, --quiet.
39856         (func_usage): Document them.
39857         (verbose): New variable.
39858         (func_execute_command): New function.
39859         (func_import): Don't show the module list and the file list if
39860         $verbose < 0.
39861         (func_create_testdir): Likewise. Use func_execute_command.
39862         (func_create_megatestdir): Use func_execute_command.
39863
39864 2007-09-08  Bruno Haible  <bruno@clisp.org>
39865
39866         * gnulib-tool (func_import): Prefer rsync over wget when available,
39867         for fetching the PO files.
39868
39869 2007-09-08  Bruno Haible  <bruno@clisp.org>
39870
39871         * posix-modules: New file. Portions copied from gnulib-tool.
39872         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
39873
39874 2007-09-08  Jim Meyering  <jim@meyering.net>
39875
39876         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
39877         * lib/fpending.h: Rename from __fpending.h.
39878         * lib/fpending.c: Rename from __fpending.c.
39879         Include "fpending.h", not "__fpending.h".
39880         * lib/__fpending.h, lib/__fpending.c: Remove files.
39881         * modules/fpending (Files): Reflect new file names.
39882         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
39883
39884 2007-09-08  Bruno Haible  <bruno@clisp.org>
39885
39886         * m4/inttypes-h.m4: Remove stub file.
39887
39888 2007-09-07  Simon Josefsson  <simon@josefsson.org>
39889
39890         * doc/headers/stdint.texi: Discuss #include_next issue.
39891
39892 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
39893
39894         * build-aux/bootstrap: Remove obsolete comment about wget --help.
39895
39896 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39897
39898         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
39899         in variable name.
39900
39901 2007-09-03  Jim Meyering  <jim@meyering.net>
39902
39903         New module: git-version-gen.
39904         * modules/git-version-gen: New file.
39905
39906         Import changes from coreutils for bootstrap script.
39907
39908         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
39909
39910         bootstrap: uses rsync to download the .po files
39911         * build-aux/bootstrap (po_download_command_format): New global.
39912         (download_po_files): Use rsync.
39913         (update_po_files): Don't remove .po files after download,
39914         so future rsync runs can take advantage of the copies.
39915
39916         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
39917
39918         Solve the unnecessary-.po-file-regeneration problem once and for all.
39919         * build-aux/bootstrap (download_po_files): New function, renamed from
39920         get_translations.  Now, downloads, but doesn't update LINGUAS.
39921         (update_po_files): New function.
39922
39923         bootstrap: Ignore more.
39924         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
39925         uniwidth to e.g., lib/.gitignore.
39926         (slurp): Handle the sys_stat_.h -> sys mapping, too.
39927
39928         * build-aux/bootstrap: New setting: vc_ignore.
39929         (insert_sorted_if_absent): Create $file if absent.
39930         Adapt to new, possibly empty, list: $vc_ignore.
39931
39932         bootstrap: generate more ignorable names
39933         * build-aux/bootstrap (slurp): When generating ignorable names,
39934         also map .sin to .sed, .gperf to .c, and .y to .c.
39935
39936 2007-09-03  Jim Meyering  <jim@meyering.net>
39937
39938         * build-aux/git-version-gen: New file, from coreutils.  For details, see
39939         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
39940
39941 2007-09-02  Bruno Haible  <bruno@clisp.org>
39942
39943         Fix mis-recognition of 'mcs' on QNX 6.
39944         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
39945         output contains the string "Mono".
39946         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
39947         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
39948
39949 2007-09-01  Bruno Haible  <bruno@clisp.org>
39950
39951         Fix collision between uniwidth/* and linebreak modules.
39952         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
39953         u32_width): Remove declarations.
39954         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
39955         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
39956         streq3, streq2, streq1, streq0): Remove functions.
39957         (STREQ): Remove macro.
39958         (is_cjk_encoding): Remove function.
39959         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
39960         (uc_width, u8_width, u16_width, u32_width): Remove functions.
39961         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
39962         * NEWS: Document the change.
39963
39964 2007-09-01  Bruno Haible  <bruno@clisp.org>
39965
39966         * lib/streq.h: Add double-inclusion guard.
39967
39968 2007-09-01  Karl Berry  <karl@gnu.org>
39969
39970         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
39971
39972 2007-08-28  Jim Meyering  <jim@meyering.net>
39973
39974         Rename mreadlink_with_size to areadlink_with_size.
39975         * NEWS: Document the change.
39976         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
39977         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
39978         * lib/mreadlink.h: Rename this to...
39979         * lib/areadlink.h: ...this.
39980         * modules/mreadlink-with-size: Rename this to...
39981         * modules/areadlink-with-size: ...this.
39982         * lib/canonicalize.c: Reflect the renaming.
39983         * modules/canonicalize: Likewise.
39984
39985 2007-08-26  Bruno Haible  <bruno@clisp.org>
39986
39987         * gnulib-tool (func_import): When deciding which files to remove,
39988         consider also dangling symbolic links.
39989         Reported by Eric Blake.
39990
39991 2007-08-26  Bruno Haible  <bruno@clisp.org>
39992
39993         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
39994
39995 2007-08-23  Simon Josefsson  <simon@josefsson.org>
39996
39997         * lib/readline.c: Don't include getline.h, the prototype is now
39998         found in stdio.h.
39999
40000 2007-08-23  Jim Meyering  <jim@meyering.net>
40001
40002         Getdelim touchup.
40003         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40004         around the funlockfile call, since funlockfile never sets errno.
40005         Don't set errno upon failed realloc.
40006
40007 2007-08-22  Eric Blake  <ebb9@byu.net>
40008
40009         Getline touchups.
40010         * lib/getdelim.c (getdelim): Revert regression that required *n to
40011         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40012         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40013         getdelim, rather than whether implementation is missing.
40014         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40015         * lib/stdio_.h (getline): Also declare if replacement is
40016         required.
40017         * doc/functions/getdelim.texi: New file.
40018         * doc/functions/getline.texi: Likewise.
40019         * doc/gnulib.texi (Function Substitutes): Add new files.
40020         Reported by Bruno Haible.
40021
40022 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40023
40024         * users.txt: Add Guile.
40025
40026 2007-08-22  Eric Blake  <ebb9@byu.net>
40027
40028         * tests/test-getdelim.c (main): Use remove, not unlink.
40029         * tests/test-getline.c (main): Likewise.
40030
40031         Move getline and getdelim into stdio.h, per POSIX 200x.
40032         * modules/getline (Files): Remove getline.h.
40033         (Depends-on): Add stdio.
40034         (configure.ac): Add module indicator.
40035         * modules/getdelim (Files): Remove getdelim.h.
40036         (Depends-on): Add stdio.
40037         (configure.ac): Add module indicator.
40038         * modules/stdio (Makefile.am): Work with new indicators.
40039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40042         * lib/getdelim.h: Delete.
40043         * lib/getline.h: Delete.
40044         * lib/stdio_.h (getdelim, getline): Declare.
40045         * modules/getdelim-tests: New module.
40046         * modules/getline-tests: Likewise.
40047         * tests/test-getdelim.c: New file.
40048         * tests/test-getline.c: Likewise.
40049         * NEWS: Document the change.
40050         * lib/getline.c: Update choice of header.
40051         * lib/csharpcomp.c: Likewise.
40052         * lib/getpass.c: Likewise.
40053         * lib/javacomp.c: Likewise.
40054         * lib/javaversion.c: Likewise.
40055         * lib/yesno.c: Likewise.
40056         * lib/getdelim.c: Likewise.
40057         (getdelim): Set errno on failure, and avoid memory leak.
40058
40059 2007-08-19  Bruno Haible  <bruno@clisp.org>
40060
40061         * modules/closein (Depends-on): Add freadahead.
40062         * lib/closein.c: Include freadahead.h.
40063         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40064         is zero.
40065
40066 2007-08-19  Bruno Haible  <bruno@clisp.org>
40067
40068         * modules/freadahead-tests: New file.
40069         * tests/test-freadahead.sh: New file.
40070         * tests/test-freadahead.c: New file.
40071
40072         * modules/freadahead: New file.
40073         * lib/freadahead.h: New file.
40074         * lib/freadahead.c: New file.
40075         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40076         fbufmode, fpurge, freadable, fwritable.
40077
40078 2007-08-19  Eric Blake  <ebb9@byu.net>
40079
40080         Test yesno in combination with closein.
40081         * lib/yesno.c (yesno): Document use of stdin.
40082         * modules/yesno-tests (Files): New module.
40083         * tests/test-yesno.c (main): New file.
40084         * tests/test-yesno.sh: Likewise.
40085
40086 2007-08-19  Bruno Haible  <bruno@clisp.org>
40087
40088         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40089         * lib/fseeko.c (rpl_fseeko): Likewise.
40090         * lib/fseterr.c (fseterr): Likewise.
40091
40092 2007-08-19  Bruno Haible  <bruno@clisp.org>
40093
40094         * tests/test-lseek.c (main): Disable a test for BeOS.
40095         * doc/functions/lseek.texi: Document the BeOS bug.
40096
40097 2007-08-19  Bruno Haible  <bruno@clisp.org>
40098             Eric Blake  <ebb9@byu.net>
40099
40100         * lib/lseek.c: Include <sys/stat.h>.
40101         (rpl_lseek): Add workaround code also for Unix platforms.
40102         Needed for BeOS.
40103         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40104         * doc/functions/lseek.texi: Document BeOS definiency.
40105
40106 2007-08-18  Bruno Haible  <bruno@clisp.org>
40107
40108         * modules/fstrcmp-tests: New file.
40109         * tests/test-fstrcmp.c: New file.
40110
40111 2007-08-18  Bruno Haible  <bruno@clisp.org>
40112
40113         * modules/fstrcmp: New file, from GNU gettext with modifications.
40114         * lib/fstrcmp.h: New file, from GNU gettext.
40115         * lib/fstrcmp.c: New file, from GNU gettext.
40116         * MODULES.html.sh (String handling): Add fstrcmp.
40117
40118 2007-08-18  Bruno Haible  <bruno@clisp.org>
40119
40120         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40121         'bool'.
40122         (diag, compareseq): Remove const from the ctxt argument.
40123         (USE_HEURISTIC): Undefine at the end.
40124
40125 2007-08-18  Jim Meyering  <jim@meyering.net>
40126
40127         New file: lib/idcache.h
40128         * NEWS: Mention the addition.
40129         * modules/idcache (Files): Add lib/idcache.h
40130         * lib/idcache.c: Include "idcache.h".
40131         Don't include <sys/types.h>.
40132         Add a FIXME comment.
40133         Move file-scoped "static" declarations to the top.
40134         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40135
40136 2007-08-17  Bruno Haible  <bruno@clisp.org>
40137         and Paul Eggert  <eggert@cs.ucla.edu>
40138
40139         * MODULES.html.sh: Add diffseq.
40140         * modules/diffseq: New file.
40141         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40142         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40143
40144 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40145
40146         Import changes from coreutils for bootstrap script.
40147
40148         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * build-aux/bootstrap (slurp): Work even in environments where
40151         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40152         current code does not slurp files whose names start with ".", and
40153         this looks like it might be a troublesome area.
40154
40155         2007-07-11  Jim Meyering  <jim@meyering.net>
40156
40157         If there's a GPL vN copyright comment, require that N == 3.
40158
40159         2007-07-08  Jim Meyering  <jim@meyering.net>
40160
40161         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40162         * build-aux/bootstrap (mam_template): Move definition out of loop.
40163
40164         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40165
40166         * build-aux/bootstrap (symlink_to_dir): Rename function from
40167         symlink_to_gnulib.  Add a directory parameter.  Update all
40168         callers.
40169         (cp_mark_as_generated): Also check for -- and link to -- files in
40170         gl/.
40171
40172         2007-07-08  Jim Meyering  <jim@meyering.net>
40173
40174         Adapt to deeper hierarchy in gnulib.
40175         * build-aux/bootstrap (symlink_to_dir): If the destination
40176         directory doesn't exist, create it. This is required at least for
40177         "lib/uniwidth/cjk.h".
40178
40179         2007-05-15  Jim Meyering  <jim@meyering.net>
40180
40181         * build-aux/bootstrap: Now that generated Makefile.am files
40182         are no longer under version control, they must be created at
40183         bootstrap time.
40184
40185 2007-08-14  Ben Pfaff  <blp@gnu.org>
40186
40187         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40188
40189 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40190
40191         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40192         given the changes below.
40193         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40194         even on hosts that have padding bits beyond the supported 64.
40195
40196 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40197
40198         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40199         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40200         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40201         depends on it.
40202         (xstrtol_error): Remove.
40203         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40204         but with a different signature.
40205         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40206         * lib/xstrtol-error.c: Include exitfail.h.
40207         (xstrtol_fatal): New function, with a different signature from the
40208         old xstrtol_error, so that the caller need not worry about passing
40209         in an exit status, or about storage management of the option argument.
40210         (xstrtol_error): Now a static function.  Redo signature to
40211         implement xstrtol_fatal.  Output the correct number of hyphens in
40212         front of the option so that the caller need not worry about
40213         storage management.
40214         (N_): New macro.
40215         (_): Remove; not used now.
40216         * modules/xstrtol: Depend on getopt.
40217         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40218         of old STRTOL_FATAL_ERROR macro.
40219         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40220         of test program.
40221         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40222         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40223
40224 2007-08-08  Eric Blake  <ebb9@byu.net>
40225
40226         * lib/xstrtol-error.c: Add missing include.
40227
40228         Move xstrtol messages into gnulib domain, when --pobase is used.
40229         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40230         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40231         * modules/xstrtol (Files): Distribute new file.
40232         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40233         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40234         * tests/test-xstrtol.c: ...into new file.
40235         * tests/test-xstrtoul.c: Also test xstrtoul.
40236         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40237         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40238         * tests/test-xstrtol.sh: Drive the tests.
40239         * tests/test-xstrtoimax.sh: Likewise.
40240         * tests/test-xstrtoumax.sh: Likewise.
40241         * modules/xstrtol-tests: New module.
40242         * modules/xstrtoimax-tests: Likewise.
40243         * modules/xstrtoumax-tests: Likewise.
40244
40245 2007-08-08  Jim Meyering  <jim@meyering.net>
40246
40247         New function: mfile_name_concat.
40248         * lib/filenamecat.c (mfile_name_concat): New function, just like
40249         file_name_concat, but return NULL upon failure rather than exiting
40250         with a diagnostic.
40251         * lib/filenamecat.h: Declare it.
40252
40253 2007-08-07  Bruno Haible  <bruno@clisp.org>
40254
40255         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40256         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40257         warning from gcc.
40258         Reported by Eric Blake.
40259
40260 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40261
40262         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40263         * modules/crypto/arcfour (License): Likewise.
40264         * modules/crypto/des-tests (License): Likewise.
40265         * modules/crypto/gc-arctwo-tests (License): Likewise.
40266         * modules/crypto/gc-des-tests (License): Likewise.
40267         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40268         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40269         * modules/crypto/gc-md2-tests (License): Likewise.
40270         * modules/crypto/gc-md4-tests (License): Likewise.
40271         * modules/crypto/gc-md5-tests (License): Likewise.
40272         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40273         * modules/crypto/gc-rijndael-tests (License): Likewise.
40274         * modules/crypto/gc-sha1-tests (License): Likewise.
40275         * modules/crypto/gc-tests (License): Likewise.
40276         * modules/crypto/hmac-md5 (License): Likewise.
40277         * modules/crypto/hmac-sha1 (License): Likewise.
40278         * modules/crypto/md2-tests (License): Likewise.
40279         * modules/crypto/md4-tests (License): Likewise.
40280         * modules/crypto/md5 (License): Likewise.
40281         * modules/crypto/rijndael (License): Likewise.
40282         * modules/crypto/sha1 (License): Likewise.
40283         * modules/memxor (License): Likewise.
40284
40285 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40286         and Bruno Haible  <bruno@clisp.org>
40287
40288         * NEWS: Describe interface changes to human, xstrtol.
40289         * lib/human.h: Include <xstrtol.h>.
40290         (human_options): Return enum strtol_error, not int.  Remove
40291         bool arg; take int * instead.
40292         * lib/human.c: Don't include "gettext.h".
40293         (_): Remove; no longer used.
40294         Don't include <xstrtol.h>, since human.h does it.
40295         (human_options): Adjust to abovementioned interface changes.
40296         Do not report error to stderr; that's now the caller's
40297         responsibility.
40298         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40299         interface change.
40300         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40301         Str, Argument_type_string.  All uses changed.  Put " argument"
40302         in diagnostics to make them clearer.  Change wording of suffix
40303         message for clarity.
40304         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40305         Argument_type_string.
40306         (STRTOL_FATAL_WARN): Remove; no longer used.
40307         * modules/human (Depends-on): Remove gettext-h.
40308
40309 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40310
40311         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40312
40313 2007-07-31  Bruno Haible  <bruno@clisp.org>
40314
40315         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40316         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40317         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40318
40319 2007-07-31  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40322         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40323
40324 2007-07-30  Bruno Haible  <bruno@clisp.org>
40325
40326         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40327         * modules/c-ctype (License): Likewise.
40328         * modules/c-strcase (License): Likewise.
40329         * modules/check-version (License): Likewise.
40330         * modules/iconv (License): Likewise.
40331         * modules/iconv_open (License): Likewise.
40332         * modules/read-file (License): Likewise.
40333         * modules/striconv (License): Likewise.
40334         * modules/strverscmp (License): Likewise.
40335         * modules/vasprintf (License): Likewise.
40336         * modules/crypto/des (License): Likewise.
40337         * modules/crypto/gc (License): Likewise.
40338         * modules/crypto/gc-arcfour (License): Likewise.
40339         * modules/crypto/gc-arctwo (License): Likewise.
40340         * modules/crypto/gc-des (License): Likewise.
40341         * modules/crypto/gc-hmac-md5 (License): Likewise.
40342         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40343         * modules/crypto/gc-md2 (License): Likewise.
40344         * modules/crypto/gc-md4 (License): Likewise.
40345         * modules/crypto/gc-md5 (License): Likewise.
40346         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40347         * modules/crypto/gc-random (License): Likewise.
40348         * modules/crypto/gc-rijndael (License): Likewise.
40349         * modules/crypto/gc-sha1 (License): Likewise.
40350         * modules/crypto/md2 (License): Likewise.
40351         * modules/crypto/md4 (License): Likewise.
40352
40353 2007-07-30  Jim Meyering  <jim@meyering.net>
40354
40355         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40356         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40357         it has valid stat data.  This bug would cause du not to count the
40358         sizes of inaccessible directories.
40359         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40360         in <http://bugzilla.redhat.com/250077>.
40361
40362 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40363             Bruno Haible  <bruno@clisp.org>
40364
40365         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40366         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40367         #include_next, gives a diagnostic about it, but reports no error in
40368         the exit code.
40369         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40370
40371 2007-07-24  Ben Pfaff  <blp@gnu.org>
40372
40373         Improve name: "count-one-bits" is better than "popcount".
40374         * MODULES.html.sh: Update name.
40375         * lib/popcount.h: Renamed lib/count-one-bits.h.
40376         (popcount): Renamed count_one_bits.
40377         (popcountl): Renamed count_one_bits_l.
40378         (popcountll): Renamed count_one_bits_ll.
40379         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40380         * modules/popcount: Renamed module/count-one-bits.
40381         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40382         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40383
40384 2007-07-23  Ben Pfaff  <blp@gnu.org>
40385
40386         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40387         better code generation, and add U to large constants to avoid
40388         warnings, in non-GCC case.
40389         Suggested by Bruno Haible.
40390
40391 2007-07-23  Ben Pfaff  <blp@gnu.org>
40392
40393         * lib/popcount.h: Use verify_true instead of if...abort.
40394         * modules/popcount: Depend on verify module.
40395         Suggested by Jim Meyering.
40396
40397 2007-07-23  Bruno Haible  <bruno@clisp.org>
40398
40399         * gnulib-tool (func_import): Create a .cvsignore file also when the
40400         directory is not yet in CVS but the toplevel directory is. When
40401         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40402         Reported by Karl Berry.
40403
40404 2007-07-22  Ben Pfaff  <blp@gnu.org>
40405
40406         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40407         case.
40408         Suggested by Eric Blake.
40409
40410 2007-07-22  Ben Pfaff  <blp@gnu.org>
40411
40412         New module: popcount.
40413         * MODULES.html.sh: Add popcount.
40414         * modules/popcount: New file.
40415         * modules/popcount-tests: New file.
40416         * tests/test-popcount.c: New file.
40417         * lib/popcount.h: New file.
40418         * m4/popcount.m4: New file.
40419
40420 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * build-aux/announce-gen: Update to GPLv3.
40423
40424         * build-aux/config.guess: Update from config.
40425
40426 2007-07-21  Bruno Haible  <bruno@clisp.org>
40427
40428         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40429         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40430
40431 2007-07-20  Jim Meyering  <jim@meyering.net>
40432
40433         * check-module: Diagnose a self-dependency.
40434
40435 2007-07-19  Bruno Haible  <bruno@clisp.org>
40436
40437         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40438         empty.
40439         Reported by Eric Blake.
40440
40441 2007-07-18  Bruno Haible  <bruno@clisp.org>
40442
40443         * gnulib-tool: New options --po-base, --po-domain.
40444         (func_usage): Document them.
40445         (pobase, po_domain): New variables.
40446         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40447         DEFAULT_TEXT_DOMAIN.
40448         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40449         (func_import): Consider pobase and po_domain. Create a po/ directory.
40450         (func_create_testdir): Set pobase and po_domain to empty.
40451         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40452         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40453
40454 2007-07-18  Bruno Haible  <bruno@clisp.org>
40455
40456         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40457         EXTRA_DIST augmentation for files in build-aux/.
40458
40459 2007-07-16  Bruno Haible  <bruno@clisp.org>
40460
40461         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40462         * modules/getdelim (License): Likewise.
40463
40464 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40465
40466         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40467         * modules/d-type (License): Likewise.
40468         * modules/extensions (License): Likewise.
40469         * modules/fnmatch (License): Likewise.
40470         * modules/fseeko (License): Likewise.
40471         * modules/getaddrinfo (License): Likewise.
40472         * modules/getline (License): Likewise.
40473         * modules/getlogin_r (License): Likewise.
40474         * modules/getpass (License): Likewise.
40475         * modules/gettimeofday (License): Likewise.
40476         * modules/glob (License): Likewise.
40477         * modules/inet_ntop (License): Likewise.
40478         * modules/malloc (License): Likewise.
40479         * modules/malloca (License): Likewise.
40480         * modules/memmem (License): Likewise.
40481         * modules/mempcpy (License): Likewise.
40482         * modules/memset (License): Likewise.
40483         * modules/minmax (License): Likewise.
40484         * modules/mktime (License): Likewise.
40485         * modules/netinet_in (License): Likewise.
40486         * modules/pathmax (License): Likewise.
40487         * modules/poll (License): Likewise.
40488         * modules/regex (License): Likewise.
40489         * modules/snprintf (License): Likewise.
40490         * modules/stdbool (License): Likewise.
40491         * modules/stdint (License): Likewise.
40492         * modules/stdio (License): Likewise.
40493         * modules/strcase (License): Likewise.
40494         * modules/strcasestr (License): Likewise.
40495         * modules/strdup (License): Likewise.
40496         * modules/string (License): Likewise.
40497         * modules/strndup (License): Likewise.
40498         * modules/strnlen (License): Likewise.
40499         * modules/strpbrk (License): Likewise.
40500         * modules/strptime (License): Likewise.
40501         * modules/strsep (License): Likewise.
40502         * modules/sys_select (License): Likewise.
40503         * modules/sys_socket (License): Likewise.
40504         * modules/sys_stat (License): Likewise.
40505         * modules/sys_time (License): Likewise.
40506         * modules/time (License): Likewise.
40507         * modules/time_r (License): Likewise.
40508         * modules/timegm (License): Likewise.
40509         * modules/unistd (License): Likewise.
40510         * modules/vsnprintf (License): Likewise.
40511         * modules/wctype (License): Likewise.
40512
40513 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40514
40515         * modules/argz (License): LGPLv2+.
40516
40517 2007-07-15  Karl Berry  <karl@gnu.org>
40518
40519         * doc/gnulib.texi: revise node structure per new fdl.texi.
40520
40521 2007-07-14  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40524         the output file.
40525         * lib/uniname/uninames.h: Regenerated.
40526
40527 2007-07-14  Karl Berry  <karl@gnu.org>
40528
40529         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40530         omitting sectioning and index commands.
40531
40532 2007-07-13  Bruno Haible  <bruno@clisp.org>
40533
40534         New gnulib-tool option --more-symlinks.
40535         * gnulib-tool (func_usage): Document --more-symlinks.
40536         (do_copyrights): New variable.
40537         Recognize option --more-symlinks.
40538         (func_import): Don't add a copyright notice transform to
40539         sed_transform_lib_file if do_copyrights is empty.
40540
40541 2007-07-13  Bruno Haible  <bruno@clisp.org>
40542
40543         * lib/vasnprintf.c (decimal_point_char): Define also if
40544         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40545         && !NEED_PRINTF_DIRECTIVE_A.
40546         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40547         Gary V. Vaughan <gary@gnu.org>.
40548
40549 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40550
40551         * lib/inttypes_.h: Undo previous change, since it was fixed
40552         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40553
40554 2007-07-13  Bruno Haible  <bruno@clisp.org>
40555
40556         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40557         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40558
40559 2007-07-13  Jim Meyering  <jim@meyering.net>
40560
40561         df: Don't fail for Tru64's "file-on-file mount".
40562         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40563         so we fall through and use statfs instead.  Details here:
40564         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40565         Reported by Albert Chin.
40566
40567 2007-07-13  Bruno Haible  <bruno@clisp.org>
40568
40569         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40570         * modules/configmake (License): Likewise.
40571         * modules/gettext (License): Likewise.
40572         * modules/gettext-h (License): Likewise.
40573         * modules/include_next (License): Likewise.
40574         * modules/link-warning (License): Likewise.
40575         * modules/localcharset (License): Likewise.
40576         * modules/localename (License): Likewise.
40577         * modules/lock (License): Likewise.
40578         * modules/relocatable-lib-lgpl (License): Likewise.
40579         * modules/size_max (License): Likewise.
40580         * modules/vasnprintf (License): Likewise.
40581         * modules/wchar (License): Likewise.
40582         * modules/xsize (License): Likewise.
40583
40584 2007-07-13  Bruno Haible  <bruno@clisp.org>
40585
40586         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40587         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40588
40589 2007-07-12  Bruno Haible  <bruno@clisp.org>
40590
40591         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40592         in the modules files.
40593
40594 2007-07-11  Karl Berry  <karl@gnu.org>
40595
40596         * MODULES.html.sh (func_module): use
40597          sed -e '\|^'"${includefile}"'$|d'
40598          instead of /.../d, to avoid errors on $includefile's containing /.
40599
40600 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40601
40602         * gnulib-tool (func_import): Avoid duplication of --avoid
40603         statements
40604         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40605         names to `_' in variable names.
40606
40607 2007-07-10  Eric Blake  <ebb9@byu.net>
40608
40609         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40610         * NEWS: Document this change.
40611
40612 2007-07-08  Bruno Haible  <bruno@clisp.org>
40613
40614         Update to Unicode 5.0.
40615         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40616         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40617         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40618         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40619         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40620         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40621         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40622         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40623         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40624         U+10A3F, U+1D242..U+1D244.
40625         (nonspacing_table_ind): Update.
40626         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40627         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40628
40629 2007-07-08  Bruno Haible  <bruno@clisp.org>
40630
40631         Update to Unicode 5.0.
40632         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40633         code transform. Extend the name index field of unicode_name_to_code and
40634         unicode_code_to_name from 16 to 24 bits.
40635         * lib/uniname/uniname.c (unicode_character_name,
40636         unicode_name_character): Add the range 0x12xxx to the code transform.
40637         * lib/uniname/uninames.h: Regenerated.
40638         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40639
40640 2007-07-07  Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/wcwidth-tests: New file.
40643         * tests/test-wcwidth.c: New file.
40644
40645         Work around MacOS X wcwidth() bug.
40646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40647         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40648         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40649         original wcwidth in non-UTF-8 locales.
40650         * modules/wcwidth (Depends-on): Add localcharset, streq,
40651         uniwidth/width.
40652         * doc/functions/wcwidth.texi: Update.
40653
40654 2007-07-07  Bruno Haible  <bruno@clisp.org>
40655
40656         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40657         (wcwidth): New declaration.
40658         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40659         macros.
40660         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40661         here. Prepare for creating <wchar.h> unconditionally.
40662         * modules/wchar (Depends-on): Add link-warning.
40663         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40664         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40665         * lib/wcwidth.h: Remove file.
40666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40667         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40668         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40669         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40670         (Include): Replace wcwidth.h with <wchar.h>.
40671         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40672         * lib/mbchar.h: Don't include wcwidth.h.
40673         * lib/mbswidth.c: Likewise.
40674         * NEWS: Mention the change.
40675
40676 2007-07-07  Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40679         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40680         definition with an external declaration.
40681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40682         defined as a function. Remove AC_C_INLINE requirement.
40683         * modules/wcwidth (Files): Add lib/wcwidth.c.
40684         (Makefile.am): Remove redundant statement.
40685
40686 2007-07-07  Bruno Haible  <bruno@clisp.org>
40687
40688         * MODULES.html.sh (Unicode string functions): Add the new modules.
40689
40690         * tests/uniwidth/test-u32-strwidth.c: New file.
40691         * modules/uniwidth/u32-strwidth-tests: New file.
40692
40693         * lib/uniwidth/u32-strwidth.c: New file.
40694         * modules/uniwidth/u32-strwidth: New file.
40695
40696         * tests/uniwidth/test-u16-strwidth.c: New file.
40697         * modules/uniwidth/u16-strwidth-tests: New file.
40698
40699         * lib/uniwidth/u16-strwidth.c: New file.
40700         * modules/uniwidth/u16-strwidth: New file.
40701
40702         * tests/uniwidth/test-u8-strwidth.c: New file.
40703         * modules/uniwidth/u8-strwidth-tests: New file.
40704
40705         * lib/uniwidth/u8-strwidth.c: New file.
40706         * modules/uniwidth/u8-strwidth: New file.
40707
40708         * tests/uniwidth/test-u32-width.c: New file.
40709         * modules/uniwidth/u32-width-tests: New file.
40710
40711         * lib/uniwidth/u32-width.c: New file.
40712         * modules/uniwidth/u32-width: New file.
40713
40714         * tests/uniwidth/test-u16-width.c: New file.
40715         * modules/uniwidth/u16-width-tests: New file.
40716
40717         * lib/uniwidth/u16-width.c: New file.
40718         * modules/uniwidth/u16-width: New file.
40719
40720         * tests/uniwidth/test-u8-width.c: New file.
40721         * modules/uniwidth/u8-width-tests: New file.
40722
40723         * lib/uniwidth/u8-width.c: New file.
40724         * modules/uniwidth/u8-width: New file.
40725
40726         * tests/uniwidth/test-uc_width.c: New file.
40727         * modules/uniwidth/width-tests: New file.
40728
40729         * lib/uniwidth/width.c: New file, from GNU libiconv.
40730         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40731         * modules/uniwidth/width: New file.
40732
40733         * lib/uniwidth.h: New file, from GNU libiconv.
40734         * modules/uniwidth/base: New file.
40735
40736 2007-07-07  Bruno Haible  <bruno@clisp.org>
40737
40738         * lib/uniname.h: New file, from GNU gettext.
40739         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40740         * lib/uniname/uninames.h: New file, from GNU gettext.
40741         * lib/uniname/uniname.c: New file, from GNU gettext.
40742         * tests/uniname/test-uninames.sh: New file.
40743         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40744         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40745         * modules/uniname/base: New file.
40746         * modules/uniname/uniname: New file.
40747         * modules/uniname/uniname-tests: New file.
40748         * MODULES.html.sh (Unicode string functions): Add the new modules.
40749
40750 2007-07-06  Bruno Haible  <bruno@clisp.org>
40751
40752         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40753
40754 2007-07-06  Bruno Haible  <bruno@clisp.org>
40755
40756         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40757         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40758         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40759         include <sys/time.h>.
40760         Reported by Eric Blake.
40761
40762 2007-07-06  Eric Blake  <ebb9@byu.net>
40763
40764         Fix testing canonicalize on cygwin.
40765         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40766         Revert patch from 2007-06-19.
40767         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40768         canonicalize module is also in use.
40769         * tests/test-canonicalize.c: New file.
40770         * tests/test-canonicalize.sh: Likewise.
40771         * modules/canonicalize-tests: Likewise.
40772
40773 2007-07-06  Jim Meyering  <jim@meyering.net>
40774
40775         * lib/getugroups.c (getugroups): Detect getgrent failure.
40776         Adjust comment to reflect reality: this function may return -1.
40777
40778 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40779
40780         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40781         the new TP address.
40782         (usage): Fix typo
40783         (gnulib_mk): New variable.
40784
40785 2007-07-05  Jim Meyering  <jim@meyering.net>
40786
40787         Don't let endgrent clobber errno, no matter how improbable.
40788         * lib/getugroups.c (getugroups): Save and restore errno around
40789         endgrent call.
40790
40791         Close the group DB even when failing with 2^31 or more members.
40792         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40793
40794 2007-07-04  Jim Meyering  <jim@meyering.net>
40795
40796         * lib/getugroups.h: New file.
40797         * lib/getugroups.c: Include "getugroups.h".
40798         Remove uses of "register" keyword.
40799         Move local variable, "cp", down into scope where used.
40800         Give "username" parameter the "const" attribute.
40801         * modules/getugroups (Files): Add lib/getugroups.h
40802
40803 2007-07-04  Karl Berry  <karl@gnu.org>
40804
40805         * MODULES.html.sh (func_all_modules): Complete rename of
40806         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40807
40808 2007-07-02  Bruno Haible  <bruno@clisp.org>
40809
40810         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40811         mode, when inttypes.h comes from gnulib.
40812         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40813
40814 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40815
40816         * NEWS: Mention lgpl module name change.
40817
40818         * modules/lgpl-2.1: Renamed from lgpl.
40819
40820         * NEWS: Mention gpl module name change.
40821
40822         * modules/gpl-3.0: New file, based on gpl-2.0.
40823
40824         * modules/gpl-2.0: Renamed from gpl.
40825
40826         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40827         doc/gpl-2.0.texi.
40828
40829 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40830
40831         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40832         #define __STDC_LIMIT_MACROS temporarily while including
40833         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40834         Problem reported by Joel E. Denny in
40835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40836
40837 2007-07-01  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/unistdio.h: New file.
40840         * lib/unistdio/u-asnprintf.h: New file.
40841         * lib/unistdio/u-asprintf.h: New file.
40842         * lib/unistdio/u-printf-args.c: New file.
40843         * lib/unistdio/u-printf-args.h: New file.
40844         * lib/unistdio/u-printf-parse.h: New file.
40845         * lib/unistdio/u-snprintf.h: New file.
40846         * lib/unistdio/u-sprintf.h: New file.
40847         * lib/unistdio/u-vasprintf.h: New file.
40848         * lib/unistdio/u-vsnprintf.h: New file.
40849         * lib/unistdio/u-vsprintf.h: New file.
40850         * lib/unistdio/ulc-asnprintf.c: New file.
40851         * lib/unistdio/ulc-asprintf.c: New file.
40852         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40853         * lib/unistdio/ulc-printf-parse.c: New file.
40854         * lib/unistdio/ulc-snprintf.c: New file.
40855         * lib/unistdio/ulc-sprintf.c: New file.
40856         * lib/unistdio/ulc-vasnprintf.c: New file.
40857         * lib/unistdio/ulc-vasprintf.c: New file.
40858         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40859         * lib/unistdio/ulc-vsnprintf.c: New file.
40860         * lib/unistdio/ulc-vsprintf.c: New file.
40861         * lib/unistdio/u8-asnprintf.c: New file.
40862         * lib/unistdio/u8-asprintf.c: New file.
40863         * lib/unistdio/u8-printf-parse.c: New file.
40864         * lib/unistdio/u8-snprintf.c: New file.
40865         * lib/unistdio/u8-sprintf.c: New file.
40866         * lib/unistdio/u8-vasnprintf.c: New file.
40867         * lib/unistdio/u8-vasprintf.c: New file.
40868         * lib/unistdio/u8-vsnprintf.c: New file.
40869         * lib/unistdio/u8-vsprintf.c: New file.
40870         * lib/unistdio/u8-u8-asnprintf.c: New file.
40871         * lib/unistdio/u8-u8-asprintf.c: New file.
40872         * lib/unistdio/u8-u8-snprintf.c: New file.
40873         * lib/unistdio/u8-u8-sprintf.c: New file.
40874         * lib/unistdio/u8-u8-vasnprintf.c: New file.
40875         * lib/unistdio/u8-u8-vasprintf.c: New file.
40876         * lib/unistdio/u8-u8-vsnprintf.c: New file.
40877         * lib/unistdio/u8-u8-vsprintf.c: New file.
40878         * lib/unistdio/u16-asnprintf.c: New file.
40879         * lib/unistdio/u16-asprintf.c: New file.
40880         * lib/unistdio/u16-printf-parse.c: New file.
40881         * lib/unistdio/u16-snprintf.c: New file.
40882         * lib/unistdio/u16-sprintf.c: New file.
40883         * lib/unistdio/u16-vasnprintf.c: New file.
40884         * lib/unistdio/u16-vasprintf.c: New file.
40885         * lib/unistdio/u16-vsnprintf.c: New file.
40886         * lib/unistdio/u16-vsprintf.c: New file.
40887         * lib/unistdio/u16-u16-asnprintf.c: New file.
40888         * lib/unistdio/u16-u16-asprintf.c: New file.
40889         * lib/unistdio/u16-u16-snprintf.c: New file.
40890         * lib/unistdio/u16-u16-sprintf.c: New file.
40891         * lib/unistdio/u16-u16-vasnprintf.c: New file.
40892         * lib/unistdio/u16-u16-vasprintf.c: New file.
40893         * lib/unistdio/u16-u16-vsnprintf.c: New file.
40894         * lib/unistdio/u16-u16-vsprintf.c: New file.
40895         * lib/unistdio/u32-asnprintf.c: New file.
40896         * lib/unistdio/u32-asprintf.c: New file.
40897         * lib/unistdio/u32-printf-parse.c: New file.
40898         * lib/unistdio/u32-snprintf.c: New file.
40899         * lib/unistdio/u32-sprintf.c: New file.
40900         * lib/unistdio/u32-vasnprintf.c: New file.
40901         * lib/unistdio/u32-vasprintf.c: New file.
40902         * lib/unistdio/u32-vsnprintf.c: New file.
40903         * lib/unistdio/u32-vsprintf.c: New file.
40904         * lib/unistdio/u32-u32-asnprintf.c: New file.
40905         * lib/unistdio/u32-u32-asprintf.c: New file.
40906         * lib/unistdio/u32-u32-snprintf.c: New file.
40907         * lib/unistdio/u32-u32-sprintf.c: New file.
40908         * lib/unistdio/u32-u32-vasnprintf.c: New file.
40909         * lib/unistdio/u32-u32-vasprintf.c: New file.
40910         * lib/unistdio/u32-u32-vsnprintf.c: New file.
40911         * lib/unistdio/u32-u32-vsprintf.c: New file.
40912         * tests/unistdio/test-ulc-asnprintf1.c: New file.
40913         * tests/unistdio/test-ulc-asnprintf1.h: New file.
40914         * tests/unistdio/test-ulc-printf1.h: New file.
40915         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
40916         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
40917         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
40918         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
40919         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
40920         * tests/unistdio/test-ulc-vasprintf1.c: New file.
40921         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
40922         * tests/unistdio/test-ulc-vsprintf1.c: New file.
40923         * tests/unistdio/test-u8-asnprintf1.c: New file.
40924         * tests/unistdio/test-u8-asnprintf1.h: New file.
40925         * tests/unistdio/test-u8-printf1.h: New file.
40926         * tests/unistdio/test-u8-vasnprintf1.c: New file.
40927         * tests/unistdio/test-u8-vasnprintf2.c: New file.
40928         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
40929         * tests/unistdio/test-u8-vasnprintf3.c: New file.
40930         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
40931         * tests/unistdio/test-u8-vasprintf1.c: New file.
40932         * tests/unistdio/test-u8-vsnprintf1.c: New file.
40933         * tests/unistdio/test-u8-vsprintf1.c: New file.
40934         * tests/unistdio/test-u16-asnprintf1.c: New file.
40935         * tests/unistdio/test-u16-asnprintf1.h: New file.
40936         * tests/unistdio/test-u16-printf1.h: New file.
40937         * tests/unistdio/test-u16-vasnprintf1.c: New file.
40938         * tests/unistdio/test-u16-vasnprintf2.c: New file.
40939         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
40940         * tests/unistdio/test-u16-vasnprintf3.c: New file.
40941         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
40942         * tests/unistdio/test-u16-vasprintf1.c: New file.
40943         * tests/unistdio/test-u16-vsnprintf1.c: New file.
40944         * tests/unistdio/test-u16-vsprintf1.c: New file.
40945         * tests/unistdio/test-u32-asnprintf1.c: New file.
40946         * tests/unistdio/test-u32-asnprintf1.h: New file.
40947         * tests/unistdio/test-u32-printf1.h: New file.
40948         * tests/unistdio/test-u32-vasnprintf1.c: New file.
40949         * tests/unistdio/test-u32-vasnprintf2.c: New file.
40950         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
40951         * tests/unistdio/test-u32-vasnprintf3.c: New file.
40952         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
40953         * tests/unistdio/test-u32-vasprintf1.c: New file.
40954         * tests/unistdio/test-u32-vsnprintf1.c: New file.
40955         * tests/unistdio/test-u32-vsprintf1.c: New file.
40956         * modules/unistdio/base: New file.
40957         * modules/unistdio/u-printf-args: New file.
40958         * modules/unistdio/ulc-asnprintf: New file.
40959         * modules/unistdio/ulc-asprintf: New file.
40960         * modules/unistdio/ulc-fprintf: New file.
40961         * modules/unistdio/ulc-printf-parse: New file.
40962         * modules/unistdio/ulc-snprintf: New file.
40963         * modules/unistdio/ulc-sprintf: New file.
40964         * modules/unistdio/ulc-vasnprintf: New file.
40965         * modules/unistdio/ulc-vasprintf: New file.
40966         * modules/unistdio/ulc-vfprintf: New file.
40967         * modules/unistdio/ulc-vsnprintf: New file.
40968         * modules/unistdio/ulc-vsprintf: New file.
40969         * modules/unistdio/u8-asnprintf: New file.
40970         * modules/unistdio/u8-asprintf: New file.
40971         * modules/unistdio/u8-printf-parse: New file.
40972         * modules/unistdio/u8-snprintf: New file.
40973         * modules/unistdio/u8-sprintf: New file.
40974         * modules/unistdio/u8-vasnprintf: New file.
40975         * modules/unistdio/u8-vasprintf: New file.
40976         * modules/unistdio/u8-vsnprintf: New file.
40977         * modules/unistdio/u8-vsprintf: New file.
40978         * modules/unistdio/u8-u8-asnprintf: New file.
40979         * modules/unistdio/u8-u8-asprintf: New file.
40980         * modules/unistdio/u8-u8-snprintf: New file.
40981         * modules/unistdio/u8-u8-sprintf: New file.
40982         * modules/unistdio/u8-u8-vasnprintf: New file.
40983         * modules/unistdio/u8-u8-vasprintf: New file.
40984         * modules/unistdio/u8-u8-vsnprintf: New file.
40985         * modules/unistdio/u8-u8-vsprintf: New file.
40986         * modules/unistdio/u16-asnprintf: New file.
40987         * modules/unistdio/u16-asprintf: New file.
40988         * modules/unistdio/u16-printf-parse: New file.
40989         * modules/unistdio/u16-snprintf: New file.
40990         * modules/unistdio/u16-sprintf: New file.
40991         * modules/unistdio/u16-vasnprintf: New file.
40992         * modules/unistdio/u16-vasprintf: New file.
40993         * modules/unistdio/u16-vsnprintf: New file.
40994         * modules/unistdio/u16-vsprintf: New file.
40995         * modules/unistdio/u16-u16-asnprintf: New file.
40996         * modules/unistdio/u16-u16-asprintf: New file.
40997         * modules/unistdio/u16-u16-snprintf: New file.
40998         * modules/unistdio/u16-u16-sprintf: New file.
40999         * modules/unistdio/u16-u16-vasnprintf: New file.
41000         * modules/unistdio/u16-u16-vasprintf: New file.
41001         * modules/unistdio/u16-u16-vsnprintf: New file.
41002         * modules/unistdio/u16-u16-vsprintf: New file.
41003         * modules/unistdio/u32-asnprintf: New file.
41004         * modules/unistdio/u32-asprintf: New file.
41005         * modules/unistdio/u32-printf-parse: New file.
41006         * modules/unistdio/u32-snprintf: New file.
41007         * modules/unistdio/u32-sprintf: New file.
41008         * modules/unistdio/u32-vasnprintf: New file.
41009         * modules/unistdio/u32-vasprintf: New file.
41010         * modules/unistdio/u32-vsnprintf: New file.
41011         * modules/unistdio/u32-vsprintf: New file.
41012         * modules/unistdio/u32-u32-asnprintf: New file.
41013         * modules/unistdio/u32-u32-asprintf: New file.
41014         * modules/unistdio/u32-u32-snprintf: New file.
41015         * modules/unistdio/u32-u32-sprintf: New file.
41016         * modules/unistdio/u32-u32-vasnprintf: New file.
41017         * modules/unistdio/u32-u32-vasprintf: New file.
41018         * modules/unistdio/u32-u32-vsnprintf: New file.
41019         * modules/unistdio/u32-u32-vsprintf: New file.
41020         * modules/unistdio/ulc-asnprintf-tests: New file.
41021         * modules/unistdio/ulc-vasnprintf-tests: New file.
41022         * modules/unistdio/ulc-vasprintf-tests: New file.
41023         * modules/unistdio/ulc-vsnprintf-tests: New file.
41024         * modules/unistdio/ulc-vsprintf-tests: New file.
41025         * modules/unistdio/u8-asnprintf-tests: New file.
41026         * modules/unistdio/u8-vasnprintf-tests: New file.
41027         * modules/unistdio/u8-vasprintf-tests: New file.
41028         * modules/unistdio/u8-vsnprintf-tests: New file.
41029         * modules/unistdio/u8-vsprintf-tests: New file.
41030         * modules/unistdio/u16-asnprintf-tests: New file.
41031         * modules/unistdio/u16-vasnprintf-tests: New file.
41032         * modules/unistdio/u16-vasprintf-tests: New file.
41033         * modules/unistdio/u16-vsnprintf-tests: New file.
41034         * modules/unistdio/u16-vsprintf-tests: New file.
41035         * modules/unistdio/u32-asnprintf-tests: New file.
41036         * modules/unistdio/u32-vasnprintf-tests: New file.
41037         * modules/unistdio/u32-vasprintf-tests: New file.
41038         * modules/unistdio/u32-vsnprintf-tests: New file.
41039         * modules/unistdio/u32-vsprintf-tests: New file.
41040         * MODULES.html.sh (Unicode string functions): Add the new modules.
41041
41042 2007-07-01  Bruno Haible  <bruno@clisp.org>
41043
41044         * lib/sprintf.c (sprintf): Limit the available length estimation,
41045         to avoid address wraparound.
41046         * lib/vsprintf.c (vsprintf): Likewise.
41047         * modules/sprintf-posix (Dependencies): Add stdint.
41048         * modules/vsprintf-posix (Dependencies): Likewise.
41049
41050 2007-07-01  Bruno Haible  <bruno@clisp.org>
41051
41052         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41053         Windows PATH as well. Conservative double-quoting. Comments.
41054
41055 2007-07-01  Bruno Haible  <bruno@clisp.org>
41056             Eric Blake  <ebb9@byu.net>
41057             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41058
41059         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41060         empty components in $PATH, denoting '.'.
41061
41062 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41063
41064         * gnulib-tool: Fix indentation.
41065         (func_create_megatestdir): Likewise.
41066         Report by Bruno Haible.
41067
41068 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41069
41070         Sync from Automake.
41071         * build-aux/gnupload: Fix shell portability issues with for loops.
41072         Report by Karl Berry.
41073
41074 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41075
41076         * build-aux/maint.mk (POURL): Use translationproject.org.
41077
41078 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41079             Bruno Haible  <bruno@clisp.org>
41080
41081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41082         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41083         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41084         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41085         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41086
41087 2007-06-27  Bruno Haible  <bruno@clisp.org>
41088
41089         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41090         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41091
41092 2007-06-26  Karl Berry  <karl@gnu.org>
41093
41094         * MODULES.html.sh: remove xreadlink-with-size.
41095
41096 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41097
41098         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41099         method that I hope also handles the double-include problem noted
41100         by Bruno Haible in
41101         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41102
41103 2007-06-23  Bruno Haible  <bruno@clisp.org>
41104
41105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41106         Don't let the 'mostlyclean' target fail if the last subdirectory could
41107         not be removed.
41108         Reported by Karl Berry.
41109
41110 2007-06-23  Bruno Haible  <bruno@clisp.org>
41111
41112         * gnulib-tool (echo): Add a speedier workaround for ksh.
41113         * tests/test-echo.sh: Likewise.
41114
41115 2007-06-23  Bruno Haible  <bruno@clisp.org>
41116
41117         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41118         * tests/test-echo.sh: Likewise.
41119
41120 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41121
41122         * gnulib-tool (IFS): Initialize early, so we don't set it to
41123         empty later.
41124         (self_abspathname): Rewrite algorithm to set it, reindent.
41125         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41126         (func_create_megatestdir): Merge some sed scripts.
41127
41128 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41129
41130         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41131         exposed by Sun Studio 11 cc on Solaris 8.
41132
41133 2007-06-22  Bruno Haible  <bruno@clisp.org>
41134
41135         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41136         backslashes.
41137         * tests/test-echo.sh: New file.
41138
41139 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41140
41141         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41142         simplify `sed_replace_build_aux' scripts, they are portable but
41143         echoing them with `echo' is not.
41144         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41145
41146 2007-06-21  Karl Berry  <karl@gnu.org>
41147
41148         * config/srclist.txt: guess we can't handle the licenses via
41149         srclist at the moment.
41150
41151 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41152
41153         * MODULES.html.sh: Add include_next.
41154         * modules/include_next: New file.
41155
41156 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41157
41158         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41159         INCLUDE_NEXT.
41160         (gl_CHECK_NEXT_HEADERS): New macro.
41161         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41162         the obsolescent gl_ABSOLUTE_HEADER.
41163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41164         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41165         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41166         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41167         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41168         * m4/math_h.m4 (gl_MATH_H): Likewise.
41169         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41170         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41171         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41172         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41173         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41174         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41175         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41177         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41178         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41179         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41180         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41181         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41182         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41183         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41184         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41185         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41186         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41187         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41188         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41189         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41190         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41191         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41192         * lib/float_.h: Likewise.
41193         * lib/inttypes_.h: Likewise.
41194         * lib/math_.h: Likewise.
41195         * lib/search_.h: Likewise.
41196         * lib/signal_.h: Likewise.
41197         * lib/stdint_.h: Likewise.
41198         * lib/stdio_.h: Likewise.
41199         * lib/stdlib_.h: Likewise.
41200         * lib/string_.h: Likewise.
41201         * lib/sys_stat_.h: Likewise.
41202         * lib/sys_time_.h: Likewise.
41203         * lib/time_.h: Likewise.
41204         * lib/unistd_.h: Likewise.
41205         * lib/wchar_.h: Likewise.
41206         * lib/wctype_.h: Likewise.
41207         * lib/dirent_.h: Likewise.
41208         * lib/iconv_.h: Likewise.
41209         * lib/locale_.h: Likewise.
41210         * lib/netinet_in_.h: Likewise.
41211         * lib/sys_select_.h: Likewise.
41212         * lib/sys_socket_.h: Likewise.
41213         * lib/sysexits_.h: Likewise.
41214         * modules/fcntl (Depends-on): Depend on include_next, not
41215         absolute_header.
41216         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41217         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41218         * modules/fchdir: Likewise.
41219         * modules/float: Likewise.
41220         * modules/iconv_open: Likewise.
41221         * modules/inttypes: Likewise.
41222         * modules/locale: Likewise.
41223         * modules/math: Likewise.
41224         * modules/netinet_in: Likewise.
41225         * modules/search: Likewise.
41226         * modules/signal: Likewise.
41227         * modules/stdint: Likewise.
41228         * modules/stdio: Likewise.
41229         * modules/stdlib: Likewise.
41230         * modules/string: Likewise.
41231         * modules/sys_select: Likewise.
41232         * modules/sys_socket: Likewise.
41233         * modules/sys_stat: Likewise.
41234         * modules/sys_time: Likewise.
41235         * modules/sysexits: Likewise.
41236         * modules/time: Likewise.
41237         * modules/unistd: Likewise.
41238         * modules/wchar: Likewise.
41239         * modules/wctype: Likewise.
41240         * modules/sys_stat: Change maintainer to "all".
41241         * modules/unistd: Likewise.
41242
41243 2007-06-20  Karl Berry  <karl@gnu.org>
41244
41245         * config/srclist.txt: track www changes in license files.
41246
41247 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41248
41249         * build-aux/bootstrap: Remove stray dot.
41250         Make sure build_aux settings are honored when linking
41251         gnulib_extra_files.
41252
41253 2007-06-19  Eric Blake  <ebb9@byu.net>
41254
41255         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41256         Allow compilation on cygwin.
41257
41258 2007-06-19  Jim Meyering  <jim@meyering.net>
41259
41260         xreadlink-with-size: Remove module.  No longer used.
41261         Ex-callers now use xreadlink or mreadlink-with-size.
41262         * modules/xreadlink-with-size: Remove module.
41263         * lib/xreadlink-with-size.c: Remove file.
41264         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41265         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41266         just before the function definition *is* accurate.
41267
41268         Eliminate one way canonicalize_filename_mode could exit.
41269         * lib/canonicalize.c (canonicalize_filename_mode):
41270         Use mreadlink_with_size, not xreadlink_with_size.
41271
41272 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41273
41274         Detect porting problems to FreeBSD/arm, which has time_t wider than
41275         long int.  Original problem reported for GNU diff by Xin Li in
41276         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41277         * modules/getdate (Depends-on): Add intprops, verify.
41278         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41279         is an integer type no wider than long int.
41280
41281 2007-06-18  Jim Meyering  <jim@meyering.net>
41282
41283         New module: mreadlink-with-size.
41284         * MODULES.html.sh: Add mreadlink-with-size.
41285         * modules/mreadlink-with-size: New module
41286         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41287         not xreadlink-with-size.
41288         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41289
41290 2007-06-16  Bruno Haible  <bruno@clisp.org>
41291
41292         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41293         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41294         Reported by Gary V. Vaughan <gary@gnu.org>.
41295
41296 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41297
41298         Revamp lchown so that it lives in unistd.h where it belongs.
41299         * lib/lchown.h: Remove.
41300         * lib/dirchownmod.c: Don't include lib/lchown.h.
41301         * lib/fchownat.c: Likewise.
41302         * lib/openat.c: Likewise.
41303         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41304         does not follow symlinks.
41305         (EOPNOTSUPP): Define if not defined.
41306         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41307         is defined to 0.
41308         (lchown): New decl.
41309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41310         Do not check for lchown decl.
41311         Set REPLACE_LCHOWN.
41312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41313         REPLACE_LCHOWN.
41314         * modules/chown: Make it clear it follows symlinks.
41315         * modules/lchown: Make it clear it doesn't follow symlinks.
41316         (Files): Remove lib/lchown.h
41317         (Depends-on): Add unistd.
41318         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41319         (Include): Include <unistd.h>, not "lchown.h".
41320         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41321         REPLACE_LCHOWN.
41322
41323 2007-06-15  Jim Meyering  <jim@meyering.net>
41324
41325         Change license (GPL to LGPL) of fsusage and dependents.
41326         * modules/fsusage (License): Change to LGPL.
41327         * modules/full-read (License): Likewise.
41328         * modules/full-write (License): Likewise.
41329         * modules/safe-read (License): Likewise.
41330         * modules/safe-write (License): Likewise.
41331
41332 2007-06-14  Ben Pfaff  <blp@gnu.org>
41333
41334         Missing part of allocsa -> malloca transition.
41335         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41336         gl_MALLOCA.
41337
41338 2007-06-12  Bruno Haible  <bruno@clisp.org>
41339
41340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41341         to ia64, x86_64, i386.
41342         Reported by Eric Blake.
41343
41344 2007-06-12  Bruno Haible  <bruno@clisp.org>
41345
41346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41347         cross-compiling to x86_64.
41348
41349 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41350
41351         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41352         glitch reported by Ralf Wildenhues in
41353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41354
41355         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41356         Vin Shelton.
41357
41358 2007-06-11  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41361         replacement string.
41362         Reported by Eric Blake.
41363
41364 2007-06-10  Bruno Haible  <bruno@clisp.org>
41365
41366         Prepare vasnprintf code for use with Unicode strings.
41367         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41368         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41369         TYPE_U32_STRING.
41370         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41371         a_u32_string variants.
41372         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41373         * lib/printf-args.c: Don't include config.h and the specification
41374         header if PRINTF_FETCHARGS is already defined.
41375         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41376         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41377         TYPE_U16_STRING, TYPE_U32_STRING.
41378         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41379         u16_directive, u16_directives, u32_directive, u32_directives): New
41380         types.
41381         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41382         New declarations.
41383         * lib/printf-parse.c: Don't include config.h and the specification
41384         header if PRINTF_PARSE is already defined. Eliminate the set of
41385         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41386         them now. Include c-ctype.h.
41387         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41388         directive and CHAR_T_ONLY_ASCII.
41389         * lib/vasnprintf.c: Don't include config.h and the specification header
41390         if VASNPRINTF is already defined.
41391         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41392         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41393         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41394         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41395         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41396         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41397         code accordingly.
41398         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41399         pad_ourselves also in this case, with the 'c' and 's' directives, and
41400         with a different notion of "width".
41401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41402
41403 2007-06-10  Bruno Haible  <bruno@clisp.org>
41404
41405         * modules/unistr/u32-mbsnlen: New file.
41406         * lib/unistr/u32-mbsnlen.c: New file.
41407
41408         * modules/unistr/u16-mbsnlen: New file.
41409         * lib/unistr/u16-mbsnlen.c: New file.
41410
41411         * modules/unistr/u8-mbsnlen: New file.
41412         * lib/unistr/u8-mbsnlen.c: New file.
41413
41414         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41415         declarations.
41416
41417 2007-06-10  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/string_.h (mbsnlen): New declaration.
41420         * lib/mbsnlen.c: New file.
41421         * m4/mbsnlen.m4: New file.
41422         * modules/mbsnlen: New file.
41423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41424         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41425         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41426
41427 2007-06-10  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41430
41431 2007-06-10  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41434         * lib/mbuiter.h: Likewise.
41435
41436 2007-06-10  Bruno Haible  <bruno@clisp.org>
41437
41438         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41439         declaration.
41440
41441 2007-06-10  Karl Berry  <karl@gnu.org>
41442
41443         * config/srclist.txt: remove gettext entries, Bruno prefers
41444         to update individually.
41445
41446 2007-06-10  Bruno Haible  <bruno@clisp.org>
41447
41448         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41449         'maxlen'. Ensure only length + width bytes are allocated, not
41450         length + 1 + width.
41451
41452 2007-06-09  Bruno Haible  <bruno@clisp.org>
41453
41454         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41455         (CHAR_T): Remove macro.
41456         (VASNPRINTF): Update.
41457
41458 2007-06-09  Bruno Haible  <bruno@clisp.org>
41459
41460         * MODULES.html.sh (Unicode string functions): Add the new modules.
41461
41462         * modules/uniconv/u32-conv-to-enc: New file.
41463         * lib/uniconv/u32-conv-to-enc.c: New file.
41464         * modules/uniconv/u32-conv-to-enc-tests: New file.
41465         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41466
41467         * modules/uniconv/u16-conv-to-enc: New file.
41468         * lib/uniconv/u16-conv-to-enc.c: New file.
41469         * lib/uniconv/u-conv-to-enc.h: New file.
41470         * modules/uniconv/u16-conv-to-enc-tests: New file.
41471         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41472
41473         * modules/uniconv/u8-conv-to-enc: New file.
41474         * lib/uniconv/u8-conv-to-enc.c: New file.
41475         * modules/uniconv/u8-conv-to-enc-tests: New file.
41476         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41477
41478         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41479         u32_conv_to_encoding): New declarations.
41480
41481 2007-06-09  Bruno Haible  <bruno@clisp.org>
41482
41483         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41484
41485 2007-06-09  Bruno Haible  <bruno@clisp.org>
41486
41487         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41488         * modules/malloca: Renamed from modules/allocsa, updated.
41489         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41490         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41491         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41492         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41493         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41494         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41495         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41496         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41497         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41498         * modules/c-strcasestr (Depends-on): Update.
41499         * lib/c-strcasestr.c: Update.
41500         * modules/c-strstr (Depends-on): Update.
41501         * lib/c-strstr.c: Update.
41502         * modules/canonicalize-lgpl (Depends-on): Update.
41503         * lib/canonicalize-lgpl.c: Update.
41504         * modules/clean-temp (Depends-on): Update.
41505         * lib/clean-temp.c: Update.
41506         * modules/csharpcomp (Depends-on): Update.
41507         * lib/csharpcomp.c: Update.
41508         * modules/csharpexec (Depends-on): Update.
41509         * lib/csharpexec.c: Update.
41510         * modules/javacomp (Depends-on): Update.
41511         * lib/javacomp.c: Update.
41512         * modules/javaexec (Depends-on): Update.
41513         * lib/javaexec.c: Update.
41514         * modules/mbscasestr (Depends-on): Update.
41515         * lib/mbscasestr.c: Update.
41516         * modules/mbsstr (Depends-on): Update.
41517         * lib/mbsstr.c: Update.
41518         * modules/setenv (Depends-on): Update.
41519         * lib/setenv.c: Update.
41520         * modules/strcasestr (Depends-on): Update.
41521         * lib/strcasestr.c: Update.
41522         * modules/striconveha (Depends-on): Update.
41523         * lib/striconveha.c: Update.
41524         * modules/relocatable-prog-wrapper (Files): Update.
41525         * lib/relocwrapper.c: Update.
41526         * build-aux/install-reloc: Update.
41527         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41528
41529 2007-06-08  Bruno Haible  <bruno@clisp.org>
41530
41531         Port to uClibc.
41532         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41533         * lib/fpurge.c (fpurge): Likewise.
41534         * lib/freading.c (freading): Likewise.
41535         * lib/fseeko.c (rpl_fseeko): Likewise.
41536         * lib/fseterr.c (fseterr): Likewise.
41537         * lib/fwriting.c (fwriting): Likewise.
41538         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41539
41540 2007-06-08  Bruno Haible  <bruno@clisp.org>
41541
41542         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41543         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41544         * modules/gettext (Files): Add m4/intlmacosx.m4.
41545
41546 2007-06-07  Bruno Haible  <bruno@clisp.org>
41547
41548         * modules/localename-tests: New file.
41549         * tests/test-localename.c: New file.
41550
41551         New module 'localename'.
41552         * lib/localename.h: New file.
41553         * lib/localename.c: New file, from GNU gettext.
41554         * m4/localename.m4: New file.
41555         * modules/localename: New file.
41556
41557 2007-06-07  Bruno Haible  <bruno@clisp.org>
41558
41559         Work around the lack of <wchar.h> on some builds of uClibc.
41560         * doc/headers/wchar.texi: Update.
41561         * lib/wchar_.h: Include <wchar.h> only if it exists.
41562         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41563         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41564         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41565         doesn't exist.
41566         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41567         * modules/mbfile (Depends-on): Add wchar.
41568         * modules/mbiter (Depends-on): Likewise.
41569         * modules/mbuiter (Depends-on): Likewise.
41570         Reported by Simon Josefsson.
41571
41572 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41573
41574         Work around problem reported by Steven M. Schweda in
41575         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41576         Tru64 5.1B with the Compaq compiler environment installed declares
41577         an 'isblank' function but does not define it in the C library.
41578         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41579         * lib/regex_internal.h (isblank): Likewise.
41580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41581         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41582
41583 2007-06-05  Bruno Haible  <bruno@clisp.org>
41584
41585         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41586         ia64.
41587         * modules/printf-safe: New file.
41588         * modules/fprintf-posix (Depends-on): Add printf-safe.
41589         * modules/printf-posix (Depends-on): Likewise.
41590         * modules/snprintf-posix (Depends-on): Likewise.
41591         * modules/sprintf-posix (Depends-on): Likewise.
41592         * modules/vasnprintf-posix (Depends-on): Likewise.
41593         * modules/vasprintf-posix (Depends-on): Likewise.
41594         * modules/vfprintf-posix (Depends-on): Likewise.
41595         * modules/vprintf-posix (Depends-on): Likewise.
41596         * modules/vsnprintf-posix (Depends-on): Likewise.
41597         * modules/vsprintf-posix (Depends-on): Likewise.
41598         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41599         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41600         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41601         "no" on i386, x86_64, ia64.
41602         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41603         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41604         on i386, x86_64, ia64.
41605         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41606         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41607         on i386, x86_64, ia64.
41608         * tests/test-vasnprintf-posix.c: Include float.h.
41609         (LDBL80_WORDS): New macro.
41610         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41611         on i386, x86_64, ia64.
41612         * tests/test-vasprintf-posix.c: Include float.h.
41613         (LDBL80_WORDS): New macro.
41614         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41615         on i386, x86_64, ia64.
41616         * tests/test-snprintf-posix.c: Include float.h.
41617         * tests/test-sprintf-posix.c: Likewise.
41618         * tests/test-vsnprintf-posix.c: Likewise.
41619         * tests/test-vsprintf-posix.c: Likewise.
41620
41621 2007-06-05  Bruno Haible  <bruno@clisp.org>
41622
41623         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41624         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41625         non-IEEE numbers on i386, x86_64, ia64.
41626         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41627         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41628         * tests/test-isnanl.h: Include float.h.
41629         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41630
41631 2007-06-05  Bruno Haible  <bruno@clisp.org>
41632
41633         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41634         also the %a / %A. Handle the %a / %A code before this extra handling.
41635
41636 2007-06-05  Bruno Haible  <bruno@clisp.org>
41637
41638         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41639         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41640
41641 2007-06-05  Bruno Haible  <bruno@clisp.org>
41642
41643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41644         typo in variable name.
41645
41646 2007-06-05  Eric Blake  <ebb9@byu.net>
41647
41648         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41649         Reported by Simon Josefsson.
41650
41651 2007-06-04  Bruno Haible  <bruno@clisp.org>
41652
41653         Avoid test failures on some PowerPC platforms.
41654         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41655         Define differently for PowerPC.
41656         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41657         Reported by Gary V. Vaughan <gary@gnu.org>.
41658
41659 2007-06-02  Bruno Haible  <bruno@clisp.org>
41660
41661         Fix test-stdint failure on FreeBSD/ia64.
41662         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41663         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41664         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41665         * doc/headers/stdint.texi: Update.
41666
41667 2007-06-01  Bruno Haible  <bruno@clisp.org>
41668
41669         * tests/test-binary-io.c (main): Pass a third argument to open().
41670         Reported by Gary V. Vaughan <gary@gnu.org>.
41671
41672 2007-06-01  Bruno Haible  <bruno@clisp.org>
41673
41674         * doc/functions/frexpl.texi: Update for mingw.
41675
41676 2007-06-01  Bruno Haible  <bruno@clisp.org>
41677
41678         * tests/test-lseek.c (main): Disable test of errno for invalid third
41679         argument.
41680         * doc/functions/lseek.texi: Update.
41681         Reported by Gary V. Vaughan <gary@gnu.org>.
41682
41683 2007-05-28  Bruno Haible  <bruno@clisp.org>
41684
41685         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41686
41687 2007-05-31  Eric Blake  <ebb9@byu.net>
41688
41689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41690         cross compiling.
41691
41692 2007-05-30  Eric Blake  <ebb9@byu.net>
41693         and Bruno Haible  <bruno@clisp.org>
41694
41695         Work around mingw test failures exposed by m4-1.4.9b.
41696         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41697         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41698         moment.
41699
41700 2007-05-30  Bruno Haible  <bruno@clisp.org>
41701
41702         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41703         assuming that they are closed. Needed on HP-UX 11.
41704
41705 2007-05-29  Bruno Haible  <bruno@clisp.org>
41706
41707         Fix a problem with #include_next.
41708         * lib/dirent_.h: Split the double-inclusion guard.
41709         * lib/fcntl_.h: Likewise.
41710         * lib/float_.h: Likewise.
41711         * lib/iconv_.h: Likewise.
41712         * lib/inttypes_.h: Likewise.
41713         * lib/locale_.h: Likewise.
41714         * lib/math_.h: Likewise.
41715         * lib/netinet_in_.h: Likewise.
41716         * lib/search_.h: Likewise.
41717         * lib/signal_.h: Likewise.
41718         * lib/stdint_.h: Likewise.
41719         * lib/stdio_.h: Likewise.
41720         * lib/stdlib_.h: Likewise.
41721         * lib/string_.h: Likewise.
41722         * lib/sys_select_.h: Likewise.
41723         * lib/sys_socket_.h: Likewise.
41724         * lib/sys_stat_.h: Likewise.
41725         * lib/sys_time_.h: Likewise.
41726         * lib/sysexits_.h: Likewise.
41727         * lib/time_.h: Likewise.
41728         * lib/unistd_.h: Likewise.
41729         * lib/wchar_.h: Likewise.
41730         * lib/wctype_.h: Likewise.
41731
41732 2007-05-29  Bruno Haible  <bruno@clisp.org>
41733
41734         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41735         for the moment.
41736
41737 2007-05-29  Bruno Haible  <bruno@clisp.org>
41738
41739         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41740         invocation.
41741         Reported by Eric Blake.
41742
41743 2007-05-29  Bruno Haible  <bruno@clisp.org>
41744
41745         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41746         compiling case.
41747
41748 2007-05-29  Eric Blake  <ebb9@byu.net>
41749             Bruno Haible  <bruno@clisp.org>
41750
41751         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41752         cross compiles.
41753
41754 2007-05-28  Eric Blake  <ebb9@byu.net>
41755
41756         * modules/closein-tests (test_closein_LDADD): Support test on
41757         cygwin with libtool.
41758
41759 2007-05-28  Bruno Haible  <bruno@clisp.org>
41760
41761         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41762         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41763         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41764         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41765         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41766         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41767         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41768         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41769         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41770
41771 2007-05-28  Eric Blake  <ebb9@byu.net>
41772
41773         Unconditionally include <config.h> in unit tests.
41774         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41775         * tests/test-allocsa.c, tests/test-arcfour.c,
41776         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41777         tests/test-array_list.c, tests/test-array_oset.c,
41778         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41779         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41780         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41781         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41782         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41783         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41784         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41785         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41786         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41787         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41788         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41789         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41790         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41791         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41792         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41793         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41794         test-md5.c, test-memmem.c, test-printf-posix.c,
41795         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41796         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41797         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41798         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41799         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41800         test-vasnprintf-posix2.c, test-vasnprintf.c,
41801         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41802         test-vfprintf-posix.c, test-vprintf-posix.c,
41803         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41804         test-xvasprintf.c: Likewise.
41805
41806 2007-05-28  Bruno Haible  <bruno@clisp.org>
41807
41808         * gnulib-tool (func_import): Remember the --with-tests command-line
41809         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41810         Reported by Eric Blake.
41811
41812 2007-05-28  Bruno Haible  <bruno@clisp.org>
41813
41814         * modules/ftell-tests: New file.
41815         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41816         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41817
41818         * lib/ftell.c: New file.
41819         * modules/ftell: New file.
41820         * m4/ftell.m4: New file.
41821         * doc/functions/ftell.texi: Update.
41822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41823         REPLACE_FTELL.
41824         * lib/stdio_.h (rpl_ftell): New declaration.
41825         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41826         REPLACE_FTELL.
41827
41828 2007-05-28  Eric Blake  <ebb9@byu.net>
41829
41830         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41831
41832 2007-05-28  Bruno Haible  <bruno@clisp.org>
41833
41834         * modules/fseek-tests: New file.
41835         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41836         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41837
41838         * lib/fseek.c: New file.
41839         * modules/fseek: New file.
41840         * m4/fseek.m4: New file.
41841         * doc/functions/fseek.texi: Update.
41842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41843         REPLACE_FSEEK.
41844         * lib/stdio_.h (rpl_fseek): New declaration.
41845         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41846         REPLACE_FSEEK.
41847
41848 2007-05-28  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/stdio_.h (fflush): More comments.
41851
41852 2007-05-28  Bruno Haible  <bruno@clisp.org>
41853
41854         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41855         runtime test.
41856
41857 2007-05-28  Eric Blake  <ebb9@byu.net>
41858
41859         Improve lseek module.
41860         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
41861         * lib/unistd_.h (lseek): Scale back link warning message.
41862         * tests/test-lseek.c: Beef up test.
41863         * tests/test-lseek.sh: Exercise more facets of lseek.
41864         Reported by Bruno Haible.
41865
41866 2007-05-28  Bruno Haible  <bruno@clisp.org>
41867
41868         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
41869         to define.
41870
41871 2007-05-27  Bruno Haible  <bruno@clisp.org>
41872
41873         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
41874
41875 2007-05-27  Bruno Haible  <bruno@clisp.org>
41876
41877         * modules/openmp: New file.
41878         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
41879         Noah Misch.
41880
41881 2007-05-26  Bruno Haible  <bruno@clisp.org>
41882
41883         * modules/chdir-long (Depends-on): Add fchdir.
41884         * modules/chdir-safer (Depends-on): Likewise.
41885         * modules/fts (Depends-on): Likewise.
41886         * modules/fts-lgpl (Depends-on): Likewise.
41887         * modules/openat (Depends-on): Likewise.
41888         * modules/savewd (Depends-on): Likewise.
41889
41890 2007-05-24  Eric Blake  <ebb9@byu.net>
41891
41892         Fix lseek on mingw.
41893         * modules/lseek: New module.
41894         * m4/lseek.m4: New file.
41895         * lib/lseek.c: New file.
41896         * modules/lseek-tests: New file.
41897         * tests/test-lseek.c: New file.
41898         * tests/test-lseek.sh: New file.
41899         * MODULES.html.sh: Document lseek module.
41900         * modules/fflush (Depends-on): Add lseek, fseeko.
41901         * modules/fseeko (Depends-on): Likewise.
41902         * modules/ftello (Depends-on): Likewise.
41903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
41904         broken.
41905         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
41906         broken.
41907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
41908         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
41909         * lib/ftello.c (rpl_ftello): Likewise.
41910         * tests/test-fseeko.c (main): Test this.
41911         * tests/test-fseeko.sh: Likewise.
41912         * tests/test-ftello.c (main): Likewise.
41913         * tests/test-ftello.sh: Likewise.
41914         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
41915         implies replacing fseek.
41916         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
41917         HAVE_FTELLO.
41918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
41919         * modules/unistd (Makefile.am): Likewise.
41920         * lib/unistd_.h (lseek): Declare a replacement.
41921         * doc/functions/lseek.texi (lseek): Document this fix.
41922         * doc/functions/fseek.texi (fseek): Likewise.
41923         * doc/functions/ftell.texi (ftell): Likewise.
41924
41925 2007-05-24  Bruno Haible  <bruno@clisp.org>
41926
41927         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
41928         in the printed representation of a NaN.
41929         * tests/test-vasprintf-posix.c (test_function): Likewise.
41930         * tests/test-snprintf-posix.h (test_function): Likewise.
41931         * tests/test-sprintf-posix.h (test_function): Likewise.
41932         Reported by Eric Blake.
41933
41934 2007-05-23  Eric Blake  <ebb9@byu.net>
41935
41936         Fix fseeko/ftello on cygwin 1.5.24.
41937         * doc/functions/fseeko.texi (fseeko): Document the fix.
41938         * doc/functions/ftello.texi (ftello): Document the fix.
41939         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
41940         * doc/functions/stdout.text (stdout): New file.
41941         * doc/functions/stderr.text (stderr): New file.
41942         * doc/gnulib.texi (Function Substitutes): Use new files.
41943         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
41944         prior to 1.7.0.
41945         * tests/test-ftello.c (main): Likewise for ftello.
41946         * tests/test-fseeko.sh: New file.
41947         * tests/test-ftello.sh: New file.
41948         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
41949         with seekable stdin.
41950         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
41951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
41952         (gl_REPLACE_FSEEKO): New macro.
41953         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
41954         * modules/fseeko (Files): Distribute fseeko.c.
41955         * modules/ftello (Files): Distribute ftello.c.
41956         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
41957         mode.
41958         * lib/ftello.c (rpl_ftello): New file.
41959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
41960         fseeko, ftello.
41961         (gl_STDIN_LARGE_OFFSET): New macro.
41962         * modules/stdio (Makefile.am): Perform the replacement.
41963         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
41964
41965 2007-05-23  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
41968         GNULIB_POSIXCHECK is defined.
41969
41970 2007-05-21  Bruno Haible  <bruno@clisp.org>
41971
41972         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
41973         Check also the output for NaN arguments. When cross-compiling, guess
41974         no on IRIX.
41975         * lib/vasnprintf.c: Update comments.
41976         * tests/test-vasnprintf-posix.c (strisnan): New function.
41977         (test_function): Use it.
41978         * tests/test-vasprintf-posix.c (strisnan): New function.
41979         (test_function): Use it.
41980         * tests/test-snprintf-posix.h (strisnan): New function.
41981         (test_function): Use it.
41982         * tests/test-sprintf-posix.h (strisnan): New function.
41983         (test_function): Use it.
41984         Reported by Eric Blake.
41985
41986 2007-05-20  Bruno Haible  <bruno@clisp.org>
41987
41988         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
41989         numbers that fails on BeOS.
41990         * doc/functions/frexpl.texi: Update.
41991
41992 2007-05-20  Jim Meyering  <jim@meyering.net>
41993
41994         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
41995         forced upon us by glibc-2.6.
41996
41997 2007-05-20  Bruno Haible  <bruno@clisp.org>
41998
41999         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42000         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42001         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42002         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42003         NEED_PRINTF_INFINITE.
42004         (is_infinitel): New function.
42005         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42007         gl_PREREQ_VASNPRINTF_INFINITE.
42008         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42009         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42010         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42011         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42012         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42013         gl_PREREQ_VASNPRINTF_INFINITE.
42014         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42015         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42016         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42017         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42018         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42020         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42021         * doc/functions/fprintf.texi: Update.
42022         * doc/functions/printf.texi: Update.
42023         * doc/functions/snprintf.texi: Update.
42024         * doc/functions/sprintf.texi: Update.
42025         * doc/functions/vfprintf.texi: Update.
42026         * doc/functions/vprintf.texi: Update.
42027         * doc/functions/vsnprintf.texi: Update.
42028         * doc/functions/vsprintf.texi: Update.
42029
42030 2007-05-20  Bruno Haible  <bruno@clisp.org>
42031
42032         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42033         was not found in libc.
42034         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42035
42036 2007-05-20  Bruno Haible  <bruno@clisp.org>
42037
42038         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42039         printed as "-nan" instead of "nan".
42040         * tests/test-vasprintf-posix.c (test_function): Likewise.
42041         * tests/test-snprintf-posix.h (test_function): Likewise.
42042         * tests/test-sprintf-posix.h (test_function): Likewise.
42043         Needed for HP-UX 11.
42044
42045 2007-05-20  Jim Meyering  <jim@meyering.net>
42046
42047         Fix buggy test for the fchownat-deref bug.
42048         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42049         symlink required for the run-test.  Without it, this test would
42050         always declare that fchownat doesn't work, and client code would
42051         unnecessarily use the replacement function with fixed libc.
42052         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42053         Reported by Greg Schafer.
42054
42055 2007-05-19  Bruno Haible  <bruno@clisp.org>
42056
42057         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42058         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42059         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42060         Needed for IRIX 6.5 and Solaris 2.5.1.
42061
42062 2007-05-19  Bruno Haible  <bruno@clisp.org>
42063
42064         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42065         (test_function): Skip tests involving -0.0 on platforms where
42066         -0.0 = 0.0.
42067         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42068         (test_function): Skip tests involving -0.0 on platforms where
42069         -0.0 = 0.0.
42070         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42071         (test_function): Skip tests involving -0.0 on platforms where
42072         -0.0 = 0.0.
42073         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42074         (test_function): Skip tests involving -0.0 on platforms where
42075         -0.0 = 0.0.
42076         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42077         tests.
42078         * tests/test-printf-posix.h (test_function): Likewise.
42079         * tests/test-printf-posix.output: Remove all -0.0 related results.
42080         Needed for IRIX 6.5.
42081
42082 2007-05-19  Bruno Haible  <bruno@clisp.org>
42083
42084         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42085         printed as "nan0x7fffffff" instead of "nan".
42086         * tests/test-vasprintf-posix.c (test_function): Likewise.
42087         * tests/test-snprintf-posix.h (test_function): Likewise.
42088         * tests/test-sprintf-posix.h (test_function): Likewise.
42089         * tests/test-fprintf-posix.h (NaN): Remove macro.
42090         (test_function): Remove all NaN related tests.
42091         * tests/test-printf-posix.h (NaN): Remove macro.
42092         (test_function): Remove all NaN related tests.
42093         * tests/test-printf-posix.output: Remove all NaN related results.
42094         Needed for IRIX 6.5.
42095
42096 2007-05-19  Bruno Haible  <bruno@clisp.org>
42097
42098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42099         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42100
42101 2007-05-19  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/float_.h: New file.
42104         * m4/float_h.m4: New file.
42105         * modules/float: New file.
42106         * modules/isnanl (Dependencies): Add float.
42107         * modules/isnanl-nolibm (Dependencies): Likewise.
42108         * modules/mathl (Dependencies): Likewise.
42109         * modules/printf-frexpl (Dependencies): Likewise.
42110         * modules/signbit (Dependencies): Likewise.
42111         * modules/vasnprintf (Dependencies): Likewise.
42112         * doc/headers/float.texi: Update.
42113
42114 2007-05-19  Jim Meyering  <jim@meyering.net>
42115
42116         * lib/utimens.c (gl_futimens): Rename from futimens,
42117         now that glibc-2.6 declares futimens.
42118         * lib/utimens.h: Likewise.
42119
42120 2007-05-19  Bruno Haible  <bruno@clisp.org>
42121
42122         Avoid test failures on mingw.
42123         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42124         * tests/test-printf-posix.sh: Likewise.
42125         * tests/test-vfprintf-posix.sh: Likewise.
42126         * tests/test-vprintf-posix.sh: Likewise.
42127
42128 2007-05-19  Bruno Haible  <bruno@clisp.org>
42129
42130         Fix *printf result for NaN, Inf, -0.0 on mingw.
42131         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42132         * lib/vasnprintf.c: Include math.h and isnan.h.
42133         (is_infinite_or_zero): New function.
42134         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42135         values in the %f, %F, %e, %E, %g, %G directives.
42136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42138         gl_PRINTF_INFINITE and test its result. Invoke
42139         gl_PREREQ_VASNPRINTF_INFINITE.
42140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42141         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42143         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42147         * doc/functions/fprintf.texi: Update.
42148         * doc/functions/printf.texi: Update.
42149         * doc/functions/snprintf.texi: Update.
42150         * doc/functions/sprintf.texi: Update.
42151         * doc/functions/vfprintf.texi: Update.
42152         * doc/functions/vprintf.texi: Update.
42153         * doc/functions/vsnprintf.texi: Update.
42154         * doc/functions/vsprintf.texi: Update.
42155
42156 2007-05-19  Bruno Haible  <bruno@clisp.org>
42157
42158         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42159         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42160         Instead of multiplying with 10^k, set extra_zeroes to k.
42161         (scale10_round_long_double): Remove function.
42162
42163 2007-05-18  Bruno Haible  <bruno@clisp.org>
42164
42165         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42166         introduced on 2007-05-06.
42167
42168 2007-05-18  Bruno Haible  <bruno@clisp.org>
42169
42170         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42171         %g directives.
42172         * tests/test-vasprintf-posix.c (test_function): Likewise.
42173         * tests/test-snprintf-posix.h (test_function): Likewise.
42174         * tests/test-sprintf-posix.h (test_function): Likewise.
42175
42176 2007-05-18  Bruno Haible  <bruno@clisp.org>
42177
42178         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42179         (strmatch): New function.
42180         (test_function): Test the %f directive on numbers of various exponents.
42181         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42182         (strmatch): New function.
42183         (test_function): Test the %f directive on numbers of various exponents.
42184         * tests/test-snprintf-posix.h (strmatch): New function.
42185         (test_function): Test the %f directive on numbers of various exponents.
42186         * tests/test-sprintf-posix.h (strmatch): New function.
42187         (test_function): Test the %f directive on numbers of various exponents.
42188         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42189         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42190         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42191         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42192
42193 2007-05-18  Bruno Haible  <bruno@clisp.org>
42194
42195         Add support for 'long double' number output.
42196         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42197         * lib/vasnprintf.c: Include math.h and float+.h.
42198         (mp_limb_t): New type.
42199         (GMP_LIMB_BITS): New macro.
42200         (mp_twolimb_t): New type.
42201         (GMP_TWOLIMB_BITS): New macro.
42202         (mpn_t): New type.
42203         (multiply, divide, convert_to_decimal, decode_long_double,
42204         scale10_round_long_double, scale10_round_decimal_long_double,
42205         floorlog10l): New functions.
42206         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42207         for the %f, %F, %e, %E, %g, %G directives.
42208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42210         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42211         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42214         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42219         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42220         * modules/snprintf-posix (Depends-on): Likewise.
42221         * modules/sprintf-posix (Depends-on): Likewise.
42222         * modules/vasnprintf-posix (Depends-on): Likewise.
42223         * modules/vasprintf-posix (Depends-on): Likewise.
42224         * modules/vfprintf-posix (Depends-on): Likewise.
42225         * modules/vsnprintf-posix (Depends-on): Likewise.
42226         * modules/vsprintf-posix (Depends-on): Likewise.
42227         * modules/vasnprintf (Files): Add lib/float+.h.
42228         * doc/functions/fprintf.texi: Update.
42229         * doc/functions/printf.texi: Update.
42230         * doc/functions/snprintf.texi: Update.
42231         * doc/functions/sprintf.texi: Update.
42232         * doc/functions/vfprintf.texi: Update.
42233         * doc/functions/vprintf.texi: Update.
42234         * doc/functions/vsnprintf.texi: Update.
42235         * doc/functions/vsprintf.texi: Update.
42236
42237 2007-05-18  Bruno Haible  <bruno@clisp.org>
42238
42239         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42240
42241 2007-05-18  Bruno Haible  <bruno@clisp.org>
42242
42243         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42244         for printing 64-bit integers. Needed for mingw.
42245
42246 2007-05-18  Bruno Haible  <bruno@clisp.org>
42247
42248         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42249         gl_FUNC_FREXPL_WORKS.
42250         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42251
42252 2007-05-18  Bruno Haible  <bruno@clisp.org>
42253
42254         * modules/frexpl-nolibm-tests: New file.
42255
42256         * modules/frexpl-nolibm: New file.
42257         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42258
42259 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42260
42261         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42262         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42263         GCC 4.2, which otherwise issues a lot of warnings.
42264         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42265         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42266         Likewise.
42267         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42268         * modules/iconv_open (iconv.h): Likewise.
42269         * modules/locale (locale.h): Likewise.
42270         * modules/netinet_in (netinet/in.h): Likewise.
42271         * modules/sys_select (sys_select.h): Likewise.
42272         * modules/sys_socket (sys/socket.h): Likewise.
42273         * modules/sys_stat (sys/stat.h): Likewise.
42274         * modules/sysexits (sysexits.h): Likewise.
42275         * modules/unistd (unistd.h): Likewise.
42276
42277 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42278
42279         * modules/closein-tests (Makefile.am): Distribute
42280         `test-closein.sh'.
42281
42282 2007-05-17  Bruno Haible  <bruno@clisp.org>
42283
42284         * tests/test-printf-posix.output: Renamed from
42285         tests/test-fprintf-posix.out.
42286         * modules/fprintf-posix-tests: Update.
42287         * modules/printf-posix-tests: Update.
42288         * modules/vfprintf-posix-tests: Update.
42289         * modules/vprintf-posix-tests: Update.
42290         * tests/test-fprintf-posix.sh: Update.
42291         * tests/test-printf-posix.sh: Update.
42292         * tests/test-vfprintf-posix.sh: Update.
42293         * tests/test-vprintf-posix.sh: Update.
42294         Reported by Ralf Wildenhues.
42295
42296 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42297
42298         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42299         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42300         GCC 4.2, which otherwise issues a lot of warnings.
42301         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42302         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42303         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42304         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42305         it should no longer be needed.
42306         * lib/string_.h: Likewise.
42307         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42308         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42309         * modules/inttypes (inttypes.h): Likewise.
42310         * modules/math (math.h): Likewise.
42311         * modules/search (search.h): Likewise.
42312         * modules/signal (signal.h): Likewise.
42313         * modules/stdint (stdint.h): Likewise.
42314         * modules/stdio (stdio.h): Likewise.
42315         * modules/stdlib (stdlib.h): Likewise.
42316         * modules/string (string.h): Likewise.
42317         * modules/sys_time (sys/time.h): Likewise.
42318         * modules/time (time.h): Likewise.
42319         * modules/wchar (wchar.h): Likewise.
42320         * modules/wctype (wtype.h): Likewise.
42321
42322 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42323
42324         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42325
42326 2007-05-13  Bruno Haible  <bruno@clisp.org>
42327
42328         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42329         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42330         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42331         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42332         (gl_PREREQ_STRTOK_R): Don't require it here.
42333
42334 2007-05-13  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42337         when used in C++ mode.
42338
42339 2007-05-12  Bruno Haible  <bruno@clisp.org>
42340
42341         * lib/linebuffer.h: Tweak doc.
42342         * lib/linebuffer.c: Likewise.
42343
42344 2007-05-12  James Youngman  <jay@gnu.org>
42345
42346         * lib/linebuffer.c (readlinebuffer_delim): New function,
42347         like readlinebuffer, but use a caller-specified delimiter.
42348         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42349         as the delimiter.
42350         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42351
42352 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42353
42354         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42355         * modules/openat (Files): Remove openat-die.c.
42356         (Depends-on): Add openat-die.
42357         * modules/openat-die: New module.
42358
42359 2007-05-06  Bruno Haible  <bruno@clisp.org>
42360
42361         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42362         Update with info about Cygwin.
42363         * doc/functions/fprintf.texi: Update.
42364         * doc/functions/printf.texi: Update.
42365         * doc/functions/snprintf.texi: Update.
42366         * doc/functions/sprintf.texi: Update.
42367         * doc/functions/vfprintf.texi: Update.
42368         * doc/functions/vprintf.texi: Update.
42369         * doc/functions/vsnprintf.texi: Update.
42370         * doc/functions/vsprintf.texi: Update.
42371         Reported by Eric Blake.
42372
42373 2007-05-06  Bruno Haible  <bruno@clisp.org>
42374
42375         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42376         padding ourselves for the floating-point directives.
42377         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42380         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42381         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42386         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42387         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42388         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42389         * tests/test-snprintf-posix.h (test_function): Also check the width
42390         and some flags in the %f directive.
42391         * tests/test-sprintf-posix.h (test_function): Likewise.
42392         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42393         * tests/test-vasprintf-posix.c (test_function): Likewise.
42394         * doc/functions/fprintf.texi: Update.
42395         * doc/functions/printf.texi: Update.
42396         * doc/functions/snprintf.texi: Update.
42397         * doc/functions/sprintf.texi: Update.
42398         * doc/functions/vfprintf.texi: Update.
42399         * doc/functions/vprintf.texi: Update.
42400         * doc/functions/vsnprintf.texi: Update.
42401         * doc/functions/vsprintf.texi: Update.
42402
42403 2007-05-06  Bruno Haible  <bruno@clisp.org>
42404
42405         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42406         pass the ' flag character to sprintf or snprintf.
42407         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42409         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42410         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42411         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42413         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42419         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42420         flag.
42421         * tests/test-sprintf-posix.h (test_function): Likewise.
42422         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42423         * tests/test-vasprintf-posix.c (test_function): Likewise.
42424         * doc/functions/fprintf.texi: Update.
42425         * doc/functions/printf.texi: Update.
42426         * doc/functions/snprintf.texi: Update.
42427         * doc/functions/sprintf.texi: Update.
42428         * doc/functions/vfprintf.texi: Update.
42429         * doc/functions/vprintf.texi: Update.
42430         * doc/functions/vsnprintf.texi: Update.
42431         * doc/functions/vsprintf.texi: Update.
42432
42433 2007-05-01  Bruno Haible  <bruno@clisp.org>
42434
42435         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42436
42437 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42438
42439         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42440         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42441
42442 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42443
42444         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42445         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42447
42448 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42449
42450         * lib/argp-help.c (struct hol_entry): New member `ord'.
42451         (HOL_ENTRY_PTRCMP): Use ord for comparison
42452         (hol_sort): Initialize ord.
42453
42454 2007-05-01  Bruno Haible  <bruno@clisp.org>
42455
42456         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42457         Reported by Eric Blake.
42458         * doc/gnulib.texi (Function Substitutes): Update.
42459
42460 2007-05-01  Bruno Haible  <bruno@clisp.org>
42461
42462         * doc/functions.texi: Remove file, now redundant through
42463         doc/functions/*.texi.
42464
42465 2007-05-01  Bruno Haible  <bruno@clisp.org>
42466
42467         * modules/argp (Depends-on): Add sleep.
42468
42469 2007-05-01  Bruno Haible  <bruno@clisp.org>
42470
42471         * modules/sleep-tests: New file.
42472         * tests/test-sleep.c: New file.
42473
42474         * modules/sleep: New file.
42475         * lib/sleep.c: New file.
42476         * m4/sleep.m4: New file.
42477         * lib/unistd_.h (sleep): New declaration.
42478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42479         HAVE_SLEEP.
42480         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42481         * doc/functions/sleep.texi: Document the sleep module.
42482
42483 2007-05-01  Bruno Haible  <bruno@clisp.org>
42484
42485         * lib/sigprocmask.h: Remove file.
42486         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42487         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42488         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42489         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42490         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42491         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42492         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42493         HAVE_SIGSET_T as a shell variable.
42494         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42495         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42496         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42497         (Depends-on): Add signal. Remove verify.
42498         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42499         (Include): Mention <signal.h> instead of sigprocmask.h.
42500         * NEWS: Mention the change.
42501         * lib/fatal-signal.c: Don't include sigprocmask.h.
42502
42503 2007-05-01  Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/signal: New file.
42506         * lib/signal_.h: New file.
42507         * m4/signal_h.m4: New file.
42508
42509 2007-05-01  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42512         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42513         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42514         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42515
42516 2007-05-01  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42519         configure time.
42520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42521         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42522         * modules/sys_stat (Makefile.am): Substitute their values into
42523         sys/stat.h.
42524
42525 2007-05-01  Bruno Haible  <bruno@clisp.org>
42526
42527         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42528         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42529         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42530
42531 2007-05-01  Bruno Haible  <bruno@clisp.org>
42532
42533         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42534         'assert' module here.
42535
42536 2007-05-01  Bruno Haible  <bruno@clisp.org>
42537
42538         * doc/functions/*.texi: New files.
42539         * doc/functions/google-ranking.txt: New file.
42540         * doc/gnulib.texi (Function Substitutes): New chapter.
42541         (ctime, inet_ntoa): Remove sections.
42542         * doc/ctime.texi: Remove file.
42543         * doc/inet_ntoa.texi: Remove file.
42544         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42545         dependencies.
42546         (%.info): New rule, specifying a --reference-limit.
42547
42548 2007-05-01  Bruno Haible  <bruno@clisp.org>
42549
42550         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42551
42552 2007-05-01  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42555         the portability of 'mkdir' to mingw systems.
42556
42557 2007-05-01  Bruno Haible  <bruno@clisp.org>
42558
42559         * doc/headers/google-ranking.txt: New file.
42560
42561 2007-04-30  Eric Blake  <ebb9@byu.net>
42562
42563         Prefer fseeko to fseek.
42564         * modules/getpass (Depends-on): Add fseeko.
42565         * lib/getpass.c (getpass): Use fseeko, not fseek.
42566
42567 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42568
42569         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42570         assumes the sorting is stable, while most qsort implementations
42571         are not.  Use argument addresses to ensure they never compare as
42572         equal.
42573
42574         * tests/test-argp-2.sh (usage-indent test): Fix output
42575         (func_compare): Restore diff options
42576         * tests/test-argp.c: Restore #include "progname.h"
42577
42578 2007-04-29  Bruno Haible  <bruno@clisp.org>
42579
42580         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42582         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42584         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42585         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42586         (TESTS, check_PROGRAMS): Add test-snprintf.
42587         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42588         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42589         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42590         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42591         assertions that fail on HP-UX, OSF/1, or IRIX.
42592         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42593
42594 2007-04-29  Bruno Haible  <bruno@clisp.org>
42595
42596         * MODULES.html.sh (posix_functions): Remove 'contents'.
42597
42598 2007-04-29  Karl Berry  <karl@gnu.org>
42599
42600         * config/srclist.txt (gendocs_template_min): new entry.
42601
42602 2007-04-29  Bruno Haible  <bruno@clisp.org>
42603
42604         Work around fpurge bug on BSD systems.
42605         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42606         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42607         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42608         fpurge to rpl_fpurge if the system already has this function.
42609         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42610         the case where the system already has this function. Correct invariants
42611         on BSD systems.
42612         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42613         BSD systems.
42614
42615 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42616
42617         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42618         proposed by Sven Verdoolaege.
42619
42620         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42621         options.
42622         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42623         (usage and help tests): Update
42624
42625 2007-04-29  Bruno Haible  <bruno@clisp.org>
42626
42627         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42628         Print more information in case of failure. Disable a test on BeOS.
42629
42630 2007-04-29  Bruno Haible  <bruno@clisp.org>
42631
42632         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42633         This helps debugging on systems on which no gdb is available.
42634
42635 2007-04-29  Bruno Haible  <bruno@clisp.org>
42636
42637         * lib/freading.h: Improve comments.
42638         * lib/fwriting.h: Likewise.
42639         * tests/test-freading.c (main): Don't check freading immediately after
42640         repositioning. Needed for glibc.
42641
42642 2007-04-29  Bruno Haible  <bruno@clisp.org>
42643
42644         * lib/freading.c (freading): Trivial simplification.
42645
42646 2007-04-28  Bruno Haible  <bruno@clisp.org>
42647
42648         * tests/test-fwriting.c (main): Also test the interaction between
42649         fflush and fwriting.
42650         * modules/fwriting-tests (Depends-on): Add fflush.
42651
42652         * tests/test-freading.c (main): Also test the interaction between
42653         fflush and freading.
42654         * modules/freading-tests (Depends-on): Add fflush.
42655
42656 2007-04-28  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42659         fseeko and ftello.
42660         Suggested by Eric Blake.
42661
42662 2007-04-28  Jim Meyering  <jim@meyering.net>
42663
42664         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42665         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42666         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42667
42668 2007-04-27  Eric Blake  <ebb9@byu.net>
42669
42670         * doc/headers/assert.texi (assert.h): Document assert module use.
42671
42672 2007-04-27  Bruno Haible  <bruno@clisp.org>
42673
42674         * doc/headers/*.texi: New files.
42675         * doc/gnulib.texi (Header File Substitutes): New chapter.
42676         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42677         dependencies.
42678         (standards.info ,standards.html, standards.dvi): Update dependencies.
42679         (mostlyclean, clean): New targets.
42680
42681 2007-04-27  Bruno Haible  <bruno@clisp.org>
42682
42683         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42684         * modules/sysexits (Files, Makefile.am): Update.
42685
42686         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42687         * modules/sys_socket (Files, Makefile.am): Update.
42688
42689         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42690         * modules/sys_stat (Files, Makefile.am): Update.
42691
42692 2007-04-27  Eric Blake  <ebb9@byu.net>
42693
42694         * lib/freading.h: Improve comments.
42695         * lib/fwriting.h: Likewise.
42696         * lib/fflush.c: Likewise.
42697
42698         Fix closein for mingw.
42699         * modules/closein-tests: Add tests for closein.
42700         * tests/test-closein.c: New file.
42701         * tests/test-closein.sh: Likewise.
42702         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42703         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42704
42705 2007-04-27  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42708         version is < 6.
42709         * lib/math_.h [__DECC]: Likewise.
42710         * lib/stdio_.h [__DECC]: Likewise.
42711         * lib/stdlib_.h [__DECC]: Likewise.
42712         * lib/string_.h [__DECC]: Likewise.
42713         * lib/time_.h [__DECC]: Likewise.
42714         * lib/wchar_.h [__DECC]: Likewise.
42715         * lib/wctype_.h [__DECC]: Likewise.
42716
42717 2007-04-27  Bruno Haible  <bruno@clisp.org>
42718
42719         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42720
42721 2007-04-27  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/fflush.c: Add comments.
42724         * modules/fpurge-tests (Depends-on): Add fflush.
42725         * modules/freadable-tests (Depends-on): Likewise.
42726         * modules/fwritable-tests (Depends-on): Likewise.
42727
42728 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42729
42730         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42731         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42732         Report by Bruno Haible <bruno@clisp.org>.
42733
42734 2007-04-26  Eric Blake  <ebb9@byu.net>
42735
42736         Fix fflush on mingw.
42737         * modules/fflush (Depends-on): Add freading.
42738         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42739         but unread data.
42740
42741 2007-04-26  Eric Blake  <ebb9@byu.net>
42742         and Bruno Haible  <bruno@clisp.org>
42743
42744         Implement freading and fwriting.
42745         * lib/freading.c: New file.
42746         * lib/freading.h: Likewise.
42747         * m4/freading.m4: Likewise.
42748         * modules/freading: Likewise.
42749         * modules/freading-tests: Likewise.
42750         * tests/test-freading.c: Likewise.
42751         * lib/fwriting.c: New file.
42752         * lib/fwriting.h: Likewise.
42753         * m4/fwriting.m4: Likewise.
42754         * modules/fwriting: Likewise.
42755         * modules/fwriting-tests: Likewise.
42756         * tests/test-fwriting.c: Likewise.
42757         * MODULES.html.sh (File stream based Input/Output): Mention them.
42758
42759 2007-04-26  Bruno Haible  <bruno@clisp.org>
42760
42761         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42762         'long' when we assume it.
42763         Suggested by Eric Blake.
42764
42765 2007-04-26  Bruno Haible  <bruno@clisp.org>
42766
42767         Ensure fseeko, ftello are declared on glibc systems.
42768         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42769         * modules/fseeko (configure.ac-early): Likewise.
42770         * modules/ftello (configure.ac-early): Likewise.
42771         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42772         AC_FUNC_FSEEKO for this.
42773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42774         (gl_CHECK_FSEEKO): Remove macro.
42775
42776 2007-04-26  Bruno Haible  <bruno@clisp.org>
42777
42778         * tests/test-fflush.c (main): Also check the ftell result after
42779         fflush and fseek/fseeko.
42780         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42781         file descriptor position cache in the stream.
42782         * lib/fseeko.c (rpl_fseeko): Likewise.
42783
42784 2007-04-26  Bruno Haible  <bruno@clisp.org>
42785
42786         * modules/fflush-tests (Depends-on): Add fseeko.
42787
42788 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42789             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42790
42791         * lib/argz_.h: ensure error_t definition is obtained in same
42792         mechanism system argz.h would have.
42793         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42794         argz facilities are known bad.  Err on the side of caution if
42795         cross-compiling.
42796
42797 2007-04-25  Eric Blake  <ebb9@byu.net>
42798
42799         * lib/fpurge.c (includes): Use stdlib.h for free.
42800         * tests/test-fflush.c (main): Also test fflush-fseeko.
42801
42802 2007-04-25  Bruno Haible  <bruno@clisp.org>
42803
42804         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42805         * lib/fseeko.c: New file.
42806         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42807         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42808         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42809         gl_FUNC_FSEEKO.
42810         (gl_FUNC_FSEEKO): Invoke it.
42811         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42812         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42813         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42814
42815 2007-04-25  Bruno Haible  <bruno@clisp.org>
42816
42817         * modules/fflush (Depends-on): Add ftello.
42818
42819 2007-04-25  Bruno Haible  <bruno@clisp.org>
42820
42821         * modules/ftello-tests: New file.
42822         * tests/test-ftello.c: New file.
42823
42824         * modules/ftello: New file.
42825         * m4/ftello.m4: New file.
42826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42827         HAVE_FTELLO.
42828         * lib/stdio_.h (ftello): New declaration.
42829         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42830         HAVE_FTELLO.
42831
42832 2007-04-25  Bruno Haible  <bruno@clisp.org>
42833
42834         * modules/fseeko-tests: New file.
42835         * tests/test-fseeko.c: New file.
42836
42837         * modules/fseeko: New file.
42838         * m4/fseeko.m4: New file.
42839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42840         HAVE_FSEEKO.
42841         * lib/stdio_.h (fseeko): New declaration.
42842         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42843         HAVE_FSEEKO.
42844
42845 2007-04-25  Bruno Haible  <bruno@clisp.org>
42846
42847         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42848
42849 2007-04-25  Bruno Haible  <bruno@clisp.org>
42850
42851         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42852         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42853         * tests/test-unistd.c: Likewise.
42854         * tests/test-fcntl.c: Likewise.
42855
42856 2007-04-23  Eric Blake  <ebb9@byu.net>
42857
42858         * lib/fflush.c: Fix missing include.
42859         Reported by Bruno Haible.
42860
42861 2007-04-23  Bruno Haible  <bruno@clisp.org>
42862
42863         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
42864         Reported by Eric Blake.
42865
42866 2007-04-23  Bruno Haible  <bruno@clisp.org>
42867
42868         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
42869
42870 2007-04-23  Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
42873
42874 2007-04-23  Bruno Haible  <bruno@clisp.org>
42875
42876         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
42877         Needed on HP-UX 11.
42878
42879 2007-04-16  Eric Blake  <ebb9@byu.net>
42880
42881         Make fflush rely on fpurge.
42882         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
42883         open coding all variants.
42884         * modules/fflush (Depends-on): Add fpurge and unistd.
42885         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
42886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
42887
42888         Fix --with-tests compilation on cygwin.
42889         * modules/argmatch-tests (Makefile.am): List gnulib library first
42890         in LDADD.
42891         * modules/argp-tests (Makefile.am): Likewise.
42892         * modules/array-list-tests (Makefile.am): Likewise.
42893         * modules/array-oset-tests (Makefile.am): Likewise.
42894         * modules/avltree-list-tests (Makefile.am): Likewise.
42895         * modules/avltree-oset-tests (Makefile.am): Likewise.
42896         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42897         * modules/carray-list-tests (Makefile.am): Likewise.
42898         * modules/dirname-tests (Makefile.am): Likewise.
42899         * modules/frexp-tests (Makefile.am): Likewise.
42900         * modules/isnanl-tests (Makefile.am): Likewise.
42901         * modules/linked-list-tests (Makefile.am): Likewise.
42902         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42903         * modules/lock-tests (Makefile.am): Likewise.
42904         * modules/rbtree-list-tests (Makefile.am): Likewise.
42905         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42906         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42907         * modules/tls-tests (Makefile.am): Likewise.
42908         * modules/tsearch-tests (Makefile.am): Likewise.
42909         * modules/xvasprintf-tests (Makefile.am): Likewise.
42910
42911         Fix fpurge for cygwin.
42912         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
42913         value.
42914         * modules/fpurge-tests (Depends-on): Clean up trash.
42915
42916 2007-04-16  Simon Josefsson  <simon@josefsson.org>
42917
42918         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
42919
42920         * m4/autobuild.m4: Re-indent.
42921
42922 2007-04-13  Bruno Haible  <bruno@clisp.org>
42923
42924         * modules/fpurge-tests: New file.
42925         * tests/test-fpurge.c: New file.
42926
42927         * modules/fpurge: New file.
42928         * lib/fpurge.h: New file.
42929         * lib/fpurge.c: New file.
42930         * m4/fpurge.m4: New file.
42931
42932 2007-04-13  Bruno Haible  <bruno@clisp.org>
42933
42934         * modules/fbufmode-tests: New file.
42935         * tests/test-fbufmode.c: New file.
42936
42937         * modules/fbufmode: New file.
42938         * lib/fbufmode.h: New file.
42939         * lib/fbufmode.c: New file.
42940         * m4/fbufmode.m4: New file.
42941
42942 2007-04-13  Bruno Haible  <bruno@clisp.org>
42943
42944         * modules/fwritable-tests: New file.
42945         * tests/test-fwritable.c: New file.
42946
42947         * modules/fwritable: New file.
42948         * lib/fwritable.h: New file.
42949         * lib/fwritable.c: New file.
42950         * m4/fwritable.m4: New file.
42951
42952 2007-04-13  Bruno Haible  <bruno@clisp.org>
42953
42954         * modules/freadable-tests: New file.
42955         * tests/test-freadable.c: New file.
42956
42957         * modules/freadable: New file.
42958         * lib/freadable.h: New file.
42959         * lib/freadable.c: New file.
42960         * m4/freadable.m4: New file.
42961
42962 2007-04-13  Bruno Haible  <bruno@clisp.org>
42963
42964         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
42965         MOSTLYCLEANFILES.
42966
42967 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42968
42969         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
42970         gzip bootstrap.conf to avoid dragging in i18n machinery.
42971         (gnulib_tool_option): Use it.
42972
42973 2007-04-13  Bruno Haible  <bruno@clisp.org>
42974
42975         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
42976         %F directives.
42977         * tests/test-vasprintf-posix.c (test_function): Likewise.
42978         * tests/test-snprintf-posix.h (test_function): Likewise.
42979         * tests/test-sprintf-posix.h (test_function): Likewise.
42980         * tests/test-fprintf-posix.h (test_function): Likewise.
42981         * tests/test-printf-posix.h (test_function): Likewise.
42982         * tests/test-fprintf-posix.out: Likewise.
42983
42984 2007-04-13  Bruno Haible  <bruno@clisp.org>
42985
42986         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
42987         * modules/tls-tests (configure.ac): Likewise.
42988         Reported by Arto C. Nirkko <anirkko@insel.ch>.
42989
42990 2007-04-13  Bruno Haible  <bruno@clisp.org>
42991
42992         * lib/tls.c (glthread_tls_get): Fix return type.
42993         Patch by Arto C. Nirkko <anirkko@insel.ch>.
42994
42995 2007-04-12  Eric Blake  <ebb9@byu.net>
42996
42997         * modules/gettime (Depends-on): Remove gettime.
42998         Reported by Dmitry V. Levin.
42999
43000 2007-04-12  Bruno Haible  <bruno@clisp.org>
43001
43002         * modules/fflush (Include): Mention <stdio.h>.
43003         * modules/strtoimax (Include): Mention <inttypes.h>.
43004         * modules/strtoumax (Include): Likewise.
43005
43006 2007-04-12  Eric Blake  <ebb9@byu.net>
43007
43008         * .cvsignore: New file.
43009         * .gitignore: Likewise.
43010
43011 2007-04-12  Bruno Haible  <bruno@clisp.org>
43012
43013         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43014         not before, since $(LDADD) often contains libgnu.a.
43015         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43016         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43017         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43018         Needed on Cygwin.
43019
43020 2007-04-12  Eric Blake  <ebb9@byu.net>
43021
43022         Work around glibc's failure to flush stdin on fclose.
43023         * lib/closein.c (close_stdin): Flush stdin before closing.
43024
43025         Work around glibc's failure to reset seekable stdin on exit.
43026         * modules/closein: New module.
43027         * lib/closein.c: New file.
43028         * lib/closein.h: Likewise.
43029         * m4/closein.m4: Likewise.
43030         * MODULES.html.sh (File stream based Input/Output): Document it.
43031
43032 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43033
43034         * gnulib-tool: Rename generated 'autobuild' script to
43035         'do-autobuild' in --create-megatestdir output.
43036
43037         * doc/gnulib.texi (Build robot for gnulib): Fix.
43038
43039 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43040
43041         * modules/sysexits (Depends-on): Add absolute-header.
43042
43043 2007-04-12  Eric Blake  <ebb9@byu.net>
43044
43045         No need to preserve errno on success.
43046         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43047         Reported by Bruno Haible.
43048
43049 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43050
43051         * MODULES.html.sh (Support for maintaining and releasing
43052         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43053
43054 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43055
43056         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43057
43058 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43059
43060         * modules/autobuild: New module.
43061
43062         * m4/autobuild.m4: New file.
43063
43064 2007-04-11  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43067         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43068         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43069         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43071         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43072         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43073         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43074         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43075         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43076         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43077         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43078         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43080         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43081         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43082         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43083         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43084         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43086         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43087         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43089         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43090         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43091         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43094         Reported by Eric Blake.
43095
43096 2007-04-11  Bruno Haible  <bruno@clisp.org>
43097
43098         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43099
43100 2007-04-10  Bruno Haible  <bruno@clisp.org>
43101
43102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43103         for NaN and Infinity. Needed on FreeBSD 6.1.
43104         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43105         regarding results for "%010a" of Infinity and NaN.
43106         * tests/test-vasprintf-posix.c (test_function): Likewise.
43107         * tests/test-snprintf-posix.h (test_function): Likewise.
43108         * tests/test-sprintf-posix.h (test_function): Likewise.
43109         * tests/test-fprintf-posix.h (test_function): Likewise.
43110         * tests/test-printf-posix.h (test_function): Likewise.
43111         * tests/test-fprintf-posix.out: Likewise.
43112
43113 2007-04-10  Bruno Haible  <bruno@clisp.org>
43114
43115         * modules/locale-tests: New file.
43116         * tests/test-locale.c: New file.
43117
43118         * modules/locale: New file.
43119         * lib/locale_.h: New file.
43120         * m4/locale_h.m4: New file.
43121
43122 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43123             Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43126         be determined, test for availability of the copysignf, copysign,
43127         copysignl functions.
43128         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43129         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43130         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43131
43132 2007-04-09  Eric Blake  <ebb9@byu.net>
43133
43134         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43135         * modules/stdio (Makefile.am): Support fflush.
43136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43137         * modules/fflush: New file.
43138         * lib/fflush.c: Likewise.
43139         * m4/fflush.m4: Likewise.
43140         * modules/fflush-tests: New test.
43141         * tests/test-fflush.c: Likewise.
43142         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43143
43144 2007-04-06  Bruno Haible  <bruno@clisp.org>
43145
43146         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43147         (VASNPRINTF): Use signbit for faster determination whether to print a
43148         minus sign.
43149         * modules/vasnprintf (Files): Remove lib/float+.h.
43150         * modules/fprintf-posix (Depends-on): Add signbit.
43151         * modules/snprintf-posix (Depends-on): Likewise.
43152         * modules/sprintf-posix (Depends-on): Likewise.
43153         * modules/vasnprintf-posix (Depends-on): Likewise.
43154         * modules/vasprintf-posix (Depends-on): Likewise.
43155         * modules/vfprintf-posix (Depends-on): Likewise.
43156         * modules/vsnprintf-posix (Depends-on): Likewise.
43157         * modules/vsprintf-posix (Depends-on): Likewise.
43158
43159 2007-04-06  Bruno Haible  <bruno@clisp.org>
43160
43161         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43162         * tests/test-frexpl.c (main): Likewise.
43163         * tests/test-ldexpl.c (main): Likewise.
43164         * modules/frexp-tests (Depends-on): Add signbit.
43165         * modules/frexpl-tests (Depdends-on): Likewise.
43166         * modules/ldexpl-tests (Depdends-on): Likewise.
43167
43168 2007-04-06  Bruno Haible  <bruno@clisp.org>
43169
43170         * modules/signbit-tests: New file.
43171         * tests/test-signbit.c: New file.
43172
43173         * modules/signbit: New file.
43174         * lib/signbitf.c: New file.
43175         * lib/signbitd.c: New file.
43176         * lib/signbitl.c: New file.
43177         * m4/signbit.m4: New file.
43178         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43179         (signbit): New macro.
43180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43181         REPLACE_SIGNBIT.
43182         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43183         REPLACE_FREXPL into math.h.
43184
43185 2007-04-06  Bruno Haible  <bruno@clisp.org>
43186
43187         * modules/isnanf-nolibm-tests: New file.
43188         * tests/test-isnanf.c: New file.
43189
43190         * modules/isnanf-nolibm: New file.
43191         * lib/isnanf.h: New file.
43192         * lib/isnanf.c: New file.
43193         * lib/isnan.c: Consider the USE_FLOAT macro.
43194         * m4/isnanf.m4: New file.
43195
43196 2007-04-06  Bruno Haible  <bruno@clisp.org>
43197
43198         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43199         (Link): New section.
43200
43201         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43202
43203 2007-04-06  Bruno Haible  <bruno@clisp.org>
43204
43205         Assume the 'long double' type.
43206         * m4/longdouble.m4: Remove file.
43207         * config/srclist.txt: Don't mention longdouble.m4.
43208         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43209         * lib/float+.h: Likewise.
43210         * lib/frexp.c: Likewise.
43211         * lib/printf-args.h: Likewise.
43212         * lib/printf-args.c: Likewise.
43213         * lib/printf-frexp.c: Likewise.
43214         * lib/printf-parse.c: Likewise.
43215         * lib/vasnprintf.c: Likewise.
43216         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43217         * m4/intl.m4: Likewise.
43218         * m4/isnanl.m4: Likewise.
43219         * m4/printf.m4: Likewise.
43220         * m4/printf-frexpl.m4: Likewise.
43221         * m4/vasnprintf.m4: Likewise.
43222         * modules/allocsa (Files): Remove m4/longdouble.m4.
43223         * modules/gettext (Files): Likewise.
43224         * modules/relocatable-prog-wrapper (Files): Likewise.
43225         * modules/vasnprintf (Files): Likewise.
43226         * modules/isnanl (Files): Likewise.
43227         (Include): Simplify.
43228         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43229         (Include): Simplify.
43230         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43231         (Include): Simplify.
43232         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43233         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43234         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43235         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43236         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43237         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43238         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43239         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43240         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43241         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43242         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43243         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43244         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43245         * tests/test-isnanl.c: Likewise.
43246         * tests/test-snprintf-posix.h: Likewise.
43247         * tests/test-sprintf-posix.h: Likewise.
43248         * tests/test-vasnprintf-posix.c: Likewise.
43249         * tests/test-vasnprintf-posix2.c: Likewise.
43250         * tests/test-vasprintf-posix.c: Likewise.
43251
43252 2007-04-06  Bruno Haible  <bruno@clisp.org>
43253
43254         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43255         * lib/math_.h [__DECC]: Include the overridden include file through
43256         #include_next, outside the double-inclusion guard.
43257         * lib/stdio_.h [__DECC]: Likewise.
43258         * lib/stdlib_.h [__DECC]: Likewise.
43259         * lib/string_.h [__DECC]: Likewise.
43260         * lib/time_.h [__DECC]: Likewise.
43261         * lib/wchar_.h [__DECC]: Likewise.
43262         * lib/wctype_.h [__DECC]: Likewise.
43263         * lib/inttypes_.h [__DECC]: Likewise.
43264         Reported by Albert Chin <china@thewrittenword.com> in
43265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43266
43267 2007-04-04  Eric Blake  <ebb9@byu.net>
43268
43269         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43270         1.5.x.
43271
43272 2007-04-04  Bruno Haible  <bruno@clisp.org>
43273
43274         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43275         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43276
43277 2007-04-04  Bruno Haible  <bruno@clisp.org>
43278
43279         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43280         results for "%010a" of Infinity and NaN.
43281         * tests/test-vasprintf-posix.c (test_function): Likewise.
43282         * tests/test-snprintf-posix.h (test_function): Likewise.
43283         * tests/test-sprintf-posix.h (test_function): Likewise.
43284         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43285         * tests/test-printf-posix.h (test_function): Likewise.
43286         * tests/test-fprintf-posix.out: Update.
43287         Needed for FreeBSD 6.1.
43288
43289 2007-04-04  Bruno Haible  <bruno@clisp.org>
43290
43291         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43292         directly used by the gnulib modules nor by gnulib-tool.
43293
43294 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43295
43296         * DEPENDENCIES: Give overall description of version dependency
43297         desirability.  Use more-typical names for apps.
43298         Add shell, coreutils, diffutils, grep, tar, gzip.
43299
43300 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43301
43302         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43303
43304 2007-04-04  Karl Berry  <karl@gnu.org>
43305
43306         * MODULES.html.sh (func_module): missing '.
43307
43308 2007-04-03  Bruno Haible  <bruno@clisp.org>
43309
43310         * modules/argmatch-tests (Makefile.am): New variable
43311         test_argmatch_LDADD.
43312         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43313         * modules/array-list-tests (Makefile.am): New variable
43314         test_array_list_LDADD.
43315         * modules/array-oset-tests (Makefile.am): New variable
43316         test_array_oset_LDADD.
43317         * modules/avltree-list-tests (Makefile.am): New variable
43318         test_avltree_list_LDADD.
43319         * modules/avltree-oset-tests (Makefile.am): New variable
43320         test_avltree_oset_LDADD.
43321         * modules/avltreehash-list-tests (Makefile.am): New variable
43322         test_avltreehash_list_LDADD.
43323         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43324         test_canonicalize_lgpl_LDADD.
43325         * modules/carray-list-tests (Makefile.am): New variable
43326         test_carray_list_LDADD.
43327         * modules/dirname-tests (Makefile.am): New variable
43328         test_dirname_LDADD.
43329         * modules/linked-list-tests (Makefile.am): New variable
43330         test_linked_list_LDADD.
43331         * modules/linkedhash-list-tests (Makefile.am): New variable
43332         test_linkedhash_list_LDADD.
43333         * modules/rbtree-list-tests (Makefile.am): New variable
43334         test_rbtree_list_LDADD.
43335         * modules/rbtree-oset-tests (Makefile.am): New variable
43336         test_rbtree_oset_LDADD.
43337         * modules/rbtreehash-list-tests (Makefile.am): New variable
43338         test_rbtreehash_list_LDADD.
43339         * modules/xvasprintf-tests (Makefile.am): New variable
43340         test_xvasprintf_LDADD.
43341         Reported by Eric Blake.
43342
43343 2007-04-03  Eric Blake  <ebb9@byu.net>
43344
43345         * DEPENDENCIES: Weaken m4 requirements.
43346
43347 2007-04-03  Bruno Haible  <bruno@clisp.org>
43348
43349         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43350         * modules/isnanl-tests (configure.ac): Likewise.
43351
43352 2007-04-03  Ben Pfaff  <blp@gnu.org>
43353
43354         * modules/iconv_open: Add $(srcdir)/ to source directory
43355         references in Makefile fragments that call gperf, to fix VPATH
43356         builds.
43357
43358 2007-04-03  Bruno Haible  <bruno@clisp.org>
43359
43360         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43361         * lib/ldexpl.c: Undo last change.
43362
43363 2007-04-03  Bruno Haible  <bruno@clisp.org>
43364
43365         * modules/printf-frexpl (Depends-on): Undo last change.
43366         (Files): Add m4/ldexpl.m4.
43367
43368 2007-04-03  Bruno Haible  <bruno@clisp.org>
43369
43370         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43371         * modules/isnanl (Link): New section.
43372
43373         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43374         * modules/frexp (Link): New section.
43375
43376         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43377         * modules/frexpl (Link): New section.
43378
43379         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43380         * modules/ldexpl (Link): New section.
43381
43382 2007-04-03  Bruno Haible  <bruno@clisp.org>
43383
43384         * modules/TEMPLATE-EXTENDED: New file.
43385         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43386
43387 2007-04-03  Bruno Haible  <bruno@clisp.org>
43388
43389         * DEPENDENCIES: New file.
43390         Suggested by Simon Josefsson.
43391
43392 2007-04-03  Bruno Haible  <bruno@clisp.org>
43393
43394         * doc/gnulib.texi: Escape @.
43395
43396 2007-04-03  James Youngman  <jay@gnu.org>
43397         and Paul Eggert  <eggert@cs.ucla.edu>
43398
43399         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43400         birthtime on all systems that have birthtime, not just those which
43401         use st_birthtimensec rather than st_birthtim.  Putting zero in
43402         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43403         that the birth time is not available for files on an NFS mount.
43404
43405 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43406
43407         * modules/memxor: Move back from crypto/, suggested by Bruno.
43408         * modules/crypto/hmac-sha1: Fix memxor dependency.
43409
43410         * modules/crypto/gc: Moved from ../.
43411
43412 2007-04-02  Eric Blake  <ebb9@byu.net>
43413
43414         * lib/ldexpl.c (includes): Avoid libm.
43415
43416         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43417
43418 2007-04-02  Bruno Haible  <bruno@clisp.org>
43419
43420         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43421         on IRIX.
43422
43423 2007-04-02  Bruno Haible  <bruno@clisp.org>
43424
43425         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43426         x86 or x86_64 platforms running MacOS X.
43427         Reported by Ryan Schmidt <@ryandesign.com>.
43428
43429 2007-04-02  Bruno Haible  <bruno@clisp.org>
43430
43431         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43432         i386.
43433
43434 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43435
43436         * modules/crypto/arcfour: Moved from ../.
43437         * modules/crypto/arcfour-tests: Moved from ../.
43438         * modules/crypto/arctwo: Moved from ../.
43439         * modules/crypto/arctwo-tests: Moved from ../.
43440         * modules/crypto/des: Moved from ../.
43441         * modules/crypto/des-tests: Moved from ../.
43442         * modules/crypto/gc-arcfour: Moved from ../.
43443         * modules/crypto/gc-arcfour-tests: Moved from ../.
43444         * modules/crypto/gc-arctwo: Moved from ../.
43445         * modules/crypto/gc-arctwo-tests: Moved from ../.
43446         * modules/crypto/gc-des: Moved from ../.
43447         * modules/crypto/gc-des-tests: Moved from ../.
43448         * modules/crypto/gc-hmac-md5: Moved from ../.
43449         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43450         * modules/crypto/gc-hmac-sha1: Moved from ../.
43451         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43452         * modules/crypto/gc-md2: Moved from ../.
43453         * modules/crypto/gc-md2-tests: Moved from ../.
43454         * modules/crypto/gc-md4: Moved from ../.
43455         * modules/crypto/gc-md4-tests: Moved from ../.
43456         * modules/crypto/gc-md5: Moved from ../.
43457         * modules/crypto/gc-md5-tests: Moved from ../.
43458         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43459         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43460         * modules/crypto/gc-random: Moved from ../.
43461         * modules/crypto/gc-rijndael: Moved from ../.
43462         * modules/crypto/gc-rijndael-tests: Moved from ../.
43463         * modules/crypto/gc-sha1: Moved from ../.
43464         * modules/crypto/gc-sha1-tests: Moved from ../.
43465         * modules/crypto/gc-tests: Moved from ../.
43466         * modules/crypto/hmac-md5: Moved from ../.
43467         * modules/crypto/hmac-md5-tests: Moved from ../.
43468         * modules/crypto/hmac-sha1: Moved from ../.
43469         * modules/crypto/hmac-sha1-tests: Moved from ../.
43470         * modules/crypto/md2: Moved from ../.
43471         * modules/crypto/md2-tests: Moved from ../.
43472         * modules/crypto/md4: Moved from ../.
43473         * modules/crypto/md4-tests: Moved from ../.
43474         * modules/crypto/md5: Moved from ../.
43475         * modules/crypto/md5-tests: Moved from ../.
43476         * modules/crypto/memxor: Moved from ../.
43477         * modules/crypto/rijndael: Moved from ../.
43478         * modules/crypto/rijndael-tests: Moved from ../.
43479         * modules/crypto/sha1: Moved from ../.
43480
43481 2007-03-30  James Youngman  <jay@gnu.org>
43482
43483         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43484         rename() to change the ctime of a file (because ctime is unaffected
43485         by rename on jfs2 on AIX 5.1).
43486         (main): Start by doing cleanup, in case a previous run failed leaving
43487         test files behind.
43488
43489 2007-03-31  Bruno Haible  <bruno@clisp.org>
43490
43491         Support old proprietary implementations of iconv.
43492         * modules/iconv_open: New file.
43493         * lib/iconv_.h: New file.
43494         * m4/iconv_h.m4: New file.
43495         * lib/iconv_open.c: New file.
43496         * lib/iconv_open-aix.gperf: New file.
43497         * lib/iconv_open-hpux.gperf: New file.
43498         * lib/iconv_open-irix.gperf: New file.
43499         * lib/iconv_open-osf.gperf: New file.
43500         * m4/iconv_open.m4: New file.
43501         * modules/linebreak (Depends-on): Add iconv_open.
43502         * modules/striconv (Depends-on): Likewise.
43503         * modules/striconveh (Depends-on): Likewise.
43504         * modules/unicodeio (Depends-on): Likewise.
43505         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43506         (iconv_t)(-1).
43507         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43508         conversion if cd is (iconv_t)(-1).
43509         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43510         is not possible.
43511
43512 2007-03-31  Bruno Haible  <bruno@clisp.org>
43513
43514         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43515         work on Solaris either. Protect also second use of "autodetect_jp".
43516
43517 2007-03-31  Bruno Haible  <bruno@clisp.org>
43518
43519         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43520         the function is not present.
43521
43522 2007-03-31  Bruno Haible  <bruno@clisp.org>
43523
43524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43525         the function is not present.
43526
43527 2007-03-31  Bruno Haible  <bruno@clisp.org>
43528
43529         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43530         a bug in HP-UX iconv_open().
43531
43532 2007-03-31  Bruno Haible  <bruno@clisp.org>
43533
43534         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43535         (Mathematics <math.h>): New section, add fpieee.
43536         (Input/output <stdio.h>): Add fseterr.
43537         (Mathematics <math.h>): New section, add printf-frexp.
43538         (Container data structures): Add sublist.
43539         (Core language properties): Add fpucw, inline.
43540         (Functions for greatest-width integer types <inttypes.h>): Add
43541         imaxabs, imaxdiv, inttypes.
43542         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43543         isnanl-nolibm, ldexp.
43544         (Mathematics <math.h>): New section, add printf-frexpl.
43545         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43546         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43547         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43548         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43549         (Unicode string functions): Add unistr/u*-mbtoucr.
43550         (Java): Add javacomp-script, javaexec-script.
43551         (C#): Add csharpcomp-script, csharpexec-script.
43552         (Support for building libraries and executables): Add havelib,
43553         relocatable-*.
43554         (Support for maintaining and releasing projects): Renamed from
43555         'Support for maintaining and release projects'. Add announce-gen.
43556
43557 2007-03-31  Bruno Haible  <bruno@clisp.org>
43558
43559         * README: Talk primarily about git.
43560         (git and CVS): Renamed from CVS.
43561         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43562         gnulib is available through git.
43563         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43564
43565 2007-03-30  Bruno Haible  <bruno@clisp.org>
43566
43567         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43568         * lib/poll_.h: Likewise.
43569         * lib/stat_.h: Likewise.
43570         * lib/sys_time_.h: Likewise.
43571         * lib/sysexit_.h: Likewise.
43572         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43573         * lib/stdbool_.h: Likewise.
43574         * lib/byteswap_.h: Add double-inclusion guard.
43575
43576 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43577
43578         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43579
43580 2007-03-30  Karl Berry  <karl@gnu.org>
43581
43582         * config/srclist-update: double space after USA in the license
43583         substitution, since that's how it's usually (?) written.
43584
43585 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43586
43587         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43588         reported by Bruno Haible.
43589
43590 2007-03-29  Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43593         a bug in AIX iconv().
43594
43595 2007-03-29  Bruno Haible  <bruno@clisp.org>
43596
43597         * modules/ldexpl-tests: New file.
43598         * tests/test-ldexpl.c: New file.
43599
43600 2007-03-29  Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/ldexpl.c: Include fpucw.h.
43603         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43604         multiplication.
43605         * modules/ldexpl (Depends-on): Add fpucw.
43606
43607 2007-03-29  Bruno Haible  <bruno@clisp.org>
43608
43609         * modules/ldexpl: New file.
43610         * m4/ldexpl.m4: New file.
43611         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43612         set.
43613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43614         REPLACE_LDEXPL.
43615         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43616         REPLACE_LDEXPL.
43617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43618         gl_FUNC_LDEXPL_WORKS.
43619         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43620         * modules/mathl (Files): Remove lib/ldexpl.c.
43621         (Depends-on): Add ldexpl.
43622
43623 2007-03-29  Bruno Haible  <bruno@clisp.org>
43624
43625         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43626
43627 2007-03-29  Bruno Haible  <bruno@clisp.org>
43628
43629         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43630         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43631         and possibly also HP-UX.
43632         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43633         work on AIX, IRIX, HP-UX, OSF/1.
43634         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43635         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43636         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43637         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43638         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43639         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43640
43641 2007-03-29  Bruno Haible  <bruno@clisp.org>
43642
43643         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43644
43645 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43646
43647         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43648         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43649
43650 2007-03-29  Eric Blake  <ebb9@byu.net>
43651
43652         * lib/acl-internal.h: Remove redundant include.
43653         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43654         Cygwin when a file is locked.
43655
43656 2007-03-29  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43659         file.
43660         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43661
43662 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43663
43664         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43665         try to remove a parent directory if the child couldn't be removed
43666         (except for the first rmdir, which could fail because the child
43667         doesn't exist).  Problem reported by Jeff Blaine in
43668         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43669
43670 2007-03-28  Bruno Haible  <bruno@clisp.org>
43671
43672         * lib/striconveh.c (utf8conv_carefully): New function.
43673         (mem_cd_iconveh_internal): Invoke it.
43674
43675 2007-03-28  Bruno Haible  <bruno@clisp.org>
43676
43677         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43678         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43679         input.
43680         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43681         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43682         unistr/u8-uctomb.
43683
43684 2007-03-28  Bruno Haible  <bruno@clisp.org>
43685
43686         * modules/unistr/u8-mbtoucr: New file.
43687         * lib/unistr/u8-mbtoucr.c: New file.
43688         * modules/unistr/u16-mbtoucr: New file.
43689         * lib/unistr/u16-mbtoucr.c: New file.
43690         * modules/unistr/u16-mbtoucr: New file.
43691         * lib/unistr/u16-mbtoucr.c: New file.
43692         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43693
43694 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43695             Bruno Haible  <bruno@clisp.org>
43696
43697         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43698         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43699         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43700
43701         * m4/stdio_h.m4: Add stubs for vasprintf too.
43702
43703         * modules/stdio: Support vasprintf in sed command.
43704
43705         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43706         vasprintf.h.  Add stdio module indicator.
43707
43708         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43709         vasprintf.h.
43710
43711         * lib/vasprintf.h: File removed.
43712
43713         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43714         * lib/vasprintf.c: Ditto.
43715         * lib/xvasprintf.c: Ditto.
43716         * tests/test-vasprintf-posix.c: Ditto.
43717         * tests/test-vasprintf.c: Ditto.
43718
43719 2007-03-27  Bruno Haible  <bruno@clisp.org>
43720
43721         Make vasnprintf multithread-safe.
43722         * lib/vasnprintf.c (decimal_point_char): New function.
43723         (VASNPRINTF): Use it.
43724         Suggested by Simon Josefsson.
43725
43726 2007-03-27  Eric Blake  <ebb9@byu.net>
43727
43728         Support sub-second birthtime on cygwin.
43729         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43730         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43731         (get_stat_birthtime): Also work with st_birthtim.
43732
43733 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43736         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43737         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43738         (get_stat_birthtime_ns): Simplify compile-time tests.
43739         (get_stat_birthtime): Change the API to look like
43740         get_stat_mtime etc., except return a negative tv_nsec on error.
43741         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43742         Don't check for "spare" fields.
43743         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43744         or for struct stat.st_birthtime, as these tests aren't used.
43745         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43746
43747 2007-03-27  Bruno Haible  <bruno@clisp.org>
43748
43749         * lib/stat-time.h: Include <sys/stat.h>.
43750
43751 2007-03-27  James Youngman  <jay@gnu.org>
43752
43753         * lib/stat-time.h (get_stat_birthtime): New function for
43754           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43755         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43756           and its variants.
43757         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43758         * modules/stat-time-test: New file.
43759         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43760
43761 2007-03-26  Bruno Haible  <bruno@clisp.org>
43762
43763         Better support of signalling NaNs.
43764         * lib/atanl.c: Include isnanl.h.
43765         (atanl): Perform test for NaN at the beginning of the function and
43766         through a call to isnanl.
43767         * lib/cosl.c: Include isnanl.h.
43768         (cosl): Perform test for NaN at the beginning of the function and
43769         through a call to isnanl.
43770         * lib/ldexpl.c: Include isnanl.h.
43771         (ldexpl): Perform test for NaN through a call to isnanl.
43772         * lib/logl.c: Include isnanl.h.
43773         (logl): Perform test for NaN at the beginning of the function and
43774         through a call to isnanl.
43775         * lib/sinl.c: Include isnanl.h.
43776         (sinl): Perform test for NaN at the beginning of the function and
43777         through a call to isnanl.
43778         * lib/sqrtl.c: Include isnanl.h.
43779         (sqrtl): Perform test for NaN at the beginning of the function and
43780         through a call to isnanl.
43781         * lib/tanl.c: Include isnanl.h.
43782         (tanl): Perform test for NaN at the beginning of the function and
43783         through a call to isnanl.
43784         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43785         * modules/mathl (Depends-on): Add isnanl.
43786
43787 2007-03-26  Eric Blake  <ebb9@byu.net>
43788
43789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43790         regression in logic sense of previous patch.
43791
43792 2007-03-26  Bruno Haible  <bruno@clisp.org>
43793
43794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43795         unportable shell command "if ! ...".
43796         Reported by Ralf Wildenhues.
43797
43798 2007-03-25  Bruno Haible  <bruno@clisp.org>
43799
43800         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43801         <sysexits.h> file, and only add EX_CONFIG.
43802         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43803         absolute file name and whether it is sufficient. Substitute also
43804         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43805         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43806         ABSOLUTE_SYSEXITS_H into sysexits.h.
43807
43808 2007-03-25  Bruno Haible  <bruno@clisp.org>
43809
43810         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43811         hints is NULL.
43812
43813 2007-03-25  Bruno Haible  <bruno@clisp.org>
43814
43815         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43816         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43817
43818 2007-03-25  Bruno Haible  <bruno@clisp.org>
43819
43820         * lib/vasnprintf.c: Include langinfo.h.
43821         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43822         multithread-safe.
43823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43825         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43826         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43827         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43828         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43829         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43830         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43831         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43832         Reported by Simon Josefsson.
43833
43834 2007-03-25  Bruno Haible  <bruno@clisp.org>
43835
43836         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43837         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43838         * modules/vasnprintf (Depends-on): Add stdint.
43839
43840 2007-03-25  Bruno Haible  <bruno@clisp.org>
43841
43842         * modules/fpieee: New file.
43843         * m4/fpieee.m4: New file.
43844         * modules/isnan-nolibm (Depends-on): Add fpieee.
43845         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43846         * modules/isnanl (Depends-on): Add fpieee.
43847
43848 2007-03-25  Bruno Haible  <bruno@clisp.org>
43849
43850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43851
43852 2007-03-25  Bruno Haible  <bruno@clisp.org>
43853
43854         Avoid test failures on IRIX 6.5.
43855         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43856         (main): Use it.
43857         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43858         macros.
43859         (main): Use them.
43860
43861 2007-03-25  Bruno Haible  <bruno@clisp.org>
43862
43863         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
43864         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
43865         exists but doesn't work.
43866         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
43867         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
43868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
43869         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
43870
43871 2007-03-25  Bruno Haible  <bruno@clisp.org>
43872
43873         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
43874         returns inf. Needed on IRIX 6.5.
43875
43876 2007-03-25  Bruno Haible  <bruno@clisp.org>
43877
43878         * tests/test-frexpl.c: Include isnanl-nolibm.h.
43879         (main): Use isnanl instead of x != x idiom.
43880         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
43881
43882         * tests/test-frexp.c: Include isnan.h.
43883         (main): Use isnan instead of x != x idiom.
43884         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
43885
43886 2007-03-25  Bruno Haible  <bruno@clisp.org>
43887
43888         * tests/test-frexp.c (NaN): New function/macro.
43889         (main): Use it instead of 0.0 / 0.0.
43890         * tests/test-isnan.c (NaN): New function/macro.
43891         (main): Use it instead of 0.0 / 0.0.
43892         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
43893         (test_function): Use it instead of 0.0 / 0.0.
43894         * tests/test-vasprintf-posix.c (NaN): New function/macro.
43895         (test_function): Use it instead of 0.0 / 0.0.
43896         * tests/test-snprintf-posix.h (NaN): New function/macro.
43897         (test_function): Use it instead of 0.0 / 0.0.
43898         * tests/test-sprintf-posix.h (NaN): New function/macro.
43899         (test_function): Use it instead of 0.0 / 0.0.
43900         * tests/test-fprintf-posix.h (NaN): New function/macro.
43901         (test_function): Use it instead of 0.0 / 0.0.
43902         * tests/test-printf-posix.h (NaN): New function/macro.
43903         (test_function): Use it instead of 0.0 / 0.0.
43904
43905         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
43906
43907 2007-03-25  Bruno Haible  <bruno@clisp.org>
43908
43909         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
43910
43911 2007-03-25  Bruno Haible  <bruno@clisp.org>
43912
43913         * lib/regexec.c (merge_state_with_log): Make static.
43914
43915 2007-03-25  Bruno Haible  <bruno@clisp.org>
43916
43917         * lib/trigl.c (kernel_rem_pio2): Make static.
43918
43919 2007-03-25  Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/sincosl.c (sincosl_table): Make static.
43922
43923 2007-03-25  Bruno Haible  <bruno@clisp.org>
43924
43925         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
43926         if the compiler does not support C99.
43927
43928 2007-03-25  Bruno Haible  <bruno@clisp.org>
43929
43930         * modules/time (Makefile.am): Ensure all rule action lines start with a
43931         tab.
43932
43933 2007-03-24  Bruno Haible  <bruno@clisp.org>
43934
43935         * modules/tsearch-tests: New file.
43936         * tests/test-tsearch.sh: New file.
43937         * tests/test-tsearch.c: New file, mostly copied from glibc.
43938
43939         * modules/search-tests: New file.
43940         * tests/test-search.c: New file.
43941
43942         * modules/search: New file.
43943         * lib/search_.h: New file, incorporating lib/tsearch.h.
43944         * m4/search_h.m4: New file.
43945         * lib/tsearch.h: Remove file.
43946         * lib/tsearch.c: Include search.h instead of tsearch.h.
43947         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
43948         HAVE_TSEARCH.
43949         * modules/tsearch (Files): Remove lib/tsearch.h.
43950         (Depends-on): Add search.
43951         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
43952         (Include): Change tsearch.h into search.h.
43953
43954 2007-03-24  Bruno Haible  <bruno@clisp.org>
43955
43956         * modules/fpucw: New file.
43957         * lib/fpucw.h: New file.
43958         * lib/frexp.c: Include fpucw.h.
43959         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43960         (FUNC): Use them.
43961         * lib/printf-frexp.c: Include fpucw.h.
43962         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
43963         (FUNC): Use them.
43964         * lib/vasnprintf.c: Include fpucw.h.
43965         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
43966         'long double' calculations.
43967         * tests/test-frexpl.c: Include fpucw.h.
43968         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43969         * tests/test-printf-frexpl.c: Include fpucw.h.
43970         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
43971         * modules/frexpl (Depends-on): Add fpucw.
43972         * modules/printf-frexpl (Depends-on): Likewise.
43973         * modules/fprintf-posix (Depends-on): Likewise.
43974         * modules/snprintf-posix (Depends-on): Likewise.
43975         * modules/sprintf-posix (Depends-on): Likewise.
43976         * modules/vasnprintf-posix (Depends-on): Likewise.
43977         * modules/vasprintf-posix (Depends-on): Likewise.
43978         * modules/vfprintf-posix (Depends-on): Likewise.
43979         * modules/vsnprintf-posix (Depends-on): Likewise.
43980         * modules/vsprintf-posix (Depends-on): Likewise.
43981         * modules/frexpl-tests (Depends-on): Likewise.
43982         * modules/printf-frexpl-tests (Depends-on): Likewise.
43983
43984 2007-03-24  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/float+.h: New file.
43987         * lib/isnan.c: Include float+.h.
43988         (SIZE): New macro.
43989         (FUNC): Compare only SIZE bytes of the value.
43990         * lib/vasnprintf.c: Include float+.h.
43991         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
43992         SIZEOF_LDBL or SIZEOF_DBL bytes.
43993         * modules/isnan-nolibm (Files): Add lib/float+.h.
43994         * modules/isnanl-nolibm (Files): Add lib/float+.h.
43995         * modules/isnanl (Files): Add lib/float+.h.
43996         * modules/vasnprintf (Files): Add lib/float+.h.
43997
43998 2007-03-24  Bruno Haible  <bruno@clisp.org>
43999
44000         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44001         include isnanl-nolibm.h.
44002
44003 2007-03-24  Bruno Haible  <bruno@clisp.org>
44004
44005         * tests/test-read-file.c (main): Don't produce spurious output for
44006         expected situations. Make the test fail if it encountered unexpected
44007         results.
44008
44009 2007-03-24  Bruno Haible  <bruno@clisp.org>
44010
44011         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44012         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44013
44014 2007-03-24  Bruno Haible  <bruno@clisp.org>
44015
44016         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44017
44018 2007-03-24  Bruno Haible  <bruno@clisp.org>
44019
44020         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44021         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44022
44023         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44024         * modules/utf8-ucs4: Turn into a symbolic link to module
44025         unistr/u8-mbtouc.
44026
44027         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44028         utf8-ucs4-unsafe.
44029         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44030         unistr/u8-mbtouc-unsafe.
44031
44032         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44033         * modules/utf16-ucs4: Turn into a symbolic link to module
44034         unistr/u16-mbtouc.
44035
44036         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44037         utf16-ucs4-unsafe.
44038         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44039         unistr/u16-mbtouc-unsafe.
44040
44041         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44042         * modules/ucs4-utf8: Turn into a symbolic link to module
44043         unistr/u8-ubtomb.
44044
44045         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44046         * modules/ucs4-utf16: Turn into a symbolic link to module
44047         unistr/u16-ubtomb.
44048
44049 2007-03-24  Bruno Haible  <bruno@clisp.org>
44050
44051         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44052         Enable the function only if HAVE_INLINE.
44053         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44054         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44055         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44056         Enable the function only if HAVE_INLINE.
44057         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44058         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44059         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44060         Enable the function only if HAVE_INLINE.
44061         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44062         Enable the function only if HAVE_INLINE.
44063         * modules/utf8-ucs4: Update.
44064         * modules/utf8-ucs4-unsafe: Update.
44065         * modules/utf16-ucs4: Update.
44066         * modules/utf16-ucs4-unsafe: Update.
44067         * modules/ucs4-utf8: Update.
44068         * modules/ucs4-utf16: Update.
44069
44070 2007-03-24  Bruno Haible  <bruno@clisp.org>
44071
44072         * lib/utf8-ucs4.h: Remove file.
44073         * lib/utf8-ucs4-unsafe.h: Remove file.
44074         * lib/utf16-ucs4.h: Remove file.
44075         * lib/utf16-ucs4-unsafe.h: Remove file.
44076         * lib/ucs4-utf8.h: Remove file.
44077         * lib/ucs4-utf16.h: Remove file.
44078         * lib/unistr.h: Include their previous contents.
44079         * m4/utf-ucs4.m4: Remove file.
44080         * m4/ucs4-utf.m4: Remove file.
44081         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44082         (Depends-on): Add unistr/base.
44083         (configure.ac): Remove gl_UTF_UCS4.
44084         (Makefile.am): Update.
44085         (Include): Change to unistr.h.
44086         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44087         (Depends-on): Add unistr/base.
44088         (configure.ac): Remove gl_UTF_UCS4.
44089         (Makefile.am): Update.
44090         (Include): Change to unistr.h.
44091         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44092         (Depends-on): Add unistr/base.
44093         (configure.ac): Remove gl_UTF_UCS4.
44094         (Makefile.am): Update.
44095         (Include): Change to unistr.h.
44096         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44097         (Depends-on): Add unistr/base.
44098         (configure.ac): Remove gl_UTF_UCS4.
44099         (Makefile.am): Update.
44100         (Include): Change to unistr.h.
44101         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44102         (Depends-on): Add unistr/base.
44103         (configure.ac): Remove gl_UCS4_UTF.
44104         (Makefile.am): Update.
44105         (Include): Change to unistr.h.
44106         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44107         (Depends-on): Add unistr/base.
44108         (configure.ac): Remove gl_UCS4_UTF.
44109         (Makefile.am): Update.
44110         (Include): Change to unistr.h.
44111         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44112         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44113         utf8-ucs4-unsafe.h.
44114         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44115         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44116         utf16-ucs4-unsafe.h.
44117         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44118         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44119         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44120         * lib/unistr/u8-strchr.c: Likewise.
44121         * lib/unistr/u8-strrchr.c: Likewise.
44122         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44123         * lib/unistr/u16-strchr.c: Likewise.
44124         * lib/unistr/u16-strrchr.c: Likewise.
44125         * lib/striconveh.c: Update.
44126         * lib/linebreak.c: Update.
44127
44128 2007-03-24  Bruno Haible  <bruno@clisp.org>
44129
44130         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44131         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44132
44133 2007-03-22  Bruno Haible  <bruno@clisp.org>
44134
44135         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44136
44137 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44138
44139         * MODULES.html.sh (File system functions): New module write-any-file.
44140         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44141         * m4/write-any-file.m4: New files.
44142
44143 2007-03-23  Eric Blake  <ebb9@byu.net>
44144
44145         * gnulib-tool: Rearrange space-tab sequences, since some editors
44146         like to eat them.
44147
44148 2007-03-23  Eric Blake  <ebb9@byu.net>
44149
44150         * lib/version-etc.c (version_etc_va): Update license wording to
44151         be more concise.  Recommended by Richard Stallman.
44152
44153 2007-03-22  Bruno Haible  <bruno@clisp.org>
44154
44155         * lib/poll.c (MSG_PEEK): New fallback definition.
44156
44157 2007-03-22  Bruno Haible  <bruno@clisp.org>
44158
44159         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44160         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44161         (main): Update.
44162         Fixes a compilation error on BeOS.
44163
44164 2007-03-22  Bruno Haible  <bruno@clisp.org>
44165
44166         * modules/frexpl-tests: New file.
44167         * tests/test-frexpl.c: New file.
44168
44169         * modules/frexpl: New file.
44170         * m4/frexpl.m4: New file.
44171         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44172         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44174         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44175         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44176         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44177
44178 2007-03-22  Bruno Haible  <bruno@clisp.org>
44179
44180         * lib/frexpl.c: Share code with lib/frexp.c.
44181         * modules/mathl (Files): Add lib/frexp.c.
44182         (Depends-on): Add isnanl-nolibm.
44183
44184 2007-03-22  Bruno Haible  <bruno@clisp.org>
44185
44186         * modules/printf-frexp (Files): Add m4/frexp.m4.
44187         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44188         only if the found frexp function actually works.
44189
44190 2007-03-22  Bruno Haible  <bruno@clisp.org>
44191
44192         * lib/frexp.c: Remove older implementation that uses divisions.
44193
44194 2007-03-21  Bruno Haible  <bruno@clisp.org>
44195
44196         * modules/frexp-tests: New file.
44197         * tests/test-frexp.c: New file.
44198
44199         * modules/frexp: New file.
44200         * lib/frexp.c: New file.
44201         * m4/frexp.m4: New file.
44202         * lib/math_.h (frexp): New declaration.
44203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44204         REPLACE_FREXP.
44205         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44206
44207 2007-03-21  Bruno Haible  <bruno@clisp.org>
44208
44209         * modules/isnanl-tests: New file.
44210         * tests/test-isnanl.c: New file.
44211
44212         * modules/isnanl: New file.
44213         * lib/isnanl.h: New file.
44214         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44215         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44216         gl_FUNC_ISNANL_WORKS.
44217         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44218         New macros.
44219
44220 2007-03-21  Bruno Haible  <bruno@clisp.org>
44221
44222         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44223         lib/isnanl.h.
44224         (Include): Update.
44225         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44226         * lib/vasnprintf.c: Update.
44227         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44228         tests/test-isnanl.h, remove tests/test-isnanl.c.
44229         (Makefile.am): Update.
44230         * tests/test-isnanl-nolibm.c: New file.
44231         * tests/test-isnanl.h: New file.
44232         * tests/test-isnanl.c: Remove file.
44233
44234 2007-03-21  Jim Meyering  <jim@meyering.net>
44235
44236         When trying to open ".", treat ESTALE like EACCES.
44237         * lib/savewd.c (savewd_save): Resort to forking not just upon
44238         failure with EACCES, but also when errno is ESTALE.
44239
44240 2007-03-20  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44243         Needed on AIX 5.1. Reported by Matthew Woehlke.
44244
44245 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44246
44247         Suggestions by Bruno Haible:
44248         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44249         our own.
44250         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44251         * modules/acl (Depends-on): Add gettext.
44252
44253 2007-03-19  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/iconvme: Remove file.
44256         * lib/iconvme.h: Remove file.
44257         * lib/iconvme.c: Remove file.
44258         * m4/iconvme.m4: Remove file.
44259
44260 2007-03-19  Bruno Haible  <bruno@clisp.org>
44261
44262         * doc/relocatable-maint.texi: Break long shell script line.
44263         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44264
44265 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44266
44267         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44268         handle file_has_acl.
44269         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44270         * lib/acl.c: Move header inclusions and related macro defns into
44271         lib/acl-internal.h.
44272         (S_ISLNK): Remove defn, since that's now done for us.
44273         (file_has_acl): Move to lib/file-has-acl.c.
44274         Call acl_trivial if available.  This is the crucial part of the fix.
44275         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44276         shared within the library.  Rewrite a bit, partly to make it compatible
44277         with the GNU coding style.
44278         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44279         Remove unnecessary double-quotes.
44280         Don't test for acl_to_text; the build will catch that.
44281         Replace acl_entries if it doesn't exist and it is needed.
44282         Check for -lsec and acl_trivial (as used on Solaris 10).
44283         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44284         lib/file-has-acl.c.
44285         (Depends-on): Add sys_stat, for S_ISLNK.
44286
44287 2007-03-19  Ben Pfaff  <blp@gnu.org>
44288
44289         * doc/gnulib.texi: Fix typos.
44290         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44291
44292 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44293
44294         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44295         If size is zero here, buf must be zero.
44296
44297 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44298
44299         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44300         <bruno@clisp.org>.
44301
44302 2007-03-18  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44305         Suggested by Eric Blake.
44306
44307 2007-03-18  Ben Pfaff  <blp@gnu.org>
44308
44309         * doc/relocatable.texi: Recommend using as prefix a directory
44310         that does not exist and will never be created.  Based on
44311         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44312         and others.
44313
44314 2007-03-17  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/fchownat.c: Include lchown.h.
44317
44318 2007-03-17  Bruno Haible  <bruno@clisp.org>
44319
44320         Fix endless loop when the given allocated size was > INT_MAX.
44321         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44322         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44323         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44324         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44325         * lib/sprintf.c (sprintf): Likewise.
44326
44327 2007-03-17  Bruno Haible  <bruno@clisp.org>
44328
44329         * tests/test-argp-2.sh (func_compare): Output a context diff.
44330
44331 2007-03-17  Bruno Haible  <bruno@clisp.org>
44332
44333         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44334         locale's decimal-point character.
44335
44336 2007-03-17  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44339         before comparing it. Needed because on some platforms (e.g. x86) a
44340         'long double' occupies less bytes than sizeof (long double).
44341
44342 2007-03-17  Bruno Haible  <bruno@clisp.org>
44343
44344         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44345         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44346         * tests/test-getaddrinfo.c (simple): Likewise.
44347         * tests/test-read-file.c (main): Likewise.
44348
44349 2007-03-17  Bruno Haible  <bruno@clisp.org>
44350
44351         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44352
44353 2007-03-17  Bruno Haible  <bruno@clisp.org>
44354
44355         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44356         unused variable.
44357
44358 2007-03-17  Bruno Haible  <bruno@clisp.org>
44359
44360         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44361         * tests/test-c-strncasecmp.c: Likewise.
44362
44363 2007-03-17  Bruno Haible  <bruno@clisp.org>
44364
44365         * modules/stdlib (Depends-on): Add unistd.
44366         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44367         Needed for MacOS X 10.3.
44368
44369 2007-03-17  Bruno Haible  <bruno@clisp.org>
44370
44371         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44372
44373 2007-03-17  Bruno Haible  <bruno@clisp.org>
44374
44375         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44376
44377 2007-03-17  Bruno Haible  <bruno@clisp.org>
44378
44379         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44380         to reflect files copied from gnulib (with or without modifications).
44381         Suggested by Jim Meyering.
44382
44383 2007-03-17  Eric Blake  <ebb9@byu.net>
44384
44385         * NEWS: Document stdlib change from 2007-02-18.
44386
44387 2007-03-17  Jim Meyering  <jim@meyering.net>
44388
44389         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44390         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44391         someone uses a name containing shell meta-characters.
44392         Reported by Alfred M. Szmidt.
44393
44394         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44395
44396 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44397
44398         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44399         and copy gettext configuration files only if configure.ac contains
44400         a use of AM_GNU_GETTEXT_VERSION.
44401
44402 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44403
44404         * build-aux/bootstrap (gnulib_name): New variable.
44405         (gnulib_tool_options): Use it.
44406
44407 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44408
44409         * tests/test-des.c: Use new namespace.
44410
44411 2007-03-15  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44414         Reported by James Youngman <jay@gnu.org>.
44415
44416 2007-03-15  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44419         declared prototype. Needed with cc on OSF/1 5.1.
44420
44421 2007-03-15  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44424         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44425         (struct gl_list_implementation): Add dispose_fn argument to the
44426         'create_empty', 'create' methods.
44427         (struct gl_list_impl_base): Add field 'dispose_fn'.
44428         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44429         argument.
44430         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44431         dispose_fn argument.
44432         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44433         dispose_fn on the dropped values.
44434         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44435         dispose_fn argument.
44436         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44437         dropped values.
44438         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44439         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44440         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44441         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44442         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44443         argument.
44444         (gl_tree_list_free): Call dispose_fn on the dropped values.
44445         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44446         the dropped values.
44447         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44448         Add dispose_fn argument.
44449         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44450         Call dispose_fn on the dropped values.
44451         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44452         Add dispose_fn argument.
44453         (gl_sublist_create): Initialize the 'dispose_fn' field.
44454         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44455         * tests/test-array_list.c (main): Update.
44456         * tests/test-carray_list.c (main): Update.
44457         * tests/test-avltree_list.c (main): Update.
44458         * tests/test-rbtree_list.c (main): Update.
44459         * tests/test-avltreehash_list.c (main): Update.
44460         * tests/test-rbtreehash_list.c (main): Update.
44461         * tests/test-linked_list.c (main): Update.
44462         * tests/test-linkedhash_list.c (main): Update.
44463         * tests/test-array_oset.c (main): Update.
44464
44465 2007-03-15  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44468         (gl_oset_create_empty): Add dispose_fn argument.
44469         (struct gl_oset_implementation): Add dispose_fn argument to
44470         'create_empty' method.
44471         (struct gl_oset_impl_base): Add dispose_fn field.
44472         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44473         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44474         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44475         values.
44476         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44477         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44478         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44479         dropped value.
44480         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44481         dropped value.
44482         * tests/test-array_oset.c (main): Update.
44483         * tests/test-avltree_oset.c (main): Update.
44484         * tests/test-rbtree_oset.c (main): Update.
44485         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44486
44487 2007-03-13  Bruno Haible  <bruno@clisp.org>
44488
44489         * tests/test-stdbool.c (i): Update after last patch.
44490
44491 2007-03-12  Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44494         the iswprint macro. Needed on Solaris 2.5.1.
44495
44496 2007-03-12  Bruno Haible  <bruno@clisp.org>
44497
44498         * tests/test-printf-frexp.c (main): Declare x as volatile.
44499
44500 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44501
44502         * doc/gnulib.texi (Build robot for gnulib): New section.
44503
44504 2007-03-12  Jim Meyering  <jim@meyering.net>
44505
44506         * build-aux/bootstrap: New file.
44507         * build-aux/bootstrap.conf: New file, from coreutils.
44508
44509 2007-03-11  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44512
44513 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44514
44515         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44516         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44517         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44518
44519 2007-03-11  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44522         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44523
44524 2007-03-11  Bruno Haible  <bruno@clisp.org>
44525
44526         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44527         formula. Needed for SunPRO C 5.0.
44528
44529 2007-03-11  Bruno Haible  <bruno@clisp.org>
44530
44531         * modules/long-options (Depends-on): Add getopt.
44532
44533 2007-03-11  Bruno Haible  <bruno@clisp.org>
44534
44535         * modules/modechange (Depends-on): Add stdbool.
44536
44537 2007-03-11  Bruno Haible  <bruno@clisp.org>
44538
44539         * modules/i-ring (Depends-on): Add stdbool.
44540
44541 2007-03-11  Bruno Haible  <bruno@clisp.org>
44542
44543         * modules/gc-des (Depends-on): Add stdbool.
44544
44545 2007-03-11  Bruno Haible  <bruno@clisp.org>
44546
44547         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44548
44549 2007-03-11  Bruno Haible  <bruno@clisp.org>
44550
44551         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44552
44553 2007-03-11  Bruno Haible  <bruno@clisp.org>
44554
44555         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44556
44557 2007-03-11  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/vasnprintf.c (sprintf): Undefine.
44560
44561 2007-03-11  Bruno Haible  <bruno@clisp.org>
44562
44563         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44564         initializers in SunPRO C and Compaq C compilers.
44565
44566 2007-03-11  Bruno Haible  <bruno@clisp.org>
44567
44568         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44569         decrementing code ANSI C compliant.
44570
44571 2007-03-11  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44574         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44575
44576 2007-03-11  Bruno Haible  <bruno@clisp.org>
44577
44578         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44579         <stdbool.h> substitute doesn't pass.
44580
44581 2007-03-11  Bruno Haible  <bruno@clisp.org>
44582
44583         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44584
44585 2007-03-11  Bruno Haible  <bruno@clisp.org>
44586
44587         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44588         script, for submission to autobuild.josefsson.org.
44589
44590 2007-03-10  Bruno Haible  <bruno@clisp.org>
44591
44592         * modules/canonicalize-lgpl-tests: New file.
44593         * tests/test-canonicalize-lgpl.sh: New file.
44594         * tests/test-canonicalize-lgpl.c: New file.
44595
44596         * modules/c-strcase-tests: New file.
44597         * tests/test-c-strcase.sh: New file.
44598         * tests/test-c-strcasecmp.c: New file.
44599         * tests/test-c-strncasecmp.c: New file.
44600
44601         * modules/atexit-tests: New file.
44602         * tests/test-atexit.sh: New file.
44603         * tests/test-atexit.c: New file.
44604
44605 2007-03-10  Bruno Haible  <bruno@clisp.org>
44606
44607         * tests/test-binary-io.sh: Use temporary filenames that are not so
44608         likely to clash with those of other tests (in a parallel make).
44609         * tests/test-binary-io.c: Likewise.
44610
44611 2007-03-10  Bruno Haible  <bruno@clisp.org>
44612
44613         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44614         fallback; use #error instead.
44615         Suggested by Simon Josefsson.
44616
44617 2007-03-10  Bruno Haible  <bruno@clisp.org>
44618
44619         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44620         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44621         first and the last.
44622
44623 2007-03-10  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44626
44627 2007-03-10  Bruno Haible  <bruno@clisp.org>
44628
44629         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44630         "make distcheck".
44631         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44632         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44633         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44634
44635 2007-03-10  Bruno Haible  <bruno@clisp.org>
44636
44637         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44638         variable.
44639         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44640         variable.
44641
44642 2007-03-09  Eric Blake  <ebb9@byu.net>
44643         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44644
44645         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44646         types are not being provided by gnulib.
44647         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44648         types are supported.
44649
44650 2007-03-10  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/stdio_.h (__attribute__): New macro.
44653         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44654         vsprintf): Specify __attribute__ __format__ for GCC.
44655         Suggested by Eric Blake.
44656
44657 2007-03-09  Bruno Haible  <bruno@clisp.org>
44658
44659         * modules/printf-posix-tests: New file.
44660         * tests/test-printf-posix.sh: New file.
44661         * tests/test-printf-posix.c: New file.
44662
44663         * modules/printf-posix: New file.
44664         * lib/printf.c: New file.
44665         * m4/printf-posix-rpl.m4: New file.
44666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44667         REPLACE_PRINTF.
44668         * lib/stdio_.h (printf): New declaration.
44669         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44670         ____strfmon____): New macros.
44671         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44672         REPLACE_PRINTF.
44673
44674 2007-03-09  Bruno Haible  <bruno@clisp.org>
44675
44676         * tests/test-vasnprintf-posix2.sh: New file.
44677         * tests/test-vasnprintf-posix2.c: New file.
44678         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44679         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44680         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44681
44682         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44683         a locale dependent decimal point, rather than always '.'.
44684
44685 2007-03-09  Eric Blake  <ebb9@byu.net>
44686
44687         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44688         spite of platforms like Tandem/NSK that define it to -1.
44689
44690 2007-03-08  Bruno Haible  <bruno@clisp.org>
44691
44692         * modules/vprintf-posix-tests: New file.
44693         * tests/test-vprintf-posix.sh: New file.
44694         * tests/test-vprintf-posix.c: New file.
44695         * tests/test-printf-posix.h: New file.
44696
44697         * modules/vprintf-posix: New file.
44698         * lib/vprintf.c: New file.
44699         * m4/vprintf-posix.m4: New file.
44700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44701         REPLACE_VPRINTF.
44702         * lib/stdio_.h (vprintf): New declaration.
44703         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44704         REPLACE_VPRINTF.
44705
44706 2007-03-08  Bruno Haible  <bruno@clisp.org>
44707
44708         * modules/fprintf-posix-tests: New file.
44709         * tests/test-fprintf-posix.sh: New file.
44710         * tests/test-fprintf-posix.c: New file.
44711
44712         * modules/fprintf-posix: New file.
44713         * lib/fprintf.c: New file.
44714         * m4/fprintf-posix.m4: New file.
44715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44716         REPLACE_FPRINTF.
44717         * lib/stdio_.h (fprintf): New declaration.
44718         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44719         REPLACE_FPRINTF.
44720
44721 2007-03-08  Bruno Haible  <bruno@clisp.org>
44722
44723         * modules/vfprintf-posix-tests: New file.
44724         * tests/test-vfprintf-posix.sh: New file.
44725         * tests/test-vfprintf-posix.c: New file.
44726         * tests/test-fprintf-posix.h: New file.
44727         * tests/test-fprintf-posix.out: New file.
44728
44729         * modules/vfprintf-posix: New file.
44730         * lib/vfprintf.c: New file.
44731         * m4/vfprintf-posix.m4: New file.
44732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44733         REPLACE_VFPRINTF.
44734         * lib/stdio_.h (vfprintf): New declaration.
44735         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44736         REPLACE_VFPRINTF.
44737
44738 2007-03-08  Bruno Haible  <bruno@clisp.org>
44739
44740         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44741
44742 2007-03-08  Bruno Haible  <bruno@clisp.org>
44743
44744         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44745         instead of 'expr' invocations.
44746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44749         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44750         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44751         Suggested by Paul Eggert.
44752
44753 2007-03-08  Bruno Haible  <bruno@clisp.org>
44754
44755         * modules/fseterr-tests: New file.
44756         * tests/test-fseterr.c: New file.
44757
44758         * modules/fseterr: New file.
44759         * lib/fseterr.h: New file.
44760         * lib/fseterr.c: New file.
44761
44762 2007-03-08  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44765         * lib/getopt_.h: Likewise.
44766         * lib/mbswidth.h: Likewise.
44767         * lib/setenv.h: Likewise.
44768         * lib/vasnprintf.h: Likewise.
44769         * lib/vasprintf.h: Likewise.
44770         * lib/verror.h: Likewise.
44771         * lib/xsetenv.h: Likewise.
44772         * lib/xvasprintf.h: Likewise.
44773
44774 2007-03-08  Jim Meyering  <jim@meyering.net>
44775
44776         * users.txt: Add parted.
44777
44778         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44779
44780 2007-03-07  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/printf.m4: Make the shell script snippets copy&pastable.
44783
44784 2007-03-02  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/netinet_in_.h: New file.
44787         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44788         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44789         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44790         (Depends-on): Add absolute-header.
44791         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44792         into netinet/in.h.
44793
44794 2007-03-03  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/sys_select_.h: New file.
44797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44798         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44799         * modules/sys_select (Files): Add lib/sys_select_.h.
44800         (Depends-on): Add absolute-header.
44801         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44802         into sys/select.h.
44803
44804 2007-03-02  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44807         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44808         values.
44809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44810         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44811         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44812         * modules/sys_socket (Depends-on): Add absolute-header.
44813         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44814         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44815         (Include): Remove requirement of inclusion of <sys/types.h>.
44816
44817 2007-03-02  Bruno Haible  <bruno@clisp.org>
44818
44819         * lib/byteswap_.h (bswap_32): Fix formula.
44820
44821 2007-03-06  Bruno Haible  <bruno@clisp.org>
44822
44823         * modules/sprintf-posix-tests: New file.
44824         * tests/test-sprintf-posix.c: New file.
44825
44826         * modules/sprintf-posix: New file.
44827         * lib/sprintf.c: New file.
44828         * m4/sprintf-posix.m4: New file.
44829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44830         REPLACE_SPRINTF.
44831         * lib/stdio_.h (sprintf): New declaration.
44832         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44833         REPLACE_SPRINTF.
44834
44835 2007-03-06  Bruno Haible  <bruno@clisp.org>
44836
44837         * modules/vsprintf-posix-tests: New file.
44838         * tests/test-vsprintf-posix.c: New file.
44839         * tests/test-sprintf-posix.h: New file.
44840
44841         * modules/vsprintf-posix: New file.
44842         * lib/vsprintf.c: New file.
44843         * m4/vsprintf-posix.m4: New file.
44844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44845         REPLACE_VSPRINTF.
44846         * lib/stdio_.h (vsprintf): New declaration.
44847         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44848         REPLACE_VSPRINTF.
44849
44850 2007-03-06  Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/vsnprintf (Depend-on): Remove minmax.
44853
44854 2007-03-06  Bruno Haible  <bruno@clisp.org>
44855
44856         * modules/snprintf-posix-tests: New file.
44857         * tests/test-snprintf-posix.c: New file.
44858
44859         * modules/snprintf-posix: New file.
44860         * m4/snprintf-posix.m4: New file.
44861         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
44862         gl_FUNC_SNPRINTF.
44863         (gl_FUNC_SNPRINTF): Invoke it.
44864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
44865         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
44866         is set.
44867         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
44868
44869 2007-03-06  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/vsnprintf-posix-tests: New file.
44872         * tests/test-vsnprintf-posix.c: New file.
44873         * tests/test-snprintf-posix.h: New file.
44874
44875         * modules/vsnprintf-posix: New file.
44876         * m4/vsnprintf-posix.m4: New file.
44877         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
44878         gl_FUNC_VSNPRINTF.
44879         (gl_FUNC_VSNPRINTF): Invoke it.
44880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
44881         * lib/stdio_.h (vsnprintf): Define as a replacement if
44882         REPLACE_VSNPRINTF is set.
44883         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
44884
44885 2007-03-06  Bruno Haible  <bruno@clisp.org>
44886
44887         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
44888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
44889
44890 2007-03-06  Bruno Haible  <bruno@clisp.org>
44891
44892         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
44893         (asinl): Declare also if HAVE_DECL_ASINL is set.
44894         (atanl): Declare also if HAVE_DECL_ATANL is set.
44895         (ceill): Declare also if HAVE_DECL_CEILL is set.
44896         (cosl): Declare also if HAVE_DECL_COSL is set.
44897         (expl): Declare also if HAVE_DECL_EXPL is set.
44898         (floorl): Declare also if HAVE_DECL_FLOORL is set.
44899         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
44900         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
44901         (logl): Declare also if HAVE_DECL_LOGL is set.
44902         (sinl): Declare also if HAVE_DECL_SINL is set.
44903         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
44904         (tanl): Declare also if HAVE_DECL_TANL is set.
44905         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
44906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
44907         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
44908         declaration of frexpl, ldexpl.
44909         * modules/printf-frexpl (Depends-on): Add math.
44910         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
44911
44912 2007-03-05  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
44915         frexpl and ldexpl are declared.
44916         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
44917
44918 2007-03-05  Bruno Haible  <bruno@clisp.org>
44919
44920         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
44921         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
44922
44923 2007-03-05  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/stdio_.h: Include <stddef.h>.
44926
44927 2007-03-05  Bruno Haible  <bruno@clisp.org>
44928
44929         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
44930
44931 2007-03-05  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
44934         NetBSD 4, from Ralf Wildenhues.
44935
44936 2007-03-04  Bruno Haible  <bruno@clisp.org>
44937
44938         * lib/vasprintf.h: Update #if logic for the case when the functions
44939         exist but are overridden.
44940
44941 2007-03-04  Bruno Haible  <bruno@clisp.org>
44942
44943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
44944         implementations: glibc-2.4 and MacOS X 10.3.
44945         * tests/test-vasnprintf-posix.c (test_function): Test also the case
44946         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
44947         * tests/test-vasprintf-posix.c (test_function): Likewise.
44948
44949 2007-03-04  Bruno Haible  <bruno@clisp.org>
44950
44951         * modules/vasprintf-posix-tests: New file.
44952         * tests/test-vasprintf-posix.c: New file.
44953
44954         * modules/vasprintf-posix: New file.
44955         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
44956         defined.
44957         * m4/vasprintf-posix.m4: New file.
44958         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
44959         gl_FUNC_VASPRINTF.
44960         (gl_FUNC_VASPRINTF): Invoke it.
44961         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
44962         here.
44963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
44964
44965 2007-03-04  Bruno Haible  <bruno@clisp.org>
44966
44967         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
44968         REPLACE_GETTIMEOFDAY.
44969         * modules/sys_time (Makefile.am): Likewise.
44970         * m4/sys_time_h.m4: Likewise.
44971         * m4/gettimeofday.m4: Likewise.
44972
44973 2007-03-04  Bruno Haible  <bruno@clisp.org>
44974
44975         * modules/vasnprintf-posix-tests: New file.
44976         * tests/test-vasnprintf-posix.c: New file.
44977
44978         * modules/vasnprintf-posix: New file.
44979         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
44980         printf-frexpl.h.
44981         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
44982         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
44983         REPLACE_VASNPRINTF is defined.
44984         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
44985         gl_FUNC_VASNPRINTF.
44986         (gl_FUNC_VASNPRINTF): Invoke it.
44987         * m4/vasnprintf-posix.m4: New file.
44988         * m4/printf.m4: New file.
44989
44990 2007-03-04  Bruno Haible  <bruno@clisp.org>
44991
44992         Compile progreloc.c only if --enable-relocatable is specified.
44993         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
44994         if --enable-relocatable was specified.
44995         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
44996         lib_SOURCES.
44997
44998 2007-03-04  Jim Meyering  <jim@meyering.net>
44999
45000         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45001         Use it consistently, rather than enumerating errno constants.
45002
45003 2007-03-04  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/xvasprintf-tests: New file.
45006         * tests/test-xvasprintf.c: New file.
45007
45008         * modules/vasprintf-tests: New file.
45009         * tests/test-vasprintf.c: New file.
45010
45011         * modules/vasnprintf-tests: New file.
45012         * tests/test-vasnprintf.c: New file.
45013
45014         * modules/vsnprintf-tests: New file.
45015         * tests/test-vsnprintf.c: New file.
45016
45017         * modules/snprintf-tests: New file.
45018         * tests/test-snprintf.c: New file.
45019
45020 2007-03-04  Bruno Haible  <bruno@clisp.org>
45021
45022         Compile relocatable.c only if --enable-relocatable is specified.
45023         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45024         gl_RELOCATABLE_LIBRARY.
45025         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45026         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45027         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45028         gl_RELOCATABLE_LIBRARY.
45029         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45030         (Makefile.am): Remove lib_SOURCES.
45031         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45032         gl_RELOCATABLE_LIBRARY.
45033         (Makefile.am): Remove lib_SOURCES.
45034         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45035         always.
45036         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45037         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45038
45039 2007-03-04  Bruno Haible  <bruno@clisp.org>
45040
45041         * modules/argmatch-tests: New file.
45042         * tests/test-argmatch.c: New file.
45043
45044         * tests/test-allocsa.c (main): Halve the number of loop runs.
45045
45046         * modules/alloca-opt-tests: New file.
45047         * tests/test-alloca-opt.c: New file.
45048
45049 2007-03-04  Jim Meyering  <jim@meyering.net>
45050
45051         Work around difference between Linux ACLs and Solaris 10 ZFS.
45052         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45053         for EINVAL.
45054
45055 2007-03-03  Bruno Haible  <bruno@clisp.org>
45056
45057         * modules/relocatable-prog (Depends-on): Add back progreloc's
45058         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45059
45060 2007-03-03  Bruno Haible  <bruno@clisp.org>
45061
45062         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45063         * modules/relocatable-lib: New file.
45064
45065 2007-03-03  Bruno Haible  <bruno@clisp.org>
45066
45067         * modules/relocatable-prog: Renamed from modules/relocatable.
45068         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45069
45070 2007-03-03  Bruno Haible  <bruno@clisp.org>
45071
45072         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45073         m4/relocatable-lib.m4.
45074         (Depends-on): Remove 'relocatable'.
45075         (configure.ac): Add gl_RELOCATABLE_NOP.
45076
45077 2007-03-03  Bruno Haible  <bruno@clisp.org>
45078
45079         * modules/relocatable-prog-wrapper: New file.
45080         * modules/relocatable (Depends-on): Add it. Remove all other
45081         dependencies except progname.
45082         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45083
45084         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45085         (gl_FUNC_STRERROR): Nop.
45086         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45087
45088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45089         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45090
45091         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45092         (gl_FUNC_READLINK): Update.
45093
45094         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45095
45096 2007-03-03  Bruno Haible  <bruno@clisp.org>
45097
45098         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45099         * modules/xreadlink (Depends-on): Add unistd.
45100         * modules/xreadlink-with-size (Depends-on): Likewise.
45101
45102 2007-03-03  Bruno Haible  <bruno@clisp.org>
45103
45104         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45105         extracted from gt_FUNC_SETENV.
45106         (gt_FUNC_SETENV): Remove macro.
45107         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45108         remove gt_FUNC_SETENV.
45109
45110 2007-03-03  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45113         ENABLE_RELOCATABLE here.
45114         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45115
45116 2007-03-03  Bruno Haible  <bruno@clisp.org>
45117
45118         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45119         * tests/test-rbtreehash_list.c: Include progname.h.
45120         (main): Call set_program_name.
45121
45122         * modules/rbtree-oset-tests (Depends-on): Add progname.
45123         * tests/test-rbtree_oset.c: Include progname.h.
45124         (main): Call set_program_name.
45125
45126         * modules/rbtree-list-tests (Depends-on): Add progname.
45127         * tests/test-rbtree_list.c: Include progname.h.
45128         (main): Call set_program_name.
45129
45130         * modules/linked-list-tests (Depends-on): Add progname.
45131         * tests/test-linked_list.c: Include progname.h.
45132         (main): Call set_program_name.
45133
45134 2007-03-03  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45137         All uses of __restrict changed to _Restrict_.
45138         * lib/glob_.h (__restrict): Remove macro.
45139
45140 2007-03-02  Bruno Haible  <bruno@clisp.org>
45141
45142         * modules/gettext (configure.ac): Require gettext infrastructure
45143         from version 0.16.1.
45144
45145 2007-03-02  Bruno Haible  <bruno@clisp.org>
45146
45147         * modules/linkedhash-list-tests (Depends-on): Add progname.
45148         * tests/test-linkedhash_list.c: Include progname.h.
45149         (main): Call set_program_name.
45150
45151         * modules/carray-list-tests (Depends-on): Add progname.
45152         * tests/test-carray_list.c: Include progname.h.
45153         (main): Call set_program_name.
45154
45155         * modules/avltreehash-list-tests (Depends-on): Add progname.
45156         * tests/test-avltreehash_list.c: Include progname.h.
45157         (main): Call set_program_name.
45158
45159         * modules/avltree-oset-tests (Depends-on): Add progname.
45160         * tests/test-avltree_oset.c: Include progname.h.
45161         (main): Call set_program_name.
45162
45163         * modules/avltree-list-tests (Depends-on): Add progname.
45164         * tests/test-avltree_list.c: Include progname.h.
45165         (main): Call set_program_name.
45166
45167         * modules/array-oset-tests (Depends-on): Add progname.
45168         * tests/test-array_oset.c: Include progname.h.
45169         (main): Call set_program_name.
45170
45171         * modules/array-list-tests (Depends-on): Add progname.
45172         * tests/test-array_list.c: Include progname.h.
45173         (main): Call set_program_name.
45174
45175         * modules/argp-tests (Depends-on): Add progname.
45176         * tests/test-argp.c: Include argp.h first. Include progname.h.
45177         (main): Call set_program_name.
45178
45179 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45180
45181         * doc/gnulib-tool.texi (Initial import): Reword description of
45182         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45183         limited effect even if defined after the first system include.
45184
45185 2007-03-01  Bruno Haible  <bruno@clisp.org>
45186
45187         * build-aux/config.libpath: Update to libtool-1.5.22.
45188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45189
45190 2007-03-01  Bruno Haible  <bruno@clisp.org>
45191
45192         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45193         foo_CFLAGS.
45194         Reported by Ralf Wildenhues.
45195
45196 2007-03-01  Bruno Haible  <bruno@clisp.org>
45197
45198         * build-aux/install-reloc: Remove object files left over by some
45199         compilers.
45200         Reported by Ralf Wildenhues.
45201
45202 2007-03-01  Bruno Haible  <bruno@clisp.org>
45203
45204         * build-aux/install-reloc: Break long lines.
45205
45206 2007-03-01  Bruno Haible  <bruno@clisp.org>
45207
45208         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45209         Reported by Ralf Wildenhues.
45210
45211 2007-03-01  Bruno Haible  <bruno@clisp.org>
45212
45213         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45214         include ordering constraints.
45215
45216 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45217
45218         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45219         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45220         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45221         as another example.
45222         * lib/time_.h: Fix misspelling.
45223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45224         Require gl_HEADER_TIME_H_DEFAULTS.
45225         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45226         * m4/time_r.m4 (gl_TIME_R): Likewise.
45227         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45228
45229 2007-03-01  Bruno Haible  <bruno@clisp.org>
45230
45231         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45232         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45233
45234 2007-03-01  Jim Meyering  <jim@meyering.net>
45235
45236         * modules/xreadlink (Maintainer): Add my name.
45237         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45238
45239 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45240             Bruno Haible  <bruno@clisp.org>
45241
45242         * build-aux/install-reloc: Compile also c-ctype.c.
45243         * build-aux/relocatable.sh.in: New file.
45244         * doc/relocatable.texi: New file.
45245         * doc/relocatable-maint.texi: New file.
45246         * doc/gnulib.texi: Include relocatable-maint.texi.
45247         * lib/progreloc.c: Include unistd.h unconditionally.
45248         * lib/relocwrapper.c: Include unistd.h unconditionally.
45249         Include c-ctype.h.
45250         (add_dotbin): Use c_tolower.
45251         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45252         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45253         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45254         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45255         to m4/relocatable-lib.m4.
45256         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45257         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45258         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45259         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45260         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45261         * modules/relocatable: New file.
45262         * modules/relocatable-lib: New file.
45263         * modules/relocatable-script: New file.
45264
45265 2007-02-28  Bruno Haible  <bruno@clisp.org>
45266
45267         Import --enable-relocatable infrastructure.
45268         * build-aux/config.libpath: New file, from GNU gettext.
45269         * build-aux/install-reloc: New file, from GNU gettext.
45270         * build-aux/reloc-ldflags: New file, from GNU gettext.
45271         * lib/relocatable.h: New file, from GNU gettext.
45272         * lib/relocatable.c: New file, from GNU gettext.
45273         * lib/relocwrapper.c: New file, from GNU gettext.
45274         * m4/relocatable.m4: New file, from GNU gettext.
45275
45276 2007-02-28  Bruno Haible  <bruno@clisp.org>
45277
45278         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45279
45280         * modules/xreadlink: New file, from GNU gettext with modifications.
45281         * lib/xreadlink.c: New file, from GNU gettext.
45282         * lib/xreadlink.h: Add comments.
45283         (xreadlink): New declaration.
45284
45285         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45286         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45287         lib/xreadlink-with-size.c.
45288         (configure.ac): Remove gl_XREADLINK invocation.
45289         (Makefile.am): Augment lib_SOURCES.
45290         * m4/xreadlink.m4: Remove file.
45291         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45292         (xreadlink_with_size): Renamed from xreadink.
45293         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45294         * modules/canonicalize (Depends-on): Replace xreadlink with
45295         xreadlink-with-size.
45296         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45297
45298 2007-02-25  Jim Meyering  <jim@meyering.net>
45299
45300         * build-aux/announce-gen: When complaining about excess arguments,
45301         list them.
45302
45303 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45304
45305         * README: Document signed integer overflow situation more
45306         accurately.
45307
45308 2007-02-25  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45311         'a' or 'A' conversion.
45312
45313 2007-02-25  Bruno Haible  <bruno@clisp.org>
45314
45315         * modules/filename: Renamed from modules/pathname.
45316         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45317         lib/concatpath.c with lib/concat-filename.c.
45318         (Makefile.am): Update.
45319         (Include): Replace pathname.h with filename.h.
45320         * lib/filename.h: Renamed from lib/pathname.h.
45321         (concatenated_filename): Renamed from concatenated_pathname.
45322         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45323         (concatenated_filename): Renamed from concatenated_pathname.
45324         * lib/findprog.c: Include filename.h instead of pathname.h.
45325         (find_in_path): Update.
45326         * lib/javacomp.c: Include filename.h instead of pathname.h.
45327         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45328         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45329         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45330         is_oldgcj_14_13_usable, is_javac_usable): Update.
45331         * lib/javaexec.c: Include filename.h instead of pathname.h.
45332         (execute_java_class): Update.
45333         * modules/findprog: Update.
45334         * modules/javacomp: Update.
45335         * modules/javaexec: Update.
45336         * MODULES.html.sh (File system functions): Add 'filename', remove
45337         'pathname'.
45338
45339 2007-02-25  Bruno Haible  <bruno@clisp.org>
45340
45341         * modules/printf-frexpl-tests: New file.
45342         * tests/test-printf-frexpl.c: New file.
45343
45344         * modules/printf-frexpl: New file.
45345         * lib/printf-frexpl.h: New file.
45346         * lib/printf-frexpl.c: New file.
45347         * m4/printf-frexpl.m4: New file.
45348
45349 2007-02-25  Bruno Haible  <bruno@clisp.org>
45350
45351         * modules/printf-frexp-tests: New file.
45352         * tests/test-printf-frexp.c: New file.
45353
45354         * modules/printf-frexp: New file.
45355         * lib/printf-frexp.h: New file.
45356         * lib/printf-frexp.c: New file.
45357         * m4/printf-frexp.m4: New file.
45358
45359 2007-02-25  Bruno Haible  <bruno@clisp.org>
45360
45361         Assume automake >= 1.10 for the tests.
45362         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45363         * modules/arctwo-tests: Likewise.
45364         * modules/argp-tests: Likewise.
45365         * modules/avltree-list-tests: Likewise.
45366         * modules/avltree-oset-tests: Likewise.
45367         * modules/avltreehash-list-tests: Likewise.
45368         * modules/carray-list-tests: Likewise.
45369         * modules/crc-tests: Likewise.
45370         * modules/des-tests: Likewise.
45371         * modules/gc-arcfour-tests: Likewise.
45372         * modules/gc-arctwo-tests: Likewise.
45373         * modules/gc-des-tests: Likewise.
45374         * modules/gc-hmac-md5-tests: Likewise.
45375         * modules/gc-hmac-sha1-tests: Likewise.
45376         * modules/gc-md2-tests: Likewise.
45377         * modules/gc-md4-tests: Likewise.
45378         * modules/gc-md5-tests: Likewise.
45379         * modules/gc-pbkdf2-sha1-tests: Likewise.
45380         * modules/gc-rijndael-tests: Likewise.
45381         * modules/gc-sha1-tests: Likewise.
45382         * modules/gc-tests: Likewise.
45383         * modules/getaddrinfo-tests: Likewise.
45384         * modules/hmac-md5-tests: Likewise.
45385         * modules/hmac-sha1-tests: Likewise.
45386         * modules/linked-list-tests: Likewise.
45387         * modules/linkedhash-list-tests: Likewise.
45388         * modules/lock-tests: Likewise.
45389         * modules/md2-tests: Likewise.
45390         * modules/md4-tests: Likewise.
45391         * modules/md5-tests: Likewise.
45392         * modules/rbtree-list-tests: Likewise.
45393         * modules/rbtree-oset-tests: Likewise.
45394         * modules/rbtreehash-list-tests: Likewise.
45395         * modules/read-file-tests: Likewise.
45396         * modules/rijndael-tests: Likewise.
45397         * modules/stdint-tests: Likewise.
45398         * modules/tls-tests: Likewise.
45399
45400 2007-02-24  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45403         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45404         function; instead check whether isnan with a double argument links.
45405         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45406         function; instead check whether isnan with a 'long double' argument
45407         links.
45408         Reported by Eric Blake <ebb9@byu.net>.
45409
45410 2007-02-24  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45413         defined.
45414         * lib/isnanl.c: Remove all code. Just include isnan.c.
45415         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45416
45417 2007-02-25  Jim Meyering  <jim@meyering.net>
45418
45419         Avoid conflicting types for 'unsetenv' on FreeBSD.
45420         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45421         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45422         in stdlib.h.
45423
45424 2007-02-24  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/isnanl-nolibm-tests: New file.
45427         * tests/test-isnanl.c: New file.
45428
45429         * modules/isnanl-nolibm: New file.
45430         * lib/isnanl.h: New file.
45431         * lib/isnanl.c: New file.
45432         * m4/isnanl.m4: New file.
45433
45434 2007-02-24  Bruno Haible  <bruno@clisp.org>
45435
45436         * modules/isnan-nolibm-tests: New file.
45437         * tests/test-isnan.c: New file.
45438
45439         * modules/isnan-nolibm: New file.
45440         * lib/isnan.h: New file.
45441         * lib/isnan.c: New file.
45442         * m4/isnan.m4: New file.
45443
45444 2007-02-24  Bruno Haible  <bruno@clisp.org>
45445
45446         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45447         assume that an exponent fits in 20 bits.
45448
45449 2007-02-24  Jim Meyering  <jim@meyering.net>
45450
45451         * m4/regex.m4: Update the description of the configure-time option,
45452         --without-included-regex, to state accurately what the defaults are,
45453         and perhaps to give people an idea why using this option is risky.
45454
45455 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45456
45457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45458         loops on small arguments.  This attempts to avoid the problem
45459         Bruno Haible reported for AIX 4.3.2 in
45460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45461
45462 2007-02-23  Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45465         Needed for help2man.
45466
45467 2007-02-23  Karl Berry  <karl@gnu.org>
45468
45469         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45470         exists, foo.h should be cvs-ignored, not committed.
45471
45472 2007-02-23  Eric Blake  <ebb9@byu.net>
45473
45474         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45475         * lib/stat-time.h (includes): Likewise.
45476         * lib/utimecmp.c (includes): Likewise.
45477         * lib/utimens.h (includes): Likewise.
45478         * lib/getdate.y (includes): Also include "timespec.h" for use
45479         internal to the module.
45480         * modules/utimens (Depends-on): Revert yesterday's patch.
45481         * modules/nanosleep (Depends-on): Add missing dependency.
45482
45483 2007-02-22  Bruno Haible  <bruno@clisp.org>
45484
45485         * lib/glob.c: Don't include getlogin_r.h.
45486
45487 2007-02-22  Jim Meyering  <jim@meyering.net>
45488
45489         * modules/utimens (Depends-on): Add timespec, required for
45490         utimens.h's inclusion of timespec.h.
45491
45492 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45493
45494         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45495         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45496         Schwab in
45497         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45498         I'll try to think of a better way to fix the Solaris problem.
45499
45500         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45501         like glibc; on Solaris 10, it fails with errno == EINVAL.
45502         POSIX says the behavior is unspecified if the first argument is NULL,
45503         so play it safe and never pass NULL to the system getcwd.
45504
45505 2007-02-21  Jim Meyering  <jim@meyering.net>
45506
45507         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45508         of gettimeofday.  It would conflict with the one now always
45509         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45510         an IRIX 6.5 build failure.
45511
45512 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45513
45514         Minor fixups to port to Solaris 10 with Sun C 5.8.
45515         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45516         * modules/getcwd (Depends-on): Add dirfd.
45517         * lib/putenv.c (putenv): #undef it.
45518         (rpl_putenv): New decl.
45519         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45520
45521 2007-02-20  Bruno Haible  <bruno@clisp.org>
45522
45523         * modules/stdio-tests: New file.
45524         * tests/test-stdio.c: New file.
45525
45526         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45527         (Depends-on): Add stdio.
45528         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45529         (Include): Use <stdio.h> instead of vsnprintf.h.
45530         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45531         HAVE_DECL_VSNPRINTF.
45532         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45533
45534         * modules/snprintf (Files): Remove lib/snprintf.h.
45535         (Depends-on): Add stdio.
45536         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45537         (Include): Use <stdio.h> instead of snprintf.h.
45538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45539         HAVE_DECL_SNPRINTF.
45540         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45541         * lib/getaddrinfo.c: Likewise.
45542
45543         * modules/stdio: New file.
45544         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45545         * lib/snprintf.h: Remove file.
45546         * lib/vsnprintf.h: Remove file.
45547         * lib/.cppi-disable: Remove snprintf.h.
45548         * m4/stdio_h.m4: New file.
45549         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45550
45551 2007-02-20  Jim Meyering  <jim@meyering.net>
45552
45553         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45554         used by e.g., mingw.  From Bruno Haible.
45555
45556 2007-02-19  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45559         warnings.
45560         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45561
45562 2007-02-19  Bruno Haible  <bruno@clisp.org>
45563
45564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45565         from mingw users.
45566
45567 2007-02-19  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45570         warnings.
45571         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45572
45573 2007-02-19  Jim Meyering  <jim@meyering.net>
45574
45575         Don't use FD after a successful "fdopendir (fd)".
45576         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45577         Reset it by calling dirfd on the just-obtained DIR*.
45578
45579         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45580         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45581
45582 2007-02-18  Bruno Haible  <bruno@clisp.org>
45583
45584         * lib/readlink.c: Include <unistd.h>.
45585         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45586         HAVE_READLINK.
45587         * modules/readlink (Depends-on): Add unistd.
45588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45589         (Include): Add <unistd.h>.
45590
45591         * lib/getlogin_r.h: Remove file.
45592         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45593         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45594         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45595         HAVE_DECL_GETLOGIN_R.
45596         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45597         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45598         (Include): Use <unistd.h> instead of getlogin_r.h.
45599
45600         * lib/getcwd.h: Remove file.
45601         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45602         * lib/xgetcwd.c: Likewise.
45603         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45604         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45605         * modules/getcwd (Files): Remove lib/getcwd.h.
45606         (Depends-on): Add unistd.
45607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45608         (Include): Use <unistd.h> instad of getcwd.h.
45609
45610         * lib/ftruncate.c: Include <unistd.h> first.
45611         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45612         Set HAVE_FTRUNCATE.
45613         * modules/ftruncate (Depends-on): Add unistd.
45614         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45615
45616         * lib/fchdir.c: Include <unistd.h> first.
45617         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45619         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45620         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45621         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45622
45623         * lib/dup2.c: Include <unistd.h> first.
45624         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45625         HAVE_DUP2.
45626         * modules/dup2 (Depends-on): Add unistd.
45627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45628
45629         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45630         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45631         REPLACE_CHOWN. Don't define chown as a macro here.
45632         * modules/chown (Depends-on): Add unistd.
45633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45634
45635         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45636         Add definition for GL_LINK_WARNING.
45637         (chown, dup2): New declarations.
45638         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45639         link warning.
45640         (ftruncate): New declaration.
45641         (getcwd): New declaration, taken from old getcwd.h.
45642         (getlogin_r): New declaration, taken from old getlogin_r.h.
45643         (readlink): New declaration.
45644         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45645         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45646         (gl_PREREQ_UNISTD): Remove macro.
45647         (gl_UNISTD_MODULE_INDICATOR): New macro.
45648         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45649         many new variables. Don't set UNISTD_H.
45650         * modules/unistd (Description): Change.
45651         (Depends-on): Add link-warning.
45652         (configure.ac): Update.
45653         (Makefile.am): Create unistd.h always. Substitute many new variables
45654         into it.
45655
45656 2007-02-18  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45659         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45660         HAVE_GETSUBOPT.
45661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45662         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45663         * lib/getsubopt.h: Remove file.
45664         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45665         (Depends-on): Add stdlib.
45666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45667         (Includes): Use <stdlib.h> instead of getsubopt.h.
45668         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45669         Set HAVE_GETSUBOPT.
45670         * lib/getsubopt.c: Don't include getsubopt.h.
45671
45672 2007-02-18  Bruno Haible  <bruno@clisp.org>
45673
45674         * modules/fchdir (Depends-on): Add dup2.
45675
45676 2007-02-18  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/stdlib_.h: Handle glibc's special invocation convention
45679         specially.
45680
45681 2007-02-18  Bruno Haible  <bruno@clisp.org>
45682
45683         * modules/stdlib-tests: New file.
45684         * tests/test-stdlib.c: New file.
45685
45686         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45687         (Depends-on): Add stdlib.
45688         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45689         (Includes): Use <stdlib.h> instead of mkstemp.h.
45690         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45691         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45692         * lib/mkstemp.c: Don't include mkstemp.h.
45693         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45694         * lib/stdlib--.h: Don't include mkstemp.h.
45695
45696         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45697         (Depends-on): Add stdlib.
45698         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45699         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45700         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45701         HAVE_MKDTEMP.
45702         * lib/mkdtemp.c: Don't include mkdtemp.h.
45703         * lib/clean-temp.c: Don't include mkdtemp.h.
45704
45705         * modules/exit (Files): Remove lib/exit.h.
45706         (Depends-on): Add stdlib.
45707         (Makefile.am): Remove lib_SOURCES.
45708         (Include): Use <stdlib.h> instead of exit.h.
45709         * lib/argmatch.c: Don't include exit.h.
45710         * lib/execute.c: Likewise.
45711         * lib/pagealign_alloc.c: Likewise.
45712         * lib/pipe.c: Likewise.
45713         * lib/wait-process.c: Likewise.
45714         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45715         * lib/exitfail.c: Likewise.
45716         * lib/savewd.c: Likewise.
45717         * lib/xsetenv.c: Likewise.
45718
45719         * modules/stdlib: New file.
45720         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45721         and extra comments about mkstemp().
45722         * lib/exit.h: Remove file.
45723         * lib/mkdtemp.h: Remove file.
45724         * lib/mkstemp.h: Remove file.
45725         * m4/stdlib_h.m4: New file.
45726         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45727
45728 2007-02-18  Bruno Haible  <bruno@clisp.org>
45729
45730         * modules/math-tests: New file.
45731         * tests/test-math.c: New file.
45732
45733         * modules/math: New file.
45734         * modules/mathl (Files): Remove lib/mathl.h.
45735         (Depends-on): Add math.
45736         (Makefile.am): Don't mention mathl.h.
45737         (Include): Use <math.h> instead of mathl.h.
45738         * lib/math_.h: New file.
45739         * lib/mathl.h: Remove file.
45740         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45741         mathl.h.
45742         * lib/asinl.c: Likewise.
45743         * lib/atanl.c: Likewise.
45744         * lib/ceill.c: Likewise.
45745         * lib/cosl.c: Likewise.
45746         * lib/expl.c: Likewise.
45747         * lib/floorl.c: Likewise.
45748         * lib/frexpl.c: Likewise.
45749         * lib/ldexpl.c: Likewise.
45750         * lib/logl.c: Likewise.
45751         * lib/sincosl.c: Likewise.
45752         * lib/sinl.c: Likewise.
45753         * lib/sqrtl.c: Likewise.
45754         * lib/tanl.c: Likewise.
45755         * lib/trigl.c: Likewise.
45756         * m4/math_h.m4: New file.
45757         * MODULES.html.sh (Mathematics): Add math.
45758
45759 2007-02-17  Bruno Haible  <bruno@clisp.org>
45760
45761         * modules/wctype-tests: New file.
45762         * tests/test-wctype.c: New file.
45763
45764         * modules/wchar-tests: New file.
45765         * tests/test-wchar.c: New file.
45766
45767         * modules/unistd-tests: New file.
45768         * tests/test-unistd.c: New file.
45769
45770         * modules/time-tests: New file.
45771         * tests/test-time.c: New file.
45772
45773         * modules/sysexits-tests: New file.
45774         * tests/test-sysexits.c: New file.
45775
45776         * modules/sys_time-tests: New file.
45777         * tests/test-sys_time.c: New file.
45778
45779         * modules/sys_stat-tests: New file.
45780         * tests/test-sys_stat.c: New file.
45781
45782         * modules/sys_socket-tests: New file.
45783         * tests/test-sys_socket.c: New file.
45784
45785         * modules/sys_select-tests: New file.
45786         * tests/test-sys_select.c: New file.
45787
45788         * modules/string-tests: New file.
45789         * tests/test-string.c: New file.
45790
45791         * modules/stdbool-tests: New file.
45792         * tests/test-stdbool.c: New file.
45793
45794         * modules/netinet_in-tests: New file.
45795         * tests/test-netinet_in.c: New file.
45796
45797         * modules/inttypes-tests: New file.
45798         * tests/test-inttypes.c: New file.
45799
45800         * modules/fcntl-tests: New file.
45801         * tests/test-fcntl.c: New file.
45802
45803         * modules/byteswap-tests: New file.
45804         * tests/test-byteswap.c: New file.
45805
45806         * modules/arpa_inet-tests: New file.
45807         * tests/test-arpa_inet.c: New file.
45808
45809 2007-02-17  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45812         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45813         if the corresponding module is not enabled. Emit link warnings if
45814         the function is used nevertheless.
45815         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45816         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45817         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45818         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45819         * modules/inttypes (Depends-on): Add link-warning.
45820         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45821         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45822         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45823         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45824         * modules/imaxdiv (configure.ac): Likewise.
45825         * modules/strtoimax (configure.ac): Likewise.
45826         * modules/strtoumax (configure.ac): Likewise.
45827
45828 2007-02-17  Bruno Haible  <bruno@clisp.org>
45829
45830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45831         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45832         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45833         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45834
45835 2007-02-17  Bruno Haible  <bruno@clisp.org>
45836
45837         * modules/link-warning: New file.
45838         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45839         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45840         * modules/string (Depends-on): Add link-warning.
45841         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45842         string.h.
45843         * MODULES.html.sh (Support for building libraries and executables): Add
45844         link-warning.
45845
45846 2007-02-17  Bruno Haible  <bruno@clisp.org>
45847
45848         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45849         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45850         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45851         long lines.
45852
45853 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45854             Bruno Haible  <bruno@clisp.org>
45855
45856         * modules/tmpfile: New file.
45857         * lib/tmpfile.c: New file.
45858         * m4/tmpfile.m4: New file.
45859         * MODULES.html.sh (func_all_modules): New section "Input/output".
45860
45861 2007-02-15  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
45864         (supports_delete_on_close): New function.
45865         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
45866
45867 2007-02-14  Bruno Haible  <bruno@clisp.org>
45868
45869         * modules/mbspcasecmp-tests: New file.
45870         * tests/test-mbspcasecmp.sh: New file.
45871         * tests/test-mbspcasecmp.c: New file.
45872
45873         New module mbspcasecmp.
45874         * modules/mbspcasecmp: New file.
45875         * lib/mbspcasecmp.c: New file.
45876         * lib/string_.h (strncasecmp): Change warning message.
45877         (mbspcasecmp): New declaration.
45878         * m4/mbspcasecmp.m4: New file.
45879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45880         GNULIB_MBSPCASECMP.
45881         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
45882         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
45883
45884 2007-02-14  Bruno Haible  <bruno@clisp.org>
45885
45886         * modules/mbsncasecmp-tests: New file.
45887         * tests/test-mbsncasecmp.sh: New file.
45888         * tests/test-mbsncasecmp.c: New file.
45889
45890         New module mbsncasecmp.
45891         * modules/mbsncasecmp: New file.
45892         * lib/mbsncasecmp.c: New file.
45893         * lib/string_.h (mbsncasecmp): New declaration.
45894         * m4/mbsncasecmp.m4: New file.
45895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45896         GNULIB_MBSNCASECMP.
45897         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
45898         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
45899
45900 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
45901
45902         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
45903         Verify that it doesn't overlap with our flags.
45904         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
45905         do not have the desired effect in multibyte locales; instead, use
45906         mbscasecmp.
45907         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
45908         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
45909         we don't require GNU fnmatch ourselves (if our users require it, they
45910         should do so explicitly).
45911
45912         Fix regex code so it doesn't rely on strcasecmp.
45913         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
45914         Otherwise, include gnulib's langinfo.h.
45915         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
45916         undesirable behavior in non-C locales.  Instead, rely on localecharset.
45917         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
45918         * modules/regex (FILES): Remove m4/codeset.m4.
45919         (Depends-on): Add localcharset.  Remove strcase.
45920
45921 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45922
45923         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
45924         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
45925
45926 2007-02-13  Bruno Haible  <bruno@clisp.org>
45927
45928         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
45929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45930
45931 2007-02-12  Bruno Haible  <bruno@clisp.org>
45932
45933         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45934         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
45935         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
45936         time warning rather than a link error.
45937
45938 2007-02-12  Bruno Haible  <bruno@clisp.org>
45939
45940         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
45941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45942         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45943
45944 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
45947         args, not 2.
45948
45949 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
45950
45951         New module 'time', so that apps can include <time.h> as per
45952         POSIX and GNU instead of separate include files like time_r.h
45953         and timegm.h.  This implementation tries out a simpler approach
45954         for replacing decls in standard include files (as compared to
45955         the string module), somewhat as an experiment.
45956
45957         * config/srclist.txt: Comment out mktime.c for now.
45958         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
45959         since it doesn't apply any more.  Use generic wording instead.
45960         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
45961         'time'.
45962         * lib/time_.h, m4/time_h.m4, modules/time: New files.
45963         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
45964         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
45965         Don't include <sys/types.h>; no longer needed since we assume C89.
45966         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
45967         * lib/strftime.c: Likewise.
45968         * lib/time_r.c: Likewise.
45969         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
45970         * lib/nanosleep.c: Include <time.h> first, to check interface.
45971         * lib/strptime.c: Likewise.
45972         * lib/time_r.c: Likewise.
45973         * lib/timegm.c: Likewise.
45974         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
45975         needed.
45976         * lib/timegm.c: Don't include timegm.h; no longer needed.
45977         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
45978         time.h now handles any problems in that area.
45979         (struct timespec, nanosleep): Remove; time.h now arranges for these.
45980         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
45981         that time.h defines struct timespec.
45982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
45983         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
45984         handles that.
45985         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
45986         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
45987         needed.  Set REPLACE_LOCALTIME.
45988         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
45989         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
45990         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
45991         nanosleep; time_h.m4 now does that.  Don't require
45992         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
45993         module handles this now.
45994         * modules/getdate (Depends-on): Remove timespec.  Add time.
45995         * modules/nanosleep (Depends-on): Likewise.
45996         * modules/stat-time (Depends-on): Likewise.
45997         * modules/nanosleep (Include): Include time.h, not timespec.h.
45998         * modules/strptime (Files): Remove lib/strptime.h.
45999         (Depends-on): Add extensions, time.
46000         (Include): Include time.h, not strptime.h.
46001         * modules/time_r (Files): Remove lib/time_r.h.
46002         (Depends-on): Add time.
46003         (Include): Include time.h, not time_r.h.
46004         * modules/timegm: Likewise.
46005         * modules/timespec (Description): Now does timespec-related decls
46006         of our own, instead of struct timespec itself.
46007         (Depends-on): Add time; remove extensions.
46008         (Maintainer): Add self.
46009         * modules/utimecmp (Depends-on): Add time; remove timespec.
46010         * modules/utimens (Depends-on): Likewise.
46011         * modules/xnanosleep (Depends-on): Likewise.
46012
46013 2007-02-11  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/c-strstr.c: Include allocsa.h.
46016         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46017         * lib/c-strcasestr.c: Include allocsa.h.
46018         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46019         * lib/strcasestr.c: Include allocsa.h.
46020         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46021         * lib/mbsstr.c: Include allocsa.h.
46022         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46023         allocsa/freesa instead of malloc/free.
46024         * lib/mbscasestr.c: Include allocsa.h.
46025         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46026         allocsa/freesa instead of malloc/free.
46027         * modules/c-strstr (Depends-on): Add allocsa.
46028         * modules/c-strcasestr (Depends-on): Likewise.
46029         * modules/strcasestr (Depends-on): Likewise.
46030         * modules/mbsstr (Depends-on): Likewise.
46031         * modules/mbscasestr (Depends-on): Likewise.
46032
46033 2007-02-11  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46036
46037         * modules/mbsspn-tests: New file.
46038         * tests/test-mbsspn.sh: New file.
46039         * tests/test-mbsspn.c: New file.
46040
46041 2007-02-11  Bruno Haible  <bruno@clisp.org>
46042
46043         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46044
46045         * modules/mbspbrk-tests: New file.
46046         * tests/test-mbspbrk.sh: New file.
46047         * tests/test-mbspbrk.c: New file.
46048
46049 2007-02-11  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46052         unneeded cast.
46053
46054         * modules/mbscspn-tests: New file.
46055         * tests/test-mbscspn.sh: New file.
46056         * tests/test-mbscspn.c: New file.
46057
46058 2007-02-11  Bruno Haible  <bruno@clisp.org>
46059
46060         * modules/mbscasecmp-tests: New file.
46061         * tests/test-mbscasecmp.sh: New file.
46062         * tests/test-mbscasecmp.c: New file.
46063
46064 2007-02-11  Bruno Haible  <bruno@clisp.org>
46065
46066         Ensure O(n) worst-case complexity of mbscasestr.
46067         * lib/mbscasestr.c: Include stdbool.h.
46068         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46069         functions.
46070         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46071         the bookkeeping indicates that it's worth it.
46072         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46073
46074         * modules/mbscasestr-tests: New file.
46075         * tests/test-mbscasestr1.c: New file.
46076         * tests/test-mbscasestr2.sh: New file.
46077         * tests/test-mbscasestr2.c: New file.
46078         * tests/test-mbscasestr3.sh: New file.
46079         * tests/test-mbscasestr3.c: New file.
46080         * tests/test-mbscasestr4.sh: New file.
46081         * tests/test-mbscasestr4.c: New file.
46082         * m4/locale-tr.m4: New file.
46083
46084 2007-02-11  Bruno Haible  <bruno@clisp.org>
46085
46086         Ensure O(n) worst-case complexity of mbsstr.
46087         * lib/mbsstr.c: Include stdbool.h.
46088         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46089         functions.
46090         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46091         bookkeeping indicates that it's worth it.
46092         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46093
46094         * modules/mbsstr-tests: New file.
46095         * tests/test-mbsstr1.c: New file.
46096         * tests/test-mbsstr2.sh: New file.
46097         * tests/test-mbsstr2.c: New file.
46098         * tests/test-mbsstr3.sh: New file.
46099         * tests/test-mbsstr3.c: New file.
46100         * m4/locale-fr.m4: New file.
46101
46102 2007-02-11  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/mbsrchr.c (mbsrchr): Fix bug.
46105
46106         * modules/mbsrchr-tests: New file.
46107         * tests/test-mbsrchr.sh: New file.
46108         * tests/test-mbsrchr.c: New file.
46109
46110 2007-02-11  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/mbschr.c (mbschr): Fix bug.
46113
46114         * modules/mbschr-tests: New file.
46115         * tests/test-mbschr.sh: New file.
46116         * tests/test-mbschr.c: New file.
46117         * m4/locale-zh.m4: New file.
46118
46119 2007-02-11  Bruno Haible  <bruno@clisp.org>
46120
46121         Support for copying multibyte string iterators.
46122         * lib/mbiter.h: Include <string.h>.
46123         (mbiter_multi_copy): New function.
46124         (mbi_copy): New macro.
46125         * lib/mbuiter.h: Include <string.h>.
46126         (mbuiter_multi_copy): New function.
46127         (mbui_copy): New macro.
46128
46129 2007-02-11  Bruno Haible  <bruno@clisp.org>
46130
46131         New module mbslen.
46132         * modules/mbslen: New file.
46133         * lib/mbslen.c: New file.
46134         * lib/string_.h (mbslen): New declaration.
46135         * m4/mbslen.m4: New file.
46136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46137         GNULIB_MBSLEN.
46138         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46139         * MODULES.html.sh (Internationalization functions): Add mbslen.
46140
46141 2007-02-11  Bruno Haible  <bruno@clisp.org>
46142
46143         Ensure O(n) worst-case complexity of strcasestr substitute.
46144         * lib/strcasestr.c: Include stdbool.h.
46145         (knuth_morris_pratt): New function.
46146         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46147         bookkeeping indicates that it's worth it.
46148         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46149
46150         * modules/strcasestr-tests: New file.
46151         * tests/test-strcasestr.c: New file.
46152
46153 2007-02-11  Bruno Haible  <bruno@clisp.org>
46154
46155         Ensure O(n) worst-case complexity of c_strcasestr.
46156         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46157         (knuth_morris_pratt): New function.
46158         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46159         the bookkeeping indicates that it's worth it.
46160         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46161
46162         * modules/c-strcasestr-tests: New file.
46163         * tests/test-c-strcasestr.c: New file.
46164
46165 2007-02-11  Bruno Haible  <bruno@clisp.org>
46166
46167         Ensure O(n) worst-case complexity of c_strstr.
46168         * lib/c-strstr.c: Include stdbool.h, string.h.
46169         (knuth_morris_pratt): New function.
46170         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46171         bookkeeping indicates that it's worth it.
46172         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46173
46174         * lib/c-strstr.c: Complete rewrite for maintainability.
46175
46176         * modules/c-strstr-tests: New file.
46177         * tests/test-c-strstr.c: New file.
46178
46179 2007-02-11  Bruno Haible  <bruno@clisp.org>
46180
46181         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46182         5.2.1 and earlier, whereby \055 was treated just like the range
46183         delimiter '-'.
46184         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46185
46186 2007-02-08  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/regex (Depends-on): Add stdbool.
46189         Reported by Dalibor Topic <robilad@kaffe.org>.
46190
46191 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46192
46193         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46194         Prefer returning from main to exiting from it.
46195         Remove unnecessary parens after sizeof.
46196
46197 2007-02-05  Bruno Haible  <bruno@clisp.org>
46198
46199         New module mbssep.
46200         * modules/mbssep: New file.
46201         * lib/mbssep.c: New file.
46202         * lib/string_.h (strsep): Add a conditional link warning.
46203         (mbssep): New declaration.
46204         * m4/mbssep.m4: New file.
46205         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46206         GNULIB_MBSSEP.
46207         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46208         * MODULES.html.sh (Internationalization functions): Add mbssep.
46209
46210 2007-02-05  Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46213         Optimize search in case of 1 delimiter.
46214
46215 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46216
46217         * lib/acl.h: Include sys/types.h before sys/acl.h.
46218
46219 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46220
46221         Merge upstream fix for glibc bugzilla #3957:
46222
46223         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46224
46225         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46226         bit for RE_HAT_LISTS_NOT_NEWLINE.
46227         (build_charclass_op): Remove bogus comment.
46228
46229 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46230
46231         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46232
46233 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46234
46235         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46236         * lib/memmem.c [!defined _LIBC]: Include config.h.
46237
46238 2007-02-04  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46241         warning message.
46242
46243 2007-02-04  Bruno Haible  <bruno@clisp.org>
46244
46245         New module mbstok_r.
46246         * modules/mbstok_r: New file.
46247         * lib/mbstok_r.c: New file.
46248         * lib/string_.h (strtok_r): Change argument names to match the
46249         comments. Add a conditional link warning.
46250         (mbstok_r): New declaration.
46251         * m4/mbstok_r.m4: New file.
46252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46253         GNULIB_MBSTOK_R.
46254         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46255         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46256
46257 2007-02-04  Bruno Haible  <bruno@clisp.org>
46258
46259         New module mbsspn.
46260         * modules/mbsspn: New file.
46261         * lib/mbsspn.c: New file.
46262         * lib/string_.h (strspn): Add a conditional link warning.
46263         (mbsspn): New declaration.
46264         * m4/mbsspn.m4: New file.
46265         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46266         GNULIB_MBSSPN.
46267         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46268         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46269
46270 2007-02-04  Bruno Haible  <bruno@clisp.org>
46271
46272         New module mbspbrk.
46273         * modules/mbspbrk: New file.
46274         * lib/mbspbrk.c: New file.
46275         * lib/string_.h (strpbrk): Add a conditional link warning.
46276         (mbspbrk): New declaration.
46277         * m4/mbspbrk.m4: New file.
46278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46279         GNULIB_MBSPBRK.
46280         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46281         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46282
46283 2007-02-04  Bruno Haible  <bruno@clisp.org>
46284
46285         New module mbscspn.
46286         * modules/mbscspn: New file.
46287         * lib/mbscspn.c: New file.
46288         * lib/string_.h (strcspn): Add a conditional link warning.
46289         (mbscspn): New declaration.
46290         * m4/mbscspn.m4: New file.
46291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46292         GNULIB_MBSCSPN.
46293         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46294         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46295
46296 2007-02-04  Bruno Haible  <bruno@clisp.org>
46297
46298         New module mbscasestr, reduced goal of strcasestr.
46299         * modules/mbscasestr: New file.
46300         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46301         (mbscasestr): Renamed from strcasestr.
46302         * lib/strcasestr.c: Don't include mbuiter.h.
46303         (strcasestr): Remove support for multibyte locales.
46304         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46305         Change the conditional link warning.
46306         (mbscasestr): New declaration.
46307         * m4/mbscasestr.m4: New file.
46308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46309         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46310         REPLACE_STRCASESTR.
46311         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46313         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46314         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46315         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46316         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46317         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46318         (Depends-on): Remove mbuiter.
46319         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46320
46321 2007-02-04  Bruno Haible  <bruno@clisp.org>
46322
46323         Simplify handling of strncasecmp.
46324         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46325         the conditional link warning.
46326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46327         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46328         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46329         * modules/strcase (configure.ac): Don't invoke
46330         gl_STRING_MODULE_INDICATOR.
46331         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46332
46333 2007-02-04  Bruno Haible  <bruno@clisp.org>
46334
46335         New module mbscasecmp, reduced goal of strcasecmp.
46336         * modules/mbscasecmp: New file.
46337         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46338         (mbscasecmp): Renamed from strcasecmp.
46339         * lib/strcasecmp.c: Don't include mbuiter.h.
46340         (strcasecmp): Remove support for multibyte locales.
46341         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46342         Change the conditional link warning.
46343         (mbscasecmp): New declaration.
46344         * m4/mbscasecmp.m4: New file.
46345         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46346         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46347         REPLACE_STRCASECMP.
46348         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46349         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46350         GNULIB_MBSCASECMP.
46351         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46352         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46353         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46354         (Depends-on): Remove mbuiter.
46355         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46356
46357 2007-02-04  Bruno Haible  <bruno@clisp.org>
46358
46359         New module mbsstr. Remove module strstr.
46360         * modules/mbsstr: New file.
46361         * modules/strstr: Remove file.
46362         * lib/mbsstr.c: Renamed from lib/strstr.c.
46363         (mbsstr): Renamed from strstr.
46364         * lib/string_.h (strstr): Remove declaration. Change the conditional
46365         link warning.
46366         (mbsstr): New declaration.
46367         * m4/mbsstr.m4: New file.
46368         * m4/strstr.m4: Remove file.
46369         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46370         REPLACE_STRSTR.
46371         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46372         Don't initialize GNULIB_STRSTR.
46373         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46374         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46375         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46376         (Support for systems lacking ANSI C 89): Remove strstr.
46377
46378 2007-02-04  Bruno Haible  <bruno@clisp.org>
46379
46380         New module mbsrchr.
46381         * modules/mbsrchr: New file.
46382         * lib/mbsrchr.c: New file.
46383         * lib/string_.h (strrchr): Add a conditional link warning.
46384         (mbsrchr): New declaration.
46385         * m4/mbsrchr.m4: New file.
46386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46387         GNULIB_MBSRCHR.
46388         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46389         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46390
46391 2007-02-04  Bruno Haible  <bruno@clisp.org>
46392
46393         New module mbschr.
46394         * modules/mbschr: New file.
46395         * lib/mbschr.c: New file.
46396         * lib/string_.h (strchr): Add a conditional link warning.
46397         (mbschr): New declaration.
46398         * m4/mbschr.m4: New file.
46399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46400         GNULIB_MBSCHR.
46401         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46402         * MODULES.html.sh (Internationalization functions): Add mbschr.
46403
46404 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46405
46406         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46407
46408         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46409
46410 2007-02-04  Bruno Haible  <bruno@clisp.org>
46411
46412         New module description section 'configure.ac-early'.
46413         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46414         (func_get_autoconf_early_snippet): New function.
46415         (func_import, func_create_testdir): Use it. Remove special cases for
46416         modules 'extensions' and 'lock'.
46417         * modules/extensions (configure.ac-early): Require
46418         gl_USE_SYSTEM_EXTENSIONS.
46419         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46420
46421 2007-02-04  Bruno Haible  <bruno@clisp.org>
46422
46423         Make use of gcj-4.3's -fsource and -ftarget option.
46424         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46425         and if so try the options -fsource and -ftarget.
46426         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46427         source_version, ftarget_option, target_version arguments.
46428         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46429         (is_envjavac_oldgcj_14_14_usable): Renamed from
46430         is_envjavac_gcj_14_14_usable.
46431         (is_envjavac_oldgcj_14_13_usable): Renamed from
46432         is_envjavac_gcj_14_13_usable.
46433         (is_gcj_present): Update.
46434         (is_gcj_43, is_gcj43_usable): New functions.
46435         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46436         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46437         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46438         try the options -fsource and -ftarget.
46439
46440 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46441
46442         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46443         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46444         larger value.
46445
46446 2007-02-03  Jim Meyering  <jim@meyering.net>
46447
46448         Give tools a better chance to allocate space for very large buffers.
46449         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46450
46451         Make pwd and readlink work also when run with an unreadable parent dir
46452         on systems with openat support.
46453         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46454         provided getcwd function, even when we have openat support.
46455         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46456
46457 2007-02-02  Bruno Haible  <bruno@clisp.org>
46458
46459         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46460         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46461         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46462         portability problems if one of these functions is only used on specific
46463         platforms.
46464         Reported by Paul Eggert.
46465
46466 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46467
46468         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46469         is causing more trouble than it's curing.
46470         * lib/regex_internal.h (__mempcpy): Remove.
46471         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46472         (and make the code a tad smaller to boot).
46473         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46474
46475 2007-02-02  Jim Meyering  <jim@meyering.net>
46476
46477         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46478         section, not in the Makefile.am: one.
46479
46480 2007-02-02  Eric Blake  <ebb9@byu.net>
46481
46482         * lib/strchrnul.c: Always include config.h first.
46483
46484         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46485         gnulib strstr is not necessary here.
46486
46487 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46488
46489         * m4/socklen.m4: Fix typo.
46490
46491 2007-02-02  Eric Blake  <ebb9@byu.net>
46492
46493         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46494         * modules/netinet_in (Makefile.am): Likewise.
46495
46496 2007-02-01  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/string_.h (GL_LINK_WARNING): New macro.
46499         (strcasecmp, strstr, strcasestr): If provided by the system,
46500         conditionally define as a macro that leads to a warning instead of to
46501         an error.
46502         (strncasecmp): Conditionally define as a macro that leads to a warning.
46503
46504 2007-02-01  Karl Berry  <karl@gnu.org>
46505
46506         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46507
46508 2007-02-01  Bruno Haible  <bruno@clisp.org>
46509
46510         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46511         renamings.
46512
46513 2007-02-01  Eric Blake  <ebb9@byu.net>
46514
46515         * modules/regex (Depends-on): Revert dependence on mempcpy.
46516         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46517         module's definition of mempcpy.
46518         Reported by Paul Eggert.
46519
46520 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46521
46522         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46523         the symbol XYZ before redefining it.  This fixes a problem with
46524         programs that don't use XYZ, when compiled on systems that define
46525         XYZ to something else.
46526
46527 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46528
46529         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46530         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46531         writeable to group or other and (2) is intended to have a special
46532         mode bit that is set or cleared.  In such a case, the directory
46533         should be neither group- nor other-writeable until the special
46534         mode bits are right.
46535
46536 2007-01-31  Eric Blake  <ebb9@byu.net>
46537
46538         * modules/mountlist (Depends-on): Add strstr.
46539
46540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46541         bug.
46542         * modules/string (Makefile.am): Remove redundant replacement.
46543         * modules/regex (Depends-on): Add mempcpy.
46544
46545 2007-01-31  Bruno Haible  <bruno@clisp.org>
46546
46547         New module description field 'Link'.
46548         * gnulib-tool (func_usage): Document --extract-link-directive.
46549         (sed_extract_prog): Recognize 'Link' directive.
46550         (func_get_link_directive): New function.
46551         (func_import): Show summary of link directives.
46552         Handle --extract-link-directive option.
46553         * modules/acl (Link): New section.
46554         * modules/clock-time (Link): New section.
46555         * modules/euidaccess (Link): New section.
46556         * modules/gettext (Link): New section.
46557         * modules/iconv (Link): New section.
46558         * modules/lock (Link): New section.
46559         * modules/nanosleep (Link): New section.
46560         * modules/readline (Link): New section.
46561
46562 2007-01-27  Bruno Haible  <bruno@clisp.org>
46563
46564         Enforce the use of gnulib modules for unportable <string.h> functions.
46565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46566         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46567         (gl_HEADER_STRING_H_BODY): Require it.
46568         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46569         the symbol XYZ to one that gives a link error.
46570         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46571         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46572         * modules/mempcpy (configure.ac): Likewise.
46573         * modules/memrchr (configure.ac): Likewise.
46574         * modules/stpcpy (configure.ac): Likewise.
46575         * modules/stpncpy (configure.ac): Likewise.
46576         * modules/strcase (configure.ac): Likewise.
46577         * modules/strcasestr (configure.ac): Likewise.
46578         * modules/strchrnul (configure.ac): Likewise.
46579         * modules/strdup (configure.ac): Likewise.
46580         * modules/strndup (configure.ac): Likewise.
46581         * modules/strnlen (configure.ac): Likewise.
46582         * modules/strpbrk (configure.ac): Likewise.
46583         * modules/strsep (configure.ac): Likewise.
46584         * modules/strstr (configure.ac): Likewise.
46585         * modules/strtok_r (configure.ac): Likewise.
46586
46587 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46588
46589         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46590
46591 2007-01-30  Jim Meyering  <jim@meyering.net>
46592
46593         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46594
46595 2007-01-29  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46598         * lib/execute.c: Likewise.
46599         * lib/pipe.c: Likewise.
46600         * lib/printf-args.h: Likewise.
46601         * lib/printf-args.c: Likewise.
46602         * lib/printf-parse.c: Likewise.
46603         * lib/vasnprintf.c: Likewise.
46604
46605 2007-01-29  Eric Blake  <ebb9@byu.net>
46606
46607         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46608         declaration.
46609
46610 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46611
46612         * lib/strptime.h (strptime): Use 'restrict' for args where
46613         POSIX requires this.
46614         * lib/strptime.c (strptime): Likewise.
46615         Change license notice from LGPL to GPL, since gnulib-tool will
46616         change this as needed.
46617         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46618         defined.
46619         Include "strptime.h" first, to check interface.
46620         Do not #undef _LIBC and _NL_CURRENT.
46621         Do not include <stdlib.h>; no longer needed.
46622         Include "time_r.h" and declare ptime_locale_status
46623         only if _LIBC is not defined.
46624         (__P): Remove unused macro.
46625         (match_string): Bring back glibc version, but use it only if _LIBC
46626         is defined.
46627         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46628         Remove unnecessary assertion and abort() call.
46629         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46630         * m4/strptime.m4: Fix serial number comment.
46631         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46632         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46633         (Depends-on): Add time_r.
46634
46635 2007-01-29  Bruno Haible  <bruno@clisp.org>
46636
46637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46638         strptime.
46639         * modules/strptime (Depends-on): Add stdbool.
46640         * lib/strptime.h: Include <time.h> always. Add comments.
46641
46642 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46643
46644         * modules/strptime: New file.
46645         * lib/strptime.h: New file.
46646         * lib/strptime.c: New file.
46647         * m4/strptime.m4: New file.
46648
46649 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46650
46651         * MODULES.html.sh: New module mpsort.
46652         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46653
46654         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46655         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46657         All uses changed.
46658         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46659         All uses changed.
46660         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46661         to _Restrict_.
46662         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46663         the parameter matches the prototype.
46664
46665 2007-01-28  Jim Meyering  <jim@meyering.net>
46666
46667         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46668         sys/time.h here, reverting that part of the previous patch:
46669         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46670
46671 2007-01-28  Bruno Haible  <bruno@clisp.org>
46672
46673         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46674         value of $(SYS_TIME_H).
46675         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46676         remove it conditionally, too. [added by Jim Meyering]
46677         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46678         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46679         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46680         GETTIMEOFDAY_REPLACEMENT to 1.
46681
46682 2007-01-28  Bruno Haible  <bruno@clisp.org>
46683
46684         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46685         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46687         Set UNISTD_H instead of UNISTD_H2.
46688         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46689
46690 2007-01-28  Bruno Haible  <bruno@clisp.org>
46691
46692         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46693         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46694
46695 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46696
46697         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46698         (func_create_testdir): Ensure C locale for `grep' and `tr'
46699         character ranges.
46700         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46701         ACLOCAL_AMFLAGS parsing state machine.
46702
46703 2007-01-27  Bruno Haible  <bruno@clisp.org>
46704
46705         * modules/unistr/base: Update.
46706
46707 2007-01-27  Bruno Haible  <bruno@clisp.org>
46708
46709         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46710         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46711         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46712         modules/unistr/u32-mbtouc.
46713         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46714         * lib/unistr.h: Update.
46715         * lib/linebreak.c: Update.
46716         * modules/unistr/u32-mbtouc: Renamed from
46717         modules/unistr/u32-mbtouc-safe.
46718         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46719         * lib/unistr.h: Update.
46720         * lib/unistr/u32-to-u8.c: Update.
46721         * lib/unistr/u32-to-u16.c: Update.
46722
46723 2007-01-27  Bruno Haible  <bruno@clisp.org>
46724
46725         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46726         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46727         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46728         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46729         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46730         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46731         modules/unistr/u16-mbtouc.
46732         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46733         * lib/unistr.h: Update.
46734         * lib/linebreak.c: Update.
46735         * modules/linebreak: Update.
46736         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46737         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46738         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46739         * modules/unistr/u16-mbtouc: Renamed from
46740         modules/unistr/u16-mbtouc-safe.
46741         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46742         * lib/unistr.h: Update.
46743         * lib/unistr/u16-to-u8.c: Update.
46744         * modules/unistr/u16-to-u8: Update.
46745         * lib/unistr/u16-to-u32.c: Update.
46746         * modules/unistr/u16-to-u32: Update.
46747
46748 2007-01-27  Bruno Haible  <bruno@clisp.org>
46749
46750         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46751         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46752         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46753         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46754         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46755         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46756         modules/unistr/u8-mbtouc.
46757         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46758         * lib/unistr.h: Update.
46759         * lib/striconveh.c: Update.
46760         * modules/striconveh: Update.
46761         * lib/linebreak.c: Update.
46762         * modules/linebreak: Update.
46763         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46764         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46765         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46766         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46767         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46768         * lib/unistr.h: Update.
46769         * lib/striconveh.c: Update.
46770         * modules/striconveh: Update.
46771         * lib/unistr/u8-to-u16.c: Update.
46772         * modules/unistr/u8-to-u16: Update.
46773         * lib/unistr/u8-to-u32.c: Update.
46774         * modules/unistr/u8-to-u32: Update.
46775
46776 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46777
46778         Sync from Libtool.
46779         * lib/argz.c: Do not include strings.h nor memory.h, include
46780         string.h unconditionally.  Patch by Simon Josefsson.
46781
46782 2007-01-27  Bruno Haible  <bruno@clisp.org>
46783
46784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46785         from gl_HEADER_STRING_H_BODY.
46786         (gl_HEADER_STRING_H_BODY): Require it.
46787         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46790         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46791         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46792         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46794         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46795         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46796         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46797         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46798         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46799         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46800         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46801         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46802
46803 2007-01-27  Bruno Haible  <bruno@clisp.org>
46804
46805         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46806         check_PROGRAMS into noinst_PROGRAMS.
46807         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46808         check_PROGRAMS in this case.
46809         (func_import): Set for_test to false.
46810         (func_create_testdir): Set for_test to true.
46811
46812 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46813             Bruno Haible  <bruno@clisp.org>
46814
46815         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46816         (Depends-on): Add string.
46817         (Includes): Use <string.h> instead of strcasestr.h.
46818         * modules/string (Makefile.am): Also substitute the value of
46819         REPLACE_STRCASESTR.
46820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46821         assume strcasestr is declared in <string.h> not <strings.h>. Also
46822         set REPLACE_STRCASESTR.
46823         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46824         REPLACE_STRCASESTR.
46825         * lib/strcasestr.h: Remove file.
46826         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46827         * lib/string_.h (strcasestr): New declaration.
46828
46829 2007-01-27  Bruno Haible  <bruno@clisp.org>
46830
46831         * lib/string_.h: Use 'extern'.
46832
46833 2007-01-27  Jim Meyering  <jim@meyering.net>
46834
46835         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46836         of set-but-not-used local, "q".
46837
46838         * lib/mempcpy.c: Include <config.h> before <string.h>.
46839         This fixes a compilation error on HP-UX, due to the system's
46840         "restrict"-using mempcpy prototype.
46841
46842 2007-01-26  Bruno Haible  <bruno@clisp.org>
46843
46844         Small optimization.
46845         * lib/javacomp.c: Include c-strstr.h.
46846          (is_envjavac_gcj): Use c_strstr instead of strstr.
46847         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46848
46849 2007-01-26  Bruno Haible  <bruno@clisp.org>
46850
46851         * MODULES.html.sh (Unicode string functions): Add the new modules.
46852
46853         * modules/uniconv/u32-strconv-to-locale: New file.
46854         * lib/uniconv/u32-strconv-to-locale.c: New file.
46855
46856         * modules/uniconv/u16-strconv-to-locale: New file.
46857         * lib/uniconv/u16-strconv-to-locale.c: New file.
46858
46859         * modules/uniconv/u8-strconv-to-locale: New file.
46860         * lib/uniconv/u8-strconv-to-locale.c: New file.
46861
46862         * modules/uniconv/u32-strconv-from-locale: New file.
46863         * lib/uniconv/u32-strconv-from-locale.c: New file.
46864
46865         * modules/uniconv/u16-strconv-from-locale: New file.
46866         * lib/uniconv/u16-strconv-from-locale.c: New file.
46867
46868         * modules/uniconv/u8-strconv-from-locale: New file.
46869         * lib/uniconv/u8-strconv-from-locale.c: New file.
46870
46871         * modules/uniconv/u32-strconv-to-enc: New file.
46872         * lib/uniconv/u32-strconv-to-enc.c: New file.
46873         * modules/uniconv/u32-strconv-to-enc-tests: New file.
46874         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
46875
46876         * modules/uniconv/u16-strconv-to-enc: New file.
46877         * lib/uniconv/u16-strconv-to-enc.c: New file.
46878         * lib/uniconv/u-strconv-to-enc.h: New file.
46879         * modules/uniconv/u16-strconv-to-enc-tests: New file.
46880         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
46881
46882         * modules/uniconv/u8-strconv-to-enc: New file.
46883         * lib/uniconv/u8-strconv-to-enc.c: New file.
46884         * modules/uniconv/u8-strconv-to-enc-tests: New file.
46885         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
46886
46887         * modules/uniconv/u32-strconv-from-enc: New file.
46888         * lib/uniconv/u32-strconv-from-enc.c: New file.
46889         * modules/uniconv/u32-strconv-from-enc-tests: New file.
46890         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
46891
46892         * modules/uniconv/u16-strconv-from-enc: New file.
46893         * lib/uniconv/u16-strconv-from-enc.c: New file.
46894         * modules/uniconv/u16-strconv-from-enc-tests: New file.
46895         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
46896
46897         * modules/uniconv/u8-strconv-from-enc: New file.
46898         * lib/uniconv/u8-strconv-from-enc.c: New file.
46899         * lib/uniconv/u-strconv-from-enc.h: New file.
46900         * modules/uniconv/u8-strconv-from-enc-tests: New file.
46901         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
46902
46903         * modules/uniconv/u32-conv-from-enc: New file.
46904         * lib/uniconv/u32-conv-from-enc.c: New file.
46905         * modules/uniconv/u32-conv-from-enc-tests: New file.
46906         * tests/uniconv/test-u32-conv-from-enc.c: New file.
46907
46908         * modules/uniconv/u16-conv-from-enc: New file.
46909         * lib/uniconv/u16-conv-from-enc.c: New file.
46910         * lib/uniconv/u-conv-from-enc.h: New file.
46911         * modules/uniconv/u16-conv-from-enc-tests: New file.
46912         * tests/uniconv/test-u16-conv-from-enc.c: New file.
46913
46914         * modules/uniconv/u8-conv-from-enc: New file.
46915         * lib/uniconv/u8-conv-from-enc.c: New file.
46916         * modules/uniconv/u8-conv-from-enc-tests: New file.
46917         * tests/uniconv/test-u8-conv-from-enc.c: New file.
46918
46919         * modules/uniconv/base: New file.
46920         * lib/uniconv.h: New file.
46921
46922 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46923
46924         * doc/gnulib-tool.texi (Initial import): Update to match current
46925         behavior with strdup module.
46926         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
46927         * lib/memmem.h: Remove; all uses removed.  This is now done
46928         by <string.h>.
46929         * lib/mempcpy.h: Likewise.
46930         * lib/memrchr.h: Likewise.
46931         * lib/stpcpy.h: Likewise.
46932         * lib/stpncpy.h: Likewise.
46933         * lib/strcase.h: Likewise.
46934         * lib/strchrnul.h: Likewise.
46935         * lib/strdup.h: Likewise.
46936         * lib/strndup.h: Likewise.
46937         * lib/strnlen.h: Likewise.
46938         * lib/strpbrk.h: Likewise.
46939         * lib/strsep.h: Likewise.
46940         * lib/strstr.h: Likewise.
46941         * lib/strtok_r.h: Likewise.
46942         * lib/string_.h: New file.
46943         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
46944         Rely on <string.h> instead.
46945         * lib/canon-host.c: Likewise.
46946         * lib/chdir-long.c: Likewise.
46947         * lib/concatpath.c: Likewise.
46948         * lib/exclude.c: Likewise.
46949         * lib/fchdir.c: Likewise.
46950         * lib/getaddrinfo.c: Likewise.
46951         * lib/getcwd.c: Likewise.
46952         * lib/getsubopt.c: Likewise.
46953         * lib/glob.c: Likewise.
46954         * lib/hard-locale.c: Likewise.
46955         * lib/iconvme.c: Likewise.
46956         * lib/javacomp.c: Likewise.
46957         * lib/mempcpy.c: Likewise.
46958         * lib/memrchr.c: Likewise.
46959         * lib/regex_internal.h: Likewise.
46960         * lib/stpncpy.c: Likewise.
46961         * lib/strcasecmp.c: Likewise.
46962         * lib/strchrnul.c: Likewise.
46963         * lib/strdup.c: Likewise.
46964         * lib/striconv.c: Likewise.
46965         * lib/striconveh.c: Likewise.
46966         * lib/striconveha.c: Likewise.
46967         * lib/strncasecmp.c: Likewise.
46968         * lib/strndup.c: Likewise.
46969         * lib/strnlen.c: Likewise.
46970         * lib/strsep.c: Likewise.
46971         * lib/strstr.c: Likewise.
46972         * lib/strtok_r.c: Likewise.
46973         * lib/userspec.c: Likewise.
46974         * lib/w32spawn.h: Likewise.
46975         * lib/xstrndup.c: Likewise.
46976         * lib/mountlist.c (strstr): Remove decl.
46977         * m4/string_h.m4: New file.
46978         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
46979         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
46980         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
46981         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
46982         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
46983         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
46984         Set REPLACE_STRCASECMP if necessary.
46985         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
46986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
46987         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
46988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
46989         HAVE_DECL_STRDUP if necessary.
46990         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
46991         since gl_FUNC_STRNDUP does that now.
46992         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
46993         Check for decl here...
46994         (gl_PREREQ_STRNLEN): ... not here.
46995         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
46996         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
46997         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
46998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
46999         necessary.
47000         * modules/string: New file.
47001         * modules/memmem (Files): Remove special-purpose include file.
47002         (Depends-on): Add string.
47003         (Include): Include <string.h>, not the removed file.
47004         * modules/mempcpy: Likewise.
47005         * modules/memrchr: Likewise.
47006         * modules/stpcpy: Likewise.
47007         * modules/stpncpy: Likewise.
47008         * modules/strcase: Likewise.
47009         * modules/strchrnul: Likewise.
47010         * modules/strdup: Likewise.
47011         * modules/strndup: Likewise.
47012         * modules/strnlen: Likewise.
47013         * modules/strpbrk: Likewise.
47014         * modules/strsep: Likewise.
47015         * modules/strstr: Likewise.
47016         * modules/strtok_r: Likewise.
47017         * tests/test-dirname.c: Don't include "strdup.h", since
47018         <string.h> now suffices.
47019         * tests/test-memmem.c: Don't include "memmem.h", since
47020         <string.h> now suffices.
47021
47022 2007-01-25  Bruno Haible  <bruno@clisp.org>
47023
47024         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47025         *resultp is 0.
47026
47027         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47028         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47029         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47030         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47031
47032         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47033         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47034         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47035         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47036         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47037         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47038
47039 2007-01-24  Bruno Haible  <bruno@clisp.org>
47040
47041         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47042         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47043         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47044         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47045         gl_FUNC_FTS_CORE.
47046         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47047         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47048         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47049         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47050         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47051         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47052         gl_FUNC_FCHOWNAT.
47053         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47054         gl_FUNC_STRFTIME.
47055         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47056         Reported by Ralf Wildenhues.
47057
47058 2007-01-24  Bruno Haible  <bruno@clisp.org>
47059
47060         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47061         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47062         gl_GETADDRINFO.
47063         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47064         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47065         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47066
47067 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47068
47069         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47070         Don't use 'exit'; just return from 'main'.
47071         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47072
47073         * lib/fnmatch_.h: Readjust white space and comments to match
47074         glibc, to avoid spurious diffs.
47075
47076 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47077
47078         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47079         2004-12-01 change by Jakub Jelinek, since this code won't compile
47080         if !LIBC.  Problem reported by Bob Proulx.
47081
47082 2007-01-23  Bruno Haible  <bruno@clisp.org>
47083
47084         * lib/striconveh.c: Include c-strcaseeq.h.
47085         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47086         * modules/striconveh (Depends-on): Add c-strcaseeq.
47087
47088 2007-01-23  Bruno Haible  <bruno@clisp.org>
47089
47090         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47091
47092         * modules/c-strcaseeq: New file.
47093         * lib/c-strcaseeq.h: New file.
47094
47095         * modules/streq: New file.
47096         * lib/streq.h: New file.
47097
47098 2007-01-23  Bruno Haible  <bruno@clisp.org>
47099
47100         * modules/striconveha-tests: New file.
47101         * tests/test-striconveha.c: New file.
47102
47103         * lib/striconveha.h: Include <stdbool.h>.
47104         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47105         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47106         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47107         (mem_iconveha): New function.
47108         (str_iconveha_notranslit): Renamed from str_iconveha.
47109         (str_iconveha): New function.
47110         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47111         c-strcase.
47112
47113 2007-01-23  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47116         encodings without forgiving before trying any encoding with handler.
47117         (str_iconveha): Try all encodings without forgiving before trying any
47118         encoding with handler.
47119
47120 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47121
47122         Import the following changes from libc.
47123
47124         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47125
47126         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47127
47128         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47129
47130         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47131         normal_bracket label.
47132
47133         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47134
47135         [BZ #361]
47136         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47137         to normal_bracket after fetching the next character.
47138
47139 2007-01-22  Bruno Haible  <bruno@clisp.org>
47140
47141         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47142         argument.
47143         * lib/striconveh.c (iconv_carefully_1): New function.
47144         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47145         argument.
47146         (str_cd_iconveh): Update.
47147         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47148         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47149         * tests/test-striconveh.c (MAGIC): New macro.
47150         (new_offsets): New function.
47151         (main): Test call with and without offsets.
47152
47153 2007-01-22  Bruno Haible  <bruno@clisp.org>
47154
47155         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47156         * modules/sys_select (Makefile.am): Likewise.
47157         * modules/sys_socket (Makefile.am): Likewise.
47158         * modules/sys_time (Makefile.am): Likewise.
47159
47160 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47161
47162         * modules/gettimeofday (License): Change from GPL to LGPL, since
47163         gettimeofday is a library function.
47164
47165 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47166
47167         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47168
47169 2007-01-21  Bruno Haible  <bruno@clisp.org>
47170
47171         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47172
47173 2007-01-21  Bruno Haible  <bruno@clisp.org>
47174
47175         * modules/striconveha: New file.
47176         * lib/striconveha.h: New file.
47177         * lib/striconveha.c: New file.
47178         * MODULES.html.sh (Internationalization functions): Add striconveha.
47179         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47180         string.
47181         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47182
47183 2007-01-21  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47186         * lib/striconveh.c (str_iconveh): Likewise.
47187
47188 2007-01-21  Bruno Haible  <bruno@clisp.org>
47189
47190         * lib/striconveh.h (mem_iconveh): New declaration.
47191         * lib/striconveh.c (mem_iconveh): New function.
47192         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47193
47194 2007-01-21  Bruno Haible  <bruno@clisp.org>
47195
47196         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47197
47198         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47199         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47200         original result buffer.
47201         (str_cd_iconveh): Update.
47202         * tests/test-striconveh.c (main): Update.
47203
47204         * lib/striconv.h (mem_cd_iconv): Change specification.
47205         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47206         result buffer.
47207         (str_cd_iconv): Update.
47208         * tests/test-striconv.c (main): Update.
47209
47210 2007-01-21  Bruno Haible  <bruno@clisp.org>
47211
47212         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47213
47214 2007-01-20  Jim Meyering  <jim@meyering.net>
47215
47216         * lib/userspec.c (parse_with_separator): If a user or group string
47217         starts with "+", skip the corresponding name-to-ID look-up, since
47218         such a look-up must fail: user and group names may not include "+".
47219
47220 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47221
47222         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47223         since we now assume the sys_time module.
47224         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47225         check for sys/time.h; no longer needed.
47226         * modules/poll (Depends-on): Depend on sys_time.
47227
47228 2007-01-18  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47231         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47232
47233         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47234         gettimeofday.
47235
47236         * tests/test-gettimeofday.c: Include <time.h>.
47237         (dummy): Remove variable.
47238
47239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47240         gl_HEADER_SYS_TIME_H.
47241         (gl_HEADER_SYS_TIME_H): New macro.
47242
47243         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47244         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47246         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47247         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47248         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47249         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47250         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47251         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47252         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47253         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47254
47255         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47256         last change; it caused a compilation error when cross-compiling to
47257         Cygwin.
47258
47259 2007-01-18  Jim Meyering  <jim@meyering.net>
47260
47261         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47262         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47263         than the race-prone "test -d sys || mkdir sys".
47264         (configure.ac): Use AC_PROG_MKDIR_P.
47265         * modules/sys_select: Likewise.
47266         * modules/sys_socket: Likewise.
47267         * modules/sys_time: Likewise.
47268
47269 2007-01-18  Eric Blake  <ebb9@byu.net>
47270
47271         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47272         replace gettimeofday.
47273         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47274         name, to avoid infinite recursion.
47275
47276 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47277
47278         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47279         module sys_time.
47280         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47281         assume timespec.h defines struct timeval.
47282         * lib/settime.c: Likewise.
47283         * lib/utimens.c: Likewise.
47284         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47285         since we now assume the gettimeofday module.
47286         * lib/tempname.c (__gen_tempname): Likewise.
47287         * lib/gettimeofday.h: Remove.
47288         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47289         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47290         Include <time.h>, for 'time()'.
47291         (localtime_buffer_addr): Also use this workaround if
47292         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47293         to simplify the uses.  All uses changed.
47294         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47295         that #undef is inside {}, and 'const' follows type name consistently.
47296         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47297         (gettimeofday): Do not use the maximum possible value for
47298         tv->tv_usec, since that might break usages other than ls.c.
47299         Instead, we'll leave ls.c alone.  This undoes today's patch
47300         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47301         we've never observed the problem but might as well keep the
47302         canary.
47303         * lib/nanosleep.c: Include timespec.h first, for interface check.
47304         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47305         now assume the sys_time module.
47306         * lib/tempname.c: Likewise.
47307         * lib/timespec.h: Likewise.
47308         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47309         needed.
47310         * lib/strftime.c: Likewise.
47311         * lib/timespec.h: Likewise.
47312         * lib/posixtm.c: Include posixtm.h first, for interface check.
47313         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47314         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47315         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47316         * lib/sys_time_.h: New file.
47317         * lib/timespec.h (struct timespec): Use long int, not long.
47318         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47319         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47320         Remove obsolescent call to AC_HEADER_TIME.
47321         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47323         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47324         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47325         Likewise.
47326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47327         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47328         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47329         into the sys_time module.  Check for gettimeofday just once.
47330         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47331         for gettimeofday signature to just check the signature.  Merely
47332         compile it, since linking doesn't test signature.  Improve test for
47333         whether gettimeofday.o is actually needed.
47334         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47335         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47336         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47337         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47338         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47339         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47340         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47341         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47342         than worrying about sys/time.h.
47343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47344         Don't bother worrying about TIME_WITH_SYS_TIME.
47345         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47346         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47347         * m4/sys_time_h.m4: New file.
47348         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47349         Don't include sys/time.h.  Return from main rather than exiting.
47350         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47351         all uses changed.
47352         * modules/gethrxtime (Depends-on): Add sys_time.
47353         * modules/gettime (Depends-on): Likewise.
47354         * modules/gettimeofday (Depends-on): Likewise.
47355         * modules/nanosleep (Depends-on): Likewise.
47356         * modules/settime (Depends-on): Likewise.
47357         * modules/tempname (Depends-on): Likewise.
47358         * modules/utimens (Depends-on): Likewise.
47359         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47360         (Include:) Change back to <sys/time.h>.
47361         (Maintainer:) Add self.
47362         * modules/sys_time: New file.
47363         * modules/tempname (Depends-on): Add gettimeofday.
47364         * tests/test-gettimeofday.c: Include <sys/time.h>
47365         rather than gettimeofday.h.
47366
47367 2007-01-17  Bruno Haible  <bruno@clisp.org>
47368
47369         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47370         the license default to GPL.
47371         (func_create_testdir): Don't complain if a module is LGPL and its
47372         tests module depends on GPLed modules.
47373
47374 2007-01-17  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/gettimeofday.c (gettimeofday): Add code for the case
47377         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47378         maximum possible value for tv->tv_usec, rather than the minimum one.
47379
47380 2005-10-08  Martin Lambers  <marlam@marlam.de>
47381 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47382 2007-01-16  Bruno Haible  <bruno@clisp.org>
47383
47384         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47385         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47386         gl_FUNC_GETTIMEOFDAY.
47387         (Include): Add gettimeofday.h.
47388         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47389         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47390         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47391         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47392         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47393         * lib/gettimeofday.h: New file.
47394         * lib/gettimeofday.c: Include <sys/timeb.h>.
47395         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47396         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47397         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47398         fall back on time().
47399
47400         * tests/test-gettimeofday.c: New file.
47401         * modules/gettimeofday-tests: New file.
47402
47403 2007-01-16  Eric Blake  <ebb9@byu.net>
47404
47405         * modules/fnmatch (Depends-on): Depend on wchar.
47406         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47407         * m4/fnmatch.m4: Likewise.
47408         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47409         * m4/mbchar.m4: Likewise.
47410         * modules/mbswidth (Depends-on): Depend on wchar.
47411         * lib/mbswidth.c: Assume <wchar.h>.
47412         * m4/mbswidth.m4: Likewise.
47413         * modules/quotearg (Depends-on): Depend on wchar.
47414         * lib/quotearg.c: Assume <wchar.h>.
47415         * m4/quotearg.m4: Likewise.
47416         * modules/regex (Depends-on): Depend on wchar.
47417         * lib/regex_internal.h: Assume <wchar.h>.
47418         * m4/regex.m4: Likewise.
47419         * modules/stdint (Depends-on): Depend on wchar.
47420         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47421         * m4/stdint.m4: Likewise.
47422         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47423         * modules/strftime (Depends-on): Depend on wchar.
47424         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47425         * modules/strtol (Depends-on): Depend on wchar.
47426         * lib/strtol.c: Assume <wchar.h>.
47427         * modules/wcwidth (Depends-on): Depend on wchar.
47428         * lib/wcwidth.h: Assume <wchar.h>.
47429         * m4/wcwidth.m4: Likewise.
47430
47431 2007-01-16  Bruno Haible  <bruno@clisp.org>
47432
47433         * modules/csharpexec-script: New, created from...
47434         * modules/csharpexec: ... this.
47435
47436 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47437
47438         * modules/javaexec-script: New, created from...
47439         * modules/javaexec: ... this.
47440
47441 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47442
47443         * modules/poll (Dependencies): Add sys_select.
47444
47445 2007-01-15  Jim Meyering  <jim@meyering.net>
47446
47447         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47448         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47449         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47450         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47451
47452 2007-01-15  Bruno Haible  <bruno@clisp.org>
47453
47454         * modules/striconveh: New file.
47455         * lib/striconveh.h: New file.
47456         * lib/striconveh.c: New file.
47457         * MODULES.html.sh (Internationalization functions): Add striconveh.
47458
47459         * modules/striconveh-tests: New file.
47460         * tests/test-striconveh.c: New file.
47461
47462 2007-01-15  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47465         not from GNU libiconv or GNU libc.
47466
47467 2007-01-15  Bruno Haible  <bruno@clisp.org>
47468
47469         * doc/gnulib-intro.texi (Copyright): Explain the different license
47470         terms for module descriptions, autoconf macros, tests, documentation.
47471
47472 2007-01-14  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/striconv-tests: New file.
47475         * tests/test-striconv.c: New file.
47476
47477 2007-01-14  Bruno Haible  <bruno@clisp.org>
47478
47479         * modules/iconv-tests: New file.
47480         * tests/test-iconv.c: New file.
47481
47482 2007-01-14  Bruno Haible  <bruno@clisp.org>
47483
47484         * gnulib-tool (func_get_license): For test modules, use the license of
47485         the main module.
47486
47487 2007-01-14  Bruno Haible  <bruno@clisp.org>
47488
47489         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47490         if iconv is found to exist.
47491
47492 2007-01-14  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/c-ctype-tests: New file.
47495         * tests/test-c-ctype.c: New file.
47496
47497 2007-01-14  Bruno Haible  <bruno@clisp.org>
47498
47499         * modules/binary-io-tests: New file.
47500         * tests/test-binary-io.sh: New file.
47501         * tests/test-binary-io.c: New file.
47502
47503 2007-01-14  Bruno Haible  <bruno@clisp.org>
47504
47505         * modules/array-oset-tests: New file.
47506         * tests/test-array_oset.c: New file.
47507
47508 2007-01-14  Bruno Haible  <bruno@clisp.org>
47509
47510         * modules/array-list-tests: New file.
47511         * tests/test-array_list.c: New file.
47512
47513 2007-01-14  Bruno Haible  <bruno@clisp.org>
47514
47515         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47516         and make.
47517         Reported by Simon Josefsson in
47518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47519
47520 2007-01-14  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/allocsa-tests: New file.
47523         * tests/test-allocsa.c: New file.
47524
47525 2007-01-14  Bruno Haible  <bruno@clisp.org>
47526
47527         * modules/fchdir (Depends-on): Add absolute-header.
47528         * modules/unistd (Depends-on): Likewise.
47529
47530 2006-12-30  Bruno Haible  <bruno@clisp.org>
47531
47532         * modules/fchdir: New file.
47533         * modules/unistd (Files): Add lib/unistd_.h.
47534         (Makefile.am): Generate unistd.h from unistd_.h.
47535         * lib/fchdir.c: New file.
47536         * lib/dirent_.h: New file.
47537         * lib/unistd_.h: New file.
47538         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47539         * m4/fchdir.m4: New file.
47540         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47541         (gl_HEADER_UNISTD): Invoke it.
47542         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47543         function.
47544         * lib/backupfile.c (opendir, closedir): Undefine.
47545         * lib/chown.c (open, close): Undefine.
47546         * lib/clean-temp.c (open, close): Undefine.
47547         * lib/copy-file.c (open, close): Undefine.
47548         * lib/execute.c (open, close): Undefine.
47549         * lib/fsusage.c (open, close): Undefine.
47550         * lib/gc-gnulib.c (open, close): Undefine.
47551         * lib/getcwd.c (opendir, closedir): Undefine.
47552         * lib/glob.c (opendir, closedir): Undefine.
47553         * lib/javacomp.c (open, close): Undefine.
47554         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47555         * lib/openat-proc.c (open, close): Undefine.
47556         * lib/pagealign_alloc.c (open, close): Undefine.
47557         * lib/pipe.c (open, close): Undefine.
47558         * lib/progreloc.c (open, close): Undefine.
47559         * lib/savedir.c (opendir, closedir): Undefine.
47560         * lib/utime.c (open, close): Undefine.
47561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47562
47563 2007-01-10  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47566
47567 2007-01-12  Eric Blake  <ebb9@byu.net>
47568
47569         Provide a robust <wchar.h>.  Further simplifications are now
47570         possible in other modules, but not included here.
47571         * modules/wchar: New module.
47572         * m4/wchar.m4: New file.
47573         * lib/wchar_.h: Likewise.
47574         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47575         of the new module.
47576         * MODULES.html.sh (Extended multibyte and wide character utilities):
47577         New section.
47578
47579 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47580
47581         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47582         to a reasonable default for memory allocation.
47583         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47584         file system that reports garbage st_size values for symlinks.
47585         Problem reported by Liyang Hu.
47586
47587 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47588
47589         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47590         Emacs .#* auto-save files).
47591
47592 2007-01-11  Bruno Haible  <bruno@clisp.org>
47593
47594         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47595         directory.
47596
47597 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47598
47599         Use @...@ consistently in lib/wctype_.h.
47600         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47601         on it being set to 1 or 0.
47602         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47603         go back to AC_SUBSTing it.
47604         * modules/wctype (Makefile.am): Undo previous change.
47605
47606 2007-01-10  Eric Blake  <ebb9@byu.net>
47607
47608         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47609         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47610         * modules/wctype (Makefile.am): Likewise.
47611         Reported by Chris McGuire.
47612
47613 2007-01-10  Jim Meyering  <jim@meyering.net>
47614
47615         fts.c: a small readability/maintainability improvement
47616         * lib/fts.c (fts_read): Make this code slightly more readable and
47617         maintainable by hoisting the "sp->fts_cur = p" assignments to
47618         immediately follow the statements that set P.  Derived from
47619         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47620
47621 2007-01-10  Eric Blake  <ebb9@byu.net>
47622
47623         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47624         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47626         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47627         Reported by Chris McGuire.
47628
47629 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47630
47631         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47632         in sed script.
47633
47634 2007-01-09  Bruno Haible  <bruno@clisp.org>
47635
47636         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47637         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47638         variables.
47639         (func_module): Use them.
47640
47641 2007-01-09  Bruno Haible  <bruno@clisp.org>
47642
47643         * modules/unistr/base: New file.
47644         * lib/unistr.h: New file.
47645
47646         * modules/unistr/u8-to-u16: New file.
47647         * lib/unistr/u8-to-u16.c: New file.
47648
47649         * modules/unistr/u8-to-u32: New file.
47650         * lib/unistr/u8-to-u32.c: New file.
47651
47652         * modules/unistr/u16-to-u8: New file.
47653         * lib/unistr/u16-to-u8.c: New file.
47654
47655         * modules/unistr/u16-to-u32: New file.
47656         * lib/unistr/u16-to-u32.c: New file.
47657
47658         * modules/unistr/u32-to-u8: New file.
47659         * lib/unistr/u32-to-u8.c: New file.
47660
47661         * modules/unistr/u32-to-u16: New file.
47662         * lib/unistr/u32-to-u16.c: New file.
47663
47664         * modules/unistr/u8-check: New file.
47665         * modules/unistr/u16-check: New file.
47666         * modules/unistr/u32-check: New file.
47667         * lib/unistr/u8-check.c: New file.
47668         * lib/unistr/u16-check.c: New file.
47669         * lib/unistr/u32-check.c: New file.
47670
47671         * modules/unistr/u8-chr: New file.
47672         * modules/unistr/u16-chr: New file.
47673         * modules/unistr/u32-chr: New file.
47674         * lib/unistr/u8-chr.c: New file.
47675         * lib/unistr/u16-chr.c: New file.
47676         * lib/unistr/u32-chr.c: New file.
47677
47678         * modules/unistr/u8-cmp: New file.
47679         * modules/unistr/u16-cmp: New file.
47680         * modules/unistr/u32-cmp: New file.
47681         * lib/unistr/u8-cmp.c: New file.
47682         * lib/unistr/u16-cmp.c: New file.
47683         * lib/unistr/u32-cmp.c: New file.
47684
47685         * modules/unistr/u8-cpy: New file.
47686         * modules/unistr/u16-cpy: New file.
47687         * modules/unistr/u32-cpy: New file.
47688         * lib/unistr/u8-cpy.c: New file.
47689         * lib/unistr/u16-cpy.c: New file.
47690         * lib/unistr/u32-cpy.c: New file.
47691         * lib/unistr/u-cpy.h: New file.
47692
47693         * modules/unistr/u8-cpy-alloc: New file.
47694         * modules/unistr/u16-cpy-alloc: New file.
47695         * modules/unistr/u32-cpy-alloc: New file.
47696         * lib/unistr/u8-cpy-alloc.c: New file.
47697         * lib/unistr/u16-cpy-alloc.c: New file.
47698         * lib/unistr/u32-cpy-alloc.c: New file.
47699         * lib/unistr/u-cpy-alloc.h: New file.
47700
47701         * modules/unistr/u8-endswith: New file.
47702         * modules/unistr/u16-endswith: New file.
47703         * modules/unistr/u32-endswith: New file.
47704         * lib/unistr/u8-endswith.c: New file.
47705         * lib/unistr/u16-endswith.c: New file.
47706         * lib/unistr/u32-endswith.c: New file.
47707         * lib/unistr/u-endswith.h: New file.
47708
47709         * modules/unistr/u8-mblen: New file.
47710         * modules/unistr/u16-mblen: New file.
47711         * modules/unistr/u32-mblen: New file.
47712         * lib/unistr/u8-mblen.c: New file.
47713         * lib/unistr/u16-mblen.c: New file.
47714         * lib/unistr/u32-mblen.c: New file.
47715
47716         * modules/unistr/u8-mbtouc: New file.
47717         * modules/unistr/u16-mbtouc: New file.
47718         * modules/unistr/u32-mbtouc: New file.
47719         * lib/unistr/u8-mbtouc.c: New file.
47720         * lib/unistr/u16-mbtouc.c: New file.
47721         * lib/unistr/u32-mbtouc.c: New file.
47722
47723         * modules/unistr/u8-mbtouc-safe: New file.
47724         * modules/unistr/u16-mbtouc-safe: New file.
47725         * modules/unistr/u32-mbtouc-safe: New file.
47726         * lib/unistr/u8-mbtouc-safe.c: New file.
47727         * lib/unistr/u16-mbtouc-safe.c: New file.
47728         * lib/unistr/u32-mbtouc-safe.c: New file.
47729
47730         * modules/unistr/u8-move: New file.
47731         * modules/unistr/u16-move: New file.
47732         * modules/unistr/u32-move: New file.
47733         * lib/unistr/u8-move.c: New file.
47734         * lib/unistr/u16-move.c: New file.
47735         * lib/unistr/u32-move.c: New file.
47736         * lib/unistr/u-move.h: New file.
47737
47738         * modules/unistr/u8-next: New file.
47739         * modules/unistr/u16-next: New file.
47740         * modules/unistr/u32-next: New file.
47741         * lib/unistr/u8-next.c: New file.
47742         * lib/unistr/u16-next.c: New file.
47743         * lib/unistr/u32-next.c: New file.
47744
47745         * modules/unistr/u8-prev: New file.
47746         * modules/unistr/u16-prev: New file.
47747         * modules/unistr/u32-prev: New file.
47748         * lib/unistr/u8-prev.c: New file.
47749         * lib/unistr/u16-prev.c: New file.
47750         * lib/unistr/u32-prev.c: New file.
47751
47752         * modules/unistr/u8-set: New file.
47753         * modules/unistr/u16-set: New file.
47754         * modules/unistr/u32-set: New file.
47755         * lib/unistr/u8-set.c: New file.
47756         * lib/unistr/u16-set.c: New file.
47757         * lib/unistr/u32-set.c: New file.
47758         * lib/unistr/u-set.h: New file.
47759
47760         * modules/unistr/u8-startswith: New file.
47761         * modules/unistr/u16-startswith: New file.
47762         * modules/unistr/u32-startswith: New file.
47763         * lib/unistr/u8-startswith.c: New file.
47764         * lib/unistr/u16-startswith.c: New file.
47765         * lib/unistr/u32-startswith.c: New file.
47766         * lib/unistr/u-startswith.h: New file.
47767
47768         * modules/unistr/u8-stpcpy: New file.
47769         * modules/unistr/u16-stpcpy: New file.
47770         * modules/unistr/u32-stpcpy: New file.
47771         * lib/unistr/u8-stpcpy.c: New file.
47772         * lib/unistr/u16-stpcpy.c: New file.
47773         * lib/unistr/u32-stpcpy.c: New file.
47774         * lib/unistr/u-stpcpy.h: New file.
47775
47776         * modules/unistr/u8-stpncpy: New file.
47777         * modules/unistr/u16-stpncpy: New file.
47778         * modules/unistr/u32-stpncpy: New file.
47779         * lib/unistr/u8-stpncpy.c: New file.
47780         * lib/unistr/u16-stpncpy.c: New file.
47781         * lib/unistr/u32-stpncpy.c: New file.
47782         * lib/unistr/u-stpncpy.h: New file.
47783
47784         * modules/unistr/u8-strcat: New file.
47785         * modules/unistr/u16-strcat: New file.
47786         * modules/unistr/u32-strcat: New file.
47787         * lib/unistr/u8-strcat.c: New file.
47788         * lib/unistr/u16-strcat.c: New file.
47789         * lib/unistr/u32-strcat.c: New file.
47790         * lib/unistr/u-strcat.h: New file.
47791
47792         * modules/unistr/u8-strchr: New file.
47793         * modules/unistr/u16-strchr: New file.
47794         * modules/unistr/u32-strchr: New file.
47795         * lib/unistr/u8-strchr.c: New file.
47796         * lib/unistr/u16-strchr.c: New file.
47797         * lib/unistr/u32-strchr.c: New file.
47798
47799         * modules/unistr/u8-strcmp: New file.
47800         * modules/unistr/u16-strcmp: New file.
47801         * modules/unistr/u32-strcmp: New file.
47802         * lib/unistr/u8-strcmp.c: New file.
47803         * lib/unistr/u16-strcmp.c: New file.
47804         * lib/unistr/u32-strcmp.c: New file.
47805
47806         * modules/unistr/u8-strcpy: New file.
47807         * modules/unistr/u16-strcpy: New file.
47808         * modules/unistr/u32-strcpy: New file.
47809         * lib/unistr/u8-strcpy.c: New file.
47810         * lib/unistr/u16-strcpy.c: New file.
47811         * lib/unistr/u32-strcpy.c: New file.
47812         * lib/unistr/u-strcpy.h: New file.
47813
47814         * modules/unistr/u8-strcspn: New file.
47815         * modules/unistr/u16-strcspn: New file.
47816         * modules/unistr/u32-strcspn: New file.
47817         * lib/unistr/u8-strcspn.c: New file.
47818         * lib/unistr/u16-strcspn.c: New file.
47819         * lib/unistr/u32-strcspn.c: New file.
47820         * lib/unistr/u-strcspn.h: New file.
47821
47822         * modules/unistr/u8-strdup: New file.
47823         * modules/unistr/u16-strdup: New file.
47824         * modules/unistr/u32-strdup: New file.
47825         * lib/unistr/u8-strdup.c: New file.
47826         * lib/unistr/u16-strdup.c: New file.
47827         * lib/unistr/u32-strdup.c: New file.
47828         * lib/unistr/u-strdup.h: New file.
47829
47830         * modules/unistr/u8-strlen: New file.
47831         * modules/unistr/u16-strlen: New file.
47832         * modules/unistr/u32-strlen: New file.
47833         * lib/unistr/u8-strlen.c: New file.
47834         * lib/unistr/u16-strlen.c: New file.
47835         * lib/unistr/u32-strlen.c: New file.
47836         * lib/unistr/u-strlen.h: New file.
47837
47838         * modules/unistr/u8-strmblen: New file.
47839         * modules/unistr/u16-strmblen: New file.
47840         * modules/unistr/u32-strmblen: New file.
47841         * lib/unistr/u8-strmblen.c: New file.
47842         * lib/unistr/u16-strmblen.c: New file.
47843         * lib/unistr/u32-strmblen.c: New file.
47844
47845         * modules/unistr/u8-strmbtouc: New file.
47846         * modules/unistr/u16-strmbtouc: New file.
47847         * modules/unistr/u32-strmbtouc: New file.
47848         * lib/unistr/u8-strmbtouc.c: New file.
47849         * lib/unistr/u16-strmbtouc.c: New file.
47850         * lib/unistr/u32-strmbtouc.c: New file.
47851
47852         * modules/unistr/u8-strncat: New file.
47853         * modules/unistr/u16-strncat: New file.
47854         * modules/unistr/u32-strncat: New file.
47855         * lib/unistr/u8-strncat.c: New file.
47856         * lib/unistr/u16-strncat.c: New file.
47857         * lib/unistr/u32-strncat.c: New file.
47858         * lib/unistr/u-strncat.h: New file.
47859
47860         * modules/unistr/u8-strncmp: New file.
47861         * modules/unistr/u16-strncmp: New file.
47862         * modules/unistr/u32-strncmp: New file.
47863         * lib/unistr/u8-strncmp.c: New file.
47864         * lib/unistr/u16-strncmp.c: New file.
47865         * lib/unistr/u32-strncmp.c: New file.
47866
47867         * modules/unistr/u8-strncpy: New file.
47868         * modules/unistr/u16-strncpy: New file.
47869         * modules/unistr/u32-strncpy: New file.
47870         * lib/unistr/u8-strncpy.c: New file.
47871         * lib/unistr/u16-strncpy.c: New file.
47872         * lib/unistr/u32-strncpy.c: New file.
47873         * lib/unistr/u-strncpy.h: New file.
47874
47875         * modules/unistr/u8-strnlen: New file.
47876         * modules/unistr/u16-strnlen: New file.
47877         * modules/unistr/u32-strnlen: New file.
47878         * lib/unistr/u8-strnlen.c: New file.
47879         * lib/unistr/u16-strnlen.c: New file.
47880         * lib/unistr/u32-strnlen.c: New file.
47881         * lib/unistr/u-strnlen.h: New file.
47882
47883         * modules/unistr/u8-strpbrk: New file.
47884         * modules/unistr/u16-strpbrk: New file.
47885         * modules/unistr/u32-strpbrk: New file.
47886         * lib/unistr/u8-strpbrk.c: New file.
47887         * lib/unistr/u16-strpbrk.c: New file.
47888         * lib/unistr/u32-strpbrk.c: New file.
47889         * lib/unistr/u-strpbrk.h: New file.
47890
47891         * modules/unistr/u8-strrchr: New file.
47892         * modules/unistr/u16-strrchr: New file.
47893         * modules/unistr/u32-strrchr: New file.
47894         * lib/unistr/u8-strrchr.c: New file.
47895         * lib/unistr/u16-strrchr.c: New file.
47896         * lib/unistr/u32-strrchr.c: New file.
47897
47898         * modules/unistr/u8-strspn: New file.
47899         * modules/unistr/u16-strspn: New file.
47900         * modules/unistr/u32-strspn: New file.
47901         * lib/unistr/u8-strspn.c: New file.
47902         * lib/unistr/u16-strspn.c: New file.
47903         * lib/unistr/u32-strspn.c: New file.
47904         * lib/unistr/u-strspn.h: New file.
47905
47906         * modules/unistr/u8-strstr: New file.
47907         * modules/unistr/u16-strstr: New file.
47908         * modules/unistr/u32-strstr: New file.
47909         * lib/unistr/u8-strstr.c: New file.
47910         * lib/unistr/u16-strstr.c: New file.
47911         * lib/unistr/u32-strstr.c: New file.
47912         * lib/unistr/u-strstr.h: New file.
47913
47914         * modules/unistr/u8-strtok: New file.
47915         * modules/unistr/u16-strtok: New file.
47916         * modules/unistr/u32-strtok: New file.
47917         * lib/unistr/u8-strtok.c: New file.
47918         * lib/unistr/u16-strtok.c: New file.
47919         * lib/unistr/u32-strtok.c: New file.
47920         * lib/unistr/u-strtok.h: New file.
47921
47922         * modules/unistr/u8-uctomb: New file.
47923         * modules/unistr/u16-uctomb: New file.
47924         * modules/unistr/u32-uctomb: New file.
47925         * lib/unistr/u8-uctomb.c: New file.
47926         * lib/unistr/u16-uctomb.c: New file.
47927         * lib/unistr/u32-uctomb.c: New file.
47928
47929         * MODULES.html.sh (Unicode string functions): Add the new modules.
47930
47931 2007-01-08  Bruno Haible  <bruno@clisp.org>
47932
47933         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
47934         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
47935         subdirectories.
47936
47937 2007-01-08  Karl Berry  <karl@gnu.org>
47938
47939         * doc/error.texi: mention that main() fns must set program_name
47940         when progname is used.
47941
47942 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
47943
47944         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
47945         WCTYPE_H is empty, for the benefit of builds from non-distclean
47946         directories.  Problem reported by Eric Blake in
47947         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
47948
47949 2007-01-08  Bruno Haible  <bruno@clisp.org>
47950
47951         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
47952         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
47953         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
47954         PROVIDE_CANONICALIZE_FILENAME_MODE.
47955         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
47956
47957 2007-01-08  Bruno Haible  <bruno@clisp.org>
47958
47959         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
47960         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
47961         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
47962         * lib/fts.c: Likewise.
47963         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
47964
47965 2006-12-25  Bruno Haible  <bruno@clisp.org>
47966
47967         * modules/utf8-ucs4-safe: New file.
47968         * lib/utf8-ucs4-safe.h: New file.
47969         * lib/unistr/utf8-ucs4-safe.c: New file.
47970
47971         * modules/utf16-ucs4-safe: New file.
47972         * lib/utf16-ucs4-safe.h: New file.
47973         * lib/unistr/utf16-ucs4-safe.c: New file.
47974
47975         * MODULES.html.sh (Unicode string functions): Add the new modules.
47976
47977 2007-01-08  Bruno Haible  <bruno@clisp.org>
47978
47979         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
47980         (Depends-on): Add unitypes.
47981         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47982         (u8_mbtouc_aux): Move out to separate file.
47983         (u8_mbtouc): Use ucs4_t, uint8_t types.
47984         * lib/unistr/utf8-ucs4.c: New file.
47985
47986         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
47987         (Depends-on): Add unitypes.
47988         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
47989         (u16_mbtouc_aux): Move out to separate file.
47990         (u16_mbtouc): Use ucs4_t, uint16_t types.
47991         * lib/unistr/utf16-ucs4.c: New file.
47992
47993         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
47994         (Depends-on): Add unitypes.
47995         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
47996         (u8_uctomb_aux): Move out to separate file.
47997         (u8_uctomb): Use ucs4_t, uint8_t types.
47998         * lib/unistr/ucs4-utf8.c: New file.
47999
48000         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48001         (Depends-on): Add unitypes.
48002         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48003         (u16_uctomb_aux): Move out to separate file.
48004         (u16_uctomb): Use ucs4_t, uint16_t types.
48005         * lib/unistr/ucs4-utf16.c: New file.
48006
48007 2006-12-25  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/unitypes: New file.
48010         * lib/unitypes.h: New file.
48011         * MODULES.html.sh (func_all_modules): New section "Unicode string
48012         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48013         this section. Add unitypes.
48014
48015 2007-01-08  Bruno Haible  <bruno@clisp.org>
48016
48017         Avoid variable names that conflict with those from libtool.
48018         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48019         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48020         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48021         library_names_spec to acl_library_names_spec, hardcode_* to
48022         acl_hardcode_*.
48023         Reported by Ralf Wildenhues.
48024
48025 2007-01-08  Bruno Haible  <bruno@clisp.org>
48026
48027         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48028         definition.
48029         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48030         definition.
48031         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48032         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48033         definition.
48034         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48035         definition.
48036         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48037         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48038         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48039         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48040         definition.
48041         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48042         definition.
48043         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48044         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48045         GC_USE_<algorithm>.
48046         * lib/gc-libgcrypt.c: Likewise.
48047         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48048         * modules/gc-arctwo (configure.ac): Likewise.
48049         * modules/gc-des (configure.ac): Likewise.
48050         * modules/gc-hmac-md5 (configure.ac): Likewise.
48051         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48052         * modules/gc-md2 (configure.ac): Likewise.
48053         * modules/gc-md4 (configure.ac): Likewise.
48054         * modules/gc-md5 (configure.ac): Likewise.
48055         * modules/gc-random (configure.ac): Likewise.
48056         * modules/gc-rijndael (configure.ac): Likewise.
48057         * modules/gc-sha1 (configure.ac): Likewise.
48058
48059 2007-01-08  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48062         macro definition.
48063         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48064         definition.
48065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48066         definition.
48067         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48068         * modules/fcntl-safer (configure.ac): Likewise.
48069         * modules/fopen-safer (configure.ac): Likewise.
48070         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48071         GNULIB_FWRITEERROR macro definition.
48072
48073 2007-01-08  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/gnulib-common.m4: New file.
48076         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48077         (func_get_filelist): Add m4/gnulib-common.m4.
48078
48079 2007-01-08  Bruno Haible  <bruno@clisp.org>
48080
48081         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48082         command.
48083
48084 2007-01-08  Jim Meyering  <jim@meyering.net>
48085
48086         Use a more robust test for a "can't happen" condition.
48087         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48088         narrowed the st_size value.  Presuming the "can't happen" condition
48089         is true, that narrowing could conceivably convert an invalid st_size
48090         value into a valid one.  Instead, use a change based on Matthew
48091         Woehlke's original patch.
48092
48093         Slight readability improvement: use an assert-like macro
48094         in place of literal "abort ()" uses.
48095         * lib/fts.c (fts_assert): Define.
48096         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48097         Use this macro instead of a bare 'abort'.
48098
48099 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48100
48101         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48102         simply work around them.
48103         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48105         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48106         declaring.
48107         Don't bother to define as macros, since the standard doesn't require it.
48108         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48109         longer worry about IRIX 5.3.
48110         (HAVE_WCTYPE_CTMP_BUG): Remove.
48111
48112 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48113
48114         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48115         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48116         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48117         Problems reported by Georg Schwarz for IRIX 5.3.
48118
48119         * gnulib-tool (autoconf_minversion): Take the maximum version number
48120         found, not the minimum.  Problem reported by James Youngman.
48121
48122 2007-01-03  Karl Berry  <karl@gnu.org>
48123
48124         * doc/error.texi: new file, explaining interaction with progname.
48125         * doc/gnulib.texi: include it.  Update copyright.
48126
48127 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48128
48129         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48130         AC_CANONICAL_HOST, to improve autobuild outputs.
48131
48132 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48133             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48134
48135         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48136         sockets, server sockets, and other file descriptors.  Count errors
48137         to compute the return value.  Reorder the code a bit to be easier
48138         to follow.  Don't set event bits that were not requested (except
48139         POLLERR and POLLHUP).
48140
48141 2007-01-01  Bruno Haible  <bruno@clisp.org>
48142
48143         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48144
48145 2007-01-03  Jim Meyering  <jim@meyering.net>
48146
48147         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48148
48149 2007-01-02  Bruno Haible  <bruno@clisp.org>
48150
48151         * modules/settime (Include): Require timespec.h.
48152         * modules/nanosleep (Include): Likewise.
48153
48154 2007-01-01  Bruno Haible  <bruno@clisp.org>
48155
48156         * gnulib-tool (func_emit_copyright_notice): Bump year.
48157         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48158
48159 2007-01-01  Bruno Haible  <bruno@clisp.org>
48160
48161         Improve support for OpenBSD.
48162         * build-aux/config.rpath (libname_spec): Export.
48163         (library_names_spec): New variable. Export.
48164         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48165         library_names_spec from the config.rpath output. Locate shared library
48166         through the name pattern in library_names_spec.
48167
48168 2007-01-01  Eric Blake  <ebb9@byu.net>
48169
48170         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48171
48172 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48173
48174         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48175         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48176         assume the C locale, and avoid an "eval" that could cause trouble.
48177         Problem with SORT reported by Bob Proulx.
48178
48179         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48180         Define.  Trivial patch from Henning Nielsen Lund, originally
48181         sent to bug-grep@gnu.org today.
48182
48183 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48184
48185         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48186         struct stat.  Problem reported by Henning Nielsen Lund.
48187         * lib/acl.c: Include acl.h first, to check interface.  Don't
48188         bother to include sys/types.h and sys/stat.h again.
48189
48190 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48191
48192         Import the following change from libc; problem reported by
48193         Sven Verdoolaege.
48194
48195         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48196
48197         [BZ #1373]
48198         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48199
48200 2006-12-28  Jim Meyering  <jim@meyering.net>
48201
48202         * build-aux/announce-gen: Do not assume that the package
48203         builds any of tar.gz, tar.bz2, and .xdelta files.
48204         Suggestion from Simon Josefsson.
48205
48206 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48207
48208         * modules/announce-gen: New file.
48209
48210 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48213         handles its gotchas now.
48214         * lib/mbswidth.c: Likewise.
48215         * lib/wcwidth.h: Likewise.
48216         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48217         and iswcntrl; the wctype module does this stuff now.
48218         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48219         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48220         * modules/mbchar (Depends-on): Add wctype.
48221         * modules/mbswidth (Depends-on): Likewise.
48222         * modules/wcwidth (Depends-on): Likewise.
48223
48224 2006-12-27  Eric Blake  <ebb9@byu.net>
48225
48226         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48227         module uses more than what <wctype.h> is required to provide.
48228
48229 2006-12-26  Eric Blake  <ebb9@byu.net>
48230
48231         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48232
48233 2006-12-26  Eric Blake  <ebb9@byu.net>
48234
48235         * modules/absolute-header: New module.
48236         * modules/fcntl (Depends-on): Depend on it.
48237         * modules/inttypes (Depends-on): Likewise.
48238         * modules/stdint (Depends-on): Likewise.
48239         * modules/sys_stat (Depends-on): Likewise.
48240         * modules/wctype (Depends-on): Likewise.
48241         * MODULES.html.sh (Support for building libraries and
48242         executables): Document it.
48243
48244 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48245
48246         * gnulib-tool (SED): Remove, undoing previous change.
48247         The problem was that it broke coreutils on Solaris, because
48248         "sed --posix" leaked into a makefile.
48249         (sed): New alias, if 'alias' and GNU sed.
48250
48251 2006-12-24  Jim Meyering  <jim@meyering.net>
48252
48253         Work around an fchownat bug in glibc-2.4:
48254         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48255         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48256         in spite of the -P option.
48257         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48258         New macros.
48259         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48260         * modules/openat (Files): Add lib/fchownat.c.
48261         * lib/openat.c (fchownat): Don't define here.  Move to...
48262         * lib/fchownat.c: ...this new file.
48263
48264 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48265
48266         Fix bug reported by Bruno Haible in
48267         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48268         where quotearg.c didn't compile on Mac OS X 10.2 because it
48269         lacks <wchar.h> and wint_t.
48270         * lib/wctype_.h (__wctype_wint_t): New type.
48271         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48272         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48273         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48274         Arg is now of type __wctype_wint_t, not wint_t.
48275         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48276         substitute HAVE_WINT_T.
48277         * modules/wctype (Files): Add m4/wint_t.m4.
48278         (wctype.h): Substitute HAVE_WINT_T.
48279
48280 2006-12-23  Bruno Haible  <bruno@clisp.org>
48281
48282         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48283
48284 2006-12-23  Bruno Haible  <bruno@clisp.org>
48285
48286         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48287         S_ISLNK.
48288         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48289         mingw.
48290
48291 2006-12-22  Bruno Haible  <bruno@clisp.org>
48292
48293         * lib/copy-file.c: Include acl.h.
48294         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48295         Close the file descriptors only after being done with copy_acl.
48296         * modules/copy-file (Depends-on): Add acl.
48297
48298 2006-12-22  Bruno Haible  <bruno@clisp.org>
48299
48300         * gnulib-tool (SED): New variable.
48301         Use $SED instead of sed everywhere.
48302
48303 2006-12-22  Bruno Haible  <bruno@clisp.org>
48304
48305         * modules/no-c++: New file.
48306         * m4/no-c++.m4: New file.
48307         * MODULES.html.sh (Support for building libraries and executables):
48308         Add no-c++.
48309
48310 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48313         Include <limits.h>, and use its INT_MAX to rewrite the
48314         j loop so that it does not overflow 'int'.  Problem reported by
48315         Ralf Wildenhues in
48316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48317         Play it safe by shifting left by 1 rather than multiplying by 2,
48318         as GCC is less likely to optimize this away when the value
48319         is signed (when it assumes overflow leads to undefined behavior).
48320         Also, don't assume time_t uses two's complement.
48321
48322 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * MODULES.html.sh: New module wctype.
48325         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48326         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48327         <wctype.h>, since the new wctype module should fix this.
48328         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48329         the wctype module should arrange for it.
48330         * lib/regex_internal.h: Likewise.
48331         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48332         since the wctype module should handle this now.
48333         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48334         * modules/fnmatch (Depends-on): Add wctype.
48335         * modules/quotearg (Depends-on): Likewise.
48336         * modules/regex (Depends-on): Likewise.
48337
48338 2006-12-19  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48341         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48342
48343 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48344
48345         * modules/savewd (Depends-on): Fix dependency on fcntl.
48346
48347 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48348
48349         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48350         conforms to C99, rather than relying on the user's environment
48351         setting of STDINT_H.
48352
48353 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48354         and Eric Blake  <ebb9@byu.net>
48355
48356         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48357         This is more consistent with the other defines here.
48358         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48359         Port to z/OS.  Problem reported by Paul Gilmartin.
48360         Change local vars to use gl_ prefix rather than ac_.
48361         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48362         with other defines.
48363         * modules/double-slash-root: New module.
48364         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48365         (Depends-on): Add double-slash-root.
48366         * MODULES.html.sh (File system functions): Mention new module.
48367
48368 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48369
48370         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48371         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48372         This is for the benefit of gzip, which doesn't do i18n.
48373
48374 2006-12-12  Jim Meyering  <jim@meyering.net>
48375
48376         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48377         Reported by Andreas Schwab <schwab@suse.de>.
48378
48379 2006-12-12  Bruno Haible  <bruno@clisp.org>
48380
48381         Merge these changes.
48382         2006-09-05  Bruno Haible  <bruno@clisp.org>
48383         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48384         iconv_alloc succeeded.
48385         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48386         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48387         test for " && dest " at the end - dest is always != NULL there. Call
48388         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48389         with 2xNULL arguments, also to flush the state storage. Handle the
48390         IRIX iconv behaviour. Realloc the final result, to throw away unused
48391         memory.
48392
48393 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48394
48395         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48396         and fchmodat unconditionally, since glibc 2.4 has them.
48397         Problem reported by Arkadiusz Miskiewicz.
48398
48399 2006-12-10  Bruno Haible  <bruno@clisp.org>
48400
48401         * gnulib-tool (func_import): Show the include files only for those
48402         modules that are copied and specified.
48403         Reported by Karl Berry.
48404
48405 2006-12-08  Jim Meyering  <jim@meyering.net>
48406
48407         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48408         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48409
48410         * build-aux/announce-gen: Add two new options, both optional:
48411         --bootstrap-tools=TOOL_LIST
48412               a comma-separated list of tools, e.g.,
48413               autoconf,automake,bison,gnulib
48414         --gnulib-snapshot-date=DATE
48415               if gnulib is in the bootstrap tool list,
48416               then report this as the snapshot date.
48417               If not specified, use the current date/time.
48418               If you specify a date here, be sure it's UTC.
48419
48420 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48421
48422         * tests/test-argp-2.sh: Fix test to match actual output.
48423         (func_compare): Fix sed script to be portable.
48424
48425 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48428         workaround for this case.  It is not autoconfigured now; offhand
48429         it's hard to see how to autoconfigure it.
48430
48431 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48432
48433         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48434         a directory that is about to be chowned.  Such a directory's
48435         initial file permissions should permit the owner only and this
48436         should not be changed until after the chown, since the group and
48437         other bits would be incorrect if they granted permission before
48438         the chown.
48439
48440         Fix porting problem for iswctype reported by Georg Schwarz in:
48441         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48442         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48443         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48445         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48446
48447 2006-12-03  Jim Meyering  <jim@meyering.net>
48448
48449         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48450         p->fts_statp may not yet be defined.
48451         (fts_read): Instead, set it in the caller, once p->fts_statp is
48452         sure to be defined, and corresponds to a top-level directory.
48453         This bug made du -x fail.  Here's the coreutils test case:
48454         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48455         Reported by Mike Frysinger.
48456
48457 2006-12-01  Jim Meyering  <jim@meyering.net>
48458
48459         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48460         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48461         Reported by Simon Josefsson.
48462
48463 2006-11-30  Jim Meyering  <jim@meyering.net>
48464
48465         * m4/warning.m4: Use the all-permissive copyright notice
48466         recommended by RMS (rather than LGPL).
48467         * m4/vararrays.m4: Likewise.
48468         * m4/flexmember.m4: Likewise.
48469
48470 2006-11-29  Bruno Haible  <bruno@clisp.org>
48471
48472         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48473         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48474         using +=.
48475         Reported by Simon Josefsson <simon@josefsson.org>.
48476
48477 2006-11-28  James Youngman <jay@gnu.org>
48478
48479         * README: Advise users that they might find the bug-gnulib@gnu.org
48480         and autotools-announce@gnu.org mailing lists useful.
48481
48482 2006-11-28  Bruno Haible  <bruno@clisp.org>
48483
48484         * m4/ptrdiff_max.m4: Remove file.
48485
48486 2006-11-21  Bruno Haible  <bruno@clisp.org>
48487
48488         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48489         _AC_COMPUTE_INT.
48490         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48491         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48492         _AC_COMPUTE_INT.
48493         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48494         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48495         _AC_COMPUTE_INT.
48496         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48497
48498 2006-11-28  Jim Meyering  <jim@meyering.net>
48499
48500         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48501         warning from "gcc -Wshadow" about shadowing the builtin.
48502
48503 2006-11-27  Bruno Haible  <bruno@clisp.org>
48504
48505         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48506         _AC_COMPUTE_INT.
48507         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48508
48509 2006-11-27  Bruno Haible  <bruno@clisp.org>
48510             Paul Eggert  <eggert@cs.ucla.edu>
48511
48512         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48513
48514 2006-11-26  Bruno Haible  <bruno@clisp.org>
48515
48516         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48517         noinst_LTLIBRARIES.
48518
48519 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48520             Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48523         if compiling with "gcc -ansi".
48524
48525 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48526
48527         Fix some incompatibilities with gcc -ansi -pedantic.
48528         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48529         if compiling pedantically with GCC, unless it's C99 or later.
48530         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48531         it mishandles gcc -ansi -pedantic as well.
48532         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48533         if gcc -pedantic.
48534         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48535         initializers for struct if -pedantic, unless it's C99 or later.
48536
48537 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48538
48539         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48540         Don't close an fd more than once. Identical atimes indicate
48541         success, not failure.
48542
48543 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48544
48545         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48546
48547 2006-11-23  Jim Meyering  <jim@meyering.net>
48548
48549         * build-aux/announce-gen: New file.  From coreutils.
48550
48551 2006-11-22  Jim Meyering  <jim@meyering.net>
48552
48553         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48554         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48555         (fts_read): Use a temporary to narrow the overused st_size member
48556         before using it in a switch statement.  Reported by Matthew Woehlke.
48557
48558         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48560
48561 2006-11-20  Bruno Haible  <bruno@clisp.org>
48562
48563         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48564         changequote instead of pairs of brackets.
48565         Reported by Andreas Schwab <schwab@suse.de>.
48566
48567 2006-11-21  Jim Meyering  <jim@meyering.net>
48568
48569         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48570         so as to remain compatible with older compilers.
48571         Patch from Michael Deutschmann.
48572
48573 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48574
48575         * MODULES.html.sh (File system functions): Add openat.
48576
48577         * lib/openat.h (rpl_fstatat): New macro, if
48578         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48579         (fstatat): Define to rpl_fstatat under the same conditions,
48580         unless COMPILING_FSTATAT.
48581         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48582         seems to have the bug.
48583         * lib/fstatat.c: New file.
48584         * modules/openat (Files): Add it.
48585
48586 2006-11-20  Bruno Haible  <bruno@clisp.org>
48587
48588         * Makefile: New file.
48589
48590 2006-11-20  Jim Meyering  <jim@meyering.net>
48591
48592         The beginnings of syntax-related checks for gnulib.
48593         * lib/Makefile: New file.
48594         * lib/t-idcache: New script.  Ensure that the two halves of
48595         idcache.c stay in sync.
48596
48597         * lib/idcache.c: Adjust comments in user- and group- portions to
48598         be more accurate, and to be consistent with one another.
48599
48600 2006-11-20  Jim Meyering  <jim@meyering.net>
48601
48602         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48603         continue using the flexible array member (thus, this module performs
48604         half as many malloc calls), with the addition that...
48605         (getgroup, getuser): Consistently record a non-match via an empty
48606         "name" string, and map an empty string match to a NULL return value.
48607         * modules/idcache (Depends-on): Re-add flexmember.
48608
48609         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48610         (getuidbyname, getgroup, getgidbyname): Likewise.
48611
48612         Use cleaner syntax: NULL rather than 0.
48613         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48614
48615 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48618         It mishandled the case where the group was missing.
48619         Problem reported by Greg Schafer.
48620         * modules/idcache: Likewise.
48621
48622 2006-11-18  Jim Meyering  <jim@meyering.net>
48623
48624         * check-module (%exempt_header): Add exception for some
48625         conditionally-included headers.
48626
48627         * modules/i-ring (Depends-on): Add verify.
48628         (License): Change to LGPL.
48629
48630 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48631
48632         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48633         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48634         and inttostr.h.  Use snprintf rather than uinttostr, so that
48635         LGPLed code doesn't depend on GPLed.
48636
48637 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48638
48639         * modules/inline (License): Change from GPL to LGPL.
48640
48641 2006-11-17  Jim Meyering  <jim@meyering.net>
48642
48643         * modules/d-type (License): Switch to LGPL.
48644
48645 2006-11-15  Bruno Haible  <bruno@clisp.org>
48646
48647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48648
48649 2006-11-15  Eric Blake  <ebb9@byu.net>
48650
48651         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48652         the module dependency.
48653
48654 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48655             Bruno Haible  <bruno@clisp.org>
48656
48657         * gnulib-tool (func_create_testdir): Add license consistency check.
48658
48659 2006-11-15  Eric Blake  <ebb9@byu.net>
48660
48661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48662         random "(cached)" in configure output.
48663
48664 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48665
48666         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48667         test for conforming inttypes.h is both announced and cached.
48668
48669         * MODULES.html.sh (seen_modules, seen_files): New variables.
48670         (func_module): Rewrite to use a few less gnulib-tool and sed
48671         invocations.  Avoid a couple of quadratic algorithms for ...
48672         (missed_modules, missed_files): ... these, with ...
48673         (func_append, func_tmpdir): ... these new functions, from
48674         gnulib-tool.  Analogously, install traps for cleanup.
48675
48676         * tests/test-gc.c (main): Remove unused variables.
48677         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48678
48679 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         * modules/inttostr (License): Change to LGPL.
48682
48683 2006-11-14  Eric Blake  <ebb9@byu.net>
48684
48685         * modules/tempname (License): Change to LGPL.
48686
48687 2006-11-14  Eric Blake  <ebb9@byu.net>
48688
48689         * doc/functions.texi (Function Portability): *printf functions on
48690         Cygwin now understand all POSIX size specifiers.
48691
48692 2006-11-14  Bruno Haible  <bruno@clisp.org>
48693
48694         * modules/c-ctype (License): Change to LGPL.
48695
48696 2006-11-12  Bruno Haible  <bruno@clisp.org>
48697
48698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48699         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48700         for GNOME libraries, for which the include files are installed in
48701         subdirectories of $prefix/include.
48702
48703 2006-11-12  Bruno Haible  <bruno@clisp.org>
48704
48705         * m4/lib-link.m4: Require at least autoconf-2.54.
48706         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48707         name to underscores for the --with option.
48708
48709 2006-11-13  Bruno Haible  <bruno@clisp.org>
48710
48711         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48712         the tests directory.
48713         Reported by Ralf Wildenhues.
48714
48715 2006-11-13  Bruno Haible  <bruno@clisp.org>
48716
48717         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48718         (func_emit_initmacro_end): Undo the override here.
48719         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48720         Works around the famous automake error in coreutils.
48721
48722 2006-11-13  Eric Blake  <ebb9@byu.net>
48723
48724         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48725         element, not its node.
48726
48727 2006-11-12  Bruno Haible  <bruno@clisp.org>
48728
48729         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48730         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48731
48732 2006-11-12  Bruno Haible  <bruno@clisp.org>
48733
48734         * gnulib-tool: New option --local-symlink.
48735         (func_usage): Document it.
48736         (lsymbolic): New variable.
48737         (func_import, func_create_testdir): If --symlink was not specified,
48738         test whether --local-symlink was specified and the file comes from
48739         the local_gnulib_dir.
48740
48741 2006-11-12  Bruno Haible  <bruno@clisp.org>
48742
48743         * gnulib-tool (func_ln): New function.
48744         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48745
48746 2006-11-12  Bruno Haible  <bruno@clisp.org>
48747
48748         Finish support for source files in subdirectories.
48749         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48750         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48751         AUTOMAKE_OPTIONS.
48752         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48753
48754 2006-11-12  Bruno Haible  <bruno@clisp.org>
48755
48756         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48757         EXTRA_lib_SOURCES augmentation.
48758         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48759
48760 2006-11-12  Jim Meyering  <jim@meyering.net>
48761
48762         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48763         file descriptors.  This also averts a failure on systems with
48764         native openat support when a traversed directory lacks "x" access.
48765         * lib/fts_.h: Include "i-ring.h"
48766         (struct FTS) [fts_fd_ring]: New member.
48767         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48768         (FCHDIR): Add parentheses.
48769         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48770         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48771         When descending, rather than simply closing the previous
48772         fts_cwd_fd value, push that file descriptor onto the ring.
48773         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48774         (fts_open): Initialize the new fd_ring member.
48775         (fts_close): Clear the ring.
48776         (fts_safe_changedir): When possible, use our new fd_ring to skip
48777         the diropen and fstat and dev/ino comparison that would normally
48778         accompany a virtual `chdir ("..")'.
48779
48780         * modules/fts (Depends-on): Add i-ring.
48781         * modules/i-ring: New module.
48782         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48783         * m4/i-ring.m4: New file.
48784
48785 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48786
48787         * gnulib-tool (func_create_testdir): Fix replacement of
48788         `build-aux' in configure.ac.  Run autotools in gltests
48789         subdirectory.
48790         (func_create_testdir, func_create_megatestdir, test): There is
48791         no need for '--force' in most autotool invocations in a new
48792         tree.  Actually fail the whole test if any of the tools, or the
48793         configure or make stages fail.
48794
48795         Sync from Automake.
48796         * build-aux/gnupload: Revert last change.  Add pointer to upload
48797         instructions of the GNU Maintenance Instructions.
48798         Suggestion by Karl Berry.
48799
48800 2006-11-10  Jim Meyering  <jim@meyering.net>
48801
48802         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48803
48804 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48805
48806         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48807         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48808         (bind_textdomain_codeset) [! ENABLE_NLS]:
48809         Evaluate all the arguments.  That way, callers get compatible behavior
48810         if the arguments have side effects.  Also, it avoids some GCC
48811         diagnostics in some cases; Joel E. Denny reported problems when Bison
48812         was configured with --enable-gcc-warnigs.
48813
48814 2006-11-10  Jim Meyering  <jim@meyering.net>
48815
48816         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48817         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48818         account.
48819
48820 2006-11-10  Jim Meyering  <jim@meyering.net>
48821
48822         * modules/inline: New file/module.
48823         * modules/xalloc (Files): Remove m4/inline.m4.
48824         (Depends-on): Add inline, instead.
48825         * modules/oset: Likewise.
48826         * modules/list: Likewise.
48827
48828 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48829
48830         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48831         Problem reported by Matthew Woehlke.
48832
48833 2006-11-09  Bruno Haible  <bruno@clisp.org>
48834
48835         * lib/tempname.c (gen_tempname): Remove variant that invokes
48836         __gen_tempname.
48837         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48838         __gen_tempname.
48839
48840 2006-11-08  Bruno Haible  <bruno@clisp.org>
48841
48842         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48843         to 'yes' instead of 'cross-compiling'.
48844
48845 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48846
48847         * lib/quotearg.h (quotearg_free): New decl.
48848         * lib/quotearg.c (quotearg_free): New function.
48849         (slot0, nslots, slotvec0, slotvec):
48850         Now file-scope so that quotearg_free can get at them.
48851
48852 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48853
48854         Sync from Automake.
48855         * build-aux/gnupload: Add missing 'gnu' to example URL.
48856         Report by Karl Berry.
48857
48858 2006-11-08  Bruno Haible  <bruno@clisp.org>
48859
48860         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
48861         Suggested by Paul Eggert.
48862
48863 2006-11-08  Jim Meyering  <jim@meyering.net>
48864
48865         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
48866         It's already included if !_LIBC.
48867         (fts_safe_changedir): Add a comment.
48868
48869 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48870
48871         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
48872         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
48873         Matthew Woehlke.
48874
48875         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
48876         definitions up, to avoid colliding with change below.
48877         (static_inline) [HAVE_INLINE]: New macro.
48878         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
48879         Provide extern decls when !HAVE_INLINE.  Do not define unless
48880         static_inline is defined, either by us or by xmalloc.c.  Use
48881         static_inline rather than static inline.
48882         (XCALLOC): Optimize sizeof(T) = 1 case.
48883         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
48884
48885 2006-11-07  Bruno Haible  <bruno@clisp.org>
48886
48887         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
48888         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
48889         AC_C_INLINE.
48890         * modules/xalloc (Files): Add m4/inline.m4.
48891
48892 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48893
48894         * README: Fix typo.
48895         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
48896         (Miscellanous Notes): ...from this.
48897
48898 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48899
48900         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
48901         Mention that offsetof should be used instead of sizeof.
48902         From Bruno Haible.
48903
48904 2006-11-07  Bruno Haible  <bruno@clisp.org>
48905
48906         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
48907
48908 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48909
48910         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48911         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
48912         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48913         (gl_tree_add_before, gl_tree_add_after):
48914         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
48915         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
48916         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
48917         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
48918         (gl_linked_add_after, gl_linked_add_at): Likewise.
48919         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
48920         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
48921         (gl_tree_add_before, gl_tree_add_after): Likewise.
48922         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
48923         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
48924         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
48925
48926 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48927
48928         * lib/gl_oset.h: Use C comment style, not C++ comment style.
48929
48930 2006-11-06  Bruno Haible  <bruno@clisp.org>
48931
48932         * m4/inline.m4: New file.
48933         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
48934         * modules/list (Files): Add m4/inline.m4.
48935         * modules/oset (Files): Likewise.
48936
48937 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
48938
48939         * lib/idcache.c: Include <stddef.h>, for offsetof.
48940         (struct userid.name): Change from char * to a flexible array member.
48941         All uses changed.
48942         * modules/idcache (Depends-on): Add flexmember.
48943
48944         * MODULES.html.sh (Core language properties): New module flexmember.
48945         * modules/flexmember, m4/flexmember.m4: New files.
48946
48947         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
48948         inline functions that are identical with the old xnmalloc_inline,
48949         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
48950         that we can avoid some unnecessary integer multiplications and
48951         divisions in the common case where the element size is known at
48952         compile time.
48953         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
48954         needed.
48955         (xnboundedmalloc): Remove.
48956         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
48957         arguments, for consistency with rest of this header.
48958         (xcharalloc): Rewrite using XNMALLOC.
48959         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
48960         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
48961         versions have been moved to lib/xalloc.h and renamed to be the
48962         non-*_inline versions.
48963         (xmalloc, xrealloc): Implement without reference to the xnmalloc
48964         and xnrealloc functions, since those functions are now inline and
48965         now call us.
48966         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
48967         renaming described above.
48968         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
48969         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
48970         captures the dependency in AC_C_INLINE.
48971
48972         New module canonicalize-lgpl, proposed by Charles Wilson in
48973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
48974         with a few small changes afterwards.
48975         * MODULES.html.sh (File system functions): New module
48976         canonicalize-lgpl.
48977         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
48978         and canonicalize_file_name.
48979         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
48980         * modules/canonicalize-lgpl: New files.
48981
48982 2006-11-05  Bruno Haible  <bruno@clisp.org>
48983
48984         * gnulib-tool (func_import, func_create_testdir): Create directories
48985         also for files in subdirectories of lib/.
48986
48987 2006-11-05  Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
48990         ANSI C compliant.
48991
48992 2006-11-03  Bruno Haible  <bruno@clisp.org>
48993
48994         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
48995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
48996         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
48997         (xnboundedmalloc): New inline function.
48998         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
48999         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49000         xmalloc.
49001         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49002         xmalloc.
49003         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49004         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49005         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49006         xmalloc.
49007         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49008         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49009         xmalloc.
49010         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49011         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49012         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49013         xmalloc.
49014         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49015         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49016         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49017         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49018         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49019         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49020         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49021
49022 2006-11-03  Bruno Haible  <bruno@clisp.org>
49023
49024         * lib/c-ctype.h [C++]: Define functions without name mangling.
49025         * lib/fwriteerror.h [C++]: Likewise.
49026         * lib/gcd.h [C++]: Likewise.
49027         * lib/linebreak.h [C++]: Likewise.
49028
49029 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49030
49031         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49032         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49033         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49034         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49035         Check for functions and headers just once.
49036         Check for declaration of canonicalize_file_name.
49037         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49038
49039 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49040
49041         * gnulib-tool (func_import): Fix typo in actioncmd.
49042
49043 2006-11-02  Bruno Haible  <bruno@clisp.org>
49044
49045         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49046         newline sequence in the Makefile.am snippet as a space, like "make"
49047         does.
49048         Reported by Roger Persson <perrog@gmail.com>.
49049
49050 2006-11-01  Bruno Haible  <bruno@clisp.org>
49051
49052         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49053         already declared in <string.h>.
49054         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49055
49056 2006-11-01  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49059         * lib/strcase.h: Include <string.h>.
49060         (strcasecmp): Define to rpl_strcasecmp here.
49061
49062 2006-11-01  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49065
49066 2006-11-01  Eric Blake  <ebb9@byu.net>
49067
49068         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49069
49070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49071
49072 2006-10-29  Bruno Haible  <bruno@clisp.org>
49073
49074         Make it compile in C++ mode.
49075         * lib/full-write.c (full_rw): Add a cast.
49076
49077 2006-11-01  Bruno Haible  <bruno@clisp.org>
49078
49079         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49080         be POSIX compliant.
49081         Reported by Roger Persson <perrog@gmail.com>.
49082
49083 2006-11-01  Eric Blake  <ebb9@byu.net>
49084
49085         * lib/getopt_.h: Fix comments.
49086
49087 2006-10-31  Eric Blake  <ebb9@byu.net>
49088
49089         * modules/tmpdir (Depends-on): Add sys_stat.
49090         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49091         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49092         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49093         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49094         tempname.
49095
49096 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         Avoid some C++ diagnostics reported by Bruno Haible.
49099         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49100         xmalloc.
49101         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49102         (struct slotvec): Move to top level.
49103         (quotearg_n_options): Rewrite to avoid xmalloc.
49104         * lib/xalloc.h (xcharalloc): New function.
49105         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49106         [defined __cplusplus]: Add function template that provides result
49107         type propagation.  This part of the change is from Bruno Haible.
49108
49109 2006-10-29  Bruno Haible  <bruno@clisp.org>
49110
49111         Make it compile in C++ mode.
49112         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49113         * lib/strnlen1.c (strnlen1): Cast memchr result.
49114         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49115         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49116         (create_temp_dir): Rename local variable 'template'.
49117         (compile_csharp_using_sscli): Add cast.
49118         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49119         * lib/findprog.c (find_in_path): Likewise.
49120         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49121         * lib/wait-process.c (register_slave_subprocess): Likewise.
49122
49123 2006-10-22  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/tsearch: New file.
49126         * lib/tsearch.h: New file.
49127         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49128         * m4/tsearch.m4: New file.
49129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49130
49131 2006-10-29  Eric Blake  <ebb9@byu.net>
49132
49133         * lib/arcfour.c: Assume config.h.
49134         * lib/arctwo.c: Likewise.
49135         * lib/base64.c: Likewise.
49136         * lib/check-version.c: Likewise.
49137         * lib/crc.c: Likewise.
49138         * lib/des.c: Likewise.
49139         * lib/gc-gnulib.c: Likewise.
49140         * lib/gc-libgcrypt.c: Likewise.
49141         * lib/gc-pbkdf2-sha1.c: Likewise.
49142         * lib/getaddrinfo.c: Likewise.
49143         * lib/getdelim.c: Likewise.
49144         * lib/getline.c: Likewise.
49145         * lib/hmac-md5.c: Likewise.
49146         * lib/hmac-sha1.c: Likewise.
49147         * lib/iconvme.c: Likewise.
49148         * lib/md2.c: Likewise.
49149         * lib/md4.c: Likewise.
49150         * lib/memxor.c: Likewise.
49151         * lib/read-file.c: Likewise.
49152         * lib/readline.c: Likewise.
49153         * lib/rijndael-alg-fst.c: Likewise.
49154         * lib/rijndael-api-fst.c: Likewise.
49155         * lib/xgetdomainname.c: Likewise.
49156
49157 2006-10-28  Eric Blake  <ebb9@byu.net>
49158
49159         * lib/xstrndup.c: Assume config.h.
49160
49161 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49162
49163         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49164         stat-macros.h is now for our own macros, whereas stat_h is for
49165         macros in the <sys/stat.h> name space.
49166         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49167         (STAT_MACROS_H): Remove.
49168         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49169         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49170         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49171         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49172         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49173         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49174         Move these macros to ...
49175         * lib/stat_.h: here.  Don't include stat-macros.h.
49176         * lib/canonicalize.c: Don't include stat-macros.h.
49177         * lib/chown.c: Likewise.
49178         * lib/euidaccess.c: Likewise.
49179         * lib/file-type.c: Likewise.
49180         * lib/filemode.c: Likewise.
49181         * lib/glob.c: Likewise.
49182         * lib/isapipe.c: Likewise.
49183         * lib/lchown.c: Likewise.
49184         * lib/lstat.c: Likewise.
49185         * lib/mkdir-p.c: Likewise.
49186         * lib/rmdir.c: Likewise.
49187         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49189         unless mkdir isn't declared, to speed up 'configure'.
49190         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49191         would define all the S_* symbols.
49192         * modules/canonicalize (Depends-on):
49193         Depend on sys_stat, not stat-macros.
49194         * modules/chown: Likewise.
49195         * modules/euidaccess: Likewise.
49196         * modules/filemode: Likewise.
49197         * modules/file-type: Likewise.
49198         * modules/glob: Likewise.
49199         * modules/isapipe: Likewise.
49200         * modules/lchown: Likewise.
49201         * modules/lstat: Likewise.
49202         * modules/mkancesdirs: Likewise.
49203         * modules/rmdir: Likewise.
49204         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49205         * modules/modechange: Likewise.
49206         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49207         (configure.ac): Remove gl_STAT_MACROS.
49208         * modules/sys_stat (Depends-on): Remove stat-macros.
49209
49210 2006-10-27  Bruno Haible  <bruno@clisp.org>
49211
49212         * m4/signed.m4: Remove file.
49213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49214         invocation.
49215         * modules/vasnprintf (Files): Remove m4/signed.m4.
49216
49217 2006-10-27  Bruno Haible  <bruno@clisp.org>
49218
49219         Update to GNU gettext 0.16.
49220         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49221         m4/inttypes-h.m4, m4/signed.m4.
49222         * m4/gettext.m4: Update to GNU gettext 0.16.
49223         * m4/intl.m4: New file, from GNU gettext.
49224         * m4/intldir.m4: New file, from GNU gettext.
49225         * config/srclist.txt: Update
49226
49227 2006-10-27  Eric Blake  <ebb9@byu.net>
49228
49229         * MODULES.html.sh: Document tempname.
49230         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49231         dependencies.
49232         (Files): Move lib/tempname.c...
49233         * modules/tempname: ...to this new module.
49234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49235         (gl_PREREQ_TEMPNAME): Move...
49236         * m4/tempname.m4: ...to this new file.
49237         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49238         * modules/sys_stat (Depends-on): Add stat-macros.
49239         * lib/stat_.h (includes): Pick up stat macros.
49240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49241         if stat macros are broken.
49242         * lib/tempname.c (includes): No need to include "stat-macros.h".
49243         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49244         (direxists, __path_search) [!_LIBC]: Don't compile these in
49245         gnulib; the tmpdir module covers that.
49246         * lib/tempname.h: New file.
49247
49248 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49249
49250         * COPYING: Explain how gnulib-tool converts licence headers.
49251         Almost all wording by Eric Blake.
49252
49253 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49254
49255         * lib/mbchar.h (is_basic_table): Make read-only.
49256         * lib/mbchar.c (is_basic_table): Likewise.
49257         Reported by John Darrington.
49258
49259 2006-10-25  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/progname.h (set_program_name): Undefine before defining.
49262
49263 2006-10-25  Bruno Haible  <bruno@clisp.org>
49264
49265         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49266         false for non-gcc C++ compilers.
49267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49268
49269 2006-10-24  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49272         iconv implementations like Irix iconv.
49273
49274 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         * modules/vararrays: New file.
49277         * m4/vararrays.m4: New file, taken from diffutils.
49278         * MODULES.html.sh: New module vararrays.
49279
49280 2006-10-24  Karl Berry  <karl@gnu.org>
49281
49282         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49283         Don't call GNU Unix.
49284
49285 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49286
49287         * users.txt: Add Libtool.
49288
49289         Sync from Libtool:
49290
49291         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49292
49293         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49294         to gnulib's policy of including config.h unconditionally.
49295
49296 2006-10-24  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/wcwidth (Files): Add m4/wint_t.m4.
49299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49300         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49301
49302 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49303
49304         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49305         to pacify GCC with some -W flags enabled.  Problem reported by
49306         Bruno Haible.
49307
49308 2006-10-24  Jim Meyering  <jim@meyering.net>
49309
49310         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49311         Reported by Karl Berry.
49312
49313 2006-10-23  Bruno Haible  <bruno@clisp.org>
49314
49315         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49316
49317 2006-10-24  Bruno Haible  <bruno@clisp.org>
49318
49319         * lib/gl_list.h: Use C comment style, not C++ comment style.
49320
49321 2006-10-23  Eric Blake  <ebb9@byu.net>
49322
49323         * lib/getaddrinfo.c (includes): Add missing include.
49324
49325 2006-10-23  Bruno Haible  <bruno@clisp.org>
49326             Paul Eggert  <eggert@cs.ucla.edu>
49327
49328         Ability to rename obstack_free.
49329         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49330         obstack_free.
49331         (obstack_free): Invoke the __obstack_free macro.
49332         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49333
49334 2006-10-23  Bruno Haible  <bruno@clisp.org>
49335             Paul Eggert  <eggert@cs.ucla.edu>
49336
49337         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49338         __argc, __argv from the declaration. (They are defined as macros on
49339         mingw.)
49340
49341 2006-10-22  Bruno Haible  <bruno@clisp.org>
49342
49343         * doc/gnulib-intro.texi: New file.
49344         * doc/gnulib.texi: Include it.
49345
49346 2006-10-21  Bruno Haible  <bruno@clisp.org>
49347
49348         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49349         "Introduction", "Miscellanous Notes", "Particular Modules".
49350
49351 2006-10-21  Bruno Haible  <bruno@clisp.org>
49352
49353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49354         Change mostlyclean-local rule to avoid sh syntax error from bash
49355         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49356
49357 2006-10-23  Jim Meyering  <jim@meyering.net>
49358
49359         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49360         in place of snprintf.
49361
49362         * modules/inttostr (Files): Add lib/uinttostr.c.
49363         * lib/uinttostr.c (inttostr): New file/function.
49364         * lib/inttostr.h (uinttostr): Declare.
49365         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49366         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49367         Add uinttostr.
49368         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49369
49370 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         * lib/canonicalize.c (ELOOP): Define if not already defined.
49373         Problem reported by Bruno Haible in
49374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49375
49376 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49377
49378         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49379         Problem reported by Perry Smith and Ville Laurikari.
49380
49381         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49382         uses.
49383
49384 2006-10-19  Bruno Haible  <bruno@clisp.org>
49385
49386         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49387         for mingw.
49388
49389 2006-10-19  Bruno Haible  <bruno@clisp.org>
49390
49391         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49392         Needed for mingw.
49393
49394 2006-10-19  Bruno Haible  <bruno@clisp.org>
49395
49396         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49397
49398 2006-10-19  Bruno Haible  <bruno@clisp.org>
49399
49400         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49401         it.
49402
49403 2006-10-19  Bruno Haible  <bruno@clisp.org>
49404
49405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49406         invocation.
49407
49408 2006-10-19  Bruno Haible  <bruno@clisp.org>
49409
49410         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49411         mountlist by default.
49412
49413 2006-10-16  Bruno Haible  <bruno@clisp.org>
49414
49415         * lib/c-strstr.c: Include c-strstr.h.
49416
49417 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49418
49419         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49420         in a slash.
49421
49422 2006-10-18  Bruno Haible  <bruno@clisp.org>
49423
49424         * lib/lock.h [C++]: Wrap definitions in extern "C".
49425
49426 2006-10-18  Bruno Haible  <bruno@clisp.org>
49427
49428         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49429         gl_LIBOBJS list.
49430
49431 2006-10-18  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49434
49435 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49436
49437         * lib/xstrtol.h: Include gettext.h.
49438         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49439         Problem reported by Eric Blake.
49440         * modules/xstrtol (Depends-on): Add gettext-h.
49441
49442 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49443
49444         * lib/strftime.c (advance): New macro.
49445         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49446         incomplete type, so you can't add 0 to it.  Problem and patch
49447         reported by Eelco Dolstra for dietlibc.
49448
49449 2006-10-18  Jim Meyering  <jim@meyering.net>
49450
49451         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49452         type for a local, and rename it: s/up/user_proc/.
49453
49454 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49455
49456         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49457         READ_UTMP_USER_PROCESS.
49458         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49459
49460 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49461
49462         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49463         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49464
49465 2006-10-17  Eric Blake  <ebb9@byu.net>
49466
49467         * lib/sigprocmask.c (sigprocmask): Fix typo.
49468
49469         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49470
49471         * modules/clean-temp (Makefile.am): Don't add to make output...
49472         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49473         config.h.
49474
49475 2006-10-17  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49478         differently if DEFAULT_TEXT_DOMAIN is set.
49479
49480 2006-10-16  Bruno Haible  <bruno@clisp.org>
49481
49482         * lib/clean-temp.c: Include fwriteerror.h.
49483
49484 2006-10-16  Bruno Haible  <bruno@clisp.org>
49485
49486         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49487
49488 2006-10-16  Bruno Haible  <bruno@clisp.org>
49489
49490         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49491         * lib/sigprocmask.h: Include <sys/types.h>.
49492         (sigset_t): Use the system's definition if present.
49493
49494 2006-10-17  Eric Blake  <ebb9@byu.net>
49495
49496         * lib/xvasprintf.c (includes): Assume config.h.
49497         * lib/xasprintf.c (includes): Likewise.
49498
49499 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49502         at least as wide as intmax_t.
49503
49504 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49505
49506         (Imported from Automake.)
49507         * build-aux/gnupload: Update to version 1.1 of directive file.
49508
49509 2006-10-16  Eric Blake  <ebb9@byu.net>
49510
49511         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49512         match Automake 1.10a.
49513
49514 2006-10-14  Bruno Haible  <bruno@clisp.org>
49515
49516         * modules/sigprocmask: New file.
49517         * lib/sigprocmask.h: New file.
49518         * lib/sigprocmask.c: New file.
49519         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49520         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49521         request sigprocmask.o.
49522         (gl_PREREQ_SIGPROCMASK): New macro.
49523         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49524         (Depends-on): Add sigprocmask.
49525         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49526         gt_SIGNALBLOCKING. Test for 'raise' only once.
49527         * lib/fatal-signal.c: Include sigprocmask.h.
49528         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49529         unblock_fatal_signals): Define always.
49530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49531         sigprocmask.
49532
49533 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49534
49535         Sync from Automake.
49536         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49537         which incorrectly sets the mode of an existing destination
49538         directory.  In some cases the unpatched install-sh could do the
49539         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49540         system.  We hope this is rare in practice, but it's clearly worth
49541         fixing.  Problem reported by Alex Unleashed in
49542         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49543         Also, don't bother to check for -m bugs unless we're using -m;
49544         suggested by Stepan Kasal.
49545
49546 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49547
49548         Sync from Automake.
49549         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49550         `-c' flag, so they appear at the same position as in %FASTDEP%
49551         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49552         which ignores unknown options only after the first non-option.
49553         Bug report against M4 by Nelson H. F. Beebe.
49554
49555 2006-10-13  Jim Meyering  <jim@meyering.net>
49556
49557         Fix a bug in yesterday's change.
49558         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49559         p->fts_statp->st_dev would be used uninitialized.
49560         Ensures that we always call fts_stat on the very first entry.
49561         Miklos Szeredi reported that find -xdev stopped working.
49562
49563 2006-10-12  Bruno Haible  <bruno@clisp.org>
49564
49565         * gnulib-tool (func_get_automake_snippet): Append an automatically
49566         computed EXTRA_DIST augmentation.
49567         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49568         * modules/alloca-opt (Makefile.am): Likewise.
49569         * modules/allocsa (Makefile.am): Likewise.
49570         * modules/arcfour (Makefile.am): Likewise.
49571         * modules/arctwo (Makefile.am): Likewise.
49572         * modules/argmatch (Makefile.am): Likewise.
49573         * modules/argz (Makefile.am): Likewise.
49574         * modules/atexit (Makefile.am): Likewise.
49575         * modules/backupfile (Makefile.am): Likewise.
49576         * modules/byteswap (Makefile.am): Likewise.
49577         * modules/c-strtod (Makefile.am): Likewise.
49578         * modules/c-strtold (Makefile.am): Likewise.
49579         * modules/calloc (Makefile.am): Likewise.
49580         * modules/canon-host (Makefile.am): Likewise.
49581         * modules/canonicalize (Makefile.am): Likewise.
49582         * modules/chdir-long (Makefile.am): Likewise.
49583         * modules/chdir-safer (Makefile.am): Likewise.
49584         * modules/check-version (Makefile.am): Likewise.
49585         * modules/chown (Makefile.am): Likewise.
49586         * modules/cloexec (Makefile.am): Likewise.
49587         * modules/close-stream (Makefile.am): Likewise.
49588         * modules/closeout (Makefile.am): Likewise.
49589         * modules/crc (Makefile.am): Likewise.
49590         * modules/csharpexec (Makefile.am): Likewise.
49591         * modules/cycle-check (Makefile.am): Likewise.
49592         * modules/des (Makefile.am): Likewise.
49593         * modules/dev-ino (Makefile.am): Likewise.
49594         * modules/dirfd (Makefile.am): Likewise.
49595         * modules/dirname (Makefile.am): Likewise.
49596         * modules/dup2 (Makefile.am): Likewise.
49597         * modules/eealloc (Makefile.am): Likewise.
49598         * modules/error (Makefile.am): Likewise.
49599         * modules/euidaccess (Makefile.am): Likewise.
49600         * modules/exclude (Makefile.am): Likewise.
49601         * modules/exitfail (Makefile.am): Likewise.
49602         * modules/fcntl-safer (Makefile.am): Likewise.
49603         * modules/fcntl (Makefile.am): Likewise.
49604         * modules/file-type (Makefile.am): Likewise.
49605         * modules/fileblocks (Makefile.am): Likewise.
49606         * modules/filemode (Makefile.am): Likewise.
49607         * modules/filenamecat (Makefile.am): Likewise.
49608         * modules/fnmatch (Makefile.am): Likewise.
49609         * modules/fopen-safer (Makefile.am): Likewise.
49610         * modules/fpending (Makefile.am): Likewise.
49611         * modules/fprintftime (Makefile.am): Likewise.
49612         * modules/free (Makefile.am): Likewise.
49613         * modules/fsusage (Makefile.am): Likewise.
49614         * modules/ftruncate (Makefile.am): Likewise.
49615         * modules/fts (Makefile.am): Likewise.
49616         * modules/gc-arcfour (Makefile.am): Likewise.
49617         * modules/gc-des (Makefile.am): Likewise.
49618         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49619         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49620         * modules/gc-md4 (Makefile.am): Likewise.
49621         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49622         * modules/gc-sha1 (Makefile.am): Likewise.
49623         * modules/gc (Makefile.am): Likewise.
49624         * modules/getaddrinfo (Makefile.am): Likewise.
49625         * modules/getcwd (Makefile.am): Likewise.
49626         * modules/getdelim (Makefile.am): Likewise.
49627         * modules/getdomainname (Makefile.am): Likewise.
49628         * modules/getgroups (Makefile.am): Likewise.
49629         * modules/gethostname (Makefile.am): Likewise.
49630         * modules/gethrxtime (Makefile.am): Likewise.
49631         * modules/getline (Makefile.am): Likewise.
49632         * modules/getloadavg (Makefile.am): Likewise.
49633         * modules/getlogin_r (Makefile.am): Likewise.
49634         * modules/getndelim2 (Makefile.am): Likewise.
49635         * modules/getopt (Makefile.am): Likewise.
49636         * modules/getpagesize (Makefile.am): Likewise.
49637         * modules/getpass-gnu (Makefile.am): Likewise.
49638         * modules/getpass (Makefile.am): Likewise.
49639         * modules/getsubopt (Makefile.am): Likewise.
49640         * modules/gettime (Makefile.am): Likewise.
49641         * modules/gettimeofday (Makefile.am): Likewise.
49642         * modules/getugroups (Makefile.am): Likewise.
49643         * modules/getusershell (Makefile.am): Likewise.
49644         * modules/glob (Makefile.am): Likewise.
49645         * modules/group-member (Makefile.am): Likewise.
49646         * modules/hard-locale (Makefile.am): Likewise.
49647         * modules/hash (Makefile.am): Likewise.
49648         * modules/hmac-md5 (Makefile.am): Likewise.
49649         * modules/hmac-sha1 (Makefile.am): Likewise.
49650         * modules/human (Makefile.am): Likewise.
49651         * modules/idcache (Makefile.am): Likewise.
49652         * modules/imaxabs (Makefile.am): Likewise.
49653         * modules/imaxdiv (Makefile.am): Likewise.
49654         * modules/inet_ntop (Makefile.am): Likewise.
49655         * modules/inet_pton (Makefile.am): Likewise.
49656         * modules/intprops (Makefile.am): Likewise.
49657         * modules/inttostr (Makefile.am): Likewise.
49658         * modules/inttypes (Makefile.am): Likewise.
49659         * modules/isapipe (Makefile.am): Likewise.
49660         * modules/javaversion (Makefile.am): Likewise.
49661         * modules/lchmod (Makefile.am): Likewise.
49662         * modules/lchown (Makefile.am): Likewise.
49663         * modules/localcharset (Makefile.am): Likewise.
49664         * modules/long-options (Makefile.am): Likewise.
49665         * modules/lstat (Makefile.am): Likewise.
49666         * modules/malloc (Makefile.am): Likewise.
49667         * modules/mathl (Makefile.am): Likewise.
49668         * modules/mbchar (Makefile.am): Likewise.
49669         * modules/md2 (Makefile.am): Likewise.
49670         * modules/md4 (Makefile.am): Likewise.
49671         * modules/md5 (Makefile.am): Likewise.
49672         * modules/memcasecmp (Makefile.am): Likewise.
49673         * modules/memchr (Makefile.am): Likewise.
49674         * modules/memcmp (Makefile.am): Likewise.
49675         * modules/memcoll (Makefile.am): Likewise.
49676         * modules/memcpy (Makefile.am): Likewise.
49677         * modules/memmem (Makefile.am): Likewise.
49678         * modules/memmove (Makefile.am): Likewise.
49679         * modules/mempcpy (Makefile.am): Likewise.
49680         * modules/memrchr (Makefile.am): Likewise.
49681         * modules/memset (Makefile.am): Likewise.
49682         * modules/memxor (Makefile.am): Likewise.
49683         * modules/mkancesdirs (Makefile.am): Likewise.
49684         * modules/mkdir-p (Makefile.am): Likewise.
49685         * modules/mkdir (Makefile.am): Likewise.
49686         * modules/mkdtemp (Makefile.am): Likewise.
49687         * modules/mkstemp (Makefile.am): Likewise.
49688         * modules/mktime (Makefile.am): Likewise.
49689         * modules/modechange (Makefile.am): Likewise.
49690         * modules/mountlist (Makefile.am): Likewise.
49691         * modules/nanosleep (Makefile.am): Likewise.
49692         * modules/obstack (Makefile.am): Likewise.
49693         * modules/openat (Makefile.am): Likewise.
49694         * modules/pagealign_alloc (Makefile.am): Likewise.
49695         * modules/pathmax (Makefile.am): Likewise.
49696         * modules/physmem (Makefile.am): Likewise.
49697         * modules/poll (Makefile.am): Likewise.
49698         * modules/posixtm (Makefile.am): Likewise.
49699         * modules/posixver (Makefile.am): Likewise.
49700         * modules/putenv (Makefile.am): Likewise.
49701         * modules/quote (Makefile.am): Likewise.
49702         * modules/quotearg (Makefile.am): Likewise.
49703         * modules/raise (Makefile.am): Likewise.
49704         * modules/read-file (Makefile.am): Likewise.
49705         * modules/readline (Makefile.am): Likewise.
49706         * modules/readlink (Makefile.am): Likewise.
49707         * modules/readtokens (Makefile.am): Likewise.
49708         * modules/readutmp (Makefile.am): Likewise.
49709         * modules/realloc (Makefile.am): Likewise.
49710         * modules/regex (Makefile.am): Likewise.
49711         * modules/rename-dest-slash (Makefile.am): Likewise.
49712         * modules/rename (Makefile.am): Likewise.
49713         * modules/rijndael (Makefile.am): Likewise.
49714         * modules/rmdir (Makefile.am): Likewise.
49715         * modules/rpmatch (Makefile.am): Likewise.
49716         * modules/safe-read (Makefile.am): Likewise.
49717         * modules/safe-write (Makefile.am): Likewise.
49718         * modules/same-inode (Makefile.am): Likewise.
49719         * modules/same (Makefile.am): Likewise.
49720         * modules/save-cwd (Makefile.am): Likewise.
49721         * modules/savedir (Makefile.am): Likewise.
49722         * modules/setenv (Makefile.am): Likewise.
49723         * modules/settime (Makefile.am): Likewise.
49724         * modules/sha1 (Makefile.am): Likewise.
49725         * modules/sig2str (Makefile.am): Likewise.
49726         * modules/snprintf (Makefile.am): Likewise.
49727         * modules/stat-macros (Makefile.am): Likewise.
49728         * modules/stat-time (Makefile.am): Likewise.
49729         * modules/stdbool (Makefile.am): Likewise.
49730         * modules/stdint (Makefile.am): Likewise.
49731         * modules/stdlib-safer (Makefile.am): Likewise.
49732         * modules/stpcpy (Makefile.am): Likewise.
49733         * modules/stpncpy (Makefile.am): Likewise.
49734         * modules/strcase (Makefile.am): Likewise.
49735         * modules/strcasestr (Makefile.am): Likewise.
49736         * modules/strchrnul (Makefile.am): Likewise.
49737         * modules/strcspn (Makefile.am): Likewise.
49738         * modules/strdup (Makefile.am): Likewise.
49739         * modules/strerror (Makefile.am): Likewise.
49740         * modules/strftime (Makefile.am): Likewise.
49741         * modules/strndup (Makefile.am): Likewise.
49742         * modules/strnlen (Makefile.am): Likewise.
49743         * modules/strpbrk (Makefile.am): Likewise.
49744         * modules/strsep (Makefile.am): Likewise.
49745         * modules/strstr (Makefile.am): Likewise.
49746         * modules/strtod (Makefile.am): Likewise.
49747         * modules/strtoimax (Makefile.am): Likewise.
49748         * modules/strtok_r (Makefile.am): Likewise.
49749         * modules/strtol (Makefile.am): Likewise.
49750         * modules/strtoll (Makefile.am): Likewise.
49751         * modules/strtoul (Makefile.am): Likewise.
49752         * modules/strtoull (Makefile.am): Likewise.
49753         * modules/strtoumax (Makefile.am): Likewise.
49754         * modules/strverscmp (Makefile.am): Likewise.
49755         * modules/sys_socket (Makefile.am): Likewise.
49756         * modules/sys_stat (Makefile.am): Likewise.
49757         * modules/sysexits (Makefile.am): Likewise.
49758         * modules/time_r (Makefile.am): Likewise.
49759         * modules/timegm (Makefile.am): Likewise.
49760         * modules/timespec (Makefile.am): Likewise.
49761         * modules/tmpfile-safer (Makefile.am): Likewise.
49762         * modules/trim (Makefile.am): Likewise.
49763         * modules/unistd-safer (Makefile.am): Likewise.
49764         * modules/unlinkdir (Makefile.am): Likewise.
49765         * modules/unlocked-io (Makefile.am): Likewise.
49766         * modules/userspec (Makefile.am): Likewise.
49767         * modules/utime (Makefile.am): Likewise.
49768         * modules/utimecmp (Makefile.am): Likewise.
49769         * modules/utimens (Makefile.am): Likewise.
49770         * modules/vasnprintf (Makefile.am): Likewise.
49771         * modules/vasprintf (Makefile.am): Likewise.
49772         * modules/vsnprintf (Makefile.am): Likewise.
49773         * modules/xalloc (Makefile.am): Likewise.
49774         * modules/xgetcwd (Makefile.am): Likewise.
49775         * modules/xnanosleep (Makefile.am): Likewise.
49776         * modules/xreadlink (Makefile.am): Likewise.
49777         * modules/xstrtod (Makefile.am): Likewise.
49778         * modules/xstrtol (Makefile.am): Likewise.
49779         * modules/xstrtold (Makefile.am): Likewise.
49780         * modules/yesno (Makefile.am): Likewise.
49781         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49782
49783 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49784
49785         * modules/error (Makefile.am): Distribute files through
49786         EXTRA_DIST, not lib_SOURCES.
49787
49788 2006-10-12  Eric Blake  <ebb9@byu.net>
49789
49790         * modules/error (Makefile.am): Distribute files in /lib.
49791         * modules/obstack (Makefile.am): Likewise.
49792
49793 2006-10-12  Bruno Haible  <bruno@clisp.org>
49794
49795         * modules/acl (Makefile.am): Distribute all files in lib/ through
49796         EXTRA_DIST.
49797         * modules/arcfour (Makefile.am): Likewise.
49798         * modules/arctwo (Makefile.am): Likewise.
49799         * modules/argmatch (Makefile.am): Likewise.
49800         * modules/argz (Makefile.am): Likewise.
49801         * modules/atexit (Makefile.am): Likewise.
49802         * modules/backupfile (Makefile.am): Likewise.
49803         * modules/c-strtod (Makefile.am): Likewise.
49804         * modules/c-strtold (Makefile.am): Likewise.
49805         * modules/calloc (Makefile.am): Likewise.
49806         * modules/canon-host (Makefile.am): Likewise.
49807         * modules/canonicalize (Makefile.am): Likewise.
49808         * modules/chdir-long (Makefile.am): Likewise.
49809         * modules/chdir-safer (Makefile.am): Likewise.
49810         * modules/check-version (Makefile.am): Likewise.
49811         * modules/chown (Makefile.am): Likewise.
49812         * modules/cloexec (Makefile.am): Likewise.
49813         * modules/close-stream (Makefile.am): Likewise.
49814         * modules/closeout (Makefile.am): Likewise.
49815         * modules/crc (Makefile.am): Likewise.
49816         * modules/cycle-check (Makefile.am): Likewise.
49817         * modules/des (Makefile.am): Likewise.
49818         * modules/dirfd (Makefile.am): Likewise.
49819         * modules/dirname (Makefile.am): Likewise.
49820         * modules/dup2 (Makefile.am): Likewise.
49821         * modules/euidaccess (Makefile.am): Likewise.
49822         * modules/exclude (Makefile.am): Likewise.
49823         * modules/exitfail (Makefile.am): Likewise.
49824         * modules/fcntl-safer (Makefile.am): Likewise.
49825         * modules/file-type (Makefile.am): Likewise.
49826         * modules/fileblocks (Makefile.am): Likewise.
49827         * modules/filemode (Makefile.am): Likewise.
49828         * modules/filenamecat (Makefile.am): Likewise.
49829         * modules/fnmatch (Makefile.am): Likewise.
49830         * modules/fopen-safer (Makefile.am): Likewise.
49831         * modules/fpending (Makefile.am): Likewise.
49832         * modules/fprintftime (Makefile.am): Likewise.
49833         * modules/free (Makefile.am): Likewise.
49834         * modules/fsusage (Makefile.am): Likewise.
49835         * modules/ftruncate (Makefile.am): Likewise.
49836         * modules/fts (Makefile.am): Likewise.
49837         * modules/gc (Makefile.am): Likewise.
49838         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49839         * modules/getaddrinfo (Makefile.am): Likewise.
49840         * modules/getcwd (Makefile.am): Likewise.
49841         * modules/getdelim (Makefile.am): Likewise.
49842         * modules/getdomainname (Makefile.am): Likewise.
49843         * modules/getgroups (Makefile.am): Likewise.
49844         * modules/gethostname (Makefile.am): Likewise.
49845         * modules/gethrxtime (Makefile.am): Likewise.
49846         * modules/getline (Makefile.am): Likewise.
49847         * modules/getloadavg (Makefile.am): Likewise.
49848         * modules/getlogin_r (Makefile.am): Likewise.
49849         * modules/getopt (Makefile.am): Likewise.
49850         * modules/getpass (Makefile.am): Likewise.
49851         * modules/getpass-gnu (Makefile.am): Likewise.
49852         * modules/getsubopt (Makefile.am): Likewise.
49853         * modules/gettime (Makefile.am): Likewise.
49854         * modules/gettimeofday (Makefile.am): Likewise.
49855         * modules/getugroups (Makefile.am): Likewise.
49856         * modules/getusershell (Makefile.am): Likewise.
49857         * modules/glob (Makefile.am): Likewise.
49858         * modules/group-member (Makefile.am): Likewise.
49859         * modules/hard-locale (Makefile.am): Likewise.
49860         * modules/hash (Makefile.am): Likewise.
49861         * modules/hmac-md5 (Makefile.am): Likewise.
49862         * modules/hmac-sha1 (Makefile.am): Likewise.
49863         * modules/human (Makefile.am): Likewise.
49864         * modules/idcache (Makefile.am): Likewise.
49865         * modules/imaxabs (Makefile.am): Likewise.
49866         * modules/imaxdiv (Makefile.am): Likewise.
49867         * modules/inet_ntop (Makefile.am): Likewise.
49868         * modules/inet_pton (Makefile.am): Likewise.
49869         * modules/inttostr (Makefile.am): Likewise.
49870         * modules/isapipe (Makefile.am): Likewise.
49871         * modules/lchown (Makefile.am): Likewise.
49872         * modules/long-options (Makefile.am): Likewise.
49873         * modules/lstat (Makefile.am): Likewise.
49874         * modules/malloc (Makefile.am): Likewise.
49875         * modules/mathl (Makefile.am): Likewise.
49876         * modules/mbchar (Makefile.am): Likewise.
49877         * modules/md2 (Makefile.am): Likewise.
49878         * modules/md4 (Makefile.am): Likewise.
49879         * modules/md5 (Makefile.am): Likewise.
49880         * modules/memcasecmp (Makefile.am): Likewise.
49881         * modules/memchr (Makefile.am): Likewise.
49882         * modules/memcmp (Makefile.am): Likewise.
49883         * modules/memcoll (Makefile.am): Likewise.
49884         * modules/memcpy (Makefile.am): Likewise.
49885         * modules/memmem (Makefile.am): Likewise.
49886         * modules/memmove (Makefile.am): Likewise.
49887         * modules/mempcpy (Makefile.am): Likewise.
49888         * modules/memrchr (Makefile.am): Likewise.
49889         * modules/memset (Makefile.am): Likewise.
49890         * modules/memxor (Makefile.am): Likewise.
49891         * modules/mkancesdirs (Makefile.am): Likewise.
49892         * modules/mkdir (Makefile.am): Likewise.
49893         * modules/mkdir-p (Makefile.am): Likewise.
49894         * modules/mkdtemp (Makefile.am): Likewise.
49895         * modules/mkstemp (Makefile.am): Likewise.
49896         * modules/mktime (Makefile.am): Likewise.
49897         * modules/modechange (Makefile.am): Likewise.
49898         * modules/mountlist (Makefile.am): Likewise.
49899         * modules/nanosleep (Makefile.am): Likewise.
49900         * modules/openat (Makefile.am): Likewise.
49901         * modules/pagealign_alloc (Makefile.am): Likewise.
49902         * modules/physmem (Makefile.am): Likewise.
49903         * modules/poll (Makefile.am): Likewise.
49904         * modules/posixtm (Makefile.am): Likewise.
49905         * modules/posixver (Makefile.am): Likewise.
49906         * modules/putenv (Makefile.am): Likewise.
49907         * modules/quote (Makefile.am): Likewise.
49908         * modules/quotearg (Makefile.am): Likewise.
49909         * modules/raise (Makefile.am): Likewise.
49910         * modules/read-file (Makefile.am): Likewise.
49911         * modules/readline (Makefile.am): Likewise.
49912         * modules/readlink (Makefile.am): Likewise.
49913         * modules/readtokens (Makefile.am): Likewise.
49914         * modules/readutmp (Makefile.am): Likewise.
49915         * modules/realloc (Makefile.am): Likewise.
49916         * modules/regex (Makefile.am): Likewise.
49917         * modules/rename (Makefile.am): Likewise.
49918         * modules/rename-dest-slash (Makefile.am): Likewise.
49919         * modules/rijndael (Makefile.am): Likewise.
49920         * modules/rmdir (Makefile.am): Likewise.
49921         * modules/rpmatch (Makefile.am): Likewise.
49922         * modules/safe-read (Makefile.am): Likewise.
49923         * modules/safe-write (Makefile.am): Likewise.
49924         * modules/same (Makefile.am): Likewise.
49925         * modules/save-cwd (Makefile.am): Likewise.
49926         * modules/savedir (Makefile.am): Likewise.
49927         * modules/setenv (Makefile.am): Likewise.
49928         * modules/settime (Makefile.am): Likewise.
49929         * modules/sha1 (Makefile.am): Likewise.
49930         * modules/sig2str (Makefile.am): Likewise.
49931         * modules/snprintf (Makefile.am): Likewise.
49932         * modules/stdlib-safer (Makefile.am): Likewise.
49933         * modules/stpcpy (Makefile.am): Likewise.
49934         * modules/stpncpy (Makefile.am): Likewise.
49935         * modules/strcase (Makefile.am): Likewise.
49936         * modules/strcasestr (Makefile.am): Likewise.
49937         * modules/strchrnul (Makefile.am): Likewise.
49938         * modules/strcspn (Makefile.am): Likewise.
49939         * modules/strdup (Makefile.am): Likewise.
49940         * modules/strerror (Makefile.am): Likewise.
49941         * modules/strftime (Makefile.am): Likewise.
49942         * modules/strndup (Makefile.am): Likewise.
49943         * modules/strnlen (Makefile.am): Likewise.
49944         * modules/strpbrk (Makefile.am): Likewise.
49945         * modules/strsep (Makefile.am): Likewise.
49946         * modules/strstr (Makefile.am): Likewise.
49947         * modules/strtod (Makefile.am): Likewise.
49948         * modules/strtoimax (Makefile.am): Likewise.
49949         * modules/strtok_r (Makefile.am): Likewise.
49950         * modules/strtol (Makefile.am): Likewise.
49951         * modules/strtoll (Makefile.am): Likewise.
49952         * modules/strtoul (Makefile.am): Likewise.
49953         * modules/strtoull (Makefile.am): Likewise.
49954         * modules/strtoumax (Makefile.am): Likewise.
49955         * modules/strverscmp (Makefile.am): Likewise.
49956         * modules/time_r (Makefile.am): Likewise.
49957         * modules/timegm (Makefile.am): Likewise.
49958         * modules/tmpfile-safer (Makefile.am): Likewise.
49959         * modules/unistd-safer (Makefile.am): Likewise.
49960         * modules/unlinkdir (Makefile.am): Likewise.
49961         * modules/userspec (Makefile.am): Likewise.
49962         * modules/utime (Makefile.am): Likewise.
49963         * modules/utimecmp (Makefile.am): Likewise.
49964         * modules/utimens (Makefile.am): Likewise.
49965         * modules/vasnprintf (Makefile.am): Likewise.
49966         * modules/vasprintf (Makefile.am): Likewise.
49967         * modules/vsnprintf (Makefile.am): Likewise.
49968         * modules/xalloc (Makefile.am): Likewise.
49969         * modules/xgetcwd (Makefile.am): Likewise.
49970         * modules/xnanosleep (Makefile.am): Likewise.
49971         * modules/xreadlink (Makefile.am): Likewise.
49972         * modules/xstrtod (Makefile.am): Likewise.
49973         * modules/xstrtol (Makefile.am): Likewise.
49974         * modules/xstrtold (Makefile.am): Likewise.
49975         * modules/yesno (Makefile.am): Likewise.
49976
49977 2006-10-12  Jim Meyering  <jim@meyering.net>
49978
49979         * m4/getloadavg.m4: Revert the change below.
49980
49981         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
49982         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
49983         fail with a symlink, which is what coreutils' ./bootstrap now
49984         creates by default.
49985
49986 2006-10-12  Bruno Haible  <bruno@clisp.org>
49987
49988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
49989         mingw.
49990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
49991         MSVC and mingw explicitly.
49992
49993 2006-10-11  Simon Josefsson  <jas@extundo.com>
49994             Bruno Haible  <bruno@clisp.org>
49995
49996         Add support for multiple gnulib-tool invocations in the scope of a
49997         single configure.ac file.
49998         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
49999         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50000         with the same contents as the _LIBADD variable.
50001         (func_emit_initmacro_start, func_emit_initmacro_end,
50002         func_emit_initmacro_done): New functions.
50003         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50004         gl_LIBOBJS and gl_LTLIBOBJS.
50005
50006 2006-10-11  Bruno Haible  <bruno@clisp.org>
50007
50008         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50009         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50010         autoreconf. Instead, invoke autopoint explicitly but move back the
50011         *.m4 files from gnulib.
50012
50013 2006-10-11  Bruno Haible  <bruno@clisp.org>
50014
50015         * gnulib-tool (func_usage): Make module names after --create-testdir
50016         optional.
50017         (func_create_testdir): If no module was specified, use nearly all
50018         modules.
50019
50020 2006-10-12  Jim Meyering  <jim@meyering.net>
50021
50022         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50023         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50024         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50025         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50026         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50027         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50028         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50029         (fts_set_stat_required): New function.
50030         (fts_open): Defer the calls to fts_stat, if possible or requested.
50031         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50032         into fts_stat itself.
50033         (fts_read): Perform any required (deferred) fts_stat call.
50034         (fts_build): Likewise, for the directory we're about to open and read.
50035         In the readdir loop, carefully decide whether each entry will require
50036         an eventual call to fts_stat, using dirent.d_type info if available.
50037         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50038         a command line argument into this function.  Update all callers.
50039         Map a return value of FTS_DOT to FTS_D for a command line argument.
50040         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50041         Thanks to Miklos Szeredi for his tenacity and for the initial
50042         bug report about "find" failing on a FUSE-based file system.
50043
50044         * lib/fts.c (fts_open): Use consistent indentation.
50045
50046 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50047
50048         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50049         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50050         reported by Jim Meyering.  All uses of cache variables renamed
50051         to match Autoconf's.
50052         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50053         the other one.
50054
50055         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50056         Fix misspelling in diagnostic.
50057
50058 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50061         defined.  Problem reported by Matthew Woehlke.
50062
50063         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50064         Add support for Tandem NonStop R series.
50065         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50066         Use new macro.
50067
50068         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50069         (has_trailing_slash): Omit size arg; all callers changed.
50070         Omit 'inline', since it doesn't help performance and we'd
50071         need to configure it.
50072         Don't count //, ///, etc. as having a trailing slash.
50073         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50074         (rpl_rename_dest_slash): On failure, use rename's errno rather
50075         than (in some cases) an incorrect or junk errno.
50076         Simplify code by removing need to compute length; this does
50077         cause it to make two passes instead of one over the file name,
50078         but it's worth it.
50079
50080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50081         change, since Autoconf's version may no longer be appropriate now
50082         that we are using CVS Autoconf's version.  Add support for Tandem.
50083
50084 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50085             Bruno Haible  <bruno@clisp.org>
50086
50087         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50088         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50089         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50090         gl_AC_TYPE_LONG_LONG.
50091
50092         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50093         instead of HAVE_LONG_LONG.
50094         * lib/printf-args.c (printf_fetchargs): Likewise.
50095         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50096         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50098         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50099         gl_AC_TYPE_LONG_LONG.
50100
50101 2006-10-11  Bruno Haible  <bruno@clisp.org>
50102
50103         * m4/longlong.m4: Add comments.
50104         * m4/ulonglong.m4: Likewise.
50105
50106 2006-10-10  Bruno Haible  <bruno@clisp.org>
50107
50108         Make it possible to #define stpcpy, strdup to aliases.
50109         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50110         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50111
50112 2006-10-10  Bruno Haible  <bruno@clisp.org>
50113
50114         Make it possible to #define gcd to an alias.
50115         * lib/gcd.c: Include config.h.
50116
50117 2006-10-10  Bruno Haible  <bruno@clisp.org>
50118
50119         Make it possible to #define c_isascii to an alias.
50120         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50121         defined. Undefine the macros before defining them, to avoid gcc
50122         warnings.
50123         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50124         define NO_C_CTYPE_MACROS early.
50125
50126 2006-10-10  Bruno Haible  <bruno@clisp.org>
50127
50128         Make it possible to #define set_program_name to an alias.
50129         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50130         ENABLE_RELOCATABLE early.
50131
50132 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50133
50134         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50135         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50136         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50137         More generally, don't assume that 64-bit signed int is available
50138         if unsigned int is, and vice versa.
50139         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50140         unsigned symbols, not on their signed counterparts.
50141         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50142         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50143         (UINT64_C, UINTMAX_C):
50144         Likewise.
50145         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50146         unsigned counterparts.
50147         (Have_long_long, Unsigned): New macros.
50148         (Int): Renamed from INT.
50149         (strtoimax): Use the new macros.
50150         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50151         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50152         * modules/inttypes (inttypes.h): Substitute
50153         HAVE_UNSIGNED_LONG_LONG_INT.
50154         * modules/stdint (stdint.h): Likewise.
50155         (Files): Add m4/ulonglong.m4.
50156
50157 2006-10-10  Bruno Haible  <bruno@clisp.org>
50158
50159         Fix a gcc -Wshadow warning.
50160         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50161         to 'bucket'.
50162         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50163         gl_linked_indexof_from_to): Likewise.
50164         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50165         Likewise.
50166         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50167         Likewise.
50168         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50169         Reported by Eric Blake.
50170
50171 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50172
50173         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50174         for NetBSD.  Problem reported by Bruno Haible.
50175
50176 2006-10-09  Jim Meyering  <jim@meyering.net>
50177
50178         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50179         Patch from Bruno Haible.
50180
50181 2006-10-09  Jim Meyering  <jim@meyering.net>
50182
50183         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50184         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50185         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50186
50187 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50188
50189         Don't include <config.h> twice; this doesn't work in some cases,
50190         e.g., when config.h has "#define intmax_t long long int" and
50191         we include <config.h>, <inttypes.h>, <config.h> in that order.
50192         Problem reported by Matthew Woehlke in:
50193         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50194         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50195         * lib/fts-cycle.c: Don't include config.h.
50196         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50197         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50198         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50199         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50200         inttypes.h.
50201         * lib/xstrtoumax.c: Likewise.
50202         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50203         __strtol and the like, so that this module is more like its siblings.
50204         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50205         Remove; no longer needed now that we assume gnulib inttypes.h.
50206
50207 2006-10-08  Bruno Haible  <bruno@clisp.org>
50208
50209         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50210         option.
50211
50212 2006-10-07  Jim Meyering  <jim@meyering.net>
50213
50214         * modules/inttypes (inttypes.h): Revert what seems to have been
50215         an inadvertent part of today's change: use "|", not "/" in the
50216         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50217
50218 2006-10-07  Bruno Haible  <bruno@clisp.org>
50219
50220         * modules/sublist: New file.
50221
50222 2006-10-07  Bruno Haible  <bruno@clisp.org>
50223
50224         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50225         * modules/argz (argz.h): Likewise.
50226         * modules/arpa_inet (arpa/inet.h): Likewise.
50227         * modules/byteswap (byteswap.h): Likewise.
50228         * modules/configmake (configmake.h): Likewise.
50229         * modules/fcntl (fcntl.h): Likewise.
50230         * modules/fnmatch (fnmatch.h): Likewise.
50231         * modules/getopt (getopt.h): Likewise.
50232         * modules/glob (glob.h): Likewise.
50233         * modules/inttypes (inttypes.h): Likewise.
50234         * modules/netinet_in (netinet/in.h): Likewise.
50235         * modules/poll (poll.h): Likewise.
50236         * modules/stdbool (stdbool.h): Likewise.
50237         * modules/stdint (stdint.h): Likewise.
50238         * modules/sys_select (sys/select.h): Likewise.
50239         * modules/sys_socket (sys/socket.h): Likewise.
50240         * modules/sys_stat (sys/stat.h): Likewise.
50241         * modules/sysexits (sysexits.h): Likewise.
50242         * modules/unistd (unistd.h): Likewise.
50243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50244         Add a "DO NOT EDIT" comment to the generated file.
50245         (func_import): Likewise for gnulib-comp.m4.
50246
50247 2006-10-07  Bruno Haible  <bruno@clisp.org>
50248
50249         * lib/gl_sublist.h: New file.
50250         * lib/gl_sublist.c: New file.
50251
50252 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50253
50254         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50255         name (relative to the original working directory) and the file
50256         name component (relative to the temporary working directory).  All
50257         callers changed.
50258         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50259         * lib/mkdir-p.c (make_dir_parents): Likewise.
50260         * lib/mkdir-p.h (make_dir_parents): Likewise.
50261
50262 2006-10-06  Eric Blake  <ebb9@byu.net>
50263
50264         Define several macros for use by the clean-temp module.
50265         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50266         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50268
50269         * lib/clean-temp.h (close_stream_temp): New declaration.
50270         * lib/clean-temp.c (includes): Pull in headers according to what
50271         other modules are in use.
50272         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50273
50274 2006-10-06  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50277         instead of fopen, fwriteerror.
50278
50279 2006-10-06  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50282         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50283         int.
50284         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50285         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50286         Return an error indicator.
50287         Suggested by Eric Blake.
50288
50289 2006-10-06  Bruno Haible  <bruno@clisp.org>
50290
50291         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50292         Reported by Eric Blake.
50293
50294 2006-10-06  Bruno Haible  <bruno@clisp.org>
50295
50296         * modules/closeout (Description): Mention stderr too.
50297
50298 2006-10-06  Bruno Haible  <bruno@clisp.org>
50299         and Paul Eggert  <eggert@cs.ucla.edu>
50300
50301         * lib/closeout.c (close_stdout): Also close stderr.
50302         * lib/closeout.h: Update comment.
50303
50304 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50307         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50308         * lib/dirchownmod.c: Include lchown.h.
50309         * lib/lchown.c: Don't include files that lchown.h now includes.
50310         Don't declare chown, since lchown.h now does that.
50311         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50312         (lchown): Define to rpl_chown if lchown is declared but
50313         does not exist.  Declare using a prototype if lchown is not
50314         declared.  Add a copyright notice.
50315         * lib/mkstemp.h: Include <unistd.h>.
50316         * lib/openat.c: Include lchown.h.
50317
50318         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50319         we now test for that separately.
50320         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50321         rather than O_NOFOLLOW, when testing whether it's possible to
50322         avoid a race condition reliably.
50323         * lib/savewd.c (savewd_chdir): Likewise.
50324
50325         Remove macros that are no longer needed now that stdint.h is
50326         reliable.
50327         * lib/fsusage.c (UINTMAX_MAX): Remove.
50328         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50329         * lib/utimecmp.c (SIZE_MAX): Remove.
50330
50331         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50332
50333         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50334         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50335         O_NOATIME works.
50336
50337 2006-10-05  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/gl_list.h (gl_sortedlist_search_from_to,
50340         gl_sortedlist_indexof_from_to): New declarations.
50341         (gl_list_implementation): New fields sortedlist_search_from_to,
50342         sortedlist_indexof_from_to.
50343         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50344         inline functions.
50345         * lib/gl_list.c (gl_sortedlist_search_from_to,
50346         gl_sortedlist_indexof_from_to): New functions.
50347         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50348         function.
50349         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50350         (gl_array_sortedlist_search_from_to): New function.
50351         (gl_array_list_implementation): Update.
50352         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50353         function.
50354         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50355         (gl_carray_sortedlist_search_from_to): New function.
50356         (gl_carray_list_implementation): Update.
50357         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50358         gl_linked_sortedlist_indexof_from_to): New functions.
50359         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50360         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50361         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50362         gl_tree_sortedlist_indexof_from_to): New functions.
50363         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50364         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50365         Update.
50366         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50367         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50368         Update.
50369
50370 2006-10-05  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50373         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50374         (struct gl_list_implementation): Add fields search_from_to,
50375         indexof_from_to. Remove fields search, indexof.
50376         (gl_list_search): Use the search_from_to method.
50377         (gl_list_search_from, gl_list_search_from_to): New functions.
50378         (gl_list_indexof): Use the indexof_from_to method.
50379         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50380         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50381         (gl_list_search_from, gl_list_search_from_to): New functions.
50382         (gl_list_indexof): Use the indexof_from_to method.
50383         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50384         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50385         gl_array_indexof. Add start_index, end_index arguments.
50386         (gl_array_search_from_to): Renamed from gl_array_search. Add
50387         start_index, end_index arguments.
50388         (gl_array_remove, gl_array_list_implementation): Update.
50389         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50390         gl_carray_indexof. Add start_index, end_index arguments.
50391         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50392         start_index, end_index arguments.
50393         (gl_carray_remove, gl_carray_list_implementation): Update.
50394         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50395         gl_linked_search. Add start_index, end_index arguments.
50396         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50397         start_index, end_index arguments.
50398         (gl_linked_remove): Update.
50399         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50400         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50401         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50402         field to 'size_t'.
50403         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50404         gl_tree_search. Add start_index, end_index arguments.
50405         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50406         start_index, end_index arguments.
50407         (gl_tree_remove): Update.
50408         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50409         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50410         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50411         function.
50412         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50413         gl_tree_search. Add start_index, end_index arguments.
50414         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50415         start_index, end_index arguments.
50416         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50417         Update.
50418         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50419
50420 2006-10-05  Bruno Haible  <bruno@clisp.org>
50421
50422         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50423
50424         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50425         fwriteerror_temp): New declarations.
50426         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50427         (descriptors): New variable.
50428         (cleanup): First, close the descriptors.
50429         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50430         fclose_temp, fwriteerror_temp): New functions.
50431
50432 2006-10-04  Jim Meyering  <jim@meyering.net>
50433
50434         * lib/fts.c (fts_open): Tiny comment change.
50435
50436 2006-10-04  Bruno Haible  <bruno@clisp.org>
50437
50438         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50439         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50440         gl_LOCK_BODY.
50441         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50442         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50443         gl_LOCK_EARLY_BODY.
50444         (gl_LOCK): Require gl_LOCK_BODY.
50445
50446 2006-10-04  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50449         (gl_oset_search_atleast): New declaration.
50450         (struct gl_oset_implementation): Add field 'search_atleast'.
50451         (gl_oset_search_atleast): New inline function.
50452         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50453         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50454         (gl_array_oset_implementation): Update.
50455         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50456         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50457         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50458
50459 2006-10-04  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50462
50463 2006-10-03  Bruno Haible  <bruno@clisp.org>
50464
50465         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50466         from gl_avltreehash_list_implementation.
50467
50468 2006-10-03  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/gl_oset.c (gl_oset_add): Fix return type.
50471
50472 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50473
50474         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50475
50476 2006-10-02  Eric Blake  <ebb9@byu.net>
50477
50478         * modules/strnlen (Depends-on): Add extensions.
50479
50480 2006-10-02  Eric Blake  <ebb9@byu.net>
50481
50482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50483         definition in 2.60+.
50484
50485 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50486
50487         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50488         checks.
50489
50490 2006-10-02  Bruno Haible  <bruno@clisp.org>
50491
50492         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50493         to the AUTOMAKE_OPTIONS.
50494         Reported by Jim Meyering.
50495
50496 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50497
50498         Work around bug in Solaris 10 /proc file system:
50499         /proc/self/fd/NNN/.. isn't the parent directory of
50500         the directory whose file descriptor is NNN.  This needs to
50501         be worked around at run time, not compile time, since a
50502         program might be built on Solaris 8, where things work, and
50503         run on Solaris 10.
50504         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50505         to use the following interface instead:
50506         (OPENAT_BUFFER_SIZE): New macro.
50507         (openat_proc_name): New function.
50508         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50509         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50510         Likewise.
50511         * lib/openat-proc.c: New file.
50512         * modules/openat (Files): Add lib/openat-proc.c.
50513         (Depends-on): Add same-inode, stdbool.
50514         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50515
50516 2006-09-29  Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50519         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50520         argument. Set stdout_closed before testing for ferror, not after.
50521         (fwriteerror, fwriteerror_no_ebadf): New functions.
50522
50523 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50524
50525         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50526
50527 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50528
50529         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50530         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50531
50532 2006-09-28  Jim Meyering  <jim@meyering.net>
50533
50534         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50535         Include <unistd.h>.
50536
50537 2006-09-28  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50540         * modules/linkedhash-list (Depends-on): Likewise.
50541         * modules/rbtreehash-list (Depends-on): Likewise.
50542
50543 2006-09-28  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/strndup.h: Simplify the redefinition of strndup.
50546         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50547         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50548
50549 2006-09-28  Bruno Haible  <bruno@clisp.org>
50550
50551         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50552         * lib/gl_linkedhash_list.c: Likewise.
50553         * lib/gl_rbtreehash_list.c: Likewise.
50554
50555 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50556
50557         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50558         getaddrinfo.
50559
50560         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50561         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50562         it causes <stdio_ext.h> to cause a compile-time error.
50563         Problem reported by Nelson H. F. Beebe.
50564         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50565         of HAVE_DECL___PENDING.
50566
50567         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50568         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50569         declaration.
50570
50571 2006-09-27  Jim Meyering  <jim@meyering.net>
50572
50573         This file could end up with a definition for a function
50574         named __strndup, rather than rpl_strndup on a system with
50575         incomplete weak_alias support.
50576         * lib/strndup.c (strndup): Rename from __strndup.
50577         Remove #defines that used to map __strndup to strndup.
50578         Don't use K&R prototypes.
50579         Remove LIBC-related code, since this file is not sync'd with glibc.
50580         * lib/strndup.h: Revamp, accordingly.
50581         * m4/strndup.m4: Modernize.
50582
50583 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50584
50585         * modules/savewd (Depends-on): Add 'raise'.
50586         * lib/savewd.c: Include <signal.h>, for 'raise'.
50587
50588 2006-09-26  Jim Meyering  <jim@meyering.net>
50589
50590         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50591         when we detect Darwin 8.7.0's acl_get_file bug.
50592         Rearrange to perform the new (below) run-test while $LIBS
50593         contains any acl-related library.  Set USE_ACL at the end.
50594         (gl_ACL_GET_FILE): New function.
50595
50596 2006-09-26  Eric Blake  <ebb9@byu.net>
50597
50598         * lib/verror.c: Include <config.h> unconditionally.
50599
50600 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * modules/clock-time (Maintainer): Add self.
50603         * modules/getlogin_r (Depends-on): Add extensions.
50604
50605 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50606
50607         * modules/clock-time: New module.
50608         * modules/nanosleep (Depends-on): Add clock-time.
50609         * modules/gethrxtime (Depends-on): Likewise.
50610         * modules/gettime (Depends-on): Likewise.
50611         * modules/settime (Depends-on): Likewise.
50612
50613         * modules/fts-lgpl: Depend on openat.
50614         * modules/mkancesdirs: Depend on savewd.
50615         * modules/mkdir-p: Likewise.
50616
50617 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50618
50619         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50620
50621         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50622         `gl_have_arbitrary_file_name_length_limit' to
50623         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50624         actually works between configure runs.
50625
50626 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50627             Bruno Haible  <bruno@clisp.org>
50628
50629         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50630
50631 2006-09-25  Jim Meyering  <jim@meyering.net>
50632
50633         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50634         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50635
50636 2006-09-25  Eric Blake  <ebb9@byu.net>
50637
50638         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50639         exec's in 2006-09-18 patch when shuffling fds.
50640
50641 2006-09-25  Bruno Haible  <bruno@clisp.org>
50642
50643         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50644         Reported by Jim Meyering.
50645
50646 2006-09-24  Jim Meyering  <jim@meyering.net>
50647
50648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50649         compare a pointer against a literal "0".  That caused failures with
50650         at least HP-UX's hpcc.
50651
50652 2006-09-22  Simon Josefsson  <jas@extundo.com>
50653
50654         * modules/gc-sha1:
50655         * modules/gc-md4:
50656         * modules/gc-hmac-sha1:
50657         * modules/gc-hmac-md5:
50658         * modules/gc-des:
50659         * modules/gc-arcfour: Distribute more files.
50660
50661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50662
50663         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50664         (gl_linked_iterator_from_to): Initialize struct completely.
50665         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50666         (gl_tree_iterator_from_to): Likewise
50667         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50668         * lib/gl_array_list.c [lint] (gl_array_iterator)
50669         (gl_array_iterator_from_to): Likewise.
50670         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50671         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50672         (gl_carray_iterator_from_to): Likewise.
50673
50674         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50675         * lib/md4.c (md4_process_block): Remove unused variable.
50676         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50677         parentheses for clarity.
50678
50679 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50680
50681         * modules/bison-i18n (Depends-on): Add gettext.
50682
50683 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50684
50685         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50687         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50688         also add missing comma that caused broken test.
50689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50690         stdlib.h, for `abort'.
50691         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50692         variables.
50693         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50694         include unistd.h if present, for `rmdir'.
50695         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50696         variables.
50697         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50698         in the process include standard headers for prototypes.
50699         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50700         gets declared on GNU/Linux.
50701         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50702         unistd.h, for `rmdir'.
50703         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50704
50705         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50706         always true.
50707         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50708
50709         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50710
50711 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50712
50713         * gnulib-tool (func_version): Create output all at once.  This
50714         may help avoid triggering unnecessary SIGPIPEs, and at any
50715         rate it doesn't hurt.
50716
50717 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50718             Bruno Haible  <bruno@clisp.org>
50719
50720         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50721         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50722         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50723
50724         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50725         (gl_FUNC_VASPRINTF): Invoke it.
50726
50727 2006-09-22  Bruno Haible  <bruno@clisp.org>
50728
50729         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50730         getloadavg.c as first argument.
50731
50732 2006-09-22  Bruno Haible  <bruno@clisp.org>
50733
50734         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50735         at the beginning of the gl_INIT macro.
50736         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50737         gl_GETLOADAVG.
50738
50739 2006-09-22  Bruno Haible  <bruno@clisp.org>
50740
50741         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50742         module.
50743         Suggested by Ralf Wildenhues.
50744
50745 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50746
50747         Import this patch from libc:
50748
50749         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50750
50751         * lib/regex_internal.c (re_string_reconstruct): Handle
50752         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50753         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50754         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50755         re_string_context_at.
50756
50757         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50758         now requires it.
50759         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50760         gl_REGEX now does it for us.
50761         (gl_REGEX): Add test taken from
50762         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50763
50764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50765         Check that large offsets work.  Modernize Autoconf usages.
50766         Prefer "yes" to mean a good thing rather than a bad.
50767         Don't put "#define mkstemp" in config.h, as this might interfere
50768         with standard system headers that "#define mkstemp mkstemp64".
50769
50770         * modules/mkstemp (Depends-on): Add extensions, so that
50771         mkstemp is visible on some platforms.
50772         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50773         (Include): Change to "mkstemp.h" from <stdlib.h>.
50774         (Files): Add mkstemp.h.
50775
50776         * lib/mkstemp.h: New file, since some standard headers
50777         #define mkstemp.
50778         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50779         Include "mkstemp.h".
50780         Make the _LIBC code resemble glibc original more,
50781         e.g., use K&R style.
50782         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50783         (mkstemp): Remove, since mkstemp.h does this for us.
50784         * lib/stdlib--.h: Include mkstemp.h.
50785
50786         Import this patch from libc:
50787
50788         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50789
50790         * lib/tempname.c (__gen_tempname): Change attempts_min
50791         into a macro.  Use preprocessor to decide how to initialize
50792         attempts [Coverity CID 67].
50793
50794 2006-09-20  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/mkdtemp.c: Import from libc.
50797         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50798                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50799                 attempts_min into a macro.  Use preprocessor to decide how to
50800                 initialize attempts [Coverity CID 67].
50801         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50802                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50803                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50804
50805 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50806
50807         * gnulib-tool (func_exit): New function, to allow to pass the
50808         exit status portably through the trap.  Use everywhere.
50809         (--help, --version): Signal a write error.
50810         (trap): catch SIGPIPE, for write errors.
50811         Exit at the end of the trap, with the correct exit status.
50812
50813 2006-09-19  Karl Berry  <karl@gnu.org>
50814
50815         * doc/gnulib.texi: note about the license texinfo files.
50816
50817 2006-09-19  Eric Blake  <ebb9@byu.net>
50818
50819         * gnulib-tool: Avoid space-tab.
50820
50821 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50822
50823         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50824         that prevented coreutils 6.1 from building.  Problem reported
50825         by Petter Reinholdtsen.
50826
50827 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50828
50829         * gnulib-tool (avoidlist): Fix typo that broke options like
50830         --avoid=lock that are used by coreutils bootstrap.
50831
50832 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50833
50834         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50835         more systematically.
50836
50837 2006-09-18  Jim Meyering  <jim@meyering.net>
50838
50839         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50840
50841 2006-09-18  Bruno Haible  <bruno@clisp.org>
50842
50843         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50844
50845 2006-09-18  Bruno Haible  <bruno@clisp.org>
50846
50847         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50848         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50849         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50850         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50851         * m4/gettext.m4: Require autoconf >= 2.52.
50852         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50853         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50854         of gl_cv_header_inttypes_h.
50855
50856 2006-09-18  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/javaversion.c: Include configmake.h.
50859
50860 2006-09-18  Bruno Haible  <bruno@clisp.org>
50861
50862         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
50863         avoid that the while loops be executed in a subshell.
50864
50865 2006-09-18  Bruno Haible  <bruno@clisp.org>
50866
50867         * MODULES.html.sh (func_module): Break long lines.
50868         Suggested by Bruce Korb <bkorb@gnu.org>.
50869
50870 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50871
50872         Speed up by a factor of 1.12.
50873         * gnulib-tool (nl): New variable.
50874         (func_import): Rewrite include directive extraction to only read each
50875         directive once.
50876
50877 2006-09-17  Bruno Haible  <bruno@clisp.org>
50878
50879         * modules/javaversion (Makefile.am): Remove DEFS setting.
50880         (Depends-on): Add configmake, for PKGDATADIR definition.
50881
50882 2006-09-17  Bruno Haible  <bruno@clisp.org>
50883
50884         * gnulib-tool (func_create_testdir): Rewrite all files at once.
50885
50886 2006-09-17  Bruno Haible  <bruno@clisp.org>
50887
50888         * gnulib-tool (func_append): New function, stolen from libtool.m4.
50889         (func_modules_transitive_closure, func_modules_add_dummy,
50890         func_modules_to_filelist, func_import, func_create_testdir,
50891         func_create_megatestdir, ...): Use it wherever possible.
50892         Suggested by Ralf Wildenhues.
50893
50894 2006-09-16  Karl Berry  <karl@gnu.org>
50895
50896         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
50897         to avoid sectioning errors.
50898         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
50899         [ifinfo]: blank line after @center-ed titles.
50900         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
50901         Spell FSF address consistently with others.
50902         (These changes approved by rms.)
50903
50904 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50905
50906         Speed up by a factor of 1.61.
50907         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
50908         already checked module names again.
50909
50910 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50911
50912         Speed up by a factor of 1.13.
50913         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
50914         for new_files, and the input to func_add_or_update.
50915
50916 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50917
50918         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
50919         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
50920
50921 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * modules/mkancesdirs (Depends-on): Add fcntl.
50924         * modules/savewd: New file.
50925         * MODULES.html.sh (File system functions): Add savewd.
50926
50927         * modules/configmake (Makefile.am): Add support for the
50928         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
50929
50930 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50931
50932         * m4/savewd.m4: New file.
50933
50934 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
50937         (dirchownmod): New arg FD.  All callers changed.
50938         Use FD rather than opening the directory ourself, as opening is
50939         now the caller's responsibility.
50940         * lib/dirchownmod.h: Likewise.
50941         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
50942         hosts that require <sys/types.h> before <sys/stat.h>.  Include
50943         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
50944         (test_dir): Remove.
50945         (mkancesdirs): Return length of prefix of FILE that has already
50946         been made, or -2 if there is a child doing the work.  Redo
50947         algorithm so that it is O(N) rather than O(N**2).  Optimize away
50948         ".", and treat ".." specially since it might stray back into
50949         already-created areas.  Use a subprocess if necessary.  New arg
50950         WD; all users changed.  MAKE_DIR function should now return 1
50951         if it creates a directory that is not readable.  Return -2 if
50952         a child process is spun off.
50953         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
50954         Adjust signature to match code.
50955         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
50956         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
50957         all users changed.
50958         * lib/savewd.c, lib/savewd.h: New files.
50959
50960 2006-09-15  Jim Meyering  <jim@meyering.net>
50961
50962         * modules/rename-dest-slash: New module.
50963         * MODULES.html.sh (posix_compat): Add it here.
50964
50965         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
50966
50967 2006-09-15  Jim Meyering  <jim@meyering.net>
50968
50969         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
50970         file.
50971
50972         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
50973
50974 2006-09-15  Jim Meyering  <jim@meyering.net>
50975
50976         * lib/rename-dest-slash.c (has_trailing_slash): Use
50977         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
50978         (rpl_rename_dest_slash): Perform the cheaper trailing slash
50979         test before testing whether SRC is a directory.
50980         Suggestions from Bruno Haible.
50981
50982         Avoid a warning about an unused variable.
50983         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
50984         into the #ifdef block where it's used.
50985
50986         * lib/rename-dest-slash.c: New file.
50987
50988 2006-09-14  Bruno Haible  <bruno@clisp.org>
50989
50990         * lib/allocsa.c: Include <config.h> unconditionally.
50991         * lib/asnprintf.c: Likewise.
50992         * lib/asprintf.c: Likewise.
50993         * lib/c-strcasecmp.c: Likewise.
50994         * lib/c-strcasestr.c: Likewise.
50995         * lib/c-strncasecmp.c: Likewise.
50996         * lib/c-strstr.c: Likewise.
50997         * lib/classpath.c: Likewise.
50998         * lib/clean-temp.c: Likewise.
50999         * lib/concatpath.c: Likewise.
51000         * lib/copy-file.c: Likewise.
51001         * lib/csharpcomp.c: Likewise.
51002         * lib/csharpexec.c: Likewise.
51003         * lib/execute.c: Likewise.
51004         * lib/fatal-signal.c: Likewise.
51005         * lib/findprog.c: Likewise.
51006         * lib/fwriteerror.c: Likewise.
51007         * lib/gl_array_list.c: Likewise.
51008         * lib/gl_array_oset.c: Likewise.
51009         * lib/gl_avltree_list.c: Likewise.
51010         * lib/gl_avltree_oset.c: Likewise.
51011         * lib/gl_avltreehash_list.c: Likewise.
51012         * lib/gl_carray_list.c: Likewise.
51013         * lib/gl_linked_list.c: Likewise.
51014         * lib/gl_linkedhash_list.c: Likewise.
51015         * lib/gl_list.c: Likewise.
51016         * lib/gl_oset.c: Likewise.
51017         * lib/gl_rbtree_list.c: Likewise.
51018         * lib/gl_rbtree_oset.c: Likewise.
51019         * lib/gl_rbtreehash_list.c: Likewise.
51020         * lib/imaxabs.c: Likewise.
51021         * lib/imaxdiv.c: Likewise.
51022         * lib/javacomp.c: Likewise.
51023         * lib/javaexec.c: Likewise.
51024         * lib/javaversion.c: Likewise.
51025         * lib/linebreak.c: Likewise.
51026         * lib/localcharset.c: Likewise.
51027         * lib/lock.c: Likewise.
51028         * lib/mbchar.c: Likewise.
51029         * lib/mbswidth.c: Likewise.
51030         * lib/mkdtemp.c: Likewise.
51031         * lib/pipe.c: Likewise.
51032         * lib/printf-args.c: Likewise.
51033         * lib/printf-parse.c: Likewise.
51034         * lib/progname.c: Likewise.
51035         * lib/progreloc.c: Likewise.
51036         * lib/readlink.c: Likewise.
51037         * lib/sh-quote.c: Likewise.
51038         * lib/stpcpy.c: Likewise.
51039         * lib/stpncpy.c: Likewise.
51040         * lib/strcasecmp.c: Likewise.
51041         * lib/strcasestr.c: Likewise.
51042         * lib/strcspn.c: Likewise.
51043         * lib/striconv.c: Likewise.
51044         * lib/strncasecmp.c: Likewise.
51045         * lib/strnlen1.c: Likewise.
51046         * lib/strstr.c: Likewise.
51047         * lib/strtok_r.c: Likewise.
51048         * lib/tls.c: Likewise.
51049         * lib/tmpdir.c: Likewise.
51050         * lib/unicodeio.c: Likewise.
51051         * lib/unsetenv.c: Likewise.
51052         * lib/vasnprintf.c: Likewise.
51053         * lib/vasprintf.c: Likewise.
51054         * lib/wait-process.c: Likewise.
51055         * lib/xallocsa.c: Likewise.
51056         * lib/xsetenv.c: Likewise.
51057         * lib/xstriconv.c: Likewise.
51058
51059 2006-09-13  Simon Josefsson  <jas@extundo.com>
51060
51061         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51062         that internally, suggested by Ralf Wildenhues
51063         <Ralf.Wildenhues@gmx.de>.
51064
51065 2006-09-13  Simon Josefsson  <jas@extundo.com>
51066
51067         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51068         @LIBOBJS@.
51069         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51070
51071 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51072
51073         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51074         longer worry about uses that don't define HAVE_CONFIG_H.
51075         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51076         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51077         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51078         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51079         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51080         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51081         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51082         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51083         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51084         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51085         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51086         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51087         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51088         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51089         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51090         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51091         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51092         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51093         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51094         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51095         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51096         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51097         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51098         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51099         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51100         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51101         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51102         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51103         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51104         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51105         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51106         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51107         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51108         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51109         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51110         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51111         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51112         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51113         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51114         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51115         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51116         Likewise.
51117
51118 2006-09-13  Eric Blake  <ebb9@byu.net>
51119
51120         * lib/getopt.c: Fix typo in last commit.
51121
51122 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51123
51124         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51125         dgettext.
51126
51127 2006-09-12  Jim Meyering  <jim@meyering.net>
51128
51129         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51130         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51131         Reported by Nelson H. F. Beebe.
51132
51133 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51134
51135         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51136         program_invocation_name and program_invocation_short_name are
51137         initialized.
51138         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51139         and program_invocation_short_name to argp.h, so they are visible
51140         to user programs.
51141         * lib/argp.h: Likewise
51142
51143 2006-09-10  Bruno Haible  <bruno@clisp.org>
51144
51145         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51146         m4/inttypes_h.m4, m4/uintmax_t.m4.
51147
51148 2006-09-10  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51151         gl_AC_TYPE_UINTMAX_T.
51152
51153 2006-09-10  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51156
51157 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51158
51159         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51160         convention.  Text proposed by Bruno Haible.
51161         (struct argp_option): Document the use of N_() wrappers.
51162
51163         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51164         '\v', and translate the two parts separately, instead of feeding
51165         the whole string to gettext.  This allows to exclude
51166         '\v' from the strings visible to the translator by writing doc
51167         strings as N_("..") "\v" N_("..").
51168
51169 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * config/srclist.txt: Undo latest change; the bug was fixed.
51172
51173 2006-09-09  Bruno Haible  <bruno@clisp.org>
51174
51175         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51176         assignments if building a library without libtool.
51177         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51178         in func_emit_lib_Makefile_am.
51179         (func_import): When building a static library libfoo.a, arrange to
51180         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51181         (func_create_testdir): Likewise.
51182         * modules/gc (configure.ac, Makefile.am): If building statically,
51183         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51184         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51185         * modules/striconv (configure.ac, Makefile.am): Likewise.
51186         Based on a suggestion by Ralf Wildenhues.
51187
51188 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51189
51190         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51191         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51192         Also:
51193
51194         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51195         Add year_2050_test to catch glibc bug 2821
51196         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51197
51198         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51199         Prefer #ifdef to #if.
51200
51201         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51202         Return from 'main' instead of calling 'exit'.
51203
51204 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51205
51206         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51207         returned the maximum time_t value rather than (time_t) -1.
51208         Problem originally reported by William Bardwell
51209         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51210
51211         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51212         Moved to here ...
51213         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51214         ... from here.
51215
51216 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51217
51218         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51219         2821 is fixed.
51220
51221 2006-09-08  Jim Meyering  <jim@meyering.net>
51222
51223         Don't make generated files read-only.  That would bother too many
51224         people.  However, do retain the ability to work when targets are
51225         read-only: remove the destination and temporary files before writing
51226         them (when generated via sed or echo), or by using the -f option for
51227         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51228         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51229         * modules/byteswap, modules/configmake, modules/fcntl:
51230         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51231         * modules/localcharset, modules/netinet_in, modules/poll:
51232         * modules/stdbool, modules/stdint, modules/sys_select:
51233         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51234
51235 2006-09-08  Jim Meyering  <jim@meyering.net>
51236
51237         Avoid new build failure on FreeBSD 6.0.
51238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51239         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51240         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51241
51242 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51243
51244         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51245
51246 2006-09-07  Jim Meyering  <jim@meyering.net>
51247
51248         Fix global typo in last change: use chmod u-w, not chmod u-x.
51249         Spotted by Paul Eggert and Bruce Korb.
51250         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51251         * modules/byteswap, modules/configmake, modules/fcntl:
51252         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51253         * modules/localcharset, modules/netinet_in, modules/poll:
51254         * modules/stdbool, modules/stdint, modules/sys_select:
51255         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51256
51257 2006-09-06  Jim Meyering  <jim@meyering.net>
51258
51259         Make generated files be read-only.
51260         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51261         Ensure that each generated file is now read-only.
51262         * modules/argz: Likewise.
51263         * modules/arpa_inet: Likewise.
51264         * modules/byteswap: Likewise.
51265         * modules/configmake: Likewise.
51266         * modules/fcntl: Likewise.
51267         * modules/fnmatch: Likewise.
51268         * modules/getopt: Likewise.
51269         * modules/glob: Likewise.
51270         * modules/inttypes: Likewise.
51271         * modules/netinet_in: Likewise.
51272         * modules/poll: Likewise.
51273         * modules/stdbool: Likewise.
51274         * modules/stdint: Likewise.
51275         * modules/sys_select: Likewise.
51276         * modules/sys_socket: Likewise.
51277         * modules/sys_stat: Likewise.
51278         * modules/sysexits: Likewise.
51279         * modules/localcharset: Same as above, but continue using temporary
51280         file named "t-$@" (why different?) rather than the "$@-t" used
51281         everywhere else.
51282
51283         * modules/sysexits (Makefile.am): Replace literal occurrences
51284         of "sysexit.h" more readable, and more consistent, "$@".
51285
51286 2006-09-06  Bruno Haible  <bruno@clisp.org>
51287
51288         * modules/striconv: New file.
51289         * modules/xstriconv: New file.
51290         * MODULES.html.sh (Internationalization functions): Add striconv,
51291         xstriconv.
51292
51293 2006-09-06  Bruno Haible  <bruno@clisp.org>
51294
51295         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51296         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51297         not using libtool correctly.
51298
51299 2006-09-06  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/striconv.h: New file.
51302         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51303         iconvstring.c.
51304         * lib/xstriconv.h: New file.
51305         * lib/xstriconv.c: New file.
51306
51307 2006-09-06  Bruno Haible  <bruno@clisp.org>
51308
51309         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51310         lib_..._LDFLAGS.
51311
51312 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51313
51314         * lib/argz_.h: Sync from Libtool.
51315
51316         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51317                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51318
51319         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51320
51321 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51322
51323         * modules/trim: New file.
51324
51325 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51326
51327         * lib/trim.h: New file.
51328         * lib/trim.c: New file.
51329
51330 2006-09-05  Bruno Haible  <bruno@clisp.org>
51331
51332         * MODULES.html.sh (String handling): Add trim.
51333
51334 2006-09-04  Karl Berry  <karl@gnu.org>
51335
51336         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51337         until next release.
51338
51339 2006-09-03  Bruno Haible  <bruno@clisp.org>
51340
51341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51342         correctly.
51343
51344 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51345
51346         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51347         not gl_GETLOADAVG.  Omit unneeded semicolons.
51348         Problems reported by Ralf Wildenhues in
51349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51350         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51351         at the end, which is the usual gnulib style.
51352
51353         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51354         of doing all the work ourselves.
51355         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51356         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51357
51358 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51359
51360         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51361         Problem reported by Ralf Wildenhues in
51362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51363
51364         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51365         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51366
51367 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51368
51369         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51370         yesterday's patch by changing test -n to test -z.
51371
51372 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51375         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51376         the former is now obsolescent.
51377
51378         * modules/chdir-long (Depends-on): Add fcntl.
51379
51380 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51381
51382         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51383         obsolescent, and programs should use gnulib instead.
51384         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51385         but with prefixes changed.
51386
51387 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51388
51389         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51390         or stdbool.h, because they might not exist while configuring.
51391
51392         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51393         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51394         does that for us.
51395         (O_DIRECTORY): Remove.
51396
51397 2006-08-31  Eric Blake  <ebb9@byu.net>
51398
51399         * gnulib-tool: Don't let emacs change spaces to TAB.
51400
51401 2006-08-31  Bruno Haible  <bruno@clisp.org>
51402
51403         * gnulib-tool: When calling func_import more than once, do it in a
51404         subshell.
51405         Reported by Eric Blake <ebb9@byu.net>.
51406
51407 2006-08-31  Bruno Haible  <bruno@clisp.org>
51408
51409         * gnulib-tool (nl): Remove variable.
51410         (sed_transform_lib_file): Use more robust test for config-h module.
51411         (func_import): Fix typo in 2006-08-25 patch.
51412
51413 2006-08-31  Bruno Haible  <bruno@clisp.org>
51414
51415         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51416         specified, augment Makefile.am variables instead of assigning them.
51417
51418 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         Work around a bug in both the Linux and SunOS 64-bit kernels:
51421         nanosleep mishandles sleeps for longer than 2**31 seconds.
51422         Problem reported by Frank v Waveren in
51423         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51425         Check for nanosleep bug.
51426         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51427
51428 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         Work around a bug in both the Linux and SunOS 64-bit kernels:
51431         nanosleep mishandles sleeps for longer than 2**31 seconds.
51432         Problem reported by Frank v Waveren in
51433         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51434         * lib/nanosleep.c (BILLION): New constant.
51435         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51436         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51437         implementation.
51438
51439 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51440
51441         * modules/nanosleep (Depends-on): Add gettime.
51442
51443 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51444         and Simon Josefsson  <jas@extundo.com>
51445         and Oskar Liljeblad  <oskar@osk.mine.nu>
51446
51447         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51448         * gnulib-tool (func_import): New license type 'unmodifiable license
51449         text'.
51450         * modules/fdl: Use it.  Longer description.
51451         * module/gpl, module/lgpl: New files.
51452
51453 2006-08-30  Jim Meyering  <jim@meyering.net>
51454
51455         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51456         shadowing the parameter.
51457
51458 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51459
51460         Sync from Libtool:
51461
51462         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51463
51464         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51465         sharing with gnulib.  Report by Eric Blake.
51466
51467 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51468
51469         * modules/isapipe: New file.
51470         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51471
51472 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         * modules/configmake (Makefile.am): Add a comment, and omit
51475         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51476         by Bruno Haible.
51477
51478 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * m4/isapipe.m4: New file.
51481
51482 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51483
51484         * lib/isapipe.c, lib/isapipe.h: New files.
51485
51486 2006-08-29  Jim Meyering  <jim@meyering.net>
51487
51488         * modules/configmake (Makefile.am): Make configmake.h depend on
51489         Makefile.  Otherwise, a stale configmake.h could hang around.
51490
51491 2006-08-29  Eric Blake  <ebb9@byu.net>
51492
51493         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51494         resolution of upstream bug 3044.
51495
51496 2006-08-29  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/localcharset (Depends-on): Add configmake.
51499         (Makefile.am): Remove setting of LIBDIR through DEFS.
51500
51501 2006-08-29  Bruno Haible  <bruno@clisp.org>
51502
51503         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51504         defined.
51505
51506 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * modules/fcntl: New file.
51509         * modules/chdir-safer (Depends-on): Add fcntl.
51510         * modules/fts: Likewise.
51511         * modules/mkdir-p: Likewise.
51512
51513         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51514         This undoes the most recent change, since we're now addressing the
51515         problem in a different way.
51516
51517         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51518         into output, since the output might be called Makefile.am even
51519         if $makefile_name is something different.
51520         (func_import): Use $makefile_am rather than
51521         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51522         empty.
51523
51524         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51525
51526 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51529         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51530         recent change to stdint.m4, since we're now addressing the problem in a
51531         different way.
51532
51533 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51534
51535         * m4/fcntl_h.m4: New file.
51536
51537 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51538
51539         * lib/fcntl_.h: New file.
51540         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51541         the fcntl module.
51542         * lib/dirchownmod.c: Likewise.
51543         * lib/fts.c: Likewise.
51544
51545         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51546         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51547         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51548         just before including <inttypes.h>, to avoid circular inclusion.
51549
51550 2006-08-28  Jim Meyering  <jim@meyering.net>
51551
51552         * doc/visibility.texi: Actually read and correct the grammar of the
51553         sentence affected by yesterday's change.
51554
51555 2006-08-28  Eric Blake  <ebb9@byu.net>
51556
51557         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51558         needs wrapper.
51559
51560 2006-08-28  Eric Blake  <ebb9@byu.net>
51561
51562         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51563
51564 2006-08-28  Eric Blake  <ebb9@byu.net>
51565
51566         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51567
51568 2006-08-28  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/c-strstr: New file, from GNU gettext.
51571         * MODULES.html.sh (String handling): Add c-strstr.
51572
51573 2006-08-28  Bruno Haible  <bruno@clisp.org>
51574
51575         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51576         macros.
51577         Reported by Eric Blake.
51578
51579 2006-08-28  Bruno Haible  <bruno@clisp.org>
51580
51581         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51582         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51583         * lib/vasprintf.c: Include errno.h, limits.h.
51584         (EOVERFLOW): New fallback definition.
51585         (vasprintf): Test here whether the string length is > INT_MAX.
51586         * lib/vsnprintf.c: Include errno.h, limits.h.
51587         (EOVERFLOW): New fallback definition.
51588         (vsnprintf): Fix bug when generated string was too long for the buffer.
51589         Test here whether the string length is > INT_MAX.
51590
51591 2006-08-28  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/inttypes_.h (SCNX*): Remove definitions.
51594         Reported by Eric Blake.
51595
51596 2006-08-28  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/c-strstr.h: New file, from GNU gettext.
51599         * lib/c-strstr.c: New file, from GNU gettext.
51600
51601 2006-08-28  Bruno Haible  <bruno@clisp.org>
51602
51603         * gnulib-tool: Reorder some statements.
51604
51605 2006-08-28  Bruno Haible  <bruno@clisp.org>
51606
51607         * gnulib-tool: New option --makefile-name.
51608         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51609         $makefile_name.
51610         (func_import): Write $makefile_name to the cache file, and read it from
51611         there unless explicitly specified. Use $makefile_name as file name
51612         instead of Makefile.am. Adjust the recommendations accordingly.
51613
51614 2006-08-28  Bruno Haible  <bruno@clisp.org>
51615
51616         * gnulib-tool (func_verify_module): Check against misapplying patch.
51617
51618 2006-08-28  Bruno Haible  <bruno@clisp.org>
51619
51620         * gnulib-tool (func_relativize, func_relconcat): New functions.
51621         Give an error if --local-dir is given with --update.
51622         Remove trailing slashes from $local_gnulib_dir.
51623         (func_import): Store the relativized $local_gnulib_dir in
51624         gnulib-cache.m4, and read it from there if not specified explicitly.
51625
51626 2006-08-28  Bruno Haible  <bruno@clisp.org>
51627
51628         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51629         is the current directory. Respect also $local_gnulib_dir.
51630
51631 2006-08-28  Bruno Haible  <bruno@clisp.org>
51632             Simon Josefsson  <jas@extundo.com>
51633
51634         BeOS portability.
51635         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51636
51637 2006-08-27  Jim Meyering  <jim@meyering.net>
51638
51639         * doc/visibility.texi: Remove duplicate word: "pointer".
51640
51641 2006-08-26  Bruno Haible  <bruno@clisp.org>
51642
51643         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51644         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51645         (Makefile.am): Create inttypes.h from inttypes_.h.
51646         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51647
51648         * modules/imaxabs: New file.
51649
51650         * modules/imaxdiv: New file.
51651
51652 2006-08-26  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/inttypes.m4: New file.
51655         * m4/_inttypes_h.m4: Remove file.
51656         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51657         PRI_MACROS_BROKEN.
51658         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51659
51660         * m4/imaxabs.m4: New file.
51661
51662         * m4/imaxdiv.m4: New file.
51663
51664 2006-08-26  Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/inttypes_.h: New file.
51667         * lib/inttypes.h: Remove file.
51668         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51669
51670         * lib/imaxabs.c: New file.
51671
51672         * lib/imaxdiv.c: New file.
51673
51674 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         New config-h module, so that "make" output needn't be cluttered
51677         by -DHAVE_CONFIG_H.
51678         * MODULES.html.sh (Support for building libraries and executables):
51679         Add config-h.
51680         * modules/config-h: New file.
51681         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51682         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51683         the config-h module is used.
51684
51685         New configmake module, so that "make" output needn't be cluttered
51686         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51687         * MODULES.html.sh (Support for building libraries and executables):
51688         Add configmake.
51689         * modules/configmake: New file.
51690
51691 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51692
51693         * m4/config-h.m4: New file.
51694
51695 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51696
51697         * config/srclist.txt: Add elisp-comp.
51698
51699 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * MODULES.html.sh (Support for building libraries and executables):
51702         Add elisp-comp.
51703         * build-aux/elisp-comp: New file.
51704         * modules/elisp-comp: New file.
51705
51706 2006-08-24  Bruno Haible  <bruno@clisp.org>
51707
51708         * gnulib-tool (func_create_testdir): Use non-default values of
51709         sourcebase and m4base.
51710
51711 2006-08-24  Bruno Haible  <bruno@clisp.org>
51712
51713         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51714         HTML structure.
51715
51716 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51717
51718         * modules/openat (Depends-on): Add lchown.
51719
51720 2006-08-23  Bruno Haible  <bruno@clisp.org>
51721
51722         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51723         of gl_LOCK_EARLY instead of gl_LOCK.
51724
51725 2006-08-23  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51728         on OSF/1 to no.
51729         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51730
51731 2006-08-23  Bruno Haible  <bruno@clisp.org>
51732
51733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51734         as unusable.
51735
51736         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51737         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51738         (gl_LOCK): New macro.
51739
51740 2006-08-22  Simon Josefsson  <jas@extundo.com>
51741
51742         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51743         to md5 module.
51744
51745 2006-08-22  Simon Josefsson  <jas@extundo.com>
51746
51747         * MODULES.html.sh: Add "Support for maintaining and release
51748         projects".
51749
51750         * build-aux/gnupload: New file, from coreutils.
51751
51752 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51753
51754         Avoid the need for AC_LIBSOURCES in m4 macros.
51755         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51756         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51757         * modules/check-version (EXTRA_DIST): Add check-version.h.
51758         * modules/crc (EXTRA_DIST): Add crc.h.
51759         * modules/des (EXTRA_DIST): Add des.h.
51760         * modules/gc (EXTRA_DIST): Add gc.h.
51761         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51762         * modules/getline (EXTRA_DIST): Add getline.h.
51763         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51764         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51765         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51766         * modules/md2 (EXTRA_DIST): Add md2.h.
51767         * modules/md4 (EXTRA_DIST): Add md4.h.
51768         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51769         * modules/read-file (EXTRA_DIST): Add read-file.h.
51770         * modules/readline (EXTRA_DIST): Add readline.h.
51771         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51772         rijndael-api-fst.h.
51773
51774 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51775
51776         * m4/rijndael.m4 (gl_ARCFOUR):
51777         * m4/arctwo.m4 (gl_ARCTWO):
51778         * m4/check-version.m4 (gl_CHECK_VERSION):
51779         * m4/crc.m4 (gl_CRC):
51780         * m4/des.m4 (gl_DES):
51781         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51782         * m4/gc.m4 (gl_GC):
51783         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51784         * m4/getline.m4 (gl_FUNC_GETLINE):
51785         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51786         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51787         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51788         * m4/md2.m4 (gl_MD2):
51789         * m4/md4.m4 (gl_MD4):
51790         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51791         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51792         * m4/readline.m4 (gl_FUNC_READLINE):
51793         * m4/rijndael.m4 (gl_RIJNDAEL):
51794         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51795         to get the necessary .h files and whatnot.
51796
51797 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51798
51799         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51800         gnulib rather than the other way around.
51801         * config/srclistvars.sh (COREUTILS): Remove.
51802
51803 2006-08-22  Jim Meyering  <jim@meyering.net>
51804
51805         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51806
51807         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51808
51809 2006-08-22  Eric Blake  <ebb9@byu.net>
51810
51811         * modules/regexprops-generic: New file.
51812         * MODULES.html.sh (Support for building documentation): List it.
51813
51814 2006-08-22  Eric Blake  <ebb9@byu.net>
51815
51816         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51817         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51819         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51820
51821 2006-08-22  Bruno Haible  <bruno@clisp.org>
51822
51823         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51824         and lib_LTLIBRARIES like the other lib_* variables.
51825
51826 2006-08-22  Bruno Haible  <bruno@clisp.org>
51827
51828         * build-aux/x-to-1.in: New file, from GNU gettext.
51829
51830 2006-08-22  Bruno Haible  <bruno@clisp.org>
51831
51832         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51833         <utmpx.h> exists.
51834
51835 2006-08-22  Bruno Haible  <bruno@clisp.org>
51836
51837         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51838         <utmpx.h> exists.
51839
51840 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51841
51842         BeOS portability.
51843         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51844         exist.
51845         Problem reported by Bruno Haible.
51846
51847 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         Avoid the need for AC_LIBSOURCES in m4 macros.
51850         * modules/acl (EXTRA_DIST): Add acl.h.
51851         * modules/argmatch (Files): Add m4/argmatch.m4.
51852         (configure.ac): Add gl_ARGMATCH.
51853         (EXTRA_DIST): Renamed from lib_SOURCES, for
51854         consistency with the other modules.  Remove argmatch.c.
51855         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51856         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51857         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51858         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51859         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51860         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
51861         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
51862         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
51863         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
51864         * modules/closeout (EXTRA_DIST): Add closeout.h.
51865         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
51866         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
51867         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
51868         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
51869         dirname.h; remove basename.c and stripslash.c.
51870         * modules/exclude (EXTRA_DIST): Add exclude.h.
51871         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
51872         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
51873         * modules/file-type (EXTRA_DIST): Add file-type.h.
51874         * modules/filemode (EXTRA_DIST): Add filemode.h.
51875         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
51876         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51877         * modules/fpending (EXTRA_DIST): Add __fpending.h.
51878         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
51879         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
51880         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
51881         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
51882         * modules/getdate (EXTRA_DIST): Add getdate.c.
51883         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
51884         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
51885         * modules/getpass (EXTRA_DIST): Add getpass.h.
51886         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
51887         * modules/group-member (EXTRA_DIST): Add group-member.h.
51888         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
51889         * modules/hash (EXTRA_DIST): Add hash.h.
51890         * modules/human (EXTRA_DIST): Add human.h.
51891         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
51892         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
51893         * modules/lchown (EXTRA_DIST): Add lchown.h.
51894         * modules/long-options (EXTRA_DIST): Add long-options.h.
51895         * modules/lstat (EXTRA_DIST): Add lstat.h.
51896         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
51897         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
51898         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
51899         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
51900         * modules/memxor (EXTRA_DIST): Add memxor.h.
51901         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
51902         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
51903         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
51904         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
51905         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
51906         * modules/physmem (EXTRA_DIST): Add physmem.h.
51907         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
51908         * modules/posixver (EXTRA_DIST): Add posixver.h.
51909         * modules/quote (EXTRA_DIST): Add quote.h.
51910         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
51911         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
51912         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
51913         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
51914         regex_internal.h regexec.c.
51915         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
51916         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
51917         * modules/same (EXTRA_DIST): Add same.h.
51918         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
51919         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
51920         * modules/savedir (EXTRA_DIST): Add savedir.h.
51921         * modules/sha1 (EXTRA_DIST): Add sha1.h.
51922         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
51923         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
51924         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
51925         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
51926         * modules/strdup (EXTRA_DIST): Add strdup.h.
51927         * modules/strftime (EXTRA_DIST): Add strftime.h.
51928         * modules/strndup (EXTRA_DIST): Add strndup.h.
51929         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
51930         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
51931         * modules/time_r (EXTRA_DIST): Add time_r.h.
51932         * modules/timespec (EXTRA_DIST): Add timespec.h.
51933         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
51934         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
51935         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
51936         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
51937         * modules/userspec (EXTRA_DIST): Add userspec.h.
51938         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
51939         * modules/utimens (EXTRA_DIST): Add utimens.h.
51940         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
51941         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
51942         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
51943         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
51944         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
51945         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
51946         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
51947         * modules/yesno (EXTRA_DIST): Add yesno.h.
51948
51949 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51950
51951         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
51952
51953         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
51954         * m4/dev-ino.m4, same-inode.m4: Remove.
51955
51956         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
51957         * m4/acl.m4 (AC_FUNC_ACL):
51958         * m4/backupfile.m4 (gl_BACKUPFILE):
51959         * m4/c-strtod.m4 (gl_C99_STRTOLD):
51960         * m4/canon-host.m4 (gl_CANON_HOST):
51961         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
51962         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
51963         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
51964         * m4/cloexec.m4 (gl_CLOEXEC):
51965         * m4/close-stream.m4 (gl_CLOSE_STREAM):
51966         * m4/closeout.m4 (gl_CLOSEOUT):
51967         * m4/dirfd.m4 (gl_FUNC_DIRFD):
51968         * m4/dirname.m4 (gl_DIRNAME):
51969         * m4/exclude.m4 (gl_EXCLUDE):
51970         * m4/exitfail.m4 (gl_EXITFAIL):
51971         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
51972         * m4/file-type.m4 (gl_FILE_TYPE):
51973         * m4/filemode.m4 (gl_FILEMODE):
51974         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
51975         * m4/fpending.m4 (gl_FUNC_FPENDING):
51976         * m4/fprintftime.m4 (gl_FPRINTFTIME):
51977         * m4/fts.m4 (gl_FUNC_FTS):
51978         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
51979         * m4/getdate.m4 (gl_GETDATE):
51980         * m4/gethrxtime.m4 (gl_GETHRXTIME):
51981         * m4/getpagesize.m4 (gl_GETPAGESIZE):
51982         * m4/getpass.m4 (gl_FUNC_GETPASS):
51983         * m4/gettime.m4 (gl_GETTIME):
51984         * m4/getugroups.m4 (gl_GETUGROUPS):
51985         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
51986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
51987         * m4/hard-locale.m4 (gl_HARD_LOCALE):
51988         * m4/hash.m4 (gl_HASH):
51989         * m4/idcache.m4 (gl_IDCACHE):
51990         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
51991         * m4/lchown.m4 (gl_FUNC_LCHOWN):
51992         * m4/long-options.m4 (gl_LONG_OPTIONS):
51993         * m4/lstat.m4 (gl_FUNC_LSTAT):
51994         * m4/md5.m4 (gl_MD5):
51995         * m4/memcasecmp.m4 (gl_MEMCASECMP):
51996         * m4/memcoll.m4 (gl_MEMCOLL):
51997         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
51998         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
51999         * m4/memxor.m4 (gl_MEMXOR):
52000         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52001         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52002         * m4/modechange.m4 (gl_MODECHANGE):
52003         * m4/mountlist.m4 (gl_MOUNTLIST):
52004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52005         * m4/openat.m4 (gl_FUNC_OPENAT):
52006         * m4/pathmax.m4 (gl_PATHMAX):
52007         * m4/physmem.m4 (gl_PHYSMEM):
52008         * m4/posixtm.m4 (gl_POSIXTM):
52009         * m4/posixver.m4 (gl_POSIXVER):
52010         * m4/quote.m4 (gl_QUOTE):
52011         * m4/quotearg.m4 (gl_QUOTEARG):
52012         * m4/readtokens.m4 (gl_READTOKENS):
52013         * m4/readutmp.m4 (gl_READUTMP):
52014         * m4/regex.m4 (gl_REGEX):
52015         * m4/safe-read.m4 (gl_SAFE_READ):
52016         * m4/safe-write.m4 (gl_SAFE_WRITE):
52017         * m4/same.m4 (gl_SAME):
52018         * m4/save-cwd.m4 (gl_SAVE_CWD):
52019         * m4/savedir.m4 (gl_SAVEDIR):
52020         * m4/settime.m4 (gl_SETTIME):
52021         * m4/sha1.m4 (gl_SHA1):
52022         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52023         * m4/stat-macros.m4 (gl_STAT_MACROS):
52024         * m4/stat-time.m4 (gl_STAT_TIME):
52025         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52026         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52027         * m4/strdup.m4 (gl_FUNC_STRDUP):
52028         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52029         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52030         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52031         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52032         * m4/time_r.m4 (gl_TIME_R):
52033         * m4/timespec.m4 (gl_TIMESPEC):
52034         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52035         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52036         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52037         * m4/userspec.m4 (gl_USERSPEC):
52038         * m4/utimecmp.m4 (gl_UTIMECMP):
52039         * m4/utimens.m4 (gl_UTIMENS):
52040         * m4/xalloc.m4 (gl_XALLOC):
52041         * m4/xgetcwd.m4 (gl_XGETCWD):
52042         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52043         * m4/xreadlink.m4 (gl_XREADLINK):
52044         * m4/xstrtod.m4 (gl_XSTRTOD):
52045         * m4/yesno.m4 (gl_YESNO):
52046         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52047         to get the necessary .h files and whatnot.
52048
52049 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52050             Bruno Haible  <bruno@clisp.org>
52051
52052         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52053         /bin/sh understanding of '!' conditional negation.
52054
52055 2006-08-21  Jim Meyering  <jim@meyering.net>
52056
52057         * modules/openat (Depends-on): Really alphabetize.
52058
52059         * modules/acl (Depends-on): Add error and quote.
52060
52061         * check-module (find_included_lib_files): Add at-func.c to the
52062         ok-to-include-more-than-once white list.
52063
52064         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52065
52066 2006-08-21  Bruno Haible  <bruno@clisp.org>
52067
52068         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52069         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52070         Reported by Martin Lambers <marlam@marlam.de>.
52071
52072 2006-08-21  Bruno Haible  <bruno@clisp.org>
52073
52074         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52075         specify an installation location, don't emit a noinst_LIBRARIES or
52076         noinst_LTLIBRARIES assignment.
52077
52078 2006-08-21  Bruno Haible  <bruno@clisp.org>
52079
52080         BeOS portability.
52081         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52082         BeOS has mbrtowc() but no <wctype.h>.
52083
52084 2006-08-21  Bruno Haible  <bruno@clisp.org>
52085
52086         BeOS portability.
52087         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52088         exist.
52089
52090 2006-08-21  Bruno Haible  <bruno@clisp.org>
52091
52092         BeOS portability.
52093         * lib/mbchar.h: Include <wctype.h> only if it exists.
52094
52095 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52096
52097         Remove files that are no longer needed by their respective modules.
52098         * m4/obstack.m4: Remove.
52099         * m4/strerror_r.m4: Remove.
52100         * m4/uint32_t.m4: Remove.
52101         * m4/uintptr_t.m4: Remove.
52102         * m4/ullong_max.m4: Remove.
52103         * m4/xstrtoimax.m4: Remove.
52104         * m4/xstrtoumax.m4: Remove.
52105
52106         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52107         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52108         dependencies now capture this.
52109
52110         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52111         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52112         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52113         * m4/human.m4 (gl_HUMAN): Likewise.
52114         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52115         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52116
52117         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52118
52119         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52120         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52121         stdint.
52122         * m4/human.m4 (gl_HUMAN): Likewise.
52123         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52124         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52125         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52126         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52127         * m4/xstrtol (gl_XSTRTOL): Likewise.
52128
52129         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52130         AC_TYPE_LONG_LONG_INT.
52131         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52132         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52133         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52134         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52135
52136         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52137         on stdbool.
52138
52139         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52140         (gl_PREREQ_XSTRTOUL): Remove.
52141
52142         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52143
52144         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52145         mode.
52146
52147 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52148
52149         Add and change modules to make it easier for coreutils to use
52150         gnulib-tool.
52151         * modules/backupfile (Files): Remove m4/d-ino.m4.
52152         (Depends-on): Add d-ino.
52153         * modules/cycle-check (Depends-on): Add stdint.
52154         (lib_SOURCES): Add cycle-check.h.
52155         * modules/d-ino: New module.
52156         * modules/d-type: New module.
52157         * modules/error (Files): Remove m4/strerror_r.m4.
52158         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52159         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52160         m4/inttypes_h.m4, m4/uintmax_t.m4.
52161         (Depends-on): Add stdint.
52162         (lib_SOURCES): Add fsusage.h.
52163         * modules/getcwd (Files): Remove d-ino.m4.
52164         (Depends-on): Add d-ino.
52165         * modules/getndelim2 (Depends-on): Add stdint.
52166         * modules/glob (Files): Remove m4/d-type.m4.
52167         (Depends-on): Add d-type.
52168         * modules/host-os: New module.
52169         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52170         m4/inttypes_h.m4, m4/uintmax_t.m4.
52171         * Depends-on: Add stdint.
52172         (lib_SOURCES): Add human.h.
52173         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52174         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52175         m4/uintmax_t.m4, m4/ulonglong.m4.
52176         (Depends-on): Add stdint.
52177         (EXTRA_DIST): Add inttostr.h.
52178         * modules/lchmod: New module.
52179         * modules/link-follow: New module.
52180         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52181         (Depends-on): Add lchmod.
52182         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52183         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52184         (Depends-on): Add stdint.
52185         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52186         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52187         (Depends-on): Add stdint.
52188         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52189         * modules/perl: New module.
52190         * modules/regex (Depends-on): Add stdint.
52191         * modules/rmdir-errno: New module.
52192         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52193         m4/intmax_t.m4.
52194         (Depends-on): Add stdint.
52195         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52196         m4/uintmax_t.m4.
52197         (Depends-on): Add stdint.
52198         * modules/unlink-busy: New module.
52199         * modules/utimecmp (Depends-on): Add stdint.
52200         * modules/uptime: New module.
52201         * modules/winsz-ioctl: New module.
52202         * modules/winsz-termios: New module.
52203         * modules/xnanosleep (Depends-on): Add nanosleep.
52204         * modules/ullong_max: Remove.
52205         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52206         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52207         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52208         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52209         (Depends-on): Add inttypes.
52210         (lib_SOURCES): Add xstrtol.h.
52211         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52212         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52213         * MODULES.html.sh: Move 'assert' into the assert section.
52214         Move 'dummy' into the linking section.
52215         Remove ullong_max.
52216         Add section for compatibility checks for POSIX:2001 functions,
52217         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52218         winsz-ioctl, and winsz-termios into it.
52219         Add lchmod.
52220         Add top-level Misc section and put host-os, perl, and uptime
52221         into it.
52222
52223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52224
52225         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52226         now assume the stdint module.  Do not include inttypes.h.
52227         * lib/fsusage.h: Likewise.
52228         * lib/getndelim2.c: Likewise.
52229         * lib/human.h: Likewise.
52230         * lib/inttostr.h: Likewise.
52231         * lib/obstack.c: Likewise.
52232         * lib/regex_internal.h: Likewise.
52233         * lib/tempname.c: Likewise.
52234         * lib/utimecmp.c: Likewise.
52235         * lib/xstrtol.h: Likewise.
52236
52237         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52238
52239         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52240         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52241         * lib/xtime.h: Likewise.
52242
52243 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52244
52245         * modules/openat (Files): Add lib/fchmodat.c.
52246         Fixes problem reported by Jay Youngman.
52247
52248 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52249
52250         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52251         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52252
52253 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52254             Bruno Haible  <bruno@clisp.org>
52255
52256         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52257         and is a script that invokes bison. Tighten the code. Add comments.
52258
52259 2006-08-18  Jim Meyering  <jim@meyering.net>
52260
52261         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52262         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52263         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52264         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52265
52266 2006-08-18  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/bison-i18n: New file.
52269         * MODULES.html.sh (Internationalization functions): Add it.
52270
52271 2006-08-18  Bruno Haible  <bruno@clisp.org>
52272
52273         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52274         sys/statvfs.h. When getmntinfo was found, check its declaration and
52275         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52276
52277 2006-08-18  Bruno Haible  <bruno@clisp.org>
52278
52279         * m4/bison-i18n.m4: New file, from bison.
52280
52281 2006-08-18  Bruno Haible  <bruno@clisp.org>
52282
52283         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52284         (ME_DUMMY): Treat "kernfs" as a dummy.
52285         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52286
52287 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         Update from coreutils.
52290
52291         2006-08-15  Jim Meyering  <jim@meyering.net>
52292
52293         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52294
52295         2006-01-17  Jim Meyering  <jim@meyering.net>
52296
52297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52298
52299         2006-01-11  Jim Meyering  <jim@meyering.net>
52300
52301         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52302         Check for the lchmod function.
52303
52304 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52305
52306         Update from coreutils.
52307
52308         * lib/__fpending.h: Add copyright notice.
52309         * lib/fprintftime.h: Likewise.
52310         * lib/savedir.c: Use (C) in copyright notice.
52311         * lib/savedir.h: Likewise.
52312
52313         2006-08-15  Jim Meyering  <jim@meyering.net>
52314
52315         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52316         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52317         in support of the EXPECTED_ERRNO macro.
52318         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52319         definitions.  Instead, define the appropriate symbols and include
52320         "at-func.c".
52321         * lib/mkdirat.c (mkdirat): Likewise.
52322         * lib/fchmodat.c (fchmodat): Likewise.
52323         (ENOSYS): Remove definition.
52324         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52325         it.  Don't include "unistd--.h" -- it wasn't ever used.
52326
52327         2006-01-17  Jim Meyering  <jim@meyering.net>
52328
52329         Rewrite fts.c not to change the current working directory,
52330         by using openat, fstatat, fdopendir, etc..
52331
52332         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52333         (HAVE_OPENAT_SUPPORT): Define.
52334         [_LIBC] (fchdir): Don't undef or define; no longer used.
52335         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52336         Now, this `function' always succeeds, and consumes its file descriptor
52337         parameter -- so callers must not close such FDs.  Update callers.
52338         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52339         (diropen): Add parameter, SP.  Adjust all callers.
52340         Implement using diropen_fd, rather than open.
52341         (fts_open): Initialize new member, fts_cwd_fd.
52342         Remove fts_rft-setting code.
52343         (fts_close): Close fts_cwd_fd, if necessary.
52344         (__opendir2): Define in terms of opendir or opendirat,
52345         depending on whether the FST_NOCHDIR flag is set.
52346         (fts_build): Since fts_safe_changedir consumes its FD, and since
52347         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52348         and close the dup'd file descriptor upon failure.
52349         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52350         (fts_safe_changedir): Tweak semantics to reflect that this function
52351         now calls cwd_advance_fd and hence consumes its FD argument.
52352         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52353         [struct FTS] (fts_rft): Remove now-unused member.
52354         [struct FTS] (fts_cycle.state): Improve comment.
52355
52356         * lib/openat.c (openat_needs_fchdir): New function.
52357         * lib/openat.h (openat_needs_fchdir): Declare it.
52358
52359 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52360
52361         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52362         Problem and fix reported by Pádraig Brady in
52363         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52364
52365 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52368
52369 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52370
52371         * lib/memcoll.c (memcoll): Optimize for the common case where the
52372         arguments are bytewise equal.
52373
52374 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52375
52376         * doc/regexprops-generic.texi: Add a copyright notice.
52377
52378 2006-08-15  Bruno Haible  <bruno@clisp.org>
52379
52380         * modules/tmpdir (License): Change to LGPL.
52381
52382 2006-08-15  Bruno Haible  <bruno@clisp.org>
52383
52384         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52385         module.
52386
52387 2006-08-14  Simon Josefsson  <jas@extundo.com>
52388
52389         * config/srclist.txt: Add gnupload.
52390
52391 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         Change copyright notice from LGPL 2 to GPL 2, since that's the
52394         standard form used in the gnulib repository.
52395         * tests/test-lock.c: Likewise.
52396         * tests/test-stdint.c: Likewise.
52397         * tests/test-tls.c: Likewise.
52398
52399         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52400         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52401         Add copyright notice.
52402
52403         * check-module: Add copyright notice.  Output a copyright
52404         notice if "--version" is specified.
52405         * modules/COPYING: New file.
52406         * tests/test-getaddrinfo.c: Add copyright notice.
52407         * tests/test-verify.c: Likewise.
52408
52409 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         Change copyright notice from LGPL 2 to GPL 2, since that's the
52412         standard form used in the gnulib repository.
52413         * lib/lock.c: LGPL -> GPL.
52414         * lib/lock.h: Likewise.
52415         * lib/strnlen1.c: Likewise.
52416         * lib/strnlen1.h: Likewise.
52417         * lib/tls.c: Likewise.
52418         * lib/tls.h: Likewise.
52419         * lib/tmpdir.c: Likewise.
52420
52421         * lib/TODO: Remove; this belongs only in coreutils.
52422
52423 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         Add copyright notices to long-enough files that lack them, since
52426         otherwise the files aren't clearly free.  Use the same notice that
52427         getdate.texi already uses.
52428         * doc/alloca-opt.texi: Add copyright notice.
52429         * doc/alloca.texi: Likewise.
52430         * doc/ctime.texi: Likewise.
52431         * doc/functions.texi: Likewise.
52432         * doc/gcd.texi: Likewise.
52433         * doc/gnulib-tool.texi: Likewise.
52434         * doc/inet_ntoa.texi: Likewise.
52435         * doc/visibility.texi: Likewise.
52436
52437         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52438         * doc/quote.texi: Add copyright notice.
52439
52440         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52441         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52442         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52443         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52444         is now obsolete, and give a pointer to the Sun list.
52445         Add copyright notice.
52446
52447 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52448
52449         * config/srclistvars.sh: Add copyright notice.
52450
52451 2006-08-14  Eric Blake  <ebb9@byu.net>
52452
52453         Import the following change from libc:
52454
52455         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52456
52457         Upstream bug 2997.
52458         * lib/misc/error.c: Add space between program name and message if file
52459         name is missing.
52460
52461 2006-08-12  Karl Berry  <karl@gnu.org>
52462
52463         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52464         remove, these originate in gnulib now.
52465
52466 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52467
52468         * doc/Makefile (standards.info standards.html standards.dvi):
52469         Also depend on make-stds.texi.
52470
52471 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52474         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52475
52476         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52477         in wchar_t.  Problem reported by Eric Blake.
52478
52479         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52480         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52481         Also, help the compiler to keep LEN in a register.
52482
52483 2006-08-11  Eric Blake  <ebb9@byu.net>
52484
52485         * users.txt: Sort.  Add tar.
52486
52487 2006-08-11  Bruno Haible  <bruno@clisp.org>
52488
52489         * users.txt: New file.
52490
52491 2006-08-11  Bruno Haible  <bruno@clisp.org>
52492
52493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52494         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52495
52496 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52497
52498         * modules/snprintf (Depends-on): Remove minmax.
52499         (Maintainer): Add self and Bruno.
52500
52501 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52502
52503         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52504         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52505         (EOVERFLOW): Define if the system does not.
52506         Do not include "minmax.h"; it wasn't used.
52507         (snprintf): Don't assume size_t promotes to an unsigned type.
52508         Fix bug when generated string was too long for the buffer: the
52509         buffer's contents are supposed to be the initial prefix of the
52510         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52511         exceeds INT_MAX; do the check ourselves.
52512
52513         Import the following changes from libc:
52514
52515         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52516
52517         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52518         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52519         set wc to the byte which couldn't be converted.
52520         (re_string_reconstruct): Don't clear valid_raw_len before calling
52521         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52522         tip_context using re_string_context_at.
52523
52524         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52525
52526         * lib/posix/regex.h: g++ still cannot handled [restrict].
52527
52528         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52529
52530         * lib/posix/regex.h: Remove special handling for VMS.
52531
52532 2006-08-10  Jim Meyering  <jim@meyering.net>
52533
52534         * modules/same-inode: New module.
52535         * modules/dev-ino: New module.
52536         * modules/cycle-check: Depend on these modules, rather than simply
52537         including their .h files.
52538         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52539         required via m4/cycle-check.m4.
52540         * modules/same: Depend on new same-inode module, rather than
52541         including same-inode.h.
52542         * modules/chdir-safer: New file.
52543
52544         * modules/chown (Depends-on): Add stat-macros.
52545
52546 2006-08-10  Jim Meyering  <jim@meyering.net>
52547
52548         * m4/cycle-check.m4: New file.
52549         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52550         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52551
52552 2006-08-10  Eric Blake  <ebb9@byu.net>
52553
52554         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52555         in from original proposal.
52556
52557 2006-08-10  Eric Blake  <ebb9@byu.net>
52558         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52559
52560         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52561         namespace.
52562
52563 2006-08-10  Bruno Haible  <bruno@clisp.org>
52564
52565         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52566         as well.
52567
52568 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52569
52570         Sync from coreutils.
52571
52572         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52573
52574         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52575         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52576
52577 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52578
52579         * modules/restrict: Remove; no longer needed now that we assume
52580         Autoconf 2.59 or later.
52581         * MODULES.html.sh: Remove 'restrict'.
52582         * modules/argp (Depends-on): Remove 'restrict'.
52583         * modules/base64 (Depends-on): Likewise.
52584         * modules/gc (Depends-on): Likewise.
52585         * modules/getaddrinfo (Depends-on): Likewise.
52586         * modules/glob (Depends-on): Likewise.
52587         * modules/inet_ntop (Depends-on): Likewise.
52588         * modules/inet_pton (Depends-on): Likewise.
52589         * modules/memxor (Depends-on): Likewise.
52590         * modules/regex (Depends-on): Likewise.
52591         * modules/strtok_r (Depends-on): Likewise.
52592         * modules/time_r (Depends-on): Likewise.
52593
52594 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52595
52596         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52597         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52598         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52599         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52600         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52601         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52602         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52603         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52604
52605         Merge from coreutils.
52606         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52607         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52609         * m4/time_r.m4 (gl_TIME_R): Likewise.
52610
52611 2006-08-09  Karl Berry  <karl@gnu.org>
52612
52613         * config/srclist.txt: no more gettext-tools, per Bruno.
52614
52615 2006-08-08  Eric Blake  <ebb9@byu.net>
52616
52617         * modules/verror: New module.
52618         * MODULES.html.sh: Document it.
52619
52620 2006-08-08  Eric Blake  <ebb9@byu.net>
52621
52622         * lib/verror.h, lib/verror.c: New files.
52623
52624 2006-08-08  Eric Blake  <ebb9@byu.net>
52625
52626         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52627         verror_at_line output complies with GNU Coding Standards even when
52628         file is NULL.
52629
52630 2006-08-07  Bruno Haible  <bruno@clisp.org>
52631
52632         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52633         versions of AIX.
52634         Reported by Ralf Wildenhues.
52635
52636 2006-08-07  Bruno Haible  <bruno@clisp.org>
52637
52638         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52639         in an AC_DEFUN. Needed so that the autoconf snippets can use
52640         AC_REQUIRE.
52641
52642 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52643
52644         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52645         Initialize pkgdata_DATA.
52646         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52647         overriding it.
52648
52649 2006-08-06  Eric Blake  <ebb9@byu.net>
52650
52651         * lib/error.h: Fold in some upstream changes from glibc.
52652         * lib/error.c: Likewise.
52653
52654 2006-08-04  Bruno Haible  <bruno@clisp.org>
52655
52656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52657         Make the mostlyclean-local rule depend on mostlyclean-generic.
52658         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52659
52660 2006-07-31  Bruno Haible  <bruno@clisp.org>
52661
52662         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52663         <stdlib.h>, <string.h>.
52664
52665 2006-07-30  Bruno Haible  <bruno@clisp.org>
52666
52667         * modules/readlink (License): Change to LGPL.
52668
52669 2006-07-30  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52672         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52673         set PKGDATADIR to point to it.
52674
52675 2006-07-30  Bruno Haible  <bruno@clisp.org>
52676
52677         * modules/csharpexec (configure.ac): Comment out macro invocation.
52678         * modules/javaexec (configure.ac): Likewise.
52679         * modules/javacomp-script (configure.ac): Likewise.
52680
52681         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52682
52683 2006-07-30  Bruno Haible  <bruno@clisp.org>
52684
52685         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52686         linked-list.
52687
52688 2006-07-30  Bruno Haible  <bruno@clisp.org>
52689
52690         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52691
52692 2006-07-30  Bruno Haible  <bruno@clisp.org>
52693
52694         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52695         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52696         get removed.
52697
52698 2006-07-29  Bruno Haible  <bruno@clisp.org>
52699
52700         Make it possible for gnulib-tool to work with locally modified or
52701         augmented gnulib repositories.
52702         * gnulib-tool (func_usage): Document --local-dir option.
52703         (local_gnulib_dir): New variable.
52704         Handle --local-dir option.
52705         (func_lookup_file): New function.
52706         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52707         (func_get_description, func_get_filelist, func_get_description,
52708         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52709         func_get_automake_snippet, func_get_include_directive,
52710         func_get_license, func_get_maintainer): Use func_lookup_file.
52711         (func_import, func_create_testdir): Use func_lookup_file.
52712
52713 2006-07-29  Bruno Haible  <bruno@clisp.org>
52714
52715         * modules/setenv (Depends-on): Add unistd.
52716
52717 2006-07-29  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52720
52721 2006-07-29  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52724
52725 2006-07-29  Bruno Haible  <bruno@clisp.org>
52726
52727         * gnulib-tool (import, update): If there is no Makefile.am, look at
52728         aclocal.m4, instead of bailing out.
52729
52730 2006-07-29  Bruno Haible  <bruno@clisp.org>
52731
52732         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52733         Categorize the options by when they are useful.
52734
52735 2006-07-29  Bruno Haible  <bruno@clisp.org>
52736
52737         * gnulib-tool (func_usage): Document option --no-libtool.
52738         Handle option --no-libtool.
52739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52740         for changed semantics of $libtool variable.
52741         (func_import): Likewise. If libtool is not used, show this through
52742         an option --no-libtool.
52743         (func_create_testdir): Update.
52744
52745 2006-07-29  Bruno Haible  <bruno@clisp.org>
52746
52747         * gnulib-tool (func_import): Extend error message about missing
52748         --doc-base.
52749
52750 2006-07-29  Bruno Haible  <bruno@clisp.org>
52751
52752         * gnulib-tool (func_import): Don't create the $docbase directory if
52753         there is no file to store there.
52754
52755 2006-07-29  Bruno Haible  <bruno@clisp.org>
52756
52757         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52758         relevant, look for configure.ac there, not in the current directory.
52759         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52760
52761 2006-07-29  Bruno Haible  <bruno@clisp.org>
52762
52763         * gnulib-tool (SORT): New variable.
52764         (func_usage): Undocument --assume-autoconf option.
52765         Remove --assume-autoconf option handling.
52766         (autoconf_minversion): Determine from the contents of configure.ac.
52767         (func_import): Remove autoconf_minversion handling.
52768         Suggested by Eric Blake.
52769
52770 2006-07-29  Bruno Haible  <bruno@clisp.org>
52771
52772         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52773
52774 2006-07-29  Bruno Haible  <bruno@clisp.org>
52775
52776         * config/srclist.txt (*setenv.[ch]): Remove rules.
52777
52778 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52779
52780         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52781
52782 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52783
52784         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52785         arpa/inet.h.
52786
52787 2006-07-28  Simon Josefsson  <jas@extundo.com>
52788
52789         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52790         * modules/inet_pton (Depends-on): Likewise.
52791
52792 2006-07-28  Simon Josefsson  <jas@extundo.com>
52793
52794         * m4/netinet_in_h.m4: New file.
52795
52796 2006-07-28  Simon Josefsson  <jas@extundo.com>
52797
52798         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52799         #include's.
52800
52801 2006-07-28  Simon Josefsson  <jas@extundo.com>
52802
52803         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52804         #include's.
52805
52806 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52809         setgid on directories only if they set these bits.
52810         * lib/modechange.h: Remove obsolete comment about masks.
52811
52812 2006-07-28  Eric Blake  <ebb9@byu.net>
52813
52814         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52815         macro expansion.
52816
52817 2006-07-28  Bruno Haible  <bruno@clisp.org>
52818
52819         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52820
52821 2006-07-28  Bruno Haible  <bruno@clisp.org>
52822
52823         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52824
52825 2006-07-28  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52828         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52829         Define fallbacks.
52830         Avoids link error on FreeBSD 4.x.
52831         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52832
52833         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52834         encoding.
52835         * lib/mbswidth.c (iswcntrl): Likewise.
52836
52837 2006-07-27  Bruno Haible  <bruno@clisp.org>
52838
52839         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52840         test.
52841
52842 2006-07-27  Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52845         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52846         defined.
52847
52848 2006-07-26  Eric Blake  <ebb9@byu.net>
52849
52850         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52851
52852 2006-07-26  Eric Blake  <ebb9@byu.net>
52853
52854         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52855         like mingw that lack mkstemp.
52856         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52857         avoid compilation warning on mingw.
52858
52859 2006-07-26  Bruno Haible  <bruno@clisp.org>
52860
52861         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
52862         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
52863         INT_FAST*_MIN, INTPTR_MIN.
52864
52865 2006-07-25  Bruno Haible  <bruno@clisp.org>
52866
52867         * modules/version-etc (Depends-on): Add stdarg.
52868
52869 2006-07-25  Bruno Haible  <bruno@clisp.org>
52870
52871         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
52872         complex commands.
52873
52874 2006-07-25  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
52877         defined in <stdarg.h> or config.h.
52878
52879 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
52882         (gl_STDIO_SAFER): Remove.
52883
52884 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * MODULES.html.sh (File stream based Input/Output):
52887         Add fopen-safer, tmpfile-safer; remove stdio-safer.
52888         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
52889         * modules/fopen-safer, modules/tmpfile-safer: New files.
52890         * modules/stdio-safer: Remove.
52891
52892 2006-07-24  Bruno Haible  <bruno@clisp.org>
52893
52894         * modules/tmpdir: New file.
52895         * MODULES.html.sh (File system functions): Add it.
52896
52897 2006-07-24  Bruno Haible  <bruno@clisp.org>
52898
52899         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
52900         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
52901
52902 2006-07-24  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/clean-temp: New file.
52905
52906 2006-07-24  Bruno Haible  <bruno@clisp.org>
52907
52908         * m4/tmpdir.m4: New file, from GNU gettext.
52909
52910 2006-07-24  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/tmpdir.h: New file, from GNU gettext.
52913         * lib/tmpdir.c: New file, from GNU gettext.
52914
52915 2006-07-24  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/clean-temp.h: New file, from GNU gettext.
52918         * lib/clean-temp.c: New file, from GNU gettext.
52919
52920 2006-07-23  Eric Blake  <ebb9@byu.net>
52921
52922         * modules/stdio-safer (Files): Add tmpfile-safer.c.
52923         (Depends-on): Add binary-io.
52924
52925 2006-07-23  Eric Blake  <ebb9@byu.net>
52926
52927         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
52928
52929 2006-07-23  Eric Blake  <ebb9@byu.net>
52930
52931         * lib/tmpfile-safer.c: New file.
52932         * lib/stdio-safer.h (fopen_safer): Add prototype.
52933         * lib/stdio--.h (tmpfile): Make safer.
52934
52935 2006-07-23  Bruno Haible  <bruno@clisp.org>
52936
52937         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
52938         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
52939         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
52940         gl_linked_remove_at): Use it.
52941
52942 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52943         and Simon Josefsson <jas@extundo.com>
52944
52945         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
52946
52947         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
52948
52949 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52950
52951         * modules/close-stream: New file.
52952         * modules/closeout (Description): Make it clear that it exits
52953         with a diagnostic on error.
52954         (Depends-on): Add close-stream.  Remove fpending, stdbool.
52955         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
52956
52957 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52958
52959         * m4/close-stream.m4: New file.
52960
52961 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
52962
52963         * lib/close-stream.c, lib/close-stream.h: New files.
52964
52965 2006-07-22  Bruno Haible  <bruno@clisp.org>
52966
52967         Merge from GNU gettext 0.15.
52968
52969         2006-05-01  Bruno Haible  <bruno@clisp.org>
52970
52971                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
52972
52973         2006-07-22  Bruno Haible  <bruno@clisp.org>
52974
52975                 * modules/javaversion: New file.
52976                 * MODULES.html.sh (Java): Add javaversion.
52977
52978         2006-03-12  Bruno Haible  <bruno@clisp.org>
52979
52980                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
52981
52982         2005-12-04  Bruno Haible  <bruno@clisp.org>
52983
52984                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
52985                 (untested).
52986
52987         2006-06-21  Bruno Haible  <bruno@clisp.org>
52988
52989                 Avoid warnings from recent versions of mcs.
52990                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
52991                 -o, -L, -r any more. Use options documented since mcs-1.0
52992                 instead. Similarly for -g.
52993
52994         2005-12-04  Bruno Haible  <bruno@clisp.org>
52995
52996                 * build-aux/csharpcomp.sh.in: Suffix for resources is
52997                 .resources, not .resource.
52998
52999         2005-07-09  Bruno Haible  <bruno@clisp.org>
53000
53001                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53002                 add a .dll suffix.
53003                 Reported by Mark Junker <mjscod@gmx.de>.
53004
53005         2006-07-22  Bruno Haible  <bruno@clisp.org>
53006
53007                 * modules/gettext: Upgrade to gettext-0.15.
53008                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53009                 m4/visibility.m4.
53010                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53011
53012 2006-07-22  Bruno Haible  <bruno@clisp.org>
53013
53014         Merge from GNU gettext 0.15.
53015
53016         2006-03-25  Bruno Haible  <bruno@clisp.org>
53017
53018                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53019
53020         2006-07-21  Bruno Haible  <bruno@clisp.org>
53021
53022                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53023                 "1.1".
53024
53025         2006-05-09  Bruno Haible  <bruno@clisp.org>
53026
53027                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53028                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53029                 for the conftestver execution.
53030
53031         2006-05-01  Bruno Haible  <bruno@clisp.org>
53032
53033                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53034                 optional target-version argument. Verify that the compiler
53035                 groks source of the specified source-version, or add -source
53036                 option as necessary. Verify that the compiler produces
53037                 bytecode in the specified target-version, or add -target and
53038                 -source options as necessary. Make the result of the test
53039                 available as variable CONF_JAVAC. Also log error output in
53040                 config.log.
53041
53042         2006-03-11  Bruno Haible  <bruno@clisp.org>
53043
53044                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53045
53046         2006-05-09  Bruno Haible  <bruno@clisp.org>
53047
53048                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53049                 CLASSPATH_SEPARATOR to a semicolon.
53050
53051         2006-03-12  Bruno Haible  <bruno@clisp.org>
53052
53053                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53054                 available as variable CONF_JAVA, for subsequent autoconf
53055                 tests. Also log error output in config.log.
53056
53057         2006-07-19  Bruno Haible  <bruno@clisp.org>
53058
53059                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53060                 that getline works on glibc2 systems. Needed to avoid trouble
53061                 in relocatable.c.
53062                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53063
53064         2005-12-04  Bruno Haible  <bruno@clisp.org>
53065
53066                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53067                 launcher (untested).
53068
53069         2005-12-04  Bruno Haible  <bruno@clisp.org>
53070
53071                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53072
53073         2006-07-22  Bruno Haible  <bruno@clisp.org>
53074
53075                 * gettext.m4: Update from GNU gettext-0.15.
53076                 * nls.m4: Likewise.
53077                 * po.m4: Likewise.
53078                 * inttypes-pri.m4: Likewise.
53079                 * inttypes-h.m4: Renamed from inttypes.m4.
53080                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53081
53082 2006-07-22  Bruno Haible  <bruno@clisp.org>
53083
53084         Merge from GNU gettext 0.15.
53085
53086         2005-07-05  Bruno Haible  <bruno@clisp.org>
53087
53088                 * printf-args.c (printf_fetchargs): Work around broken
53089                 definition of wint_t on mingw.
53090
53091         2005-02-12  Bruno Haible  <bruno@clisp.org>
53092
53093                 * xallocsa.h: Add extern "C" for C++.
53094
53095         2006-05-17  Bruno Haible  <bruno@clisp.org>
53096
53097                 Cygwin portability.
53098                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53099
53100         2006-04-30  Bruno Haible  <bruno@clisp.org>
53101
53102                 * progreloc.c: Include <mach-o/dyld.h> if available.
53103                 (find_executable): Use _NSGetExecutablePath when possible.
53104
53105         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53106
53107                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53108                 function.
53109
53110         2005-12-29  Bruno Haible  <bruno@clisp.org>
53111
53112                 * progreloc.c (set_program_name_and_installdir): Fix
53113                 compilation error.
53114
53115         2005-12-04  Bruno Haible  <bruno@clisp.org>
53116
53117                 Cygwin portability.
53118                 * progreloc.c: Include <windows.h> also on Cygwin.
53119                 (find_executable): Add support for Cygwin.
53120                 (set_program_name_and_installdir): Handle also platforms with
53121                 nonempty EXEEXT.
53122
53123         2006-07-11  Bruno Haible  <bruno@clisp.org>
53124
53125                 * javacomp.c: Fix a comment.
53126                 Reported by Jim Meyering.
53127
53128         2006-04-30  Bruno Haible  <bruno@clisp.org>
53129
53130                 * javacomp.h (compile_java_class): Add source_version,
53131                 target_version arguments.
53132                 * javacomp.c: Rewritten to choose only a compiler that
53133                 respects the specified source_version and target_version.
53134
53135         2006-06-27  Bruno Haible  <bruno@clisp.org>
53136
53137                 Assume correct S_ISDIR macro.
53138                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53139
53140         2006-07-22  Bruno Haible  <bruno@clisp.org>
53141
53142                 * javaversion.h: New file, from GNU gettext.
53143                 * javaversion.c: New file, from GNU gettext.
53144                 * javaversion.java: New file, from GNU gettext.
53145                 * javaversion.class: New file, from GNU gettext.
53146
53147         2006-05-17  Bruno Haible  <bruno@clisp.org>
53148
53149                 Cygwin portability.
53150                 * javaexec.c (execute_java_class): Test for jview program
53151                 also on Cygwin.
53152
53153         2006-04-09  Bruno Haible  <bruno@clisp.org>
53154
53155                 * fatal-signal.c: Don't include string.h.
53156                 (at_fatal_signal): Use a copying loop instead of memcpy.
53157
53158         2005-12-04  Bruno Haible  <bruno@clisp.org>
53159
53160                 * csharpexec.c: Add support for 'clix' launcher (untested).
53161                 (execute_csharp_using_sscli): New function.
53162                 (execute_csharp_program): Call it.
53163
53164         2006-06-21  Bruno Haible  <bruno@clisp.org>
53165
53166                 Avoid warnings from recent versions of mcs.
53167                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53168                 -o, -L, -r any more. Use options documented since mcs-1.0
53169                 instead. Similarly for -g.
53170
53171         2005-07-09  Bruno Haible  <bruno@clisp.org>
53172
53173                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53174                 add a .dll suffix.
53175                 Reported by Mark Junker <mjscod@gmx.de>.
53176
53177         2006-06-17  Bruno Haible  <bruno@clisp.org>
53178
53179                 * config.charset: Update for NetBSD 3.0.
53180
53181         2006-05-17  Bruno Haible  <bruno@clisp.org>
53182
53183                 Cygwin portability.
53184                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53185
53186         2006-05-16  Bruno Haible  <bruno@clisp.org>
53187
53188                 * localcharset.c [CYGWIN]: Include <windows.h>.
53189                 (get_charset_aliases): For Cygwin, return the same CPxxx
53190                 aliases list as under WIN32.
53191                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53192                 the environment variables. Fall back to GetACP().
53193
53194         2006-04-05  Bruno Haible  <bruno@clisp.org>
53195
53196                 * config.charset: Update Juan Manuel Guerrero's address.
53197
53198         2005-02-12  Bruno Haible  <bruno@clisp.org>
53199
53200                 * allocsa.h: Add extern "C" for C++.
53201
53202         2005-02-10  Bruno Haible  <bruno@clisp.org>
53203
53204                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53205                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53206
53207         2006-07-22  Bruno Haible  <bruno@clisp.org>
53208
53209                 * gettext.h: Update to GNU gettext-0.15.
53210
53211 2006-07-22  Bruno Haible  <bruno@clisp.org>
53212
53213         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53214         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53215         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53216
53217 2006-07-21  Eric Blake  <ebb9@byu.net>
53218
53219         * modules/stdlib-safer: New file.
53220         * MODULES.html.sh (File stream based Input/Output): Add
53221         stdlib-safer.
53222
53223 2006-07-21  Eric Blake  <ebb9@byu.net>
53224
53225         * lib/stdlib-safer.h: New file from coreutils, required by
53226         stdlib--.h.
53227
53228 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53231
53232 2006-07-20  Bruno Haible  <bruno@clisp.org>
53233
53234         * gnulib-tool: Recognize new option --assume-autoconf.
53235         (autoconf_minversion): New variable.
53236         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53237
53238 2006-07-20  Bruno Haible  <bruno@clisp.org>
53239
53240         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53241
53242 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53243
53244         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53245         Reindent and repaginate.
53246
53247 2006-07-19  Derek Price  <derek@ximbiot.com>
53248
53249         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53250         Correct grammar.
53251
53252 2006-07-17  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/list: New file.
53255         * modules/array-list: New file.
53256         * modules/carray-list, modules/carray-list-tests: New files.
53257         * modules/linked-list, modules/linked-list-tests: New files.
53258         * modules/avltree-list, modules/avltree-list-tests: New files.
53259         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53260         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53261         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53262         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53263         * modules/oset: New file.
53264         * modules/array-oset: New file.
53265         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53266         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53267         * tests/test-carray_list.c: New file.
53268         * tests/test-linked_list.c: New file.
53269         * tests/test-avltree_list.c: New file.
53270         * tests/test-rbtree_list.c: New file.
53271         * tests/test-linkedhash_list.c: New file.
53272         * tests/test-avltreehash_list.c: New file.
53273         * tests/test-rbtreehash_list.c: New file.
53274         * tests/test-avltree_oset.c: New file.
53275         * tests/test-rbtree_oset.c: New file.
53276         * MODULES.html.sh (Container data structures): New section.
53277
53278 2006-07-17  Bruno Haible  <bruno@clisp.org>
53279
53280         * m4/gl_list.m4: New file.
53281
53282 2006-07-17  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/gl_list.h: New file.
53285         * lib/gl_list.c: New file.
53286         * lib/gl_array_list.h: New file.
53287         * lib/gl_array_list.c: New file.
53288         * lib/gl_carray_list.h: New file.
53289         * lib/gl_carray_list.c: New file.
53290         * lib/gl_linked_list.h: New file.
53291         * lib/gl_linked_list.c: New file.
53292         * lib/gl_anylinked_list1.h: New file.
53293         * lib/gl_anylinked_list2.h: New file.
53294         * lib/gl_avltree_list.h: New file.
53295         * lib/gl_avltree_list.c: New file.
53296         * lib/gl_anyavltree_list1.h: New file.
53297         * lib/gl_anyavltree_list2.h: New file.
53298         * lib/gl_rbtree_list.h: New file.
53299         * lib/gl_rbtree_list.c: New file.
53300         * lib/gl_anyrbtree_list1.h: New file.
53301         * lib/gl_anyrbtree_list2.h: New file.
53302         * lib/gl_anytree_list1.h: New file.
53303         * lib/gl_anytree_list2.h: New file.
53304         * lib/gl_linkedhash_list.h: New file.
53305         * lib/gl_linkedhash_list.c: New file.
53306         * lib/gl_anyhash_list1.h: New file.
53307         * lib/gl_anyhash_list2.h: New file.
53308         * lib/gl_avltreehash_list.h: New file.
53309         * lib/gl_avltreehash_list.c: New file.
53310         * lib/gl_rbtreehash_list.h: New file.
53311         * lib/gl_rbtreehash_list.c: New file.
53312         * lib/gl_anytreehash_list1.h: New file.
53313         * lib/gl_anytreehash_list2.h: New file.
53314
53315         * lib/gl_oset.h: New file.
53316         * lib/gl_oset.c: New file.
53317         * lib/gl_array_oset.h: New file.
53318         * lib/gl_array_oset.c: New file.
53319         * lib/gl_avltree_oset.h: New file.
53320         * lib/gl_avltree_oset.c: New file.
53321         * lib/gl_rbtree_oset.h: New file.
53322         * lib/gl_rbtree_oset.c: New file.
53323         * lib/gl_anytree_oset.h: New file.
53324
53325 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * m4/mkancesdirs.m4: New file.
53328         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53329         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53330         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53331         it.
53332
53333 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53334
53335         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53336         * lib/mkancesdirs.h: New files.
53337         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53338         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53339         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53340         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53341         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53342         callers changed.  Revamp internals significantly, by not
53343         attempting to create directories that are temporarily more
53344         permissive than the final results.  Do not attempt to use
53345         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53346         This removes some race conditions, fixes some bugs, and simplifies
53347         things.  Use new dirchownmod function to do owner and mode changes.
53348         * lib/mkdir-p.h: Likewise.
53349         * lib/modechange.c (octal_to_mode): New function.
53350         (struct mode_change): New member mentioned.
53351         (make_node_op_equals): New arg mentioned.  All callers changed.
53352         (mode_compile): Keep track of which mode bits the user has explicitly
53353         mentioned.
53354         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53355         New arg PMODE_BITS, to keep track of which mode bits the user
53356         mentioned; it treats S_ISUID and S_ISGID speciall.
53357         All callers changed.
53358         * lib/modechange.h: Likewise.
53359
53360 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         * MODULES.html.sh: Add mkancestors.
53363         * modules/mkancesdirs: New module.
53364         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53365         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53366         The chdir-safer and afs files are now orphans; I'll remove them
53367         unless someone speaks up.
53368         Add lib/dirchownmod.c, lib/dirchownmod.h.
53369         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53370         Add lchown, mkancesdirs.
53371         (Maintainer): Add self.
53372
53373 2006-07-15  Karl Berry  <karl@gnu.org>
53374
53375         * gnulib-tool: help message wording/arrangement.
53376
53377 2006-07-14  Simon Josefsson  <jas@extundo.com>
53378
53379         * doc/gnulib.texi (Libtool and Windows): New section.
53380
53381 2006-07-12  Simon Josefsson  <jas@extundo.com>
53382
53383         * modules/gendocs (License): Fix license, approved by Karl.
53384
53385 2006-07-12  Eric Blake  <ebb9@byu.net>
53386
53387         * MODULES.html.sh: Add gendocs.
53388
53389 2006-07-11  Eric Blake  <ebb9@byu.net>
53390
53391         * modules/fdl: New module, to install doc/fdl.texi.
53392         * MODULES.html.sh: Add new section for documentation modules.
53393         * gnulib-tool: Avoid space-tab.
53394         (--doc-base): New option, to manage files from doc.
53395
53396 2006-07-11  Eric Blake  <ebb9@byu.net>
53397
53398         * m4/absolute-header.m4: Fix comments to match recent change.
53399
53400 2006-07-11  Eric Blake  <ebb9@byu.net>
53401
53402         * gnulib-tool: List --doc-base before --tests-base.
53403
53404 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53405
53406         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53407
53408 2006-07-11  Bruno Haible  <bruno@clisp.org>
53409
53410         * README: Mention where to put documentation.
53411
53412 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53413
53414         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53415
53416 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53417
53418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53419         to stdint.m4.
53420
53421 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53424         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53425         "no/such/file/stdint.h" when there is no such file, so that
53426         the resulting C code can be parsed by dodgy compilers.
53427         Problems reported by Bob Proulx.
53428
53429 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53430
53431         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53432         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53433         macros into the GNU _D_EXACT_NAMLEN.
53434         * lib/savedir.c:  Likewise.
53435         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53436
53437 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53438         and Paul Eggert  <eggert@cs.ucla.edu>
53439
53440         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53441         * m4/savedir.m4:
53442         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53443         macros into the GNU _D_EXACT_NAMLEN.
53444
53445 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53446
53447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53448         around the absolute name, to work around a problem with the HP-UX
53449         11.23 native C compiler, reported by Bob Proulx.
53450
53451 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * doc/maintain.texi, make-stds.texi: Sync from
53454         <http://savannah.gnu.org/projects/gnustandards>.
53455
53456 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53459
53460 2006-07-09  Jim Meyering  <jim@meyering.net>
53461
53462         * m4/glob.m4: Remove a doubled word in a comment.
53463
53464 2006-07-09  Jim Meyering  <jim@meyering.net>
53465
53466         * lib/argp-pv.c: Remove a doubled word in a comment.
53467         * lib/check-version.c (check_version): Likewise.
53468         * lib/javacomp.c (compile_java_class): Likewise.
53469
53470 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53471
53472         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53473         for the benefit of people using Autoconf 2.60.  If you want to
53474         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53475         (or m4/onceonly.m4, if pre-2.57) manually.
53476
53477 2006-07-08  Jim Meyering  <jim@meyering.net>
53478
53479         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53480         comment.
53481         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53482         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53483         comment.
53484
53485 2006-07-08  Jim Meyering  <jim@meyering.net>
53486
53487         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53488
53489 2006-07-07  Simon Josefsson  <jas@extundo.com>
53490
53491         * tests/test-crc.c: Change expected crc value, the test vector
53492         were probably computed using the old broken crc.c?
53493
53494 2006-07-06  Simon Josefsson  <jas@extundo.com>
53495
53496         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53497         now the canonical place for the M4 file).
53498
53499         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53500         from the sys_socket dependency now.
53501
53502         * modules/inet_pton (Files): Ditto.
53503
53504         * modules/inet_ntop (Files): Ditto.
53505
53506 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53507
53508         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53509         not gl_PREREQ_GETUSERSHELL.
53510
53511 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53512
53513         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53514         with only one argument, for Autoconf 2.60.
53515         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53516         expand to nothing, so add a shell command to avoid syntax error.
53517         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53518
53519 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53520
53521         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53522
53523 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53524
53525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53526         no longer needed.  Check for isblank decl.
53527         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53528         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53529         of existence.
53530
53531 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53532
53533         * lib/getloadavg.c: Use __VMS, not VMS.
53534         * lib/getopt.c: Likewise.
53535         * lib/getpagesize.h: Likewise.
53536         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53537         and probably does not work.
53538
53539 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * lib/.cppi-disable: Add wcwidth.
53542         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53543         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53544         (ISGRAPH): Remove.  All uses changed to isgraph.
53545         (FOLD) [!defined _LIBC]: Remove special case.
53546         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53547         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53548         HAVE_ISBLANK.
53549         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53550         case.
53551
53552 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53553
53554         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53555         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53556         brackets.  Other minor changes to suppress some compiler
53557         warnings.
53558
53559 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53560         and Paul Eggert  <eggert@cs.ucla.edu>
53561
53562         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53563         of invoking obsolescent AC_HEADER_DIRENT macro.
53564         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53565         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53566         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53568         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53569         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53570         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53571         * m4/readdir.m4: Remove; no longer needed.
53572
53573 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53574         and Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53577         Don't worry about this obsolete case any more.
53578         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53579         directories.
53580         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53581         worry about this obsolete case any more.
53582         * lib/fts.c: Likewise.
53583         * lib/getcwd.c: Likewise.
53584         * lib/glob.h: Likewise.
53585         * lib/savedir.c: Likewise.
53586
53587 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53590         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53591         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53592         needed.
53593         All uses removed.
53594         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53595         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53596         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53597         needed.
53598         * m4/getdate.m4 (gl_GETDATE): Likewise.
53599         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53600         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53601         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53602         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53603         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53605         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53606         needed.
53607
53608 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53609
53610         * lib/memcasecmp.c: Include <limits.h>.
53611         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53612         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53613         Don't assume isdigit succeeds only on '0' through '9'.
53614
53615 2006-07-05  Eric Blake  <ebb9@byu.net>
53616
53617         * modules/getaddrinfo (Depends-on): Add snprintf.
53618
53619 2006-07-05  Eric Blake  <ebb9@byu.net>
53620
53621         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53622         to avoid 'header present but could not be compiled' on cygwin.
53623
53624 2006-07-05  Eric Blake  <ebb9@byu.net>
53625
53626         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53627         missing from netdb.h.
53628         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53629
53630 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53631
53632         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53633         no longer needed.
53634         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53635         * m4/getdate.m4 (gl_GETDATE): Likewise.
53636         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53637         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53639         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53640         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53641
53642 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53643
53644         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53645         All uses of is_space replaced by isspace.
53646         * lib/exit.h: Don't talk about STDC_HEADERS.
53647         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53648         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53649         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53650         replaced by isprint etc.
53651         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53652         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53653         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53654         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53655         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53656         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53657
53658 2006-07-05  Bruno Haible  <bruno@clisp.org>
53659
53660         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53661         the function exists, before testing against AIX.
53662         Reported by Martin Lambers <marlam@marlam.de>.
53663
53664 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53667         From Mark D. Baushke.
53668
53669 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53670
53671         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53672         to the absolute name, not just one, to bypass Sun C 5.8's
53673         "warning: #include of /usr/include/... may be non-portable".
53674
53675 2006-07-04  Eric Blake  <ebb9@byu.net>
53676
53677         * modules/dirname-tests: New test module.
53678         * tests/test-dirname.c: New file, replacing dirname.c
53679         TEST_DIRNAME section that was recently deleted.
53680
53681 2006-07-04  Bruno Haible  <bruno@clisp.org>
53682
53683         Assume ANSI C header files and <ctype.h> functions.
53684         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53685         (mbsnwidth): Use isprint, iscntrl instead.
53686
53687 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53688
53689         Merge from coreutils.
53690         * MODULES.html.sh: Add xstrtold.
53691         * modules/xstrtold: New file.
53692         * modules/cycle-check (Files): Add lib/same-inode.h.
53693         * modules/dirname (Files): Add m4/double-slash-root.m4.
53694         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53695         * modules/mkdir-p (Files): Add lib/same-inode.h.
53696         * modules/same (Files): Add lib/same-inode.h.
53697
53698 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53701         This is to keep the terminology clean; POSIX talks about
53702         "absolute pathnames", not "full pathnames", but the GNU
53703         Coding Standards say to use "path" for something else;
53704         so use "absolute" to keep both sides happy.
53705         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53706         Set gl_absolute_header, not gl_full_header_path.
53707         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53708         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53709         All uses changed.
53710
53711         Merge from coreutils.
53712
53713         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53716         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53717         want to require the building of c-strtod.o.
53718         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53719         needs -lm directly.
53720         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53721
53722         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53723
53724         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53725         --as-needed option if available.  Problem reported by Albert Chin in
53726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53727         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53728         cc merely issues a bunch of annoying warnings for --as-needed
53729         (this problem was reported by Bob Proulx).  Also, try linking with
53730         -lm to detect a bug in binutils 2.16 (this problem was reported
53731         by Ralf Wildenhues).
53732
53733         2006-06-18  Jim Meyering  <jim@meyering.net>
53734
53735         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53736         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53737         macro.
53738         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53739         also check for glibc-2.4's abort-inducing bug.
53740
53741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53742         Low-probability clean-up should be to use rmdir to get rid of
53743         the just-created directory, not unlink.
53744
53745         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53746         configure fail, and request a bug report to inform us about it.
53747         Add a comment that, barring reports to the contrary, in 2007 we'll
53748         assume ftruncate is universally available.
53749
53750         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53751
53752         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53753
53754         2006-03-12  Jim Meyering  <jim@meyering.net>
53755
53756         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53757         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53758         * m4/same.m4 (gl_SAME): Likewise.
53759         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53760
53761         2006-03-11  Eric Blake  <ebb9@byu.net>
53762
53763         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53764         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53765         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53766         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53767
53768 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53769
53770         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53771         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53772         reported by Mark D. Baushke, one in
53773         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53774
53775         Merge from coreutils.
53776
53777         * lib/.cppi-disable: Add stdint_.h.
53778         * lib/.cvsignore: Add stdint.h.
53779
53780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53783         both double and long double versions.
53784         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53785         * lib/xstrtold.c: New file.
53786         * lib/xstrtod.h (xstrtold): New decl.
53787
53788         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53789
53790         * lib/filemode.c (setst): Remove.
53791         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53792         (arguably) clearer, and the generated code is a bit smaller on my
53793         Debian GNU/Linux stable x86 host.
53794
53795         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53796
53797         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53798         Assume that filemode.h includes sys/types.h and sys/stat.h.
53799         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53800         (ftypelet): Reorder to put common cases first, for efficiency.
53801         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53802         to do 'M'.
53803         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53804         of 10, for compatibility with FreeBSD.  All callers changed.
53805         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53806         types that can't be deduced solely from st_mode.  First arg is now a
53807         const pointer.
53808         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53809         (strmode): Renamed from mode_string.
53810         (filemodestring): New decl.
53811         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53812         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53813         needed.
53814         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53815
53816         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53819         fsusage.h now does that.  Include fsusage.h first, to test interface.
53820         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53821         at most one method (the old code could have generated decls that
53822         didn't conform to C89, not that this was ever exercised).
53823         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53824
53825         2006-03-19  Jim Meyering  <jim@meyering.net>
53826
53827         Work even in a chroot where d_ino values for entries in "/"
53828         don't match the stat.st_ino values for the same names.
53829         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53830         number, iterate through all entries again, using lstat instead.
53831         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53832         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53833
53834         * lib/getcwd.c (__getcwd): Clarify a comment.
53835         Use memcpy in place of a call to strcpy.
53836
53837         2006-03-12  Jim Meyering  <jim@meyering.net>
53838
53839         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53840         matches that of the current directory (which we're about to chdir ".."
53841         out of), then save the dev-ino of the parent, instead.
53842
53843         * lib/same-inode.h (SAME_INODE): New file/macro.
53844         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53845         Include "same-inode.h", instead.
53846         * lib/same.c: Likewise.
53847         * lib/cycle-check.h: Include "same-inode.h".
53848         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53849         * lib/cycle-check.c (SAME_INODE): Remove definition.
53850         * lib/root-dev-ino.h: Include "same-inode.h".
53851
53852         2006-03-11  Eric Blake  <ebb9@byu.net>
53853
53854         * lib/same.c (same_name): s/base_name/last_component/
53855         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53856         * lib/filenamecat.c (file_name_concat): Likewise.
53857
53858         2006-03-11  Eric Blake  <ebb9@byu.net>,
53859                     Paul Eggert  <eggert@cs.ucla.edu>
53860
53861         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
53862         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
53863         drive prefix.
53864         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
53865         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
53866         (last_component): New method.
53867         * lib/dirname.c (dir_len): Determine when drive letters need a
53868         subsequent slash.  Preserve // when it is special.
53869         (dir_name): Don't append dot when drive letter is absolute.
53870         [TEST_DIRNAME]: Move into a full-blown gnulib test.
53871         * lib/basename.c (base_name): New semantics - malloc the result.
53872         Preserve // when it is special.  Preserve relative files that look
53873         like drive letters.
53874         (base_len): Preserve // when it is special.
53875         (last_component): New method, similar to old base_name semantics.
53876         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
53877         base_name.  Strip redundant slashes from ///.
53878
53879 2006-07-03  Jim Meyering  <jim@meyering.net>
53880
53881         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
53882         macro is used before the first cycle_check call.
53883
53884 2006-07-03  Eric Blake  <ebb9@byu.net>
53885
53886         * modules/dirname (Depends-on): Add xstrndup.
53887
53888 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53889
53890         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
53891         test cases, so that config.log is a bit easier to follow.
53892
53893 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53894
53895         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
53896         both are 64 bits, since this seems to be the tradition, and this
53897         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
53898         we ever run into a host that prefers long long to long in this
53899         case, we'll need another configure-time test.  Problem reported by
53900         Jim Meyering.
53901
53902 2006-07-02  Eric Blake  <ebb9@byu.net>
53903
53904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
53905
53906 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         * modules/inttypes (Depends-on): No longer depends on stdint.
53909         * modules/stdint (Description): Say more about assumptions.
53910         Say that the fast types might differ.  Say macros are used.
53911         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
53912         (Makefile.am): Revise list of substituted symbols to match
53913         new stdint.m4.
53914         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
53915         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
53916         * tests/test-stdint.c (verify_same_types)
53917         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
53918         the code conforms to C99/C89.
53919         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
53920         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
53921
53922 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53923
53924         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
53925         but fix a bug, by requiring at least 64 bits.
53926         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53927         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
53928         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
53929         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
53930
53931         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
53932         changes.  Make 2.59 a prerequisite.  Check and substitute for
53933         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
53934         inttypes.h.  Do not use special include files; just use the
53935         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
53936         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
53937         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
53938         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
53939         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
53940         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
53941         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
53942         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
53943         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
53944         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
53945         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
53946         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
53947         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
53948         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
53949         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
53950         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
53951         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
53952         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
53953         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
53954         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
53955         WINT_MAX.  Check for C99 conformance more strictly, by detecting
53956         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
53957         not check for things that C99 does not require, e.g., int8_t.  If
53958         a test isn't needed unless <stdint.h> isn't working, and is
53959         unlikely to be needed for any other reason, then don't do it
53960         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
53961         size_t, since we assume C89 freestanding at least.  Do not check
53962         for sig_atomic_t, wchar_t, or wint_t, since the code now does
53963         the right thing even if the types are not defined.  Instead use:
53964         (gl_STDINT_TYPE_PROPERTIES): New macro.
53965         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
53966         testing whether <sys/types.h> clashes, as Autoconf does this for
53967         us now.  All uses removed.
53968         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
53969         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
53970         (gl_CHECK_TYPE_SAME):
53971         Remove; no longer needed.
53972         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
53973         exists, since we'll return 0 anyway in that case.
53974         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
53975
53976 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
53977
53978         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
53979         possible collision with system files.
53980         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
53981         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
53982         WCHAR_MIN and WCHAR_MAX in this case.
53983         (<stddef.h>): Do not include; no longer needed.
53984         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
53985         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
53986         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
53987         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
53988         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
53989         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
53990         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
53991         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
53992         !defined(__c99))]: Include in this case too, since it's harmless
53993         now.
53994         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
53995         dangerous to do so.
53996         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
53997         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
53998         (_STDINT_MIN, _STDINT_MAX): New macros.
53999         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54000         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54001         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54002         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54003         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54004         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54005         macros, not typedefs; this simplifies things quite a bit.
54006         Use long int for all types narrower than int64_t.
54007         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54008         Define in terms of long long int or int64_t or long int,
54009         not int64_t or int32_t.  This saves some compile-time testing.
54010         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54011         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54012         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54013         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54014         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54015         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54016         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54017         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54018         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54019         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54020         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54021         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54022         undef any previous version and define our own version, for
54023         simplicity and consistency with the new macros for types.
54024         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54025         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54026         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54027         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54028         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54029         @WINT_T_SUFFIX@ to keep things simple here.
54030         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54031         Simplify by assuming typical 8/16/32/64 host, since we're
54032         already doing that elsewhere anyway.
54033         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54034         and assume long long int is 64 bits if available.  This
54035         speeds up 'configure'.
54036
54037 2006-07-01  Eric Blake  <ebb9@byu.net>
54038
54039         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54040         Reported by Andreas Buening.
54041
54042 2006-07-01  Eric Blake  <ebb9@byu.net>
54043
54044         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54045
54046 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54047
54048         * lib/getaddrinfo.c: fixed typo
54049
54050 2006-06-29  Jim Meyering  <jim@meyering.net>
54051
54052         * modules/strftime (Maintainer): Add my name, since with the
54053         FPRINTFTIME changes strftime.c has forked from glibc.
54054
54055 2006-06-29  Eric Blake  <ebb9@byu.net>
54056
54057         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54058
54059 2006-06-29  Eric Blake  <ebb9@byu.net>
54060
54061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54062
54063 2006-06-29  Eric Blake  <ebb9@byu.net>
54064
54065         * lib/stat_.h: New file.
54066
54067 2006-06-29  Eric Blake  <ebb9@byu.net>
54068
54069         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54070         unused static function.
54071
54072 2006-06-29  Eric Blake  <ebb9@byu.net>
54073
54074         * doc/functions.texi (Function Portability): Document missing lstat
54075         on mingw.
54076
54077 2006-06-29  Eric Blake  <ebb9@byu.net>
54078
54079         * MODULES.html.sh: Add sys_stat.
54080         * modules/sys_stat: New module.
54081         * modules/mkstemp (Depends-on): Add sys_stat.
54082
54083 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54084
54085         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54086
54087 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54088
54089         * m4/c-bs-a.m4: Removed.
54090
54091 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54092
54093         * lib/strftime.c: Assume strftime() exists.
54094
54095 2006-06-29  Derek Price  <derek@ximbiot.com>
54096
54097         * modules/c-bs-a: Removed - \a is C89.
54098         * MODULES.html.sh: Remove c-bs-a.
54099
54100 2006-06-29  Bruno Haible  <bruno@clisp.org>
54101
54102         * modules/wcwidth (License): Change to LGPL.
54103
54104 2006-06-28  Simon Josefsson  <jas@extundo.com>
54105
54106         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54107         on _WIN32.
54108
54109         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54110         getnameinfo.
54111
54112 2006-06-28  Simon Josefsson  <jas@extundo.com>
54113
54114         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54115
54116 2006-06-28  Simon Josefsson  <jas@extundo.com>
54117
54118         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54119         functions there.  It will succeed on Windows XP, but on Windows
54120         2000 and (presumably) earlier, it will fail, and use the internal
54121         re-implementation.
54122         (use_win32_p): New function.
54123         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54124         Support AI_NUMERICSERV to disable getservbyname.
54125         (getnameinfo): New function, only supports
54126         NI_NUMERICHOST|NI_NUMERICSERV for now.
54127
54128         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54129         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54130         getnameinfo.
54131
54132 2006-06-28  Eric Blake  <ebb9@byu.net>
54133
54134         * modules/wcwidth: New file.
54135         * modules/mbchar (Depends-on): Add wcwidth.
54136         * modules/mbswidth (Depends-on): Add wcwidth.
54137         * MODULES.html.sh: Add wcwidth.
54138
54139 2006-06-28  Eric Blake  <ebb9@byu.net>
54140
54141         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54143
54144 2006-06-28  Eric Blake  <ebb9@byu.net>
54145
54146         * lib/xvasprintf.h: Fix comments.
54147
54148 2006-06-28  Eric Blake  <ebb9@byu.net>
54149
54150         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54151         * lib/mbswidth.c (wcwidth): Move from here...
54152         * lib/wcwidth.h: ...to this new file.
54153
54154 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54155
54156         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54157
54158         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54159         it's obsolete.
54160         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54161
54162 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54163
54164         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54165         Autoconf 2.60 says this stuff was obsolete.
54166
54167 2006-06-28  Bruno Haible  <bruno@clisp.org>
54168
54169         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54170
54171 2006-06-28  Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54174         gt_TYPE_WCHAR_T.
54175
54176 2006-06-28  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54179         declaration for wcwidth.
54180         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54181
54182 2006-06-28  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54185         (mkdir): Define using _mkdir.
54186
54187 2006-06-28  Bruno Haible  <bruno@clisp.org>
54188
54189         * lib/getaddrinfo.h: Fix POSIX URL.
54190         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54191         _WIN32.
54192         (use_win32_p): Make static.
54193         (getaddrinfo): Reject service name if it is empty or does not consist
54194         solely of decimal digits, or if its value is > 65535.
54195         (getnameinfo): Remove useless casts.
54196
54197 2006-06-27  Simon Josefsson  <jas@extundo.com>
54198
54199         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54200         Eggert and Martin Lambers.
54201
54202 2006-06-27  Simon Josefsson  <jas@extundo.com>
54203
54204         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54205         Eggert and Martin Lambers.
54206
54207 2006-06-27  Bruno Haible  <bruno@clisp.org>
54208
54209         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54210         result to 0, not to empty.
54211         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54212
54213 2006-06-27  Bruno Haible  <bruno@clisp.org>
54214
54215         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54216
54217 2006-06-26  Simon Josefsson  <jas@extundo.com>
54218
54219         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54220         present.
54221
54222 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54225         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54227
54228 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54229
54230         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54231
54232 2006-06-26  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54235
54236 2006-06-26  Bruno Haible  <bruno@clisp.org>
54237
54238         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54239
54240 2006-06-26  Bruno Haible  <bruno@clisp.org>
54241
54242         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54243         SGI C compiler in pre-C99 mode.
54244         Suggested by Mark D. Baushke and Larry Jones.
54245
54246 2006-06-26  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54249         WCHAR_MAX.
54250         Reported by Mark D. Baushke and Larry Jones.
54251
54252 2006-06-26  Bruno Haible  <bruno@clisp.org>
54253
54254         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54255         in pre-C99 mode.
54256         Suggested by Mark D. Baushke and Larry Jones.
54257
54258 2006-06-23  Simon Josefsson  <jas@extundo.com>
54259             Bruno Haible  <bruno@clisp.org>
54260
54261         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54262         Emit mostlyclean-local rule.
54263         (func_emit_tests_Makefile_am): Likewise.
54264         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54265
54266 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54267
54268         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54269
54270 2006-06-23  Bruno Haible  <bruno@clisp.org>
54271
54272         * tests/test-stdint.c: Update to match ISO C 99 Technical
54273         Corrigendum 1.
54274
54275 2006-06-23  Bruno Haible  <bruno@clisp.org>
54276
54277         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54278
54279 2006-06-23  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/stdint_.h: Treat IRIX like OpenBSD.
54282
54283 2006-06-23  Bruno Haible  <bruno@clisp.org>
54284
54285         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54286         ISO C 99 Technical Corrigendum 1.
54287
54288 2006-06-22  Simon Josefsson  <jas@extundo.com>
54289
54290         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54291         MinGW.
54292
54293 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54296         needed.  Some compiler complained about some of them.  Problem reported
54297         by Larry Jones in
54298         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54299
54300 2006-06-21  Simon Josefsson  <jas@extundo.com>
54301
54302         * tests/test-getaddrinfo.c: New file.
54303
54304         * modules/getaddrinfo-tests: New file.
54305
54306         * MODULES.html.sh: Add inet_pton.
54307
54308         * modules/inet_pton: New file.
54309
54310 2006-06-21  Simon Josefsson  <jas@extundo.com>
54311
54312         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54313         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54314         of using the (limited) gnulib implementation on Windows XP.
54315
54316         * m4/inet_pton.m4: New file.
54317
54318 2006-06-21  Simon Josefsson  <jas@extundo.com>
54319
54320         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54321         variable.
54322
54323         * lib/socket_.h: Don't define WINVER.
54324
54325         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54326         slightly modified to work in gnulib.
54327
54328 2006-06-21  Simon Josefsson  <jas@extundo.com>
54329
54330         * doc/gnulib.texi (Windows sockets): Add.
54331
54332 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54333
54334         * lib/read-file.c (fread_file): Start with buffer allocation of
54335         0 bytes rather than 1 byte; this simplifies the code.
54336         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54337         code to free buffer and save/restore errno.
54338         (internal_read_file): Remove unused local.
54339
54340 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54341
54342         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54343         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54344         Problem reported by Denis Excoffier in
54345         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54346
54347 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54348
54349         * modules/sys_socket, modules/socklen: Include sys/types since
54350         FreeBSD 4.x's sys/socket.h needs it.
54351
54352 2006-06-19  Simon Josefsson  <jas@extundo.com>
54353
54354         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54355
54356 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54357
54358         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54359
54360 2006-06-19  Bruno Haible  <bruno@clisp.org>
54361
54362         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54363         and FULL_PATH_INTTYPES_H in angle brackets.
54364         Reported by Mark D. Baushke <mdb@gnu.org>.
54365
54366 2006-06-17  Eric Blake  <ebb9@byu.net>
54367
54368         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54369         errno.
54370
54371 2006-06-17  Bruno Haible  <bruno@clisp.org>
54372
54373         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54374         <sys/inttypes.h>.
54375
54376 2006-06-17  Bruno Haible  <bruno@clisp.org>
54377
54378         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54379         whether errno is declared. Assume <errno.h> declares errno.
54380
54381 2006-06-17  Bruno Haible  <bruno@clisp.org>
54382
54383         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54384
54385 2006-06-17  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54388         problem on Solaris 2.5.1.
54389
54390 2006-06-16  Eric Blake  <ebb9@byu.net>
54391
54392         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54393         * lib/unicodeio.c [!defined errno]: Likewise.
54394         * lib/strtol.c [!defined errno]: Likewise.
54395         * lib/strtod.c [!defined errno]: Likewise.
54396
54397 2006-06-15  Eric Blake  <ebb9@byu.net>
54398
54399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54400
54401 2006-06-15  Eric Blake  <ebb9@byu.net>
54402
54403         * config/srclist.txt (ssize_t.m4): Lose sync.
54404
54405 2006-06-15  Bruno Haible  <bruno@clisp.org>
54406
54407         * modules/stdint (Files): Include m4/full-header-path.m4,
54408         m4/size_max.m4, m4/wchar_t.m4.
54409         (Makefile.am): Many more substitutions.
54410         * modules/stdint-tests: New file.
54411         * tests/test-stdint.c: New file.
54412
54413 2006-06-15  Bruno Haible  <bruno@clisp.org>
54414
54415         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54416         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54417         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54418         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54419         gl_CHECK_TYPE_SAME): New macros.
54420
54421 2006-06-15  Bruno Haible  <bruno@clisp.org>
54422
54423         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54424
54425 2006-06-15  Bruno Haible  <bruno@clisp.org>
54426
54427         * lib/stdint_.h: Rewritten to be fully auto-configured.
54428         Fixes bug on HP-UX/IA64.
54429
54430 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54431
54432         * lib/getdate.y (__attribute__): Don't define if already defined.
54433         Problem reported by Larry Jones.
54434         * lib/utimens.c (__attribute__): Likewise.
54435
54436 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54437
54438         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54439         reported by Andreas Schwab.
54440
54441 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54442             Bruno Haible  <bruno@clisp.org>
54443
54444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54445         check for the declaration of strnlen and a run test that exposes the
54446         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54447         rpl_strndup.
54448
54449 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54450             Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54453
54454 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54455
54456         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54457         compile test, for Tru64 4.0D.
54458
54459 2006-05-28  Karl Berry  <karl@gnu.org>
54460
54461         * config/srclist.txt (printf-args.c): lose sync.
54462
54463 2006-05-26  Martin Lambers  <marlam@marlam.de>
54464
54465         * lib/getpass.c: Updates the test for the native W32 API, and adds
54466         missing includes, thus fixing compilation warnings.
54467
54468 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54469
54470         * lib/exclude.c (exclude_fnmatch): New function.
54471         (excluded_file_name): Call exclude_fnmatch.
54472         * lib/exclude.h (excluded_file_name): New prototype
54473
54474 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * lib/tempname.c (small_open, large_open): New macros.
54477         (__open, __open64) [!_LIBC]: Remove.
54478         (__gen_tempname): Use small_open and large_open instead of __open
54479         and __open64.  This fixes a portability bug on HP-UX 11.11i
54480         reported by Simon Wing-Tang in
54481         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54482
54483 2006-05-24  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54486         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54487         Reported by Thorsten Maerz <torte@netztorte.de> via
54488         Aaron Stone <aaron@serendipity.cx>.
54489
54490 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54491
54492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54493         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54494         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54495         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54496         not really conditional on the cache.
54497         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54498
54499 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54500
54501         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54502         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54503         (my_usleep): Don't mishandle maximum value.
54504
54505 2006-05-19  Jim Meyering  <jim@meyering.net>
54506
54507         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54508
54509 2006-05-17  Bruno Haible  <bruno@clisp.org>
54510
54511         Cygwin portability.
54512         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54513
54514 2006-05-17  Bruno Haible  <bruno@clisp.org>
54515
54516         * lib/stdint_.h: Fix recognition of Cygwin.
54517
54518 2006-05-15  Bruno Haible  <bruno@clisp.org>
54519
54520         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54521         on libtool patch by Ralf Wildenhues.
54522
54523 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54526         test for C99 conformance; (bool) 0.5 is an integer constant
54527         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54528         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54529
54530 2006-05-11  Simon Josefsson  <jas@extundo.com>
54531
54532         * m4/xvasprintf.m4: Fix obvious typo.
54533
54534 2006-05-11  Jim Meyering  <jim@meyering.net>
54535
54536         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54537         James Lemley.
54538
54539 2006-05-10  Simon Josefsson  <jas@extundo.com>
54540
54541         * lib/md4.c: Typo fix, update copyright years.
54542         (K1, K2): Don't use L because it turn computations into 64-bit on
54543         64-bit platforms.
54544
54545 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54548         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54549         unwanted sign propagation, e.g., on hosts with 64-bit int.
54550         There still are some problems with reeelly weird theoretical hosts
54551         (e.g., 33-bit int) but it's not worth worrying about now.
54552         * lib/sha1.c (rol): Likewise.
54553         (K1, K2, K3, K4): Remove unnecessary L suffix.
54554
54555 2006-05-10  Bruno Haible  <bruno@clisp.org>
54556
54557         * lib/des.c: Cast to avoid warnings.
54558
54559 2006-05-09  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54562         (Depends-on): Depend also on xsize, stdarg.
54563         (configure.ac): Add gl_XVASPRINTF.
54564
54565 2006-05-09  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/xvasprintf.m4: New file.
54568
54569 2006-05-09  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54572         (EOVERFLOW): Define fallback value.
54573         (xstrcat): New function.
54574         (xvasprintf): Recognize the special case of a string concatenation.
54575
54576 2006-05-08  Eric Blake  <ebb9@byu.net>
54577
54578         * gnulib-tool (func_version): Base copyright year on CVS date.
54579         (func_emit_copyright_notice): New function.
54580         (func_emit_lib_Makefile_am): Use it.
54581         (func_emit_tests_Makefile_am): Likewise.
54582         (func_import): Likewise.
54583
54584 2006-05-08  Bruno Haible  <bruno@clisp.org>
54585
54586         * modules/stdarg: New file.
54587         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54588
54589 2006-05-08  Bruno Haible  <bruno@clisp.org>
54590
54591         * m4/stdarg.m4: New file, from GNU gettext.
54592
54593 2006-05-08  Bruno Haible  <bruno@clisp.org>
54594
54595         * config/srclist.txt (build-aux/config.rpath): different from latest
54596         release.
54597
54598 2006-05-08  Bruno Haible  <bruno@clisp.org>
54599
54600         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54601
54602 2006-05-05  Jim Meyering  <jim@meyering.net>
54603
54604         * m4/warning.m4: New file, derived from bison's file by the same name.
54605
54606 2006-05-03  Bruno Haible  <bruno@clisp.org>
54607
54608         * lib/stdint_.h: Shorter URL.
54609         * lib/inttypes.h: Likewise.
54610
54611 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54614
54615 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * lib/verify.h: Document the internals better.  Most of this change
54618         was written by Bruno Haible.
54619
54620 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54621
54622         * doc/verify.texi: New file, partly based on a proposal by
54623         Bruno Haible.
54624
54625 2006-05-02  Bruno Haible  <bruno@clisp.org>
54626
54627         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54628         test from here...
54629         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54630
54631 2006-04-29  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54634         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54635
54636 2006-04-29  Bruno Haible  <bruno@clisp.org>
54637
54638         * gnulib-tool: Make --update option actually work.
54639
54640 2006-04-29  Bruno Haible  <bruno@clisp.org>
54641
54642         * doc/gcd.texi: New file.
54643         * doc/gnulib.texi: Include it.
54644
54645 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54646
54647         * lib/getdate.y (get_date): When adding relative date, start with the
54648         initial time, not with the result of the first mktime call.
54649
54650 2006-04-25  Bruno Haible  <bruno@clisp.org>
54651
54652         * gnulib-tool (func_import): Output the include directives in three
54653         blocks, sorted separately.
54654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54655
54656 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54657
54658         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54659         to define main with arguments, for C++.  Reported by Eric Blake.
54660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54661         Prefer 'int main ()' to 'int main (void)', for C++.
54662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54664         for 'main', for C99 and C++.
54665
54666 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54667
54668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54669         Don't assume that exit status -1 is valid.
54670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54671         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54673         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54674         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54675         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54676         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54677         functions can be used without declaring them, or that you can
54678         exit with status -1.
54679         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54680
54681 2006-04-24  Karl Berry  <karl@gnu.org>
54682
54683         * config/srclist.txt (longdouble.m4): sync lost.
54684
54685 2006-04-24  Eric Blake  <ebb9@byu.net>
54686
54687         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54688
54689 2006-04-24  Bruno Haible  <bruno@clisp.org>
54690
54691         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54692         poll() implementation in AIX.
54693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54694
54695 2006-04-24  Bruno Haible  <bruno@clisp.org>
54696
54697         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54698         assigned exactly once.
54699
54700 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54701             Bruno Haible  <bruno@clisp.org>
54702
54703         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54704         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54705         for AM_CPPFLAGS.
54706
54707 2006-04-23  Bruno Haible  <bruno@clisp.org>
54708
54709         * modules/copy-file: Depend on unistd.
54710         * modules/execute: Likewise.
54711         * modules/fatal-signal: Likewise.
54712         * modules/findprog: Likewise.
54713         * modules/mkdtemp : Likewise.
54714         * modules/pipe: Likewise.
54715         * modules/wait-process: Likewise.
54716
54717 2006-04-23  Bruno Haible  <bruno@clisp.org>
54718
54719         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54720         condition was already detected.
54721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54722
54723 2006-04-23  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/copy-file.c: Include <unistd.h> unconditionally.
54726         * lib/execute.c: Likewise.
54727         * lib/fatal-signal.c: Likewise.
54728         * lib/findprog.c: Likewise.
54729         * lib/mkdtemp.c: Likewise.
54730         * lib/pipe.h: Likewise.
54731         * lib/pipe.c: Likewise.
54732         * lib/wait-process.h: Likewise.
54733
54734 2006-04-23  Bruno Haible  <bruno@clisp.org>
54735
54736         * gnulib-tool (func_usage): Fix --import description. Document
54737         --update.
54738         (func_import): Create temporary file in a temporary directory, if
54739         --dry-run is specified. Silence errors from 'grep' when there are no
54740         m4 files in $m4dir.
54741         (func_create_testdir): Silence errors from 'grep' when there are no
54742         m4 files in $m4dir.
54743         Reported by Karl Berry <karl@freefriends.org>.
54744
54745 2006-04-20  Bruno Haible  <bruno@clisp.org>
54746
54747         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54748         one argument, so that the code will be portable to Autoconf 2.60.
54749         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54750         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54751         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54752
54753 2006-04-19  Derek Price  <derek@ximbiot.com>
54754             Eric Blake  <ebb9@byu.net>
54755
54756         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54757         rather than "/full/path.h".  Update comment to match.  Shorten &
54758         generalize m4_translit call via AS_TR_CPP.
54759
54760 2006-04-19  Derek Price  <derek@ximbiot.com>
54761             Eric Blake  <ebb9@byu.net>
54762
54763         * lib/inttypes.h: Correct grammar in comment.
54764
54765 2006-04-18  Derek Price  <derek@ximbiot.com>
54766             Paul Eggert  <eggert@cs.ucla.edu>
54767
54768         * modules/inttypes: New file.
54769         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54770
54771 2006-04-18  Derek Price  <derek@ximbiot.com>
54772             Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54775         New files.
54776
54777 2006-04-18  Derek Price  <derek@ximbiot.com>
54778             Paul Eggert  <eggert@cs.ucla.edu>
54779
54780         * lib/inttypes.h: New file.
54781         * lib/strtoimax.c: Assume <inttypes.h>.
54782
54783 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54784
54785         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54786         isn't mounted.  Problem reported by Kir Kolyshkin.
54787
54788 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54791         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54792         Derek R. Price.
54793         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54794         implementation.
54795
54796 2006-04-12  Eric Blake  <ebb9@byu.net>
54797
54798         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54799         is now done automatically by the corresponding Autoconf macro.
54800
54801 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54802
54803         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54804         time_r.h.
54805
54806 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         Merge regex changes from libc, removing some of our
54809         POSIX-conformance changes that were rejected and redoing them in a
54810         less-intrusive way.
54811
54812         * lib/regcomp.c (re_compile_internal, init_dfa):
54813         Length arg is now size_t, not Idx.  All uses changed.
54814         (peek_token): Forward decl now says internal_function.
54815         (__re_error_msgid, __re_error_msgid_idx):
54816         Now static rather than extern with attribute_hidden.
54817         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54818         For some reason libc prefers K&R style defns for external functions.
54819         (regerror) [!defined _LIBC]: Likewise.
54820         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54821         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54822         (build_range_exp, build_collating_symbol):
54823         Use K&R-style defn.
54824         (re_compile_fastmap): Use '\0' to memset, not 0.
54825         (utf8_sb_map): Make the calculations more obvious.
54826         (init_dfa, parse_bracket_exp, build_charclass_op):
54827         Call calloc and cast result, as glibc does.
54828         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54829         (build_range_exp, build_collating_symbol):
54830         Now internal functions.
54831
54832         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54833
54834         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54835         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54836         Don't depend on VMS; depend on __VMS instead, for POSIX
54837         namespace cleanness.
54838         (regoff_t): Define to ssize_t, not long int.
54839
54840         Remove the REG_ macros named below.  Instead, make the old names
54841         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54842         __USE_GNU_REGEX.
54843         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54844         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54845         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54846         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54847         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54848         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54849         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54850         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54851         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54852         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54853         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54854         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54855         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54856         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54857         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54858         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54859         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54860         (REG_NREGS):
54861         Remove.  All uses replaced by the old RE_* names.
54862         (RE_BACKSLASH_ESCAPE_IN_LISTS):
54863         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
54864         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
54865         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
54866         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
54867         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
54868         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
54869         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
54870         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
54871         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
54872         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
54873         Don't bother having these macros be independent of each others'
54874         values, since they no longer exist in the POSIX name space.
54875
54876         Rename the following member names back to their old names,
54877         unless !__USE_GNU_REGEX.  All uses changed back.
54878         (buffer): Renamed from re_buffer.
54879         (allocated): Renamed from re_allocated.
54880         (used): Renamed from re_used.
54881         (syntax): Renamed from re_syntax.
54882         (fastmap): Renamed from re_fastmap.
54883         (translate): Renamed from re_translate.
54884         (can_be_null): Renamed from re_can_be_null.
54885         (regs_allocated): Renamed from re_regs_allocated.
54886         (fastmap_accurate): Renamed from re_fastmap_accurate.
54887         (no_sub): Renamed from re_no_sub.
54888         (not_bol): Renamed from re_not_bol.
54889         (not_eol): Renamed from re_not_eol.
54890         (newline_anchor): Renamed from re_newline_anchor.
54891         (num_regs): Renamed from rm_num_regs.
54892         (start): Renamed from rm_start.
54893         (end): Renamed from rm_end.
54894
54895         (free_state): Move up a bit.
54896
54897         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
54898         #define to be empty.
54899         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
54900         when that is what is intended.
54901         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
54902         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
54903         (MAX): New macro.
54904         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
54905         All uses changed back to re_malloc, etc.  It's now the caller's
54906         responsibility to check for overflow; all callers changed.
54907         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
54908         (re_x2nrealloc): Remove.
54909         (free_state): Remove decl.
54910
54911         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
54912         (re_set_registers, re_exec):
54913         Use K&R-style defn.
54914
54915         2006-01-31  Roland McGrath  <roland@redhat.com>
54916
54917         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
54918         Reported by Mike Frysinger <vapier@gentoo.org>.
54919
54920         2006-01-15  Andreas Jaeger  <aj@suse.de>
54921
54922         [BZ #1950]
54923         * lib/regex_internal.c (re_string_reconstruct): Adjust for
54924         build_wcs_upper_buffer change.
54925         (build_wcs_upper_buffer): Change return type.
54926
54927         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
54928
54929         * lib/regex_internal.h: Include <stdint.h> if available.
54930
54931         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
54932
54933         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
54934
54935         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54936
54937         * lib/regcomp.c: Adjust for changed secondary hash function.
54938
54939         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
54940
54941         * lib/regex.h: Pretty printing.
54942         Clean up namespace a bit.
54943
54944         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
54945
54946         * lib/regexec.c (update_cur_sifted_state, check_arrival,
54947         check_arrival_add_next_nodes): Avoid using uninitialized variable.
54948
54949         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
54950                     Ulrich Drepper  <drepper@redhat.com>
54951
54952         [BZ #1302]
54953         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
54954         changed.
54955         (bitset_word_t): Renamed from bitset_word.  All uses changed.
54956
54957         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
54958
54959         [BZ #281]
54960         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
54961         * lib/regcomp.c: Remove unnecessary uses of
54962         unsigned RE_TRANSLATE_TYPE.
54963         * lib/regex_internal.h: Likewise.
54964         * lib/regex_internal.c: Likewise.
54965         * lib/regexec.c: Likewise.
54966         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
54967
54968         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
54969
54970         * lib/regexec.c (find_recover_state): Remove unnecessary
54971         initialization.
54972         (transit_state_bkref): Make DFA a const pointer.
54973         (get_subexp): Likewise.
54974         (check_arrival): Likewise.
54975         (update_cur_sifted_state): Likewise.
54976         (re_search_internal): Likewise.
54977         (prune_impossible_nodes): Likewise.
54978         (acquire_init_state_context): Likewise.
54979         (proceed_next_node): Likewise.
54980         (set_regs): Likewise.
54981         (free_fail_stack_return): Likewise.
54982         (check_arrival_expand_ecl): Mark DFA parameter as const.
54983         (check_arrival_expand_ecl_sub): Likewise.
54984         (check_subexp_limits): Likewise.
54985         (sub_epsilon_src_nodes):  Likewise.
54986         (add_epsilon_src_nodes):  Likewise.
54987         (merge_state_array): Likewise.
54988         (update_regs): Likewise.
54989         (build_trtable): Likewise.
54990         (sift_states_backward): Mark MCTX parameter as const.
54991         (build_sifted_states): Likewise.
54992         (update_cur_sifted_state): Likewise.
54993         (sift_states_mkref): Likewise.
54994         (check_arrival_expand_ecl): Mark eclosure as const.
54995         (check_dst_limits_calc_pos_1): Likewise.
54996         * lib/regex_internal.h (re_match_context_t): Make dfa a const
54997         pointer.
54998
54999         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55000
55001         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55002         (transit_state_sb): Likewise.
55003         (transit_state_mb): Likewise.
55004         (sift_states_iter_mb): Likewise.
55005         (check_arrival_add_next_nodes): Likewise.
55006         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55007         [_LIBC] (re_search_2_stub): Use mempcpy.
55008
55009         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55010         mbrtowc for very simple UTF-8 case.
55011
55012         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55013         a pointer-to-const.
55014         (re_acquire_state_context): Likewise.
55015         * lib/regex_internal.h: Adjust prototypes.
55016
55017         * lib/regex.c: Prevent using C++ compilers.
55018
55019         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55020         (re_acquire_state_context): Likewise.
55021
55022 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55023
55024         * modules/regex (Depends-on): Add ssize_t.
55025
55026 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55027
55028         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55029         translation table.
55030
55031 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55034
55035 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55036             Bruno Haible  <bruno@clisp.org>
55037
55038         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55039         <sys/types.h> and <inttypes.h>.
55040
55041 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55042
55043         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55044         `__error_t_defined', so argp.h will not typedef the former.
55045
55046 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55047
55048         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55049         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55050         glibc names.  Even if glibc is changed to conform to POSIX, the
55051         traditional names will be available anyway, since regex depends on
55052         the extensions module.  Also, fix a longstanding typo in the
55053         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55054         reported by Emanuele Giaquinta.  Also, change sense of cached
55055         variable, so that the message makes sense.
55056
55057 2006-03-24  Simon Josefsson  <jas@extundo.com>
55058
55059         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55060         including some doc fixes.
55061         (base64_encode_alloc): Fix +1 bug on allocation failures.
55062
55063 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55064
55065         * lib/base64.c (base64_encode): Do not read past end of array with
55066         unsanitized input on systems with CHAR_BIT > 8.
55067
55068 2006-03-24  Eric Blake  <ebb9@byu.net>
55069
55070         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55071
55072 2006-03-22  Karl Berry  <karl@gnu.org>
55073
55074         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55075         * config/srclistvars.sh (COREUTILS): new var.
55076
55077 2006-03-17  Jim Meyering  <jim@meyering.net>
55078
55079         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55080         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55081
55082 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55083
55084         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55085         no longer needs it.  Instead, check that regoff_t is as least
55086         as wide as ptrdiff_t.
55087
55088         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55089         so that our regex.h stays compatible with the installed regex.
55090         This is helpful for installers who configure --without-included-regex.
55091         Problem reported by Emanuele Giaquinta.
55092
55093 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55096         Typedef to long int, not to off_, as POSIX will likely change
55097         in that direction.
55098
55099 2006-03-15  Eric Blake  <ebb9@byu.net>
55100
55101         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55102
55103 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55104
55105         * lib/argp-help.c (validate_uparams): Fix typo
55106         * lib/argp-parse.c (argp_default_options): Consistently begin help
55107         messages with a lowercase letter.
55108
55109 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55112         overrun buffers and shouldn't be used (much as gets shouldn't be
55113         used).
55114         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55115
55116 2006-03-08  Simon Josefsson  <jas@extundo.com>
55117
55118         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55119         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55120
55121 2006-03-08  Simon Josefsson  <jas@extundo.com>
55122
55123         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55124         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55125
55126 2006-03-08  Simon Josefsson  <jas@extundo.com>
55127
55128         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55129         signal that configure disabled the device.
55130
55131 2006-03-08  Simon Josefsson  <jas@extundo.com>
55132
55133         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55134         languages.
55135
55136 2006-03-07  Simon Josefsson  <jas@extundo.com>
55137
55138         * modules/getopt (Depends-on): Add unistd.
55139
55140         * modules/unistd: New file.
55141
55142 2006-03-07  Simon Josefsson  <jas@extundo.com>
55143
55144         * modules/gc-random: New file.
55145
55146 2006-03-07  Simon Josefsson  <jas@extundo.com>
55147
55148         * m4/unistd_h.m4: New file.
55149
55150 2006-03-07  Simon Josefsson  <jas@extundo.com>
55151
55152         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55153         test to be side-effect free by storing the result in the cache
55154         variable gl_cv_lib_readline, and moving the assignment of
55155         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55156         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55157
55158 2006-03-07  Simon Josefsson  <jas@extundo.com>
55159
55160         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55161         error on missing devices (the functions will return an error).
55162
55163         * m4/gc.m4: Move random stuff to gc-random.m4
55164
55165 2006-03-07  Simon Josefsson  <jas@extundo.com>
55166
55167         * lib/unistd_.h: New file.
55168
55169 2006-03-07  Simon Josefsson  <jas@extundo.com>
55170
55171         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55172
55173 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55174
55175         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55176         Problem reported by Juan Manuel Guerrero.
55177
55178 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55179
55180         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55181         the unistd module.
55182         * lib/getlogin_r.c: Likewise.
55183         * lib/getlogin_r.h: Likewise.
55184         * lib/glob.c: Likewise.
55185         * lib/pagealign_alloc.c: Likewise.
55186         * lib/unistd_.h: Remove; no longer needed.
55187
55188 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55189
55190         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55191         Add unistd.
55192         * modules/c-stack (Depends-on): Add unistd.
55193         * modules/getlogin_r: Likewise.
55194         * modules/glob: Likewise.
55195         * modules/pagealign_alloc: Likewise.
55196         * modules/unistd (Files): Remove lib/unistd_.h.
55197         (EXTRA_DIST): Remove.
55198         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55199         need unistd_.h.
55200         (MOSTLYCLEANFILES): Remove unistd.h-t.
55201
55202 2006-03-03  Simon Josefsson  <jas@extundo.com>
55203
55204         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55205
55206 2006-03-03  Simon Josefsson  <jas@extundo.com>
55207
55208         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55209         libidn and bison.
55210
55211 2006-03-03  Simon Josefsson  <jas@extundo.com>
55212
55213         * build-aux/maint.mk: Add indent target.
55214
55215 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55216
55217         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55218         our replacement poll.h in any case, to avoid a differing
55219         declaration from a system header.  Seen on AIX.
55220
55221 2006-03-01  Simon Josefsson  <jas@extundo.com>
55222
55223         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55224         <kasal@ucw.cz>.
55225
55226 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55227
55228         * modules/gettime (Depends-on): Add extensions module.
55229         * modules/nanosleep (Depends-on): Likewise.
55230         * modules/settime (Depends-on): Likewise.
55231
55232 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55235         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55236         pedantically.
55237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55238         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55239
55240         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55241         not "==".  Reported by Ralf Wildenhues.
55242
55243 2006-03-01  Karl Berry  <karl@gnu.org>
55244
55245         * doc/Copyright/request-*: new files, synced from gnuorg.
55246
55247 2006-03-01  Karl Berry  <karl@gnu.org>
55248
55249         * config/srclist.txt (Copyright/*): new entries.
55250
55251 2006-02-28  Simon Josefsson  <jas@extundo.com>
55252
55253         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55254
55255 2006-02-27  Simon Josefsson  <jas@extundo.com>
55256
55257         * lib/base64.h: Indent #define's.  From Jim Meyering
55258         <jim@meyering.net>.
55259
55260 2006-02-27  Jim Meyering  <jim@meyering.net>
55261
55262         Revert the change of 2006-02-24, so these files can continue
55263         to be sync'd from gettext.
55264         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55265         of `config.h'.
55266
55267 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55268
55269         * modules/intprops: New file.
55270         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55271         Add intprops.
55272         * modules/getloadavg (Files): Remove lib/intprops.h.
55273         (Depends-on): Add intprops.
55274         * modules/human: Likewise.
55275         * modules/inttostr: Likewise.
55276         * modules/openat: Likewise.
55277         * modules/sig2str: Likewise.
55278         * modules/userspec: Likewise.
55279         * modules/utimecmp: Likewise.
55280         * modules/xnanosleep: Likewise.
55281         * modules/xstrtol: Likewise.
55282
55283 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55284
55285         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55286         * modules/lock-tests (TESTS): Use $(EXEEXT).
55287         * modules/tls-tests: Likewise.
55288         * modules/argp-tests: Likewise.
55289         (check_PROGRAMS): New var, replacing...
55290         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55291
55292 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55293
55294         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55295         `config.h'.
55296
55297 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55298
55299         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55300
55301 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55302
55303         Sync from coreutils.
55304         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55305         gl_CHDIR_SAFER.
55306
55307 2006-02-22  Jim Meyering  <jim@meyering.net>
55308
55309         Sync from coreutils.
55310         * m4/chdir-safer.m4: New file.
55311
55312 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55315         AT_FDCWD exceeds INT_MAX.
55316         * lib/openat.h (AT_FDCWD): Likewise.
55317
55318 2006-02-17  Eric Blake  <address@hidden>
55319
55320         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55321
55322 2006-02-16  Simon Josefsson  <jas@extundo.com>
55323
55324         * modules/getaddrinfo (Depends-on): Add sys_socket.
55325
55326 2006-02-15  Simon Josefsson  <jas@extundo.com>
55327
55328         * build-aux/maint.mk: Add dsyntax-check rule.
55329
55330 2006-02-15  Eric Blake  <ebb9@byu.net>
55331
55332         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55333         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55334         'present but cannot compile' warnings on cygwin.
55335         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55336         use ws2tcpip.h if sys/socket.h works.
55337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55338         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55339
55340 2006-02-14  Simon Josefsson  <jas@extundo.com>
55341
55342         * modules/maintainer-makefile (Files): Rename.
55343
55344         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55345         and (the local) Makefile.cfg to maint-cfg.mk.
55346
55347         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55348         to the latter.
55349
55350         * modules/maintainer-makefile: New module.
55351
55352         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55353         severaly stripped to make it possible to build it up from scratch
55354         with reliable tests.
55355
55356         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55357         fixes to permit overriding the default actions when configure and
55358         makefile are not available.
55359
55360 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         Sync from coreutils.
55363         * modules/lstat (Depends-on): Don't depend on xalloc.
55364         (License): Change from GPL to LGPL, since this is now simply a
55365         replacement for a libc function.
55366
55367 2006-02-14  Jim Meyering  <jim@meyering.net>
55368
55369         Sync from coreutils.
55370
55371         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55372         failure on deficient systems, and simplify gnulib lgpl dependencies.
55373         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55374         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55375
55376         * lib/xalloc-die.c: Remove unused definition of N_.
55377
55378 2006-02-14  Jim Meyering  <jim@meyering.net>
55379
55380         Sync from coreutils.
55381         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55382         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55383         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55384         double-quote uses of that variable, to accommodate the rare case in
55385         which getmntent is available in none of the libraries checked.  This
55386         happens at least on FreeBSD 5.0.
55387
55388 2006-02-13  Simon Josefsson  <jas@extundo.com>
55389
55390         * gnulib-tool (Usage): Fix --import, from
55391         karl@freefriends.org (Karl Berry).
55392
55393 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55394
55395         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55396
55397 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55398
55399         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55400         "autoupdate" on 2005-12-12.
55401
55402 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55403
55404         * modules/closeout (Depends-on): Remove atexit.
55405
55406 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55409         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55410
55411 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55412
55413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55414         __EXTENSIONS__ if this causes compilation to fail.  Problem
55415         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55416         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55417
55418 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55419
55420         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55421         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55422         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55423         All uses changed.
55424
55425 2006-01-26  Simon Josefsson  <jas@extundo.com>
55426
55427         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55428         prototype is visible on mingw32.
55429
55430         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55431         for mingw32.
55432
55433         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55434         mingw32).
55435
55436 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55439         attempt to open for write; this always fails, at least on POSIX
55440         hosts.  This reinstates the 2006-01-09 change, which was
55441         inadvertently removed.
55442
55443 2006-01-26  Bruno Haible  <bruno@clisp.org>
55444
55445         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55446         Reported by Paul Eggert.
55447
55448 2006-01-26  Bruno Haible  <bruno@clisp.org>
55449             Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * lib/stdbool_.h (_Bool)
55452         [(! (defined __cplusplus || defined __BEOS__)
55453           && !defined __GNUC__
55454           && !(defined __HP_cc || defined __xlc__
55455                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55456                || defined __sgi))]:
55457         #define to signed char in these cases too; this simplifies
55458         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55459         etc., separately) and makes it more conservative.
55460
55461 2006-01-25  Simon Josefsson  <jas@extundo.com>
55462
55463         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55464         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55465         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55466
55467 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55468
55469         * lib/argp-namefrob.h: Bugfix. Remove stray #
55470
55471 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55474         so that we test the test.
55475         Check for yet another HP-UX cc bug involving *bool |= bool.
55476
55477 2006-01-25  Karl Berry  <karl@gnu.org>
55478
55479         * config/srclist.txt (vasnprintf.c): sync lost.
55480
55481 2006-01-25  Jim Meyering  <jim@meyering.net>
55482
55483         Sync from the stable (b5) branch of coreutils:
55484
55485         * lib/fts.c (fts_children): Don't let close() clobber errno from
55486         failed fchdir().
55487
55488         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55489         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55490         a dangling symlink.  That can also happen at least for ELOOP.
55491         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55492         FYI, this bug predates the inclusion of fts.c in coreutils.
55493
55494         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55495         in their own block, so pre-c99 compilers don't object.
55496
55497         Avoid the double-free (first in fts_read, second in fts_close) that
55498         would occur when an `active' directory is made inaccessible (e.g.,
55499         via chmod a-x) during a traversal.
55500         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55501         before returning.  Reproduce this failure by
55502         mkdir -p a/b; cd a; chmod a-x . b
55503         Reported by Stavros Passas.
55504
55505 2006-01-25  Jim Meyering  <jim@meyering.net>
55506
55507         * lib/fileblocks.c: Remove more useless parentheses.
55508         * lib/readutmp.h: Likewise.
55509
55510 2006-01-25  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55513         warnings.
55514         Reported by Paul Eggert.
55515
55516 2006-01-25  Bruno Haible  <bruno@clisp.org>
55517
55518         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55519         rid of a trap command. For Solaris sh.
55520         Reported by Mark D. Baushke <mdb@gnu.org>.
55521
55522 2006-01-24  Simon Josefsson  <jas@extundo.com>
55523
55524         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55525         Bruno.
55526
55527 2006-01-24  Karl Berry  <karl@gnu.org>
55528
55529         * config/srclist.txt (argp-namefrob.h): sync lost.
55530
55531 2006-01-24  Jim Meyering  <jim@meyering.net>
55532
55533         * modules/openat (Files): Add lib/intprops.h.
55534         From Mark D. Baushke.
55535
55536 2006-01-24  Jim Meyering  <jim@meyering.net>
55537
55538         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55539         Reported by Mark D. Baushke.
55540
55541 2006-01-24  Jim Meyering  <jim@meyering.net>
55542
55543         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55544
55545 2006-01-24  Bruno Haible  <bruno@clisp.org>
55546
55547         * modules/strnlen (Maintainer): Change from glibc to all.
55548
55549 2006-01-24  Bruno Haible  <bruno@clisp.org>
55550
55551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55552         Patch by Paul Eggert.
55553
55554 2006-01-24  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55557         already has it.
55558         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55559         2005-11-26.
55560
55561         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55562         'signed char' to avoid problems with the built-in _Bool type.
55563         Reported by Paul Eggert on 2005-11-26.
55564
55565 2006-01-24  Bruno Haible  <bruno@clisp.org>
55566
55567         * gnulib-tool (func_import): Avoid constructing complicated sed
55568         expressions inside backquote.
55569         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55570
55571 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55572
55573         These changes imported from libc.
55574         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55575         test and two separate function calls.
55576         * lib/strndup.c (__strndup): Add libc_hidden_def.
55577
55578 2006-01-23  Simon Josefsson  <jas@extundo.com>
55579
55580         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55581         Remove the test_*_SOURCES variable: automake infers it by default.
55582         * modules/tls-tests: Likewise.
55583
55584 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55585
55586         Work around porting bugs reported by Dieter in
55587         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55588         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55589         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55590         Include "getopt.h" first, to check interface.
55591         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55592         !HAVE_DECL_GETENV.
55593         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55594         (__strndup): Revert to K&R-style function dfns, the glibc style.
55595         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55596         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55597         Include strnlen.h first, to get prototype properly.
55598         (strnlen): Renamed from __strnlen.
55599         Remove weak alias.
55600
55601 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55604
55605 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55606
55607         * config/srclist.txt: Adjust to reflect glibc reorganization.
55608         This affects only comments.
55609
55610 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55611
55612          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55613          Reported by Bruce Korb <bkorb@gnu.org>.
55614
55615 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55618         to pacify gcc -Wswitch-default.
55619
55620 2006-01-22  Bruno Haible  <bruno@clisp.org>
55621
55622         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55623         temporary buffer for sprintf, take into account the precision also
55624         for 'd', 'i', 'u', 'o', 'x', 'X'.
55625
55626 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55627
55628         * modules/argp-tests: New module
55629         * tests/test-argp.c: New file
55630         * tests/test-argp-2.sh: New file
55631
55632 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55633
55634         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55635         (__argp_base_name): Removed
55636         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55637         typo.
55638         (__argp_base_name): Provide macro definition or extern declaration
55639         depending on the configuration
55640
55641 2006-01-20  Simon Josefsson  <jas@extundo.com>
55642
55643         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55644
55645 2006-01-20  Simon Josefsson  <jas@extundo.com>
55646
55647         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55648
55649 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55652         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55653         Suggested by Bruno Haible.
55654
55655 2006-01-20  Karl Berry  <karl@gnu.org>
55656
55657         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55658         until changes propagate, I guess.
55659
55660 2006-01-19  Simon Josefsson  <jas@extundo.com>
55661
55662         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55663
55664 2006-01-19  Simon Josefsson  <jas@extundo.com>
55665
55666         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55667
55668 2006-01-19  Simon Josefsson  <jas@extundo.com>
55669
55670         * gnulib-tool: Set check_PROGRAMS.
55671
55672         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55673         modules/des-tests, modules/gc-arcfour-tests,
55674         modules/gc-arctwo-tests, modules/gc-des-tests,
55675         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55676         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55677         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55678         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55679         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55680         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55681         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55682         test_*_SOURCES.
55683
55684 2006-01-18  Simon Josefsson  <jas@extundo.com>
55685
55686         * modules/socklen (Depends-on): Depend on sys_socket.
55687
55688 2006-01-18  Simon Josefsson  <jas@extundo.com>
55689
55690         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55691         modules/des-tests, modules/gc-arcfour-tests,
55692         modules/gc-arctwo-tests, modules/gc-des-tests,
55693         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55694         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55695         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55696         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55697         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55698         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55699         $(EXEEXT) to automake TESTS variable, for mingw32.
55700
55701 2006-01-17  Simon Josefsson  <jas@extundo.com>
55702
55703         * modules/socklen (Include): Need sys/socket.h.
55704
55705 2006-01-17  Bruno Haible  <bruno@clisp.org>
55706
55707         * modules/ssize_t (Include): Add <sys/types.h>.
55708
55709 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55710
55711         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55712         it's not portable and it doesn't work with cross-compiles.
55713         Problem reported by Bruno Haible.  Fix missing-$ typo in
55714         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55715         -zignore from being used with Sun's C compiler.
55716
55717 2006-01-12  Simon Josefsson  <jas@extundo.com>
55718
55719         * lib/base64.c: Fix warning, reported by Bruno Haible
55720         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55721
55722 2006-01-12  Bruno Haible  <bruno@clisp.org>
55723
55724         * modules/ldd: New file.
55725         * build-aux/ldd.sh.in: New file.
55726         * MODULES.html.sh (Support for building libraries and executables): Add
55727         ldd.
55728
55729 2006-01-12  Bruno Haible  <bruno@clisp.org>
55730
55731         * m4/ldd.m4: New file.
55732
55733 2006-01-12  Bruno Haible  <bruno@clisp.org>
55734
55735         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55736         endless loop while replacing $auxdir with build-aux.
55737
55738 2006-01-11  Simon Josefsson  <jas@extundo.com>
55739
55740         * lib/stdint_.h (SIZE_MAX): Add missing (.
55741
55742 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55743
55744         Sync from coreutils.
55745         * lib/md5.c: Fix commentary typos.
55746         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55747         * lib/md5.h (__attribute__): Remove; unused.
55748         * lib/sha1.c: Fix commentary to match md5 better.
55749         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55750         so that we don't need to worry about alignment.  All uses changed.
55751         This merges the 2005-10-28 md5 change into sha1.
55752
55753 2006-01-11  Jim Meyering  <jim@meyering.net>
55754
55755         Sync from coreutils.
55756         * lib/md5.c (OP): Fix spacing.
55757
55758 2006-01-11  Bruno Haible  <bruno@clisp.org>
55759
55760         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55761         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55762         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55763
55764 2006-01-11  Bruno Haible  <bruno@clisp.org>
55765
55766         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55767         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55768         the "early" section as well.
55769
55770 2006-01-11  Bruno Haible  <bruno@clisp.org>
55771
55772         Avoid "ar: no archive members specified" error on MacOS X.
55773         * gnulib-tool (func_modules_add_dummy): New function.
55774         (func_import, func_create_testdir): Invoke it.
55775
55776 2006-01-11  Bruno Haible  <bruno@clisp.org>
55777
55778         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55779         with $auxdir in AC_CONFIG_FILES statements.
55780
55781 2006-01-11  Bruno Haible  <bruno@clisp.org>
55782
55783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55784         Initialize also noinst_HEADERS to empty.
55785
55786 2006-01-11  Bruno Haible  <bruno@clisp.org>
55787
55788         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55789         variables.
55790         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55791         autoreconf.
55792
55793 2006-01-11  Bruno Haible  <bruno@clisp.org>
55794
55795         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55796         overridable by the user.
55797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55798
55799 2006-01-10  Simon Josefsson  <jas@extundo.com>
55800
55801         * modules/sys_socket: New file.
55802
55803 2006-01-10  Simon Josefsson  <jas@extundo.com>
55804
55805         * m4/sys_socket_h.m4: New file.
55806
55807 2006-01-10  Simon Josefsson  <jas@extundo.com>
55808
55809         * lib/socket_.h: New file.
55810
55811 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55812
55813         * modules/readutmp (Maintainer): Add myself.
55814
55815 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55816
55817         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55818         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55819         People who are still concerned with buggy memcmp implementations
55820         can invoke gl_FUNC_MEMCMP themselves.
55821
55822 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55823
55824         * lib/regex_internal.h (BITSET_WORD_BITS):
55825         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55826         preprocessor mishandles large unsigned values as if they were signed.
55827         Problem reported by Claudio Fontana in
55828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55829
55830 2006-01-10  Jim Meyering  <jim@meyering.net>
55831
55832         Avoid the double-free (first in fts_read, second in fts_close) that
55833         would occur when an `active' directory is made inaccessible (e.g.,
55834         via chmod a-x) during a traversal.
55835         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55836         before returning.  Reproduce this failure by
55837         mkdir -p a/b; cd a; chmod a-x . b
55838         Reported by Stavros Passas.
55839
55840         Sync from coreutils.
55841         * lib/sha1.c: Tweak grammar in a comment.
55842
55843 2006-01-10  Jim Meyering  <jim@meyering.net>
55844
55845         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55846         Patch by Joerg Sonnenberger.
55847
55848 2006-01-10  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/readutmp: Depend on module free.
55851         * modules/strtok_r: Depend on module restrict.
55852
55853 2006-01-10  Bruno Haible  <bruno@clisp.org>
55854
55855         * modules/gettext (configure.ac): Add an invocation of
55856         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55857
55858 2006-01-10  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
55861         Reported by Werner Lemberg <wl@gnu.org>.
55862
55863 2006-01-10  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/localcharset.c: Update from GNU gettext.
55866
55867 2006-01-10  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/argp.h (__const): Remove macro. Use const instead.
55870         * lib/argp-fmtstream.h (__const): Likewise.
55871         * lib/glob_.h (__const): Remove macro.
55872         * lib/glob-libc.h: Use const instead of __const.
55873
55874 2006-01-10  Bruno Haible  <bruno@clisp.org>
55875
55876         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
55877         variable.
55878         Needed to avoid an automake error regarding the 'gettext' module.
55879
55880 2006-01-09  Simon Josefsson  <jas@extundo.com>
55881
55882         * modules/inet_ntop (Depends-on): Add restrict.
55883
55884 2006-01-09  Simon Josefsson  <jas@extundo.com>
55885
55886         * modules/gc-rijndael-tests (License): Put under LGPL.
55887
55888         * modules/gc-des-tests (License): Likewise.
55889
55890         * modules/gc-arcfour-tests (License): Likewise.
55891
55892         * modules/gc-arctwo-tests (License): Likewise.
55893
55894         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
55895
55896         * modules/gc-hmac-sha1-tests (Files): Likewise.
55897
55898         * modules/gc-hmac-md5-tests (License): Likewise.
55899
55900         * modules/gc-sha1-tests (License): Likewise.
55901
55902         * modules/gc-md5-tests (License): Likewise.
55903
55904         * modules/gc-md4-tests (License): Likewise.
55905
55906         * modules/gc-md2-tests (License): Likewise.
55907
55908         * modules/gc-tests (License): Likewise.
55909
55910         * modules/des-tests (License): Likewise.
55911
55912         * modules/md4-tests (License): Likewise.
55913
55914         * modules/md2-tests (License): Likewise.
55915
55916 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55917
55918         Sync from coreutils:
55919
55920         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
55921         * modules/lib-ignore: New file.
55922         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
55923         chdir-safer.m4, lchmod.m4.
55924         * modules/openat: Add mkdirat.c, openat-priv.h.
55925
55926 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55927
55928         Sync from coreutils.
55929         * m4/lib-ignore.m4: New file.
55930         * m4/lchmod.m4: New file.
55931
55932 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55933
55934         Sync from coreutils.
55935         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
55936         for write access: POSIX says that must fail.
55937         * lib/fts.c (diropen): Likewise.
55938         * lib/save-cwd.c (save_cwd): Likewise.
55939         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
55940         well, for minor improvements on hosts that lack O_DIRECTORY.
55941         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
55942         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
55943         Fall back on chown if open failed with EACCES.
55944
55945         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
55946         Report an error at compile-time if only a 1-second nominal clock
55947         resolution is found.
55948
55949         * lib/lchmod.h: New file.
55950         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
55951         (make_dir_parents): Use lchown rather than chown, and
55952         lchmod rather than chmod.
55953
55954         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
55955         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
55956         "proc" reported by n0dalus.
55957
55958         * lib/mountlist.c: Include <limits.h>.
55959         (dev_from_mount_options)
55960         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
55961         New function.  It no longer assumes "dev=" has the System V meaning
55962         on Linux (since it doesn't).  It also parses "dev=" more carefully.
55963         (read_file_system_list)
55964         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
55965         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
55966         dev= in that case.
55967
55968         * lib/posixtm.h (PDS_PRE_2000): New macro.
55969         * lib/posixtm.c (year): Arg is now syntax_bits rather than
55970         allow_century.  All usages changed.  Reject dates outside the range
55971         1969-1999 if PDS_PRE_2000 is used.
55972
55973 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         Sync from coreutils.
55976         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
55977         (Time of day items): Mention the possibility of leap seconds.
55978         Problem reported by Dr. David Alan Gilbert.
55979
55980 2006-01-09  Jim Meyering  <jim@meyering.net>
55981
55982         Sync from coreutils.
55983
55984         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
55985
55986         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
55987
55988         * lib/modechange.c (mode_compile): Reject an invalid mode string
55989         that starts with an octal digit.  From Andreas Gruenbacher.
55990
55991         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
55992         and dup to open_safer and dup_safer, respectively.
55993         (openat_permissive): Fix typo in comment.
55994
55995         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
55996         "gettext.h"; either no longer needed or are guaranteed by openat.h.
55997         (_): Remove; no longer needed.
55998         (openat): Renamed from rpl_openat; no need for rpl_openat
55999         since openat.h renames openat for us.
56000         Replace most of the body with a call to openat_permissive,
56001         to avoid duplicate code.
56002         Port to (probably hypothetical) environments were mode_t is
56003         wider than int.
56004         (openat_permissive): Require mode arg, so that we can check
56005         types better.  Put it just after flags.  Change cwd failure
56006         indicator from pointer-to-bool to pointer-to-errno-value.
56007         All callers changed.
56008         Invoke openat_save_fail and/or openat_restore_fail if
56009         cwd_errno is null, so that openat can call us.
56010         (openat_permissive, fdopendir, fstatat, unlinkat):
56011         Simplify errno handling to avoid some duplicate code,
56012         as it's OK to set errno on success.
56013         * lib/openat.h: Revamp code so that function macros depend on
56014         __OPENAT_PREFIX only, not also on AT_FDCWD.
56015         (openat_ro): Remove.  Caller changed to use openat_permissive.
56016         (openat_permissive): Now a macro, if not a function.
56017         (openat_restore_fail, openat_save_fail): Now always functions,
56018         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56019
56020         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56021         and openat.c.
56022         * lib/mkdirat.c: Include openat-priv.h.
56023         Remove definitions of macros defined therein.
56024         * lib/openat.c: Likewise.
56025
56026         * lib/mkdirat.c (mkdirat): New file and function.
56027         * lib/openat.h (mkdirat): Declare.
56028
56029         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56030
56031         * lib/openat.h (openat_permissive): Declare.
56032         (openat_ro): Define.
56033
56034         * lib/openat.c (EXPECTED_ERRNO): New macro.
56035         (openat_permissive): New function -- used in remove.c rewrite.
56036         (all functions): Set errno just before returning, only if there
56037         was an actual failure.
56038         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56039
56040         Emulate openat-family functions using Linux's procfs, if possible.
56041         Idea and some code based on Ulrich Drepper's glibc changes.
56042
56043         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56044         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56045         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56046         before falling back on save_cwd and restore_cwd.
56047         (fdopendir, fstatat, unlinkat): Likewise.
56048
56049         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56050         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56051
56052         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56053         as second argument to va_arg.  Otherwise, some versions of gcc
56054         warn that `if this code is reached, the program will abort'.
56055
56056 2006-01-09  Jim Meyering  <jim@meyering.net>
56057
56058         Sync from coreutils.
56059         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56060         Require openat-priv.h.
56061
56062 2006-01-09  Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/strnlen (Include): Use strnlen.h.
56065
56066 2006-01-09  Bruno Haible  <bruno@clisp.org>
56067
56068         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56069
56070 2006-01-09  Bruno Haible  <bruno@clisp.org>
56071
56072         * lib/sysexit_.h (EX_OK): New macro.
56073         Suggested by Martin Lambers <marlam@marlam.de>.
56074
56075 2006-01-09  Bruno Haible  <bruno@clisp.org>
56076
56077         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56078         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56079
56080 2006-01-09  Bruno Haible  <bruno@clisp.org>
56081
56082         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56083         numbers.
56084
56085 2006-01-09  Bruno Haible  <bruno@clisp.org>
56086
56087         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56088         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56089         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56090         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56091
56092 2006-01-09  Bruno Haible  <bruno@clisp.org>
56093
56094         * build-aux/javacomp.sh.in: New file, moved from lib/.
56095         * modules/javacomp-script (Files): Update.
56096         (configure.ac): Add AC_CONFIG_FILES invocation.
56097         (EXTRA_DIST): Remove variable.
56098
56099         * build-aux/javaexec.sh.in: New file, moved from lib/.
56100         * modules/javaexec (Files): Update.
56101         (configure.ac): Add AC_CONFIG_FILES invocation.
56102         (EXTRA_DIST): Remove javaexec.sh.in.
56103
56104         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56105         * modules/csharpcomp-script (Files): Update.
56106         (configure.ac): Add AC_CONFIG_FILES invocation.
56107         (EXTRA_DIST): Remove variable.
56108
56109         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56110         * modules/csharpexec (Files): Update.
56111         (configure.ac): Add AC_CONFIG_FILES invocation.
56112         (EXTRA_DIST): Remove csharpexec.sh.in.
56113
56114 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56115
56116         Sync from coreutils.
56117
56118         Add POSIX ACL support
56119         * lib/acl.h (copy_acl, set_acl): Add declarations.
56120         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56121         systems other than Linux.
56122         (chmod_or_fchmod): New function: use fchmod when possible,
56123         and chmod otherwise.
56124         (file_has_acl): Add a POSIX ACL implementation, with a
56125         Linux-specific subcase.
56126         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56127         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56128         acls are unsupported.
56129         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56130         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56131         are unsupported.
56132
56133 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56134
56135         Sync from coreutils.
56136         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56137
56138 2006-01-07  Bruno Haible  <bruno@clisp.org>
56139
56140         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56141         gl_EARLY.
56142
56143 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56144
56145         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56146         Problem reported for Mingw by Mark Junker.
56147
56148 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56149
56150         * README: Gnulib normally doesn't generate a tarball.
56151
56152 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56153
56154         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56155         long int, not int, for nanosecond counts, so that people who are
56156         used to POSIX struct timespec won't be surprised.  Reported by Jim
56157         Meyering.
56158
56159 2005-12-28  Bruno Haible  <bruno@clisp.org>
56160
56161         * build-aux/config.rpath: Update from GNU gettext.
56162
56163 2005-12-16  Jim Meyering  <jim@meyering.net>
56164
56165         * modules/fprintftime: New module.
56166         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56167
56168 2005-12-16  Jim Meyering  <jim@meyering.net>
56169
56170         * m4/fprintftime.m4: New file.
56171
56172 2005-12-16  Jim Meyering  <jim@meyering.net>
56173
56174         * lib/fprintftime.c, lib/fprintftime.h: New files.
56175
56176 2005-12-15  Simon Josefsson  <jas@extundo.com>
56177
56178         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56179         new m4/socklen.m4.
56180
56181 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56182
56183         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56184         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56185
56186 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56187
56188         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56189         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56190         struct uparams is valid. Fall back to the default values if it is
56191         not.
56192
56193 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56194
56195         * modules/argp (Files): Add argp-pin.c
56196         (Depends-on): dirname
56197         (lib_SOURCES): Add argp-pin.c
56198
56199 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56200
56201         * m4/argp.m4:  Check if program_invocation_name and
56202         program_invocation_short_name are declared and define appropriate
56203         macros if they are not.
56204
56205 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56206
56207         * lib/argp-help.c (__argp_base_name): New function
56208         (__argp_short_program_name): Rewrite using __argp_base_name
56209         * lib/argp-namefrob.h: Define program_invocation_name and
56210         program_invocation_short_name if requested
56211         (__argp_base_name): Add prototype
56212         * lib/argp-parse.c (argp_def): Use gettext wrappers
56213         (argp_default_parser): Use __argp_base_name
56214         * lib/argp-pin.c: New file. Defines program_invocation_name and
56215         program_invocation_short_name on systems that lack them.
56216
56217 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56218
56219         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56220         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56221         porting problem reported by Georg Schwarz in
56222         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56223
56224 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56225
56226         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56227         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56228         porting problem reported by Georg Schwarz in
56229         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56230
56231 2005-12-05  Bruno Haible  <bruno@clisp.org>
56232
56233         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56234         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56235         Reported by Mark Junker <mjscod@gmx.de>.
56236
56237 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56240         Use implementation from Albert Chin, with some
56241         comments/corrections by Stepan Kasal and myself.
56242
56243 2005-12-02  Bruno Haible  <bruno@clisp.org>
56244
56245         * gnulib-tool (func_import): Accept GPLed build tool modules when
56246         --lgpl is given.
56247         * modules/csharpcomp-script: New file.
56248         * modules/csharpcomp: Depend on it.
56249         * modules/javacomp-script: New file.
56250         * modules/javacomp: Depend on it.
56251         Suggested by Simon Josefsson.
56252
56253 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56256         statement, to work around an HP-UX 10.20 compiler bug reported by
56257         Peter O'Gorman.
56258
56259 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * modules/savedir (Depends-on): Add openat.
56262
56263 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56264
56265         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56266         (uintmax_t) [defined uintmax_t]: Do not declare.
56267         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56268         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56269         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56270         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56271         sake of portability to weird hosts that C allows (though we don't
56272         know of any practical examples).
56273
56274         * lib/savedir.h (fdsavedir): New decl.
56275         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56276         contains most of the former guts of savedir.
56277         (savedir): Use savedirstream.
56278         Include "openat.h".
56279
56280 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         * modules/obstack (Files): Add m4/ulonglong.m4.
56283         Problem reported by Davide Angelocola.
56284
56285 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56286
56287         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56288         coreutils no longer futzes with rounding modes.
56289
56290 2005-11-14  Jim Meyering  <jim@meyering.net>
56291
56292         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56293         replacement of mkstemp.
56294
56295 2005-11-10  Simon Josefsson  <jas@extundo.com>
56296
56297         * lib/readline.c: Remove EOL.
56298
56299 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56300
56301         * modules/gethrxtime (Depends-on): Add gettime.
56302
56303 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56304
56305         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56306         or gettimeofday; no longer needed.
56307
56308 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56311         time business.
56312         (gethrxtime) [! (HAVE_NANOUPTIME
56313         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56314         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56315         our own approximation.
56316
56317 2005-11-08  Eric Blake  <ebb9@byu.net>
56318
56319         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56320
56321 2005-11-08  Eric Blake  <ebb9@byu.net>
56322
56323         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56324
56325 2005-11-04  Bruno Haible  <bruno@clisp.org>
56326
56327         * gnulib-tool: Implement --update mode.
56328
56329 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56330
56331         Fix porting problem reported by Theodoros V. Kalamatianos.
56332         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56333         Don't assume that futimes failing means we must fail.
56334
56335 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56338         variables to suggest the intended function of the PATH_MAX check.
56339
56340 2005-10-30  Kean Johnston  <jkj@sco.com>
56341
56342         Trivial changes to support SCO systems.
56343         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56344         as PATH_MAX.
56345         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56346         where __ptr is null when no I/O is pending.
56347
56348 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56349
56350         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56351         leave errno alone.  Problem reported by Dmitry V. Levin.
56352
56353 2005-10-28  Simon Josefsson  <jas@extundo.com>
56354
56355         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56356         Test more.
56357
56358         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56359
56360         * modules/md2, modules/md2-tests: New files.
56361
56362 2005-10-28  Simon Josefsson  <jas@extundo.com>
56363
56364         * m4/inet_ntop.m4: More tests.
56365
56366         * m4/gc-md2.m4, md2.m4: New file.
56367
56368 2005-10-28  Simon Josefsson  <jas@extundo.com>
56369
56370         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56371         "restrict" keywords, as per POSIX.  Protect the function
56372         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56373         Don't use K&R prototypes.  Check the sprintf return values.
56374         Re-define EAFNOSUPPORT if not present.  Indent.
56375
56376         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56377         suggested by Bruno Haible <bruno@clisp.org>.
56378
56379         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56380
56381         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56382
56383         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56384         libgcrypt).
56385
56386         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56387
56388         * lib/md2.h, lib/md2.c: New files.
56389
56390 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56393         errno alone.  Problem reported by Frederic Jolliton.
56394
56395 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56396
56397         * modules/verify (License): Change from GPL to LGPL.  This is a
56398         tiny module and there are apparently near-equivalents that are
56399         under the BSD license.
56400
56401 2005-10-24  Simon Josefsson  <jas@extundo.com>
56402
56403         * modules/sha1: Relicense to LGPL.
56404
56405 2005-10-24  Simon Josefsson  <jas@extundo.com>
56406
56407         * lib/md4.h: Shrink buffer size, now that we changed the type.
56408
56409 2005-10-23  Simon Josefsson  <jas@extundo.com>
56410
56411         * gnulib-tool (func_import): Fix --tests-base.
56412
56413 2005-10-22  Simon Josefsson  <jas@extundo.com>
56414
56415         * modules/arcfour (Depends-on): Need stdint.
56416
56417 2005-10-22  Simon Josefsson  <jas@extundo.com>
56418
56419         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56420         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56421
56422 2005-10-22  Simon Josefsson  <jas@extundo.com>
56423
56424         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56425         suggested by Bruno Haible <bruno@clisp.org>.
56426
56427 2005-10-22  Simon Josefsson  <jas@extundo.com>
56428
56429         * lib/crc.h: Include stddef.h, for size_t.
56430
56431 2005-10-22  Simon Josefsson  <jas@extundo.com>
56432
56433         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56434         arcfour_context struct (simplify test vector testing in GNU
56435         Shishi).
56436
56437 2005-10-21  Simon Josefsson  <jas@extundo.com>
56438
56439         * modules/des, modules/des-tests: New files.
56440
56441         * modules/gc-des, modules/gc-des-tests: New files.
56442
56443         * tests/test-des.c, tests/test-gc-des.c: New file.
56444
56445 2005-10-21  Simon Josefsson  <jas@extundo.com>
56446
56447         * modules/arctwo, modules/arctwo-tests: New files.
56448
56449         * tests/test-arctwo.c: New file.
56450
56451         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56452
56453         * tests/test-gc-arctwo.c: New file.
56454
56455 2005-10-21  Simon Josefsson  <jas@extundo.com>
56456
56457         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56458         Bruno Haible <bruno@clisp.org>.
56459
56460         * m4/gc-des.m4: New file.
56461
56462 2005-10-21  Simon Josefsson  <jas@extundo.com>
56463
56464         * m4/arctwo.m4: New file.
56465
56466         * m4/gc-arctwo.m4: New file.
56467
56468 2005-10-21  Simon Josefsson  <jas@extundo.com>
56469
56470         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56471         block.
56472
56473 2005-10-21  Simon Josefsson  <jas@extundo.com>
56474
56475         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56476         <bruno@clisp.org>.
56477
56478         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56479
56480         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56481         Bruno Haible <bruno@clisp.org>.
56482
56483         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56484         <bruno@clisp.org>.
56485
56486 2005-10-21  Simon Josefsson  <jas@extundo.com>
56487
56488         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56489
56490 2005-10-21  Simon Josefsson  <jas@extundo.com>
56491
56492         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56493
56494 2005-10-21  Simon Josefsson  <jas@extundo.com>
56495
56496         * lib/des.h, lib/des.c: New files.
56497
56498         * lib/gc-gnulib.c: Support DES.c
56499
56500 2005-10-21  Simon Josefsson  <jas@extundo.com>
56501
56502         * lib/arctwo.h, lib/arctwo.c: New files.
56503
56504         * lib/gc-gnulib.c: Support ARCTWO.
56505
56506 2005-10-21  Simon Josefsson  <jas@extundo.com>
56507
56508         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56509         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56510
56511 2005-10-21  Simon Josefsson  <jas@extundo.com>
56512
56513         * gnulib-tool (func_import, func_create_testdir): Define automake
56514         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56515         Makefile.am snippet),
56516         suggested by Bruno Haible <bruno@clisp.org>.
56517
56518         * modules/gc (Makefile.am): Use it.
56519
56520 2005-10-21  Bruno Haible  <bruno@clisp.org>
56521
56522         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56523         patch.
56524
56525 2005-10-19  Simon Josefsson  <jas@extundo.com>
56526
56527         * tests/test-gc-rijndael.c: New file.
56528
56529         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56530
56531 2005-10-19  Simon Josefsson  <jas@extundo.com>
56532
56533         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56534         interface too.
56535
56536 2005-10-19  Simon Josefsson  <jas@extundo.com>
56537
56538         * tests/test-gc-arcfour.c: New file.
56539
56540         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56541
56542 2005-10-19  Simon Josefsson  <jas@extundo.com>
56543
56544         * modules/gc-md4, modules/gc-md4-tests: New file.
56545
56546         * tests/test-gc-md4.c: New file.
56547
56548 2005-10-19  Simon Josefsson  <jas@extundo.com>
56549
56550         * m4/gc-md4.m4: New file.
56551
56552 2005-10-19  Simon Josefsson  <jas@extundo.com>
56553
56554         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56555         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56556         <kasal@ucw.cz>.
56557
56558 2005-10-19  Simon Josefsson  <jas@extundo.com>
56559
56560         * m4/gc-arcfour.m4: New file.
56561
56562         * m4/gc-rijndael.m4: New file.
56563
56564 2005-10-19  Simon Josefsson  <jas@extundo.com>
56565
56566         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56567
56568 2005-10-19  Simon Josefsson  <jas@extundo.com>
56569
56570         * lib/gc-gnulib.c: Support ARCFOUR.
56571
56572 2005-10-19  Simon Josefsson  <jas@extundo.com>
56573
56574         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56575         support.
56576
56577         * lib/gc.h: Add ECB enum type.
56578
56579         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56580
56581 2005-10-18  Simon Josefsson  <jas@extundo.com>
56582
56583         * tests/test-md5.c: New file.
56584
56585         * modules/md5-tests: New file.
56586
56587 2005-10-18  Simon Josefsson  <jas@extundo.com>
56588
56589         * tests/test-md4.c: New file.
56590
56591         * modules/md4, modules/md4-tests: New files.
56592
56593 2005-10-18  Simon Josefsson  <jas@extundo.com>
56594
56595         * m4/md4.m4: New file.
56596
56597 2005-10-18  Simon Josefsson  <jas@extundo.com>
56598
56599         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56600
56601 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56602
56603         * gnulib-tool (func_create_testdir): Omit the second check whether
56604         BUILT_SOURCES in nonempty.
56605
56606 2005-10-17  Simon Josefsson  <jas@extundo.com>
56607
56608         * tests/test-rijndael.c: New file.
56609
56610 2005-10-17  Simon Josefsson  <jas@extundo.com>
56611
56612         * modules/sha1: Depend on stdint instead of md5.
56613
56614         * modules/md5: Depend on stdint, remove uint32_t.
56615
56616 2005-10-17  Simon Josefsson  <jas@extundo.com>
56617
56618         * modules/gc-sha1-tests: New file.
56619
56620         * tests/test-gc-sha1.c: New file.
56621
56622 2005-10-17  Simon Josefsson  <jas@extundo.com>
56623
56624         * m4/md5.m4: Remove call to uint32_t.m4.
56625
56626 2005-10-17  Simon Josefsson  <jas@extundo.com>
56627
56628         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56629
56630         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56631         md5.h.
56632
56633         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56634
56635         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56636
56637 2005-10-17  Simon Josefsson  <jas@extundo.com>
56638
56639         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56640
56641 2005-10-17  Simon Josefsson  <jas@extundo.com>
56642
56643         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56644
56645 2005-10-17  Simon Josefsson  <jas@extundo.com>
56646
56647         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56648
56649         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56650
56651 2005-10-17  Bruno Haible  <bruno@clisp.org>
56652
56653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56654         that it can also be used in a test.
56655
56656 2005-10-16  Bruno Haible  <bruno@clisp.org>
56657
56658         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56659         TESTS_ENVIRONMENT, so that individual tests can augment it.
56660
56661         * gnulib-tool (func_create_testdir): Use an intermediate target for
56662         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56663         macros, like $(ALLOCA_H), which cannot be passed through the command
56664         line.
56665
56666 2005-10-15  Simon Josefsson  <jas@extundo.com>
56667
56668         * modules/rijndael-tests: New file.
56669
56670         * modules/rijndael: New file.
56671
56672 2005-10-15  Simon Josefsson  <jas@extundo.com>
56673
56674         * m4/rijndael.m4: New file.
56675
56676 2005-10-15  Simon Josefsson  <jas@extundo.com>
56677
56678         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56679
56680         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56681
56682 2005-10-14  Simon Josefsson  <jas@extundo.com>
56683
56684         * tests/test-arcfour.c: New file.
56685
56686         * modules/arcfour, modules/arcfour-tests: New files.
56687
56688 2005-10-14  Simon Josefsson  <jas@extundo.com>
56689
56690         * m4/arcfour.m4: New file.
56691
56692 2005-10-14  Simon Josefsson  <jas@extundo.com>
56693
56694         * lib/arcfour.h, lib/arcfour.c: New files.
56695
56696 2005-10-14  Roland McGrath  <roland@redhat.com>
56697
56698         Import from libc.  [BZ #1331]
56699         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56700         macro argument.
56701         Reported by Matej Vela <vela@debian.org>.
56702
56703 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56704
56705         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56706         include <wchar.h>; no longer needed.
56707
56708 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56709
56710         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56711
56712 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56713         and  Ulrich Drepper  <drepper@redhat.com>
56714
56715         Import from libc.
56716         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56717         instead of inline stream orientation test and two separate
56718         function calls.  Pay no attention to USE_IN_LIBIO.
56719
56720 2005-10-13  Simon Josefsson  <jas@extundo.com>
56721
56722         * modules/gc-hmac-md5-tests: New file.
56723
56724         * tests/test-gc-hmac-sha1.c: New file.
56725
56726         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56727
56728         * modules/gc-hmac-md5-tests: New file.
56729
56730         * tests/test-gc-md5.c: New file.
56731
56732         * modules/gc-md5-tests: New file.
56733
56734 2005-10-13  Simon Josefsson  <jas@extundo.com>
56735
56736         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56737         Move memory allocation outside of loop.
56738
56739 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56740
56741         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56742         intermediate directory is in a read-only file system.  Problem
56743         reported by Eric Blake.
56744
56745 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56746
56747         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56748
56749 2005-10-12  Simon Josefsson  <jas@extundo.com>
56750
56751         * tests/test-hmac-sha1.c: New file.
56752
56753         * modules/hmac-sha1-tests: New file.
56754
56755         * modules/hmac-sha1: New file.
56756
56757 2005-10-12  Simon Josefsson  <jas@extundo.com>
56758
56759         * modules/gc-sha1: New file.
56760
56761 2005-10-12  Simon Josefsson  <jas@extundo.com>
56762
56763         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56764
56765         * tests/test-gc-pbkdf2-sha1.c: New file.
56766
56767 2005-10-12  Simon Josefsson  <jas@extundo.com>
56768
56769         * modules/gc-md5, modules/gc-hmac-md5: New files.
56770
56771         * modules/gc (Files): Remove md5, memxor and hmac files.
56772
56773 2005-10-12  Simon Josefsson  <jas@extundo.com>
56774
56775         * m4/gc-pbkdf2-sha1.m4: New file.
56776
56777         * m4/gc-hmac-sha1.m4: New file.
56778
56779         * m4/gc-sha1: New file.
56780
56781         * m4/hmac-sha1.m4: New file.
56782
56783 2005-10-12  Simon Josefsson  <jas@extundo.com>
56784
56785         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56786
56787         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56788
56789 2005-10-12  Simon Josefsson  <jas@extundo.com>
56790
56791         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56792         suggested by Bruno Haible <bruno@clisp.org>.
56793
56794 2005-10-12  Simon Josefsson  <jas@extundo.com>
56795
56796         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56797
56798 2005-10-12  Simon Josefsson  <jas@extundo.com>
56799
56800         * lib/gc-pbkdf2-sha1.c: New file.
56801
56802         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56803
56804 2005-10-12  Simon Josefsson  <jas@extundo.com>
56805
56806         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56807
56808         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56809
56810 2005-10-12  Simon Josefsson  <jas@extundo.com>
56811
56812         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56813         GC_USE_HMAC_MD5, respectively.
56814
56815         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56816         (gc_md5): Fix typo.
56817
56818         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56819
56820         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56821
56822         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56823
56824 2005-10-12  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56827         Reported by Stepan Kasal <kasal@ucw.cz>.
56828
56829 2005-10-11  Simon Josefsson  <jas@extundo.com>
56830
56831         * tests/test-crc.c: New file.
56832
56833         * modules/crc, modules/crc-tests: New files.
56834
56835 2005-10-11  Simon Josefsson  <jas@extundo.com>
56836
56837         * m4/crc.m4: New file.
56838
56839 2005-10-11  Simon Josefsson  <jas@extundo.com>
56840
56841         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56842
56843         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56844
56845         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56846
56847 2005-10-11  Simon Josefsson  <jas@extundo.com>
56848
56849         * lib/crc.h, lib/crc.c: New files.
56850
56851         * lib/gc.h (gc_hash_buffer): Add doc.
56852
56853 2005-10-11  Bruno Haible  <bruno@clisp.org>
56854
56855         * modules/c-strcasestr: New file.
56856         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56857
56858 2005-10-11  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/c-strcase: New file.
56861         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
56862
56863 2005-10-11  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/strcasecmp.c: Include limits.h.
56866         (strcasecmp): Avoid integer overflow on exotic platforms.
56867         * lib/strncasecmp.c: Include limits.h.
56868         (strncasecmp): Avoid integer overflow on exotic platforms.
56869         Reported by Paul Eggert.
56870
56871 2005-10-11  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/c-strcasestr.h: New file, from GNU gettext.
56874         * lib/c-strcasestr.c: New file, from GNU gettext.
56875
56876 2005-10-11  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/c-strcase.h: New file, from GNU gettext.
56879         * lib/c-strcasecmp.c: New file, from GNU gettext.
56880         * lib/c-strncasecmp.c: New file, from GNU gettext.
56881
56882 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * modules/mempcpy (License): GPL -> LGPL.
56885         * modules/strchrnul (License): Likewise.
56886         * modules/sysexits (License): Likewise.
56887
56888 2005-10-08  Simon Josefsson  <jas@extundo.com>
56889
56890         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
56891
56892 2005-10-07  Simon Josefsson  <jas@extundo.com>
56893
56894         * m4/memxor.m4: Remove gl_C_RESTRICT call.
56895
56896 2005-10-06  Simon Josefsson  <jas@extundo.com>
56897
56898         * tests/test-hmac-md5.c: New file.
56899
56900         * modules/hmac-md5-tests: New file.
56901
56902         * modules/hmac-md5: New file.
56903
56904 2005-10-06  Simon Josefsson  <jas@extundo.com>
56905
56906         * m4/hmac-md5.m4: New file.
56907
56908         * m4/memxor.m4: Require gl_C_RESTRICT.
56909
56910 2005-10-06  Simon Josefsson  <jas@extundo.com>
56911
56912         * lib/memxor.c (memxor): Avoid casts and warnings.
56913
56914 2005-10-06  Simon Josefsson  <jas@extundo.com>
56915
56916         * lib/hmac-md5.c: New file.
56917
56918         * lib/hmac.h: New file.
56919
56920 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
56921
56922         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
56923         promotes to int, not unsigned int, to catch the AIX 5.3
56924         compiler bug.
56925
56926 2005-10-05  Simon Josefsson  <jas@extundo.com>
56927
56928         * modules/memxor: New file.
56929
56930         * modules/iconv (Files): Move config.rpath to havelib, it is used
56931         there.
56932
56933         * modules/havelib (Files): Add config.rpath.
56934
56935 2005-10-05  Simon Josefsson  <jas@extundo.com>
56936
56937         * m4/memxor.m4: New file.
56938
56939 2005-10-05  Simon Josefsson  <jas@extundo.com>
56940
56941         * lib/memxor.c (memxor): Fix compiler error.
56942
56943         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
56944         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
56945
56946         * lib/memxor.h, lib/memxor.c: New files.
56947
56948         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
56949         we assume all systems have it, suggested by Jim Meyering
56950         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
56951         any systems lack sys/socket.h; mingw32 is known to lack it, but we
56952         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
56953         same reasons.
56954
56955 2005-10-05  Simon Josefsson  <jas@extundo.com>
56956
56957         * config/srclist.txt: Add glibc bug 1423 for md5.h.
56958
56959 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
56960
56961         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
56962         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
56963         needed, since the source code now assumes these .h files.
56964
56965 2005-10-05  Derek Price  <derek@ximbiot.com>
56966
56967         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
56968
56969 2005-10-05  Bruno Haible  <bruno@clisp.org>
56970
56971         * modules/stdint (License): Change to LGPL.
56972
56973 2005-10-04  Simon Josefsson  <jas@extundo.com>
56974
56975         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
56976         D. Baushke" <mdb@gnu.org>.
56977
56978 2005-10-04  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/verify.h (verify_true): Provide alternative definition for C++.
56981
56982 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
56985         (SSIZE_MAX): New macro, if not already defined.
56986         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
56987         than 2 GiB.
56988
56989 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         Sync from coreutils.
56992         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
56993         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
56994         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
56995         ULLONG_MAX doesn't work with 2.7.2.1.
56996
56997 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
56998
56999         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57000         From Ben Pfaff.
57001
57002         * modules/exclude (Depends-on): Depend on verify.
57003         * modules/strtoimax (Depends-on): Likewise.
57004         * modules/utimecmp (Depends-on): Likewise.
57005
57006 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57007
57008         * lib/exclude.c: Include verify.h.
57009         (verify): Remove.  All callers changed to use verify.h's version.
57010         * lib/strtoimax.c: Likewise.
57011         * lib/utimecmp.c: Likewis.e
57012
57013         Sync from coreutils.
57014         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57015         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57016         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57017         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57018         bother returning ENOSYS if settimeofday or stime fails; just let
57019         them return whatever errno they want to return.
57020         * lib/utimens.c: Include unistd.h, for dup2.
57021         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57022         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57023
57024 2005-10-02  Jim Meyering  <jim@meyering.net>
57025
57026         Sync from coreutils.
57027         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57028         from glibc-2.2.5 that fails for read-only files.
57029
57030 2005-10-02  Jim Meyering  <jim@meyering.net>
57031
57032         Sync from coreutils.
57033         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57034         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57035         `#if HAVE_CONFIG_H'.
57036         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57037         Remove AT_FDCWD test.
57038         Do not consume the fd unless successful.
57039         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57040         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57041         block, so that we don't even try to compile it if settimeofday is
57042         available.  This works around a compilation failure on OSF1 V5.1,
57043         due to stime requiring a `long int*' while tv_sec is `int'.
57044
57045 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57046
57047         Sync from coreutils.
57048         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57049         against `yes', rather than just testing for nonempty.
57050
57051 2005-10-01  Simon Josefsson  <jas@extundo.com>
57052
57053         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57054         and Darwin.
57055
57056         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57057         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57058         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57059         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57060         Check if struct addrinfo is declared.
57061
57062 2005-10-01  Simon Josefsson  <jas@extundo.com>
57063
57064         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57065         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57066         AI_* and EAI_* definitions.  Protect function declarations.
57067
57068 2005-10-01  Jim Meyering  <jim@meyering.net>
57069
57070         Sync from coreutils.
57071
57072         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57073         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57074         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57076         in the inet and nsl libraries.  Required on Solaris 5.7.
57077
57078 2005-10-01  Jim Meyering  <jim@meyering.net>
57079
57080         Sync from coreutils.
57081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57082         in the inet and nsl libraries.  Required on Solaris 5.7.
57083
57084 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57085
57086         * lib/getdelim.c (getdelim): Remove unused variables.
57087
57088 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57089
57090         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57091         so that the code works even with ancient cpp.  Portability problem
57092         with GCC 2.7.2.1 reported by Thomas M.Ott.
57093
57094 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57095
57096         * modules/regex (Depends-on): Add strcase.
57097
57098         * modules/gethostname (Licence): Change from GPL to LGPL, since
57099         gethostname.c is a trivial implementation of a standard library
57100         function.
57101         * modules/poll (License): Change from GPL to LGPL, since it's
57102         derived from LGPL code.
57103
57104 2005-09-27  Jim Meyering  <jim@meyering.net>
57105
57106         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57107         HAVE_CONFIG_H.
57108
57109         * lib/intprops.h (signed_type_or_expr__): Define.
57110         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57111         for unsigned types.
57112
57113 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57114
57115         * lib/verify.h (verify_expr): Remove, replacing with:
57116         (verify_true): New macro that returns true instead of void.
57117         (verify_type__): Remove.
57118         (verify): Use verify_true rather than verify_type__.
57119
57120 2005-09-26  Bruno Haible  <bruno@clisp.org>
57121
57122         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57123         is necessary.
57124         (lib_SOURCES): Remove mbchar.c.
57125         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57126         (Files): Add m4/mbrtowc.m4.
57127         * modules/mbiter: Likewise.
57128         * modules/mbuiter: Likewise.
57129
57130 2005-09-26  Bruno Haible  <bruno@clisp.org>
57131
57132         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57133         compile mbchar.c if they are not both present.
57134         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57135         * m4/mbiter.m4 (gl_MBITER): Likewise.
57136         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57137         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57138         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57139
57140 2005-09-25  Jim Meyering  <jim@meyering.net>
57141
57142         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57143         also uses socklen_t.
57144
57145 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * lib/utimens.c (ENOSYS): Define if not already defined.
57148         (futimens): Support having a null PATH if the file descriptor
57149         is nonnegative.
57150
57151         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57152         Remove.
57153         (__attribute): Define to empty unless GCC 3.1 or later.
57154         This works around a core dump on OpenBSD 3.4, which has GCC
57155         2.95.3, which dumps core when given __attribute__(()).  It also
57156         simplifies other tests, since we really don't want to bother with
57157         worrying about which ancient version of GCC supported what.
57158         Original problem reported by Yoann Vandoorselaere, with part of
57159         the fix suggested by Derek Price.
57160
57161 2005-09-24  Jim Meyering  <jim@meyering.net>
57162
57163         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57164         so we can once again use a positive bitfield width of 1 -- now we
57165         don't have to explain why we were using a bitfield width of 2.
57166
57167 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57168
57169         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57170         and similarly for the other external symbols.  Problem reported
57171         by James Gallager.
57172
57173         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57174         bug reported by Jim Meyering.
57175
57176         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57178         not needed, since socklen is a prerequisite module.
57179
57180 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57183         Problem reported by Eric Blake.
57184         (getaddrinfo): Initialize se so that it's not garbage.
57185         Redo internal storage allocation so that it doesn't make unportable
57186         assumptions about alignment.
57187         Fix a memory leak.
57188
57189         * lib/utimens.c (futimens): Use futimesat if available.
57190         Prefer it to futimes since it doesn't have the futimes bug.
57191
57192         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57193         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57194         Instead, declare a function that returns a pointer to an array,
57195         and use verify_type__ to declare the size of the array.
57196         Problem and germ of a solution reported by Bruno Haible.
57197         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57198         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57199
57200 2005-09-23  Jim Meyering  <jim@meyering.net>
57201
57202         Sync from coreutils.
57203         Correct build failure (socklen_t not defined) on at least
57204         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57205         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57206
57207 2005-09-23  Jim Meyering  <jim@meyering.net>
57208
57209         * modules/getaddrinfo (Depends-on): Add socklen.
57210
57211 2005-09-23  Bruno Haible  <bruno@clisp.org>
57212
57213         * tests/test-verify.c: New file.
57214
57215 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57216
57217         Sync from coreutils.
57218
57219         * modules/argmatch (Depends-on): Add verify.
57220         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57221         unistd-safer.
57222         * modules/save-cwd (Depends-on): Likewise.
57223
57224         * modules/openat (Files): Add lib/openat-die.c.
57225         (Depends-on): Remove error, exitfail.
57226         Add dirname.
57227
57228         * modules/verify: New file.
57229         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57230         with "verify" module.
57231
57232 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57233
57234         Sync from coreutils.
57235
57236         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57237         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57238         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57239         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57240         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57241         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57242         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57243         Don't bother checking for string.h, stdlib.h, unistd.h.
57244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57246         module's job.
57247         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57248         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57249
57250         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57251         (gl_GETDATE): Use it.
57252
57253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57254
57255 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57256
57257         Sync from coreutils.
57258
57259         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57260         stat-time.h.
57261         * lib/argmatch.h: Include verify.h
57262         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57263         (ARGMATCH_ASSERT): Remove; unused.
57264         * lib/canonicalize.c: Assume STDC_HEADERS.
57265         * lib/exclude.c: Include "strcase.h".
57266         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57267         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57268         and stdio-safer.h.
57269         (getusershell): Call fopen, not fopen_safer.
57270         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57271         Do not include unistd-safer.h.
57272         (save_cwd): Don't call fd_safer; no longer needed
57273         now that we include fcntl--.h.
57274
57275         * lib/getdate.y (relative_time): New type.
57276         (RELATIVE_TIME_0): New constant.
57277         (parser_control): Use relative_time instead of doing it ourselves.
57278         (%union): Add new relative_time rel member.
57279         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57280         Now typeless.
57281         (relunit, relunit_snumber): Now of type rel.
57282         (zone, rel, relunit, get_date): Adjust to above changes.
57283
57284         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57285         Do not include unistd-safer.h.
57286         (getloadavg): Don't call fd_safer; no longer needed
57287         now that we include fcntl--.h.
57288
57289         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57290         (make_dir_parents): Treat ENOSYS like EEXIST.
57291
57292         Improve quality of diagnostics on restore_cwd failure.
57293         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57294         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57295         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57296         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57297         each time through the loop.  Do not diagnose restore_cwd failure;
57298         that is the caller's job (and perhaps the caller does not care).
57299
57300         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57301         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57302         If the file already exists but is not a directory, don't bother
57303         to try to make its parents.
57304         Close potential file descriptor leak if we can't chdir("/") (!).
57305         Don't always return true if chdir($PWD) fails; return true only
57306         if the requested action was done successfully (except for the
57307         chdir($PWD)).
57308         Don't log final directory unless we actually made it.
57309         Refactor to avoid duplicate code to fix up permissions.
57310         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57311
57312         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57313         to make it a bit faster and (I hope) clearer.
57314         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57315         Fix bug in formats like %2N.
57316
57317         * lib/verify.h: New file.
57318
57319 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         Sync from coreutils.
57322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57323
57324 2005-09-22  Jim Meyering  <jim@meyering.net>
57325
57326         Sync from coreutils.
57327
57328         * m4/lstat.m4 (gl_FUNC_LSTAT):
57329         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57330         Remove obsolete comment.
57331         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57332         * m4/xstrtod.m4: Likewise.
57333
57334         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57335
57336 2005-09-22  Jim Meyering  <jim@meyering.net>
57337
57338         Sync from coreutils.
57339
57340         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57341
57342         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57343         the .tm_year member, since otherwise gcc-4.0 would now warn about
57344         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57345
57346         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57347         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57348
57349         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57350         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57351         when run in a time zone for which daylight savings time is in effect
57352         for the starting date.
57353
57354         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57355         stop us from restricting permissions of just-created absolute-named
57356         directories.
57357         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57358         to restore initial working directory.
57359         * lib/mkdir-p.c (make_dir_parents): New parameter:
57360         different_working_dir, to tell caller if/when we change the working
57361         directory and are unable to return to the initial one.
57362         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57363         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57364         `return false'.  This fixes a bug introduced on 2004-07-30.
57365
57366         * lib/openat.c (fdopendir): Be sure to close the supplied
57367         file descriptor before returning.  This makes our replacement
57368         implementation a little closer to Solaris's, where fdopendir
57369         ties the file descriptor to the returned DIR* pointer.
57370         * lib/openat.c (unlinkat): New function.
57371         * lib/openat.h (unlinkat): Add prototype.
57372         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57373         (openat_restore_fail): Rename from openat_restore_die.
57374         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57375
57376         Provide an alternative to exiting immediately upon save_cwd or
57377         restore_cwd failure.  Now, an application can arrange e.g.,
57378         to perform a longjump in that case.
57379         * lib/openat.c: Include dirname.h.
57380         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57381         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57382         and openat_restore_die rather than calling error directly.
57383         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57384
57385         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57386         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57387         define.
57388
57389         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57390         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57391                             int utc, int nanoseconds);
57392         Background:
57393         date should not have to allocate a megabyte of virtual memory to
57394         handle a format argument like +%1048575T.  When implemented with
57395         strftime, it must allocate such a buffer, use strftime to fill it
57396         in, print it, then free it.
57397         With fprintftime, it simply prints everything and exits.
57398         With no need for memory allocation, that's one fewer way to fail.
57399         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57400         optional field width, not before, so we accept %9:z, not %:9z.
57401         (my_strftime): Be sure to use L_('x') for literals.
57402
57403         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57404         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57405         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57406         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57407         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57408         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57409         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57410         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57411         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57412         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57413         * lib/xgethostname.c, lib/xreadlink.c:
57414         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57415
57416         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57417         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57418         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57419         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57420         and don't include <sys/file.h>).
57421
57422 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57423
57424         Sync from coreutils.
57425
57426         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57427         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57428         [!LDAV_DONE]: Avoid unused variable warning.
57429
57430 2005-09-21  Bruno Haible  <bruno@clisp.org>
57431
57432         * lib/unicodeio.h (unicode_to_mb): New declaration.
57433
57434 2005-09-20  Derek Price  <derek@ximbiot.com>
57435
57436         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57437         getaddrinfo.h.
57438
57439 2005-09-20  Bruno Haible  <bruno@clisp.org>
57440
57441         * gnulib-tool: Remove trailing slashes from the values specified for
57442         --source-base, --m4-base, --tests-base, --aux-dir.
57443         Suggested by Simon Josefsson <jas@extundo.com>.
57444
57445 2005-09-20  Bruno Haible  <bruno@clisp.org>
57446
57447         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57448         func_modules_to_filelist, func_import, func_create_testdir): Make all
57449         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57450         change when gnulib-tool is invoked in a different locale.
57451
57452 2005-09-19  Simon Josefsson  <jas@extundo.com>
57453
57454         * m4/socklen.m4: Fix typo.
57455
57456 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57457
57458         Use a consistent style for including <config.h>.
57459         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57460         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57461         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57462         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57463         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57464         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57465         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57466         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57467         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57468         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57469         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57470         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57471         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57472         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57473         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57474         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57475         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57476         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57477         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57478         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57479         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57480         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57481         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57482         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57483         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57484         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57485         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57486         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57487         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57488         lib/xstrtoumax.c, lib/yesno.c:
57489         Standardize inclusion of config.h.
57490         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57491         lib/inttostr.h:  Removed inclusion of config.h from header files.
57492         * lib/inttostr.c:  Adjusted in-tree users.
57493         * lib/timespec.h: Remove superfluous warning to include config.h.
57494         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57495         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57496         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57497         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57498         config.h with HAVE_CONFIG_H.
57499
57500 2005-09-19  Jim Meyering  <jim@meyering.net>
57501
57502         * modules/pathmax (License): Change to LGPL.
57503
57504 2005-09-19  Derek Price  <derek@ximbiot.com>
57505
57506         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57507
57508 2005-09-19  Bruno Haible  <bruno@clisp.org>
57509
57510         * gnulib-tool (import): Provide default for --tests-base.
57511
57512 2005-09-19  Bruno Haible  <bruno@clisp.org>
57513
57514         * doc/quote.texi: New file, extracted from gnulib.texi.
57515         * doc/ctime.texi: New file, extracted from gnulib.texi.
57516         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57517         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57518         * doc/gnulib.texi: Include them.
57519
57520 2005-09-18  Bruno Haible  <bruno@clisp.org>
57521
57522         Portability fix.
57523         * gnulib-tool (func_readlink): New function.
57524         (func_ln_if_changed): Use it.
57525
57526 2005-09-18  Bruno Haible  <bruno@clisp.org>
57527
57528         * gnulib-tool: Support --with-tests also with --import.
57529         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57530         (func_import): Use variables $testsbase and $inctests. Emit a
57531         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57532         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57533         SUBDIRS += $testsdir.
57534         (func_create_testdir): Update.
57535
57536 2005-09-18  Bruno Haible  <bruno@clisp.org>
57537
57538         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57539         instead of $dry_run.
57540         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57541         (func_ln_if_changed): Don't handle dry-run here.
57542         (func_import): In dry-run mode, detect more precisely which actions
57543         would be performed, and don't use "...ing" verbs.
57544
57545 2005-09-18  Bruno Haible  <bruno@clisp.org>
57546
57547         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57548         (func_import): Use join on two temporary files instead of three nested
57549         loops, in order to determine which files are new or old.
57550
57551 2005-09-18  Bruno Haible  <bruno@clisp.org>
57552
57553         * gnulib-tool (func_import): Comment out code that spits out the
57554         new files with --dry-run.
57555
57556 2005-09-18  Bruno Haible  <bruno@clisp.org>
57557
57558         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57559
57560 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * lib/stat-time.h: New file.
57563         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57564         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57565         in a different way.
57566         (timespec_cmp): New function.
57567         * lib/utimecmp.c: Include stat-time.h.
57568         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57569         members exist, not on the obsolescent ST_MTIM_NSEC.
57570         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57571
57572 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57573
57574         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57575
57576 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         * MODULES.html.sh (File system functions): Add stat-time.
57579         * modules/stat-time: New file.
57580         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57581         is now done in a different way, by the stat-time module.
57582         * modules/utimecmp (Depends-on): Add stat-time.
57583
57584 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         * m4/st_mtim.m4: Remove.  Superseded by...
57587         * m4/stat-time.m4: New file.
57588         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57589         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57590
57591 2005-09-15  Derek Price  <derek@ximbiot.com>
57592
57593         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57594
57595 2005-09-15  Derek Price  <derek@ximbiot.com>
57596
57597         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57598         * lib/regex_internal.c: Ditto, using this...
57599         (__GNUC_PREREQ): ...new macro.
57600         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57601         using...
57602         (__GNUC_PREREQ): ...this new macro.
57603
57604         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57605
57606 2005-09-15  Derek Price  <derek@ximbiot.com>
57607             Paul Eggert  <eggert@cs.ucla.edu>
57608
57609         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57610         changes, consolidating in...
57611         * lib/regex_internal.h: ...this file.
57612
57613 2005-09-13  Jim Meyering  <jim@meyering.net>
57614
57615         * lib/canon-host.c: Filter through gnu indent and reword comments
57616         slightly.
57617         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57618
57619 2005-09-13  Derek Price  <derek@ximbiot.com>
57620
57621         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57622         failure.
57623         Reported by Jim Meyering  <jim@meyering.net>.
57624
57625 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57626
57627         * lib/base64.c: Typo.
57628         (base64_encode): Put b64str in initialized data section.
57629
57630 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         Merge glibc and coreutils changes into gnulib, plus a few
57633         extra fixes.
57634         * lib/md5.c: Use #error rather than a string.
57635         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57636         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57637         (__attribute__): Define to empty for non recent-GCC.
57638         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57639         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57640         Renamed from their non-__ counterparts, with new macros replacing
57641         them if not _LIBC.  Add __THROW attribute.
57642         (rol): Remove.
57643         (struct md5_ctx): Align buffer if using GCC.
57644         * lib/sha1.h (struct sha1_ctx): Likewise.
57645         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57646         The old name was backwards.
57647         (NOTSWAP): Remove; not used.
57648         (rol): New macro, moved here from md5.h.
57649         (sha1_process_block): Remove a FIXME that doesn't make sense.
57650
57651 2005-09-12  Derek Price  <derek@ximbiot.com>
57652
57653         Return usable errors from canon-host.
57654         * lib/canon-host.h: New file.
57655         * lib/canon-host.c (canon_host): Wrap...
57656         (canon_host_r): ...this new function, which now relies exclusively on
57657         getaddrinfo.
57658         (ch_strerror): New function.
57659         (last_cherror): New global.
57660         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57661         interface.
57662         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57663         void *.
57664         (freeaddrinfo): Free ai->ai_canonname when set.
57665
57666 2005-09-12  Derek Price  <derek@ximbiot.com>
57667
57668         Make canon-host require getaddrinfo.
57669         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57670         AC_LIBSOURCE canon-host.h.  Call...
57671         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57672         gl_GETADDRINFO.
57673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57674
57675 2005-09-12  Derek Price  <derek@ximbiot.com>
57676
57677         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57678         LGPL.
57679         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57680
57681 2005-09-12  Derek Price  <derek@ximbiot.com>
57682
57683         * lib/gai_strerror.c: Include config.h when available.  Include
57684         getaddrinfo.h before other headers to test interface.
57685         Reported by Larry Jones <lawrence.jones@ugs.com>.
57686
57687 2005-09-12  Derek Price  <derek@ximbiot.com>
57688             Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * modules/glob (Files): Add glob-libc.h.
57691
57692 2005-09-12  Derek Price  <derek@ximbiot.com>
57693             Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57696         glob_.h, glob-libc.h.
57697         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57698
57699 2005-09-12  Derek Price  <derek@ximbiot.com>
57700             Paul Eggert  <eggert@cs.ucla.edu>
57701
57702         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57703         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57704         protecting things that should be done only in gnulib contexts.
57705         * lib/glob_.h: New file, containing only the glob things needed for
57706         gnulib.
57707         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57708         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57709         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57710         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57711         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57712         and to respect the namespace rules better.
57713
57714 2005-09-08  Simon Josefsson  <jas@extundo.com>
57715
57716         * modules/socklen: New file.
57717
57718 2005-09-08  Simon Josefsson  <jas@extundo.com>
57719
57720         * m4/socklen.m4: New file.
57721
57722 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57723
57724         * modules/utimens (Files): Add m4/utimbuf.m4, since
57725         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57726         Reported by Sergey Poznyakoff.
57727
57728 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57729
57730         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57731         definitions, since that's the preferred style in glibc.
57732         Fix a minor spacing issue, and update copyright notice to match
57733         glibc's.
57734
57735 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57736
57737         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57738
57739 2005-09-06  Simon Josefsson  <jas@extundo.com>
57740
57741         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57742         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57743
57744 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57747         warning.
57748
57749 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * config/srclist.txt: Add glibc bug 1302.
57752
57753 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         Change bitset word type from unsigned int to unsigned long int,
57756         as this has better performance on typical 64-bit hosts.
57757         Port bitset code to hosts with unusual word sizes.
57758         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57759         (build_collating_symbol):
57760         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57761         argument is a bitset.  This is merely a style issue, but it makes
57762         it clearer that an entire array is expected.
57763         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57764         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57765         Port to the case where bitset_word is not the same as unsigned int.
57766         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57767         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57768         Likewise.
57769         * lib/regexec.c (check_dst_limits_calc_pos_1,
57770         check_subexp_matching_top):
57771         (build_trtable, group_nodes_into_DFAstates):
57772         Likewise.
57773         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57774         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57775         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57776         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57777         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57778         * lib/regcomp.c (optimize_subexps, lower_subexp):
57779         Work even if bitset_word has holes in its bitwise representation.
57780         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57781         * lib/regexec.c (check_dst_limits_calc_pos_1,
57782         check_subexp_matching_top):
57783         Likewise.
57784         * lib/regex_internal.c (re_string_reconstruct):
57785         Don't assume UCHAR_MAX == 255.
57786         * lib/regex_internal.h (bitset_set_all): Likewise.
57787         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57788         All uses changed.
57789         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57790         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57791         All uses changed.
57792         (BITSET_WORD_MAX): New macro.
57793         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57794         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57795         (bitset_empty, bitset_copy):
57796         Prefer sizeof (bitset) to multiplying it out ourselves.
57797         (bitset_not_merge): Remove; unused.
57798         (bitset_contain): Return bool, not unsigned int with one bit on.
57799         All callers changed.
57800         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57801         alignment than re_node_set; do this by defining a new internal
57802         type struct dests_alloc and using it to allocate memory.
57803
57804 2005-09-05  Bruno Haible  <bruno@clisp.org>
57805
57806         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57807         links.
57808
57809 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57810
57811         * modules/size_max (Makefile.am): Add size_max.h
57812
57813 2005-09-04  Derek Price  <derek@ximbiot.com>
57814
57815         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57816
57817 2005-09-03  Simon Josefsson  <jas@extundo.com>
57818
57819         * gnulib-tool: Fix typo.
57820
57821 2005-09-03  Simon Josefsson  <jas@extundo.com>
57822
57823         * config/srclist.txt: Add glibc bug 1293.
57824
57825 2005-09-03  Derek Price  <derek@ximbiot.com>
57826
57827         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57828         From Larry Jones <lawrence.jones@ugs.com>.
57829
57830 2005-09-02  Simon Josefsson  <jas@extundo.com>
57831
57832         * modules/socklen: New file.
57833
57834 2005-09-02  Simon Josefsson  <jas@extundo.com>
57835
57836         * modules/havelib: New module.
57837
57838         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57839         Use havelib.
57840
57841 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57842
57843         Check for arithmetic overflow when calculating sizes, to prevent
57844         some buffer-overflow issues.  These patches are conservative, in the
57845         sense that when I couldn't determine whether an overflow was possible,
57846         I inserted a run-time check.
57847         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57848         macros.
57849         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57850         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57851         (re_xnrealloc, re_x2nrealloc): New inline functions.
57852         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57853         parse_bracket_exp):
57854         (build_equiv_class, build_charclass): Check for arithmetic overflow
57855         in size expression calculations.
57856         * lib/regex_internal.c (re_string_realloc_buffers):
57857         (build_wcs_upper_buffer, re_node_set_add_intersect):
57858         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57859         (re_dfa_add_node, register_state): Likewise.
57860         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
57861         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
57862         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
57863         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
57864
57865 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57866
57867         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
57868         m4/ulonglong.m4.  Problem reported by Martin Lambers.
57869
57870 2005-09-02  Bruno Haible  <bruno@clisp.org>
57871
57872         Support for lib vs. lib64 distinction on biarch platforms.
57873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
57874         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
57875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
57876
57877 2005-09-02  Bruno Haible  <bruno@clisp.org>
57878
57879         * gnulib-tool (import): In the other first-use case, provide defaults
57880         as well.
57881
57882 2005-09-02  Bruno Haible  <bruno@clisp.org>
57883
57884         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
57885         patches not yet found in the latest gettext release.
57886
57887 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
57890         to avoid a collision with bits/local_lim.h in glibc.
57891         All uses changed.  Problem reported by Dmitry V. Levin in
57892         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
57893
57894         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
57895         bugs in int versus size_t comparisons.
57896         (re_string_context_at): Fix bug where the code assumed that
57897         Idx is signed.
57898
57899         Use bool where appropriate.
57900         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
57901         All callers changed.
57902         (calc_eclosure_iter): Likewise, for ROOT arg.
57903         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
57904         (build_charclass_op): Likewise, for NON_MATCH arg.
57905         * lib/regex_internal.c (re_string_allocate, re_string_construct):
57906         (re_string_construct_common): Likewise, for ICASE arg.
57907         * lib/regexec.c (re_search_2_stub, re_search_stub):
57908         Likewise, for RET_LEN arg.
57909         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
57910         (set_regs): Likewise, for FL_BACKTRACK arg.
57911         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
57912         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
57913         (calc_eclosure_iter, parse_bracket_exp):
57914         Use bool for internal variables that are booleans.
57915         * lib/regexec.c (re_search_internal, check_matching,
57916         proceed_next_node):
57917         (set_regs, build_sifted_states, sift_states_bkref):
57918         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
57919         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57920         (find_collation_sequence_value):
57921         Likewise.
57922         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
57923         (re_node_set_compare):
57924         Return bool, not int. All callers changed.
57925         * lib/regexec.c (check_halt_node_context, check_dst_limits):
57926         (build_trtable, check_node_accept): Likewise.
57927         * lib/regex_internal.h: Include stdbool.h.
57928
57929         Fix bugs uncovered when converting to bool.
57930         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
57931         failure instead of charging ahead blindly.
57932         * lib/regex_internal.c (register_state): Likewise.
57933         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
57934         for freeing internal storage.
57935         (group_nodes_into_DFA_states): Use unsigned int, not int, for
57936         bitset pieces used as boolean, to avoid undefined behavior
57937         on hosts that do int overflow checking.
57938
57939 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         * config/srclist.txt: Add glibc bugs 1285-1287.
57942
57943 2005-09-01  Jim Meyering  <jim@meyering.net>
57944
57945         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
57946         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
57947         Require gl_STAT_MACROS, too.
57948
57949 2005-09-01  Bruno Haible  <bruno@clisp.org>
57950
57951         * gnulib-tool (import): In the first-use case, provide defaults.
57952
57953 2005-09-01  Bruno Haible  <bruno@clisp.org>
57954
57955         * gnulib-tool (func_import): Remove the .tmp files.
57956
57957 2005-09-01  Bruno Haible  <bruno@clisp.org>
57958
57959         * gnulib-tool (func_import): Fix handling of symbolic links.
57960
57961 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
57964         old glibc regex code mishandles strings longer than 2**31 bytes.
57965         This patch fixes this when the regex code is used in gnulib
57966         (i.e., outside glibc).
57967
57968         This patch should not affect the use of the regex code inside
57969         glibc.  No doubt this problem also needs to be handled for glibc
57970         as well, but the result will be an incompatible change to the
57971         glibc ABI, and the old ABI will have to be supported too.  That
57972         can be the the subject for another patch.
57973
57974         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
57975         governing whether the rest of this patch is active.  By default,
57976         the macro is disabled and the patch has no effect.
57977         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
57978         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
57979         (struct re_pattern_buffer, re_search, re_search_2, re_match):
57980         (re_match_2, re_set_registers): Use the new types.
57981         * lib/regex_internal.h (Idx, re_hashval_t): New types.
57982         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
57983         New macros.
57984         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
57985         (re_string_context_at, bin_tree_t, re_dfastate_t):
57986         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
57987         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
57988         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
57989         (re_string_char_size_at, re_string_wchar_at):
57990         (re_string_elem_size_at):
57991         Use the new types and macros to port to 64-bit hosts.
57992         Use unsigned types for internal values, so that the code
57993         mostly works even for arrays larger than SSIZE_MAX.
57994         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
57995         (search_duplicated_node, calc_eclosure_iter, fetch_number):
57996         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
57997         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
57998         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
57999         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58000         (calc_inveclosure, parse_dup_op, build_range_exp):
58001         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58002         (fetch_number, create_token_tree, mark_opt_subexp):
58003         Likewise.
58004         * lib/regex_internal.c (re_string_construct_common,
58005         create_ci_newstate):
58006         (create_cd_newstate, re_string_allocate, re_string_construct):
58007         (re_string_realloc_buffers, build_wcs_upper_buffer):
58008         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58009         (re_string_reconstruct, re_string_peek_byte_case):
58010         (re_string_fetch_byte_case, re_string_context_at):
58011         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58012         (re_node_set_init_copy, re_node_set_add_intersect):
58013         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58014         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58015         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58016         (re_acquire_state, re_acquire_state_context, register_state):
58017         Likewise.
58018         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58019         search_cur_bkref_entry):
58020         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58021         (re_search_internal, re_search_2_stub, re_search_stub)
58022         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58023         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58024         (update_cur_sifted_state, check_dst_limits):
58025         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58026         (check_subexp_limits, sift_states_bkref, merge_state_array):
58027         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58028         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58029         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58030         (expand_bkref_cache, check_node_accept_bytes):
58031         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58032         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58033         (acquire_init_state_context, check_halt_node_context):
58034         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58035         (sift_states_backward, clean_state_log_if_needed):
58036         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58037         (find_recover_state, transit_state_sb, transit_state_mb):
58038         (transit_state_bkref, build_trtable, match_ctx_clean):
58039         Likewise.
58040         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58041         to work around an assumption that REG_MISSING is negative.
58042
58043         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58044         (seek_collating_symbol_entry) [defined _LIBC]:
58045         (lookup_collation_sequence_value) [defined _LIBC]:
58046         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58047         Use prototypes rather than old-style function definitions.
58048         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58049         (transit_state_sb) [0]:
58050         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58051
58052         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58053         rm_eo.
58054
58055         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58056         (optimize_subexps, lower_subexp):
58057         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58058         since the signed shift might overflow.  Use 1u<<31 instead.
58059         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58060         Likewise.
58061         * lib/regexec.c (check_dst_limits_calc_pos_1,
58062         check_subexp_matching_top): Likewise.
58063
58064         * lib/regcomp.c (optimize_subexps, lower_subexp):
58065         Use CHAR_BIT rather than 8, for clarity.
58066         * lib/regexec.c (check_dst_limits_calc_pos_1):
58067         (check_subexp_matching_top): Likewise.
58068         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58069         have to worry about portability issues when shifting it left.
58070         Remove no-longer-needed test for table_size > 0.
58071         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58072         in a word, as the resulting behavior is undefined.
58073         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58074         in one case, a <= should have been an <, and in another case the
58075         whole test was missing.
58076         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58077         the standard name CHAR_BIT.
58078         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58079         this is not true on one's complement and signed-magnitude hosts.
58080
58081         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58082         next_last_offset.
58083         (struct re_dfa_t): Remove unused member states_alloc.
58084         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58085
58086 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58089         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58090         and large-file glibc and in 32-bit large-file Solaris.
58091
58092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58095         lengths fit in regoff_t; this isn't true if regoff_t is the same
58096         width as size_t.
58097         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58098         (= START + RANGE) instead of RANGE.  This avoids overflow
58099         problems when regoff_t is the same width as size_t.
58100         All callers changed.
58101         (re_search_2_stub): Check for overflow when adding the
58102         sizes of the two strings.
58103         (re_search_stub): Check for overflow when adding START
58104         to RANGE; if it occurs, substitute the extreme value.
58105
58106 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58109
58110 2005-08-31  Jim Meyering  <jim@meyering.net>
58111
58112         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58113         a pointer-to-const.
58114         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58115         (register_state): Likewise.
58116         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58117         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58118         (group_nodes_into_DFAstates): Likewise.
58119
58120 2005-08-31  Jim Meyering  <jim@meyering.net>
58121
58122         * check-module: Add a FIXME comment.
58123
58124 2005-08-31  Eric Blake  <ebb9@byu.net>
58125
58126         * modules/unistd-safer (Files): Add unistd--.h.
58127         * modules/stdio-safer (Files): Add stdio--.h.
58128
58129 2005-08-31  Derek Price  <derek@ximbiot.com>
58130
58131         * lib/getdelim.c (getdelim): Return EOF on EOF.
58132         Reported by Larry Jones <lawrence.jones@ugs.com>.
58133
58134 2005-08-31  Bruno Haible  <bruno@clisp.org>
58135
58136         Avoid unnecessary diffs in the generated lib/Makefile.am.
58137         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58138         the generated files.
58139         (func_import): Don't set cmd.
58140
58141 2005-08-31  Bruno Haible  <bruno@clisp.org>
58142
58143         * lib/strstr.c: Include <stddef.h>, for NULL.
58144         * lib/strcasestr.c: Likewise.
58145         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58146
58147 2005-08-31  Bruno Haible  <bruno@clisp.org>
58148
58149         * gnulib-tool: New option --macro-prefix.
58150         (func_import): Use macro_prefix.
58151         (import): Handle option --macro-prefix.
58152
58153 2005-08-31  Bruno Haible  <bruno@clisp.org>
58154
58155         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58156         Also use new variables cached_lgpl, cached_libtool.
58157
58158 2005-08-31  Bruno Haible  <bruno@clisp.org>
58159
58160         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58161         always instantiating them.
58162
58163 2005-08-31  Bruno Haible  <bruno@clisp.org>
58164
58165         * gnulib-tool (func_import): Read the previous cached settings
58166         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58167         earlier added by gnulib but are now dropped. Warn when a gnulib file
58168         overwrites a non-gnulib file.
58169
58170 2005-08-31  Bruno Haible  <bruno@clisp.org>
58171
58172         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58173         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58174         projects that don't keep autogenerated files in CVS. Put into
58175         actioncmd only the specified modules, not the transitive closure.
58176
58177 2005-08-31  Bruno Haible  <bruno@clisp.org>
58178
58179         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58180         Create directories that shall be filled.
58181         (import): Don't look for gl_* macros in configure.ac. Recurse across
58182         all directories containing a gnulib-cache.m4 files, if meaningful.
58183
58184 2005-08-31  Bruno Haible  <bruno@clisp.org>
58185
58186         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58187         (import): Set seen_libtool when we see gl_LIBTOOL.
58188
58189 2005-08-31  Bruno Haible  <bruno@clisp.org>
58190
58191         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58192         declaration macro definitions from generated gnulib.m4.
58193
58194 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58195
58196         * lib/iconvme.h: Add prototype for iconv_alloc.
58197
58198 2005-08-29  Simon Josefsson  <jas@extundo.com>
58199
58200         * lib/iconvme.c: Fix errno.
58201
58202 2005-08-29  Bruno Haible  <bruno@clisp.org>
58203
58204         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58205         that it works when the directory contains spaces.
58206
58207 2005-08-29  Bruno Haible  <bruno@clisp.org>
58208
58209         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58210
58211 2005-08-29  Bruno Haible  <bruno@clisp.org>
58212
58213         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58214         Emit more advice.
58215
58216 2005-08-29  Bruno Haible  <bruno@clisp.org>
58217         and Stepan Kasal  <kasal@ucw.cz>
58218
58219         * check-module: If more parameters are given, check each of them
58220         separately; add more exceptions, as noted by Jim Meyering.
58221         (check_module): New procedure.
58222         (%exempt_header): Now contains all exceptions.
58223
58224 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58225
58226         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58227
58228 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58229
58230         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58231
58232 2005-08-28  Bruno Haible  <bruno@clisp.org>
58233
58234         * m4/gnulib-tool.m4: New file.
58235
58236 2005-08-27  Jim Meyering  <jim@meyering.net>
58237
58238         * modules/unistd-safer (Files): Add pipe-safer.c.
58239         * modules/fcntl-safer (Files): Add creat-safer.c.
58240
58241 2005-08-27  Jim Meyering  <jim@meyering.net>
58242
58243         * m4/stdlib-safer.m4: New file.  From coreutils.
58244         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58245         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58246         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58247         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58248         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58249
58250 2005-08-27  Jim Meyering  <jim@meyering.net>
58251
58252         * lib/fopen-safer.c: Merge minor changes from coreutils.
58253         * lib/dup-safer.c: Likewise.
58254         * lib/fd-safer.c: Likewise.
58255
58256         Merge from coreutils.
58257         * lib/stdio--.h: New file.
58258         * lib/stdlib--.h: New file.
58259         * lib/mkstemp-safer.c: New file.
58260
58261         GNU tar needs these.
58262         * lib/pipe-safer.c: New file.
58263         * lib/creat-safer.c: New file.
58264         * lib/fcntl--.h (creat): Define to creat_safer.
58265         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58266         * lib/unistd--.h (pipe): Define to pipe_safer.
58267         * lib/unistd-safer.h: Declare pipe_safer.
58268
58269 2005-08-26  Simon Josefsson  <jas@extundo.com>
58270
58271         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58272         Haible <bruno@clisp.org>.
58273
58274 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58275
58276         * lib/regex_internal.h: Remove all references to
58277         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58278         or better.
58279         (bitset_not, bitset_merge, bitset_not_merge):
58280         (bitset_mask, re_string_allocate, re_string_construct):
58281         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58282         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58283         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58284         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58285         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58286         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58287         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58288         (re_acquire_state_context):
58289         Remove unnecessary forward decls.
58290         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58291         Put __attribute at function definition,
58292         now that the function decl has been removed.
58293         * lib/regex_internal.c (re_string_peek_byte_case):
58294         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58295         Likewise.
58296
58297 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58298
58299         * m4/regex.m4: Add AC_PREREQ(2.50).
58300         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58301
58302 2005-08-25  Simon Josefsson  <jas@extundo.com>
58303
58304         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58305         __fsetlocking.
58306
58307 2005-08-25  Simon Josefsson  <jas@extundo.com>
58308
58309         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58310         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58311         GLIBC specific code.
58312
58313 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         Make regex safe for g++.  This fixes one real bug (an "err"
58316         that should have been "*err").  g++ problem reported by
58317         Sam Steingold.
58318         * lib/regex_internal.h (re_calloc): New macro, consistent with
58319         re_malloc etc.  All callers of calloc changed to use re_calloc.
58320         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58321         not int.  All callers changed.
58322         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58323         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58324         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58325         (find_recover_state): Change "err" to "*err"; this fixes what
58326         appears to be a real bug.
58327         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58328         versus int.
58329
58330 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         * modules/regex (Depends-on): Add malloc, since the code
58333         assumes that !malloc(0) means failure.
58334
58335 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58336
58337         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58338
58339         alloca modernization/simplification for regex.
58340         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58341         needs to be at the start of the file, and can be moved into
58342         regex_internal.h and simplified.
58343         * lib/regex_internal.h: Include <alloca.h>.
58344         (__libc_use_alloca) [!defined _LIBC]: New macro.
58345         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58346         now works outside glibc.
58347
58348 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * config/srclist.txt: Add glibc bugs 1241, 1245.
58351
58352 2005-08-25  Jim Meyering  <jim@meyering.net>
58353
58354         * lib/open-safer.c: Include <config.h>.
58355         Otherwise, we'd lose LARGEFILE support in any file using
58356         e.g. "fcntl--.h"
58357
58358 2005-08-25  Bruno Haible  <bruno@clisp.org>
58359
58360         * m4/minmax.m4: Require autoconf 2.52.
58361         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58362         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58363         alternatives of translit over the alphabet.
58364         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58365
58366 2005-08-24  Simon Josefsson  <jas@extundo.com>
58367
58368         * tests/test-getpass.c: New file.
58369
58370 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58371
58372         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58373         for GNU regex features.
58374
58375 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58376
58377         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58378         * lib/regex.h (regerror): Likewise.
58379
58380         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58381         requires this.  (The code never needed it.)
58382
58383         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58384         All uses of recently-renamed identifiers changed to use the new,
58385         POSIX-compliant names.  The code will build and run just fine
58386         without these changes, but it's better to eat our own dog food
58387         and use the standard-conforming names.
58388
58389         * lib/regex.h: Fix a multitude of POSIX name space violations.
58390         These changes have an effect only for programs that define
58391         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58392         do not change anything for programs compiled in the normal way.
58393         Also, there is no effect on the ABI.
58394
58395         (_REGEX_SOURCE): New macro.
58396         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58397         defined and _GNU_SOURCE is not; this fixes a name space violation.
58398
58399         Rename the following macros to obey POSIX requirements.
58400         The old names are still visible as macros if _REGEX_SOURCE is defined.
58401         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58402         RE_BACKSLASH_ESCAPE_IN_LISTS.
58403         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58404         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58405         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58406         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58407         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58408         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58409         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58410         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58411         (REG_INTERVALS): renamed from RE_INTERVALS.
58412         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58413         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58414         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58415         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58416         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58417         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58418         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58419         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58420         RE_UNMATCHED_RIGHT_PAREN_ORD.
58421         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58422         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58423         (REG_DEBUG): renamed from RE_DEBUG.
58424         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58425         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58426         unusual, since we can't clash with the POSIX REG_ICASE.
58427         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58428         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58429         (REG_NO_SUB): renamed from RE_NO_SUB.
58430         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58431         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58432         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58433         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58434         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58435         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58436         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58437         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58438         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58439         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58440         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58441         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58442         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58443         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58444         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58445         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58446         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58447         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58448         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58449         (REG_FIXED): Renamed from REGS_FIXED.
58450         (REG_NREGS): Renamed from RE_NREGS.
58451
58452         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58453         of other REG_* macros, since POSIX says the user is allowed to
58454         #undef these macros selectively.
58455
58456         (reg_errcode_t): Update comment stating what other tables need
58457         to be consistent.
58458
58459         Rename the following enum values to obey POSIX requirements.
58460         The old names are still visible as macros.
58461         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58462         is not defined, since GNU is supposed to be a superset of POSIX as
58463         much as possible, and since we want reg_errcode_t to be a signed
58464         type for implementation consistency.
58465         (_REG_NOERROR): Renamed from REG_NOERROR.
58466         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58467         (_REG_BADPAT): Renamed from REG_BADPAT.
58468         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58469         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58470         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58471         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58472         (_REG_EBRACK): Renamed from REG_EBRACK.
58473         (_REG_EPAREN): Renamed from REG_EPAREN.
58474         (_REG_EBRACE): Renamed from REG_EBRACE.
58475         (_REG_BADBR): Renamed from REG_BADBR.
58476         (_REG_ERANGE): Renamed from REG_ERANGE.
58477         (_REG_ESPACE): Renamed from REG_ESPACE.
58478         (_REG_BADRPT): Renamed from REG_BADRPT.
58479         (_REG_EEND): Renamed from REG_EEND.
58480         (_REG_ESIZE): Renamed from REG_ESIZE.
58481         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58482         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58483         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58484         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58485         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58486
58487         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58488         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58489         changed.  But support the old name if the new one is not defined
58490         and if _REGEX_SOURCE.
58491
58492         Change the following member names in struct re_pattern_buffer.
58493         The old names are still supported if !_REGEX_SOURCE.
58494         The new names are always supported, regardless of _REGEX_SOURCE.
58495         (re_buffer): Renamed from buffer.
58496         (re_allocated): Renamed from allocated.
58497         (re_used): Renamed from used.
58498         (re_syntax): Renamed from syntax.
58499         (re_fastmap): Renamed from fastmap.
58500         (re_translate): Renamed from translate.
58501         (re_can_be_null): Renamed from can_be_null.
58502         (re_regs_allocated): Renamed from regs_allocated.
58503         (re_fastmap_accurate): Renamed from fastmap_accurate.
58504         (re_no_sub): Renamed from no_sub.
58505         (re_not_bol): Renamed from not_bol.
58506         (re_not_eol): Renamed from not_eol.
58507         (re_newline_anchor): Renamed from newline_anchor.
58508
58509         Change the following member names in struct re_registers.
58510         The old names are still supported if !_REGEX_SOURCE.
58511         The new names are always supported, regardless of _REGEX_SOURCE.
58512         (rm_num_regs): Renamed from num_regs.
58513         (rm_start): Renamed from start.
58514         (rm_end): Renamed from end.
58515
58516         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58517         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58518         Prepend __ to parameter names.
58519
58520         Undo yesterday's changes.
58521
58522 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58523
58524         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58525         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58526         lib/regex.c.
58527
58528 2005-08-24  Jim Meyering  <jim@meyering.net>
58529
58530         Sync from coreutils.
58531         * m4/fcntl-safer.m4: New file.
58532
58533         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58534         and object files for this module.
58535
58536 2005-08-24  Jim Meyering  <jim@meyering.net>
58537
58538         Sync from coreutils.
58539         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58540
58541 2005-08-24  Jim Meyering  <jim@meyering.net>
58542
58543         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58544         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58545
58546 2005-08-24  Jim Meyering  <jim@meyering.net>
58547
58548         * modules/fcntl-safer: New module.
58549         * modules/fts (Depends-on): Add fcntl-safer.
58550         * MODULES.html.sh (File descriptor based Input/Output):
58551         Add fcntl-safer.
58552
58553 2005-08-24  Bruno Haible  <bruno@clisp.org>
58554
58555         Support for unit test modules.
58556         * modules/README: Mention tests modules.
58557         * modules/TEMPLATE-TESTS: New file.
58558         * gnulib-tool: New options --extract-tests-module, --with-tests and
58559         --tests-base (unused for the moment).
58560         (testsbase, inctests): New variables.
58561         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58562         (func_verify_module): Exclude TEMPLATE-TESTS.
58563         (func_verify_nontests_module, func_verify_tests_module): New functions.
58564         (func_get_dependencies): Add implicit dependency for tests modules.
58565         (func_get_tests_module): New function.
58566         (func_modules_transitive_closure): When --with-tests was specified,
58567         include the unit tests as well, unless explicitly avoided.
58568         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58569         (func_emit_tests_Makefile_am): New function.
58570         (func_create_testdir): When --with-tests was specified, emit a
58571         tests/ directory.
58572         * MODULES.html.sh (Future developments): Update.
58573
58574 2005-08-24  Bruno Haible  <bruno@clisp.org>
58575
58576         * modules/tls-tests: New file.
58577         * tests/test-tls.c: New file, from GNU gettext.
58578
58579 2005-08-24  Bruno Haible  <bruno@clisp.org>
58580
58581         * modules/lock-tests: New file.
58582         * tests/test-lock.c: New file, from GNU gettext.
58583
58584 2005-08-24  Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/lock.h: Add multiple inclusion guard.
58587         * lib/tls.h: Add multiple inclusion guard.
58588
58589 2005-08-24  Bruno Haible  <bruno@clisp.org>
58590
58591         * gnulib-tool: Add support for the --aux-dir option to
58592         --create-testdir, --create-megatestdir, --test, --megatest.
58593         (func_create_testdir, func_create_megatestdir): Optionally emit a
58594         AC_CONFIG_AUX_DIR directive.
58595         (create-testdir, create-megatestdir, test, megatest): Provide a
58596         default value for $auxdir.
58597
58598 2005-08-24  Bruno Haible  <bruno@clisp.org>
58599
58600         * gnulib-tool (import): Use compound statement instead of subshell
58601         where possible.
58602
58603 2005-08-24  Bruno Haible  <bruno@clisp.org>
58604
58605         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58606
58607 2005-08-24  Bruno Haible  <bruno@clisp.org>
58608
58609         * gnulib-tool (func_version): Update.
58610
58611 2005-08-24  Bruno Haible  <bruno@clisp.org>
58612
58613         * gnulib-tool (func_import, func_create_testdir,
58614         func_create_megatestdir): Quote all autoconf macro arguments.
58615
58616 2005-08-24  Bruno Haible  <bruno@clisp.org>
58617
58618         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58619         option --force, because --force causes the aclocal.m4 of each
58620         subdirectory to be newer than the corresponding config.h.in.
58621
58622 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58623
58624         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58625         All contents moved to gl_REGEX.
58626         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58627         assume that it does.
58628
58629 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58630
58631         * lib/regex.h (REG_NOSYS)
58632         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58633         Define, since POSIX requires it as of 2001.
58634         (_REG_ENOSYS)
58635         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58636         New private symbol, used to keep the enum signed in all cases.
58637         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58638         Youngman in
58639         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58640
58641         * lib/regex_internal.c (re_string_skip_chars, register_state):
58642         (calc_state_hash):
58643         Remove forward decls; no longer needed now that we use prototypes.
58644         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58645         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58646         (clean_state_log_if_needed): Likewise.
58647
58648 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58649
58650         * config/srclist.txt: Add glibc bugs 1231-1233.
58651
58652 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58653
58654         Fix problems reported by Sam Steingold in
58655         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58656         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58657         assumed that reg_errcode_t is a signed type, which is not
58658         necessarily true if _XOPEN_SOURCE is not defined.
58659         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58660         since some compilers warn about it otherwise.
58661
58662 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58663
58664         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58665         (init_word_char, create_initial_state, duplicate_node_closure):
58666         (fetch_token, peek_token_bracket, build_range_exp):
58667         (build_collating_symbol): Remove forward decls; no longer needed
58668         now that we use prototypes.
58669
58670         * lib/regcomp.c:
58671         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58672         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58673         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58674         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58675         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58676         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58677         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58678         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58679         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58680         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58681         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58682         (build_charclass, build_charclass_op, fetch_number, create_tree):
58683         (create_token_tree, mark_opt_subexp, duplicate_tree):
58684         Use prototypes rather than old-style definitions.
58685
58686         * lib/regex_internal.c:
58687         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58688         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58689         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58690         (re_string_reconstruct, re_string_peek_byte_case):
58691         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58692         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58693         (re_node_set_init_copy, re_node_set_add_intersect):
58694         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58695         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58696         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58697         (re_acquire_state, re_acquire_state_context, register_state):
58698         (create_ci_newstate, create_cd_newstate, free_state):
58699         Likewise.
58700         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58701         re_search_2):
58702         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58703         (re_search_internal, prune_impossible_nodes):
58704         (acquire_init_state_context, check_matching, static):
58705         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58706         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58707         (update_regs, sift_states_backward, build_sifted_states):
58708         (clean_state_log_if_needed, merge_state_array):
58709         (update_cur_sifted_state, add_epsilon_src_nodes):
58710         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58711         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58712         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58713         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58714         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58715         (check_arrival, check_arrival_add_next_nodes):
58716         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58717         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58718         (check_node_accept_bytes, check_node_accept, extend_buffers):
58719         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58720         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58721         (sift_ctx_init):
58722         Likewise.
58723
58724         * lib/regex_internal.h:
58725         (re_string_allocate, re_string_construct, re_string_reconstruct):
58726         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58727         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58728         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58729         (re_string_context_at, re_string_peek_byte_case):
58730         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58731         is defined, since we now use prototypes always.
58732
58733         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58734         C89 or better.  All uses removed.
58735
58736 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58737
58738         * config/srclist.txt: Add glibc bugs 1220-1227.
58739
58740 2005-08-20  Jim Meyering  <jim@meyering.net>
58741
58742         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58743         of unused local, dfa.
58744
58745 2005-08-20  Bruno Haible  <bruno@clisp.org>
58746
58747         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58748
58749 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58752         (re_node_set_insert_last, re_dfa_add_node):
58753         Rename local variables to avoid GCC shadowing warnings.
58754
58755 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58758         [defined lint]: Suppress bogus uninitialized-variable warnings.
58759
58760         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58761         and let the caller return REG_ESPACE if out of space.  This
58762         removes an uninitialied-variable warning with GCC 4.0.1, and also
58763         avoids taking the address of a local variable.  All callers
58764         changed.
58765
58766 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58767
58768         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58769         $LIBCSRC/posix/regexec.c.
58770         Add glibc bug 1217 for regcomp.c.
58771
58772 2005-08-19  Jim Meyering  <jim@meyering.net>
58773
58774         * lib/regexec.c (proceed_next_node): Redo local variables to
58775         avoid GCC shadowing warnings.
58776
58777 2005-08-18  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/strstr.c (strstr): Fix return value in multibyte case.
58780         * lib/strcasestr.c (strcasestr): Likewise.
58781
58782 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58785
58786 2005-08-17  Jim Meyering  <jim@meyering.net>
58787
58788         Make the %s format (seconds since the epoch) work for a negative
58789         number and when used with a zero-padded field width, e.g. %015s.
58790
58791         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58792         label so that it precedes the code to set `digits'.  Otherwise,
58793         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58794         print `00-22'.  Now, it prints `-0022', as it should.
58795
58796 2005-08-17  Bruno Haible  <bruno@clisp.org>
58797
58798         * modules/strstr (Files): Add m4/mbrtowc.m4.
58799         (Depends-on): Add mbuiter.
58800
58801 2005-08-17  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/strcasestr: New file.
58804         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58805         strcasestr.
58806
58807 2005-08-17  Bruno Haible  <bruno@clisp.org>
58808
58809         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58810
58811 2005-08-17  Bruno Haible  <bruno@clisp.org>
58812
58813         * modules/mbuiter: New file.
58814         * MODULES.html.sh (Extended multibyte and wide character utilities):
58815         Add mbuiter.
58816
58817 2005-08-17  Bruno Haible  <bruno@clisp.org>
58818
58819         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58820         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58821
58822 2005-08-17  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/strcasestr.m4: New file.
58825
58826 2005-08-17  Bruno Haible  <bruno@clisp.org>
58827
58828         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58829         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58830
58831 2005-08-17  Bruno Haible  <bruno@clisp.org>
58832
58833         * lib/strcasestr.h: New file.
58834         * lib/strcasestr.c: New file.
58835
58836 2005-08-17  Bruno Haible  <bruno@clisp.org>
58837
58838         * lib/strcasecmp.c: Use mbuiter.h.
58839
58840 2005-08-17  Bruno Haible  <bruno@clisp.org>
58841
58842         * lib/mbuiter.h: New file.
58843
58844 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58845
58846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58847         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58848         and gl_GETOPT are both invoked via different paths (as happens
58849         with GNU tar CVS because it uses both argp and getopt), the former
58850         wins.
58851
58852 2005-08-16  Bruno Haible  <bruno@clisp.org>
58853
58854         * modules/tls: New file.
58855         * MODULES.html.sh (Multithreading): Add tls.
58856
58857 2005-08-16  Bruno Haible  <bruno@clisp.org>
58858
58859         * modules/strnlen1: New file.
58860         * MODULES.html.sh (String handling): Add strnlen1.
58861
58862 2005-08-16  Bruno Haible  <bruno@clisp.org>
58863
58864         * modules/strcase (Files): Add m4/mbrtowc.m4.
58865         (Depends-on): Add strnlen1, mbchar.
58866
58867 2005-08-16  Bruno Haible  <bruno@clisp.org>
58868
58869         * modules/mbiter: New file.
58870         * MODULES.html.sh (Extended multibyte and wide character utilities):
58871         Add mbiter.
58872
58873 2005-08-16  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/mbfile: New file.
58876         * MODULES.html.sh (Extended multibyte and wide character utilities):
58877         Add mbfile.
58878
58879 2005-08-16  Bruno Haible  <bruno@clisp.org>
58880
58881         * modules/mbchar: New file.
58882         * MODULES.html.sh (Extended multibyte and wide character utilities):
58883         New section.
58884
58885 2005-08-16  Bruno Haible  <bruno@clisp.org>
58886
58887         * m4/tls.m4: New file, from GNU gettext.
58888
58889 2005-08-16  Bruno Haible  <bruno@clisp.org>
58890
58891         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
58892         always.
58893         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
58894
58895 2005-08-16  Bruno Haible  <bruno@clisp.org>
58896
58897         * m4/mbiter.m4: New file.
58898
58899 2005-08-16  Bruno Haible  <bruno@clisp.org>
58900
58901         * m4/mbfile.m4: New file.
58902
58903 2005-08-16  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/mbchar.m4: New file.
58906
58907 2005-08-16  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/tls.h: New file, from GNU gettext.
58910         * lib/tls.c: New file, from GNU gettext.
58911
58912 2005-08-16  Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/strnlen1.h: New file.
58915         * lib/strnlen1.c: New file.
58916
58917 2005-08-16  Bruno Haible  <bruno@clisp.org>
58918
58919         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
58920         (mbi_init): Update.
58921         (mbi_avail, mbi_advance): Let the iteration end before the terminating
58922         NUL byte, not after it.
58923
58924 2005-08-16  Bruno Haible  <bruno@clisp.org>
58925
58926         * lib/strcase.h (strcasecmp): Add note in comments.
58927         * lib/strncasecmp.c: Use code from strcasecmp.c.
58928         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
58929         (strcasecmp): Work correctly in multibyte locales.
58930
58931 2005-08-16  Bruno Haible  <bruno@clisp.org>
58932
58933         * lib/mbiter.h: New file.
58934
58935 2005-08-16  Bruno Haible  <bruno@clisp.org>
58936
58937         * lib/mbfile.h: New file.
58938
58939 2005-08-16  Bruno Haible  <bruno@clisp.org>
58940
58941         * lib/mbchar.h: New file.
58942         * lib/mbchar.c: New file.
58943
58944 2005-08-16  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
58947         the valid ones. Makes the comparison operations transitive:
58948         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
58949         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
58950
58951 2005-08-15  Simon Josefsson  <jas@extundo.com>
58952
58953         * modules/ssize_t (License): Change to 'unlimited'.
58954
58955         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
58956
58957 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58958
58959         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
58960         Add comments for each pending glibc patch.
58961
58962 2005-08-15  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/regex.h (__restrict_arr): Don't define to __restrict if
58965         __cplusplus is defined.
58966
58967 2005-08-14  Jim Meyering  <jim@meyering.net>
58968
58969         Sync from coreutils.
58970
58971         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
58972         Use the hash-table-based cycle-detection code not just when
58973         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
58974         Reported by James Youngman in
58975         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
58976         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
58977         FTS_TIGHT_CYCLE_CHECK.
58978         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
58979         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
58980         once again.
58981         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
58982         * lib/fts.c (fd_safer): Remove decl.
58983         Include fcntl--.h rather than unistd-safer.h
58984         (fts_safe_changedir): Don't call fd_safer; no longer needed
58985         now that we include fcntl--.h.
58986
58987 2005-08-12  Simon Josefsson  <jas@extundo.com>
58988
58989         * modules/getndelim2: Use ssize_t module.
58990         * modules/getnline: Likewise.
58991         * modules/safe-read: Likewise.
58992         * modules/xreadlink: Likewise.
58993
58994         * modules/ssize_t: New file.
58995
58996 2005-08-12  Simon Josefsson  <jas@extundo.com>
58997
58998         * m4/readline.m4: Look for termcap, curses or ncurses if required.
58999
59000 2005-08-12  Simon Josefsson  <jas@extundo.com>
59001
59002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59003         ssize_t.
59004
59005 2005-08-12  Simon Josefsson  <jas@extundo.com>
59006
59007         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59008         readline, getdelim and check_version.
59009         (Support for systems lacking ISO C 99: Sizes of integer types):
59010         Add size_max.
59011
59012 2005-08-12  Bruno Haible  <bruno@clisp.org>
59013
59014         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59015
59016 2005-08-11  Simon Josefsson  <jas@extundo.com>
59017
59018         * modules/readline: New file.
59019
59020         * modules/strnlen (Files): Add strnlen.h.
59021
59022 2005-08-11  Simon Josefsson  <jas@extundo.com>
59023
59024         * m4/readline.m4: New file.
59025
59026 2005-08-11  Simon Josefsson  <jas@extundo.com>
59027
59028         * lib/readline.h, readline.c: New file.
59029
59030 2005-08-11  Simon Josefsson  <jas@extundo.com>
59031
59032         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59033         gl_AVOID.
59034
59035 2005-08-11  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59038
59039 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59040
59041         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59042
59043 2005-08-10  Simon Josefsson  <jas@extundo.com>
59044
59045         * tests/test-iconvme.c: New file.
59046
59047 2005-08-10  Simon Josefsson  <jas@extundo.com>
59048
59049         * m4/strnlen.m4: New file.
59050
59051         * m4/strndup.m4: Don't check for strnlen declaration, done in
59052         strnlen.m4.
59053
59054 2005-08-10  Simon Josefsson  <jas@extundo.com>
59055
59056         * lib/strndup.c: Use strnlen.h.
59057
59058         * lib/strnlen.h: New file.
59059
59060 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59061
59062         * README: Typos.
59063
59064 2005-08-02  Simon Josefsson  <jas@extundo.com>
59065
59066         * modules/readline: New file.
59067
59068 2005-08-02  Simon Josefsson  <jas@extundo.com>
59069
59070         * modules/getdelim: New file.
59071
59072         * modules/getline: Rewrite, don't use getndelim2.
59073
59074 2005-08-02  Simon Josefsson  <jas@extundo.com>
59075
59076         * m4/getline.m4: Separate out getdelim stuff into separate module.
59077
59078         * m4/getdelim.m4: New file.
59079
59080 2005-08-02  Simon Josefsson  <jas@extundo.com>
59081
59082         * lib/getline.h, getline.c: Rewrite.
59083
59084         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59085
59086 2005-07-31  Bruno Haible  <bruno@clisp.org>
59087
59088         * lib/lock.h (gl_lock_initializer): New macro.
59089         (gl_lock_define_initialized): Use it.
59090         (gl_rwlock_initializer): New macro.
59091         (gl_rwlock_define_initialized): Use it.
59092         (gl_recursive_lock_initializer): New macro.
59093         (gl_recursive_lock_define_initialized): Use it.
59094
59095 2005-07-30  Karl Berry  <karl@gnu.org>
59096
59097         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59098         Report from Ben Pfaff, regarding getopt.
59099
59100 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59101
59102         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59103         normal way.
59104         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59105         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59106         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59107         (gl_GETOPT): Use the new macros.  Most of the implementation
59108         is moved to the new macros.  This is for programs like Emacs
59109         that don't want all the functionality of gl_GETOPT.
59110
59111 2005-07-26  Bruno Haible  <bruno@clisp.org>
59112
59113         * m4/lock.m4: Update from GNU gettext.
59114
59115 2005-07-26  Bruno Haible  <bruno@clisp.org>
59116
59117         * lib/lock.h: Update from GNU gettext.
59118         * lib/lock.c: Update from GNU gettext.
59119
59120 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59121
59122         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59123         obsolescent AC_TRY_RUN.  Include the default includes files, for
59124         'exit'.
59125
59126 2005-07-24  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/visibility: New file.
59129         * MODULES.html.sh (Misc): Add visibility.
59130
59131 2005-07-24  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/visibility.m4: New file.
59134
59135 2005-07-24  Bruno Haible  <bruno@clisp.org>
59136
59137         * doc/visibility.texi: New file.
59138
59139 2005-07-22  Bruno Haible  <bruno@clisp.org>
59140
59141         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59142         $(ALLOCA_H), redundant through BUILT_SOURCES.
59143         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59144         redundant through BUILT_SOURCES.
59145         * modules/byteswap (Makefile.am): Remove explicit dependency on
59146         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59147         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59148         $(FNMATCH_H), redundant through BUILT_SOURCES.
59149         * modules/getopt (Makefile.am): Remove explicit dependency on
59150         $(GETOPT_H), redundant through BUILT_SOURCES.
59151         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59152         redundant through BUILT_SOURCES.
59153         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59154         redundant through BUILT_SOURCES.
59155         * modules/stdbool (Makefile.am): Remove explicit dependency on
59156         $(STDBOOL_H), redundant through BUILT_SOURCES.
59157         * modules/stdint (Makefile.am): Remove explicit dependency on
59158         $(STDINT_H), redundant through BUILT_SOURCES.
59159         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59160         Remove explicit dependency on $(SYSEXITS_H).
59161         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59162
59163 2005-07-18  Simon Josefsson  <jas@extundo.com>
59164
59165         * lib/check-version.c (check_version): Accept identical versions too.
59166
59167 2005-07-18  Bruno Haible  <bruno@clisp.org>
59168
59169         * modules/lock: New file.
59170         * MODULES.html.sh (Multithreading): New section.
59171
59172 2005-07-18  Bruno Haible  <bruno@clisp.org>
59173
59174         * m4/lock.m4: New file, from GNU gettext.
59175
59176 2005-07-18  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/lock.h: New file, from GNU gettext.
59179         * lib/lock.c: New file, from GNU gettext.
59180
59181 2005-07-18  Bruno Haible  <bruno@clisp.org>
59182
59183         * lib/lock.h (gl_once_t): New type.
59184         (gl_once_define, gl_once): New macros.
59185         * lib/lock.c (fresh_once): New variable.
59186         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59187         functions.
59188
59189 2005-07-16  Simon Josefsson  <jas@extundo.com>
59190
59191         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59192         workaround, suggested by Bruno.
59193
59194 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59195
59196         * modules/xalloc (Depends-on): Add xalloc-die.
59197         * modules/xvasprintf (Depends-on): Add xalloc-die.
59198
59199 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59200
59201         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59202         with a minor change.
59203
59204 2005-07-15  Bruno Haible  <bruno@clisp.org>
59205
59206         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59207         When using lib/poll.c, define poll as rpl_poll.
59208
59209 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59210
59211         * modules/argp (Depends-on): Remove unlocked-io.
59212
59213 2005-07-14  Derek Price  <derek@ximbiot.com>
59214
59215         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59216         for glob symlink bug.
59217
59218 2005-07-14  Bruno Haible  <bruno@clisp.org>
59219
59220         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59221         Instead, test for *_unlocked function declarations directly.
59222
59223 2005-07-11  Simon Josefsson  <jas@extundo.com>
59224
59225         * modules/size_max: New file.
59226
59227         * modules/xsize: Depend on size_max module for size_max.m4.
59228
59229 2005-07-11  Simon Josefsson  <jas@extundo.com>
59230
59231         * lib/size_max.h: New file.
59232
59233 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59234
59235         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59236         copyright symbol and the year.
59237         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59238         (version_etc_va): Use parameterized copyright notice.
59239         Reword to conform to the current GNU coding standards.
59240
59241 2005-07-11  Karl Berry  <karl@gnu.org>
59242
59243         * doc/gnulib.texi (Quoting): new node.
59244         (Initial import): more info, from Patrice.
59245
59246 2005-07-11  Bruno Haible  <bruno@clisp.org>
59247
59248         * gnulib-tool (func_usage): Document option --avoid.
59249         (Command line options): Handle --avoid.
59250         (func_acceptable): New function.
59251         (func_modules_transitive_closure): Use it.
59252
59253 2005-07-11  Bruno Haible  <bruno@clisp.org>
59254
59255         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59256         Reported by Jim Meyering.
59257
59258 2005-07-10  Bruno Haible  <bruno@clisp.org>
59259
59260         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59261         Needed when size_t is smaller than 'unsigned int'.
59262         Reported by Paul Eggert.
59263
59264 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59265
59266         * modules/argp (Depends-on): Add unlocked-io
59267
59268 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59269
59270         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59271         block of defines.
59272
59273 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59276         fix now.
59277
59278 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59279         and Paul Eggert  <eggert@cs.ucla.edu>
59280
59281         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59282         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59283
59284 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59285
59286         * modules/regex (Files): Add lib/regex_internal.c,
59287         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59288         (Depends-on): Add extensions.
59289         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59290
59291 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59292
59293         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59294         pathconf.
59295         * m4/same.m4 (gl_SAME): Likewise.
59296         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59297
59298         * m4/regex.m4: Adjust to new libc regex implementation.
59299         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59300         all the .c and .h parts of (the new) regex.
59301         Quote the m4 stuff better.
59302         Check for RE_ICASE bug of old gnulib.
59303         Check for REG_STARTEND of recent libc.
59304         Rename local variables from jm_* to gl_*.
59305         Quote operand of "test -f".
59306         Say "recent enough" version of libc, not "version 2".
59307         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59308         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59309         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59310         Remove check for btowc, isascii.
59311         Require AM_LANGINFO_CODESET.
59312
59313 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59314
59315         * lib/regex.c, regex.h: Sync from libc.
59316         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59317         * lib/regexec.c:
59318         New files, synced from libc, except that regex_internal.h
59319         currently has a small porting fix.
59320
59321 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59324         regex_internal.c, regexec.c.
59325         Add regex_internal.h too, but as a comment, since the libc version
59326         is currently broken in gnulib mode.
59327
59328 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         Support programs like Emacs that use gnulib but not gettext.
59331         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59332         * modules/gettext-h: New file.
59333         * modules/gettext (Files): Remove lib/gettext.h.
59334         (Depends-on): Add gettext-h.
59335         (Makefile.am): Remove lib_SOURCES.
59336         * modules/argmatch, modules/c-stack, modules/closeout:
59337         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59338         * modules/execute, modules/file-type, modules/getaddrinfo:
59339         * modules/getopt, modules/human, modules/javacomp:
59340         * modules/javaexec, modules/mkdir-p, modules/obstack:
59341         * modules/openat, modules/pagealign_alloc, modules/pipe:
59342         * modules/quotearg, modules/regex, modules/rpmatch:
59343         * modules/unicodeio, modules/userspec, modules/version-etc:
59344         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59345         * modules/xsetenv:
59346         Depend on gettext-h, not gettext.
59347
59348 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         * gnulib-tool (func_import): Add support for 'public domain' license.
59351         * modules/alloca, modules/atexit, modules/memmove:
59352         Now public domain, not GPL.
59353         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59354         * modules/realloc, modules/strerror, modules/strtod:
59355         Now LGPL, not GPL.
59356
59357 2005-07-05  Bruno Haible  <bruno@clisp.org>
59358
59359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59360         autoconf CVS. Needed for mingw.
59361
59362 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59363
59364         Remove the dependency of the strftime module on the tzset module.
59365         * modules/strftime (Depends-on): Remove dependency on tzset.
59366
59367 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         Remove the dependency of the strftime module on the tzset module.
59370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59371         gl_FUNC_TZSET_CLOBBER.
59372
59373 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         Remove the dependency of the strftime module on the tzset module.
59376         * lib/strftime.c (my_strftime)
59377         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59378         Copy the input structure, to work around some of the bug with
59379         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59380         Solaris releases, you should also use the tzset module, but we won't
59381         require it as a dependency any more since we don't want LGPLed code
59382         to depend on GPLed code.
59383
59384 2005-07-02  Jim Meyering  <jim@meyering.net>
59385
59386         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59387         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59388         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59389         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59390
59391 2005-07-02  Jim Meyering  <jim@meyering.net>
59392
59393         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59394
59395 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59396
59397         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59398         declares only 'struct timespec;' (!).
59399
59400 2005-07-01  Jim Meyering  <jim@meyering.net>
59401
59402         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59403         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59404         * lib/save-cwd.c, tempname.c:
59405         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59406         and don't include <sys/file.h>).
59407
59408 2005-06-29  Jim Meyering  <jim@meyering.net>
59409
59410         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59411         type name.  Use the variable name instead.
59412         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59413         Likewise.
59414
59415 2005-06-28  Simon Josefsson  <jas@extundo.com>
59416
59417         * modules/check-version (Files): Add check-version.m4.
59418
59419 2005-06-28  Simon Josefsson  <jas@extundo.com>
59420
59421         * m4/check-version.m4: New file, suggested by Jim Meyering
59422         <jim@meyering.net>.
59423
59424 2005-06-28  Simon Josefsson  <jas@extundo.com>
59425
59426         * lib/check-version.h, lib/check-version.c: New files.
59427
59428 2005-06-28  Simon Josefsson  <jas@extundo.com>
59429
59430         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59431         collision with global variable.  Better indentation.  Don't
59432         increment buffer pointer beyond buffer end.  Based on comments
59433         from Paul Eggert <eggert@cs.ucla.edu>.
59434
59435         * lib/base64.h: Indent.
59436
59437 2005-06-28  Simon Josefsson  <jas@extundo.com>
59438
59439         * doc/gnulib.texi (Library version handling): New section.
59440
59441 2005-06-28  Jim Meyering  <jim@meyering.net>
59442
59443         * check-module (find_included_lib_files): Hard-code another
59444         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59445         but modules/fts-lgpl (correctly) does not list those files.
59446
59447         * modules/canonicalize (Files): Add lib/pathmax.h.
59448
59449 2005-06-25  Simon Josefsson  <jas@extundo.com>
59450
59451         * modules/check-version: New file.
59452
59453 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59454
59455         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59456         initializer of struct addrinfo, as an indication that we don't
59457         care how many members the structure has.
59458
59459 2005-06-24  Derek Price  <derek@ximbiot.com>
59460         and Bruno Haible  <bruno@clisp.org>
59461
59462         Remove stat module & update lstat.
59463         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59464         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59465         * m4/stat.m4: Remove this file.
59466
59467 2005-06-24  Derek Price  <derek@ximbiot.com>
59468         and Bruno Haible  <bruno@clisp.org>
59469
59470         Remove stat module & update lstat.
59471         * lib/stat.c: Remove this file...
59472         (slash_aware_lstat): ...moving this content and its support...
59473         * lib/lstat.c (rpl_lstat): ...into here.
59474         * lib/lstat.h: New file.
59475
59476 2005-06-24  Derek Price  <derek@ximbiot.com>
59477         and Bruno Haible  <bruno@clisp.org>
59478
59479         Remove stat module & update lstat.
59480         * config/srclist.txt (libc sources): Remove stat.
59481
59482 2005-06-24  Derek Price  <derek@ximbiot.com>
59483         and Bruno Haible  <bruno@clisp.org>
59484
59485         Remove stat module & update lstat.
59486         * MODULES.html.sh (stat): Remove.
59487         * MODULES.html: Regenerated.
59488         * modules/lstat (Description): Correct function name.
59489         (Files): Add "lstat.h".
59490         (Depends-on): Remove stat, add xalloc, stat-macros.
59491         * modules/stat: Remove this file.
59492         (Include): Add "lstat.h", remove <sys/stat.h>.
59493
59494 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59497         (ranged_convert): Don't save conversion in a temporary struct.
59498         This causes a warning with GCC 4.0.0, and anyway in the typical
59499         case it's not worth the extra 100 bytes or so of code.
59500         (ranged_convert, __mktime_internal): When calling a function via a
59501         pointer P, use P () rather than (*P) (), as we now assume C89 or
59502         better.
59503
59504 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59507         "who -r" failed to give output.  Problem reported by Tim Waugh.
59508
59509         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59510         (xcalloc): Use it to avoid needless tests.
59511         Problem reported by Jim Meyering.
59512
59513 2005-06-20  Derek Price  <derek@ximbiot.com>
59514
59515         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59516         unnecessary for Autoconfs > 2.59c.
59517
59518 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59519
59520         * lib/argp.h (__option_is_short): Check upper limit of
59521         __key. Isprint() requires its argument to have the value
59522         of an unsigned char or EOF.
59523
59524 2005-06-16  Jim Meyering  <jim@meyering.net>
59525
59526         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59527         when either N or S is zero.
59528
59529 2005-06-16  Derek Price  <derek@ximbiot.com>
59530
59531         * m4/bison.m4: Declare YACC & YFLAGS precious.
59532
59533 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59536         multibyte string or pattern, fall back on unibyte matching.
59537         Problem reported by James Youngman.
59538
59539 2005-06-08  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/csharpcomp: New file.
59542         * MODULES.html.sh (C#): Add csharpcomp.
59543
59544 2005-06-08  Bruno Haible  <bruno@clisp.org>
59545
59546         * m4/csharpcomp.m4: New file, from GNU gettext.
59547
59548 2005-06-08  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/csharpcomp.h: New file, from GNU gettext.
59551         * lib/csharpcomp.c: New file, from GNU gettext.
59552         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59553
59554 2005-06-08  Bruno Haible  <bruno@clisp.org>
59555
59556         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59557         warning on mingw.
59558
59559 2005-06-07  Derek Price  <derek@ximbiot.com>
59560
59561         Sync from CVS.
59562         * lib/glob_.h: Indent nested #ifdef.
59563
59564 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         Sync from coreutils.
59567         Use "file name" when talking about file names, instead of "filename"
59568         or "path", as per the GNU coding standards.
59569         * lib/mkdir-p.c: Renamed from makepath.c.
59570         (make_dir_parents): Renamed from make_path.  All callers changed.
59571         * lib/mkdir-p.h: Likewise.  All includers changed.
59572         * lib/filenamecat.c: Renamed from path-concat.c.
59573         (file_name_concat): Renamed from path_concat.  All callers changed.
59574         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59575         * lib/filenamecat.h: Likewise.  All includers changed.
59576         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59577         in comments or local variable names.
59578         * lib/basename.c: Likewise.
59579         * lib/canonicalize.c, canonicalize.h: Likewise.
59580         * lib/dirname.c, dirname.h: Likewise.
59581         * lib/euidaccess.c: Likewise.
59582         * lib/exclude.c: Likewise
59583         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59584         * lib/fsusage.c, fsuage.h: Likewise.
59585         * lib/fts.c, fts_.h: Likewise.
59586         * lib/getcwd.c: Likewise.
59587         * lib/getloadavg.c: Likewise.
59588         * lib/mkstemp.c: Likewise.
59589         * lib/mountlist.c, mountlist.h: Likewise.
59590         * lib/openat.c, openat.h: Likewise.
59591         * lib/readlink-stub.c: Likewise.
59592         * lib/readutmp.c, readutmp.h: Likewise.
59593         * lib/rename.c: Likewise.
59594         * lib/rmdir.c: Likewise.
59595         * lib/same.c: Likewise.
59596         * lib/savedir.c: Likewise.
59597         * lib/stripslash.c: Likewise.
59598         * lib/tempname.c: Likewise.
59599         * lib/xreadlink.c: Likewise.
59600         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59601         All uses changed.
59602         * lib/exclude.h: Likewise.
59603
59604         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59605         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59606         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59607         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59608         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59609         files have been getting away with it for years (MORE/BSD 4.3
59610         is extinct now).
59611         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59612         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59613
59614         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59615         Define to 256, not 255, as per modern POSIX.
59616
59617 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59618
59619         Sync from coreutils.
59620         Use "file name" when talking about file names, instead of "filename"
59621         or "path", as per the GNU coding standards.
59622         * MODULES.html.sh: mkdir-p renamed from makepath.
59623         filenamecat renamed from path-concat.
59624         * modules/filenamecat: Renamed from modules/path-concat.
59625         (Files): filenamecat.h and filenamecat.c renamed from
59626         path-concat.h and path-concat.c.
59627         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59628         (Include): filenamecat.h, not path-concat.h.
59629         * modules/mkdir-p: Renamed from modules/makepath.
59630         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59631         makepath.c.
59632         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59633         (Include): mkdir-p.h, not makepath.h.
59634
59635 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         Sync from coreutils.
59638         * m4/mkdir-p.m4: Renamed from makepath.m4.
59639         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59640         Rename files from makepath.c to mkdir-p.c, and from
59641         makepath.h to mkdir-p.h.
59642         * m4/filenamecat.m4: Renamed from path-concat.m4.
59643         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59644         Rename files from path-concat.c to filenamecat.c,
59645         and from path-concat.h to filenamecat.h.
59646         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59647         "file name" in local variables or comments.
59648         * m4/rename.m4: Likewise.
59649
59650 2005-06-01  Bruno Haible  <bruno@clisp.org>
59651
59652         * modules/csharpexec: New file.
59653         * MODULES.html.sh (C#): New section.
59654
59655 2005-06-01  Bruno Haible  <bruno@clisp.org>
59656
59657         * m4/csharp.m4: New file, from GNU gettext.
59658         * m4/csharpexec.m4: New file, from GNU gettext.
59659
59660 2005-06-01  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/csharpexec.h: New file, from GNU gettext.
59663         * lib/csharpexec.c: New file, from GNU gettext.
59664         * lib/csharpexec.sh.in: New file, from GNU gettext.
59665
59666 2005-05-31  Derek Price  <derek@ximbiot.com>
59667             Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         Sync from cvs.
59670         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59671
59672 2005-05-31  Derek Price  <derek@ximbiot.com>
59673             Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         Sync from cvs.
59676         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59677
59678 2005-05-29  Derek Price  <derek@ximbiot.com>
59679
59680         * config/srclist.txt (glob_.h, glob.c): Add these files.
59681
59682 2005-05-29  Derek Price  <derek@ximbiot.com>
59683
59684         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59685         * modules/glob: New file.
59686         * modules/getlogin_r: Add link to POSIX spec in description.
59687
59688 2005-05-29  Derek Price  <derek@ximbiot.com>
59689             Paul Eggert  <eggert@cs.ucla.edu>
59690
59691         * m4/glob.m4: New file.
59692
59693 2005-05-29  Derek Price  <derek@ximbiot.com>
59694             Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         * lib/glob_.h, lib/glob.c: New files.
59697
59698 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59699
59700         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59701         * modules/fts-lgpl (Depends-on): Remove gettext.
59702
59703 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59706         and don't require gt_INTTYPES_PRI.
59707
59708 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59711
59712         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59713         the configuration hassle isn't worth it.
59714         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59715         (LONGEST_MODIFIER, PRIuMAX): Remove.
59716
59717 2005-05-27  Bruno Haible  <bruno@clisp.org>
59718
59719         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59720
59721 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59722
59723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59724         _POSIX_PTHREAD_SEMANTICS for Solaris.
59725
59726 2005-05-25  Derek Price  <derek@ximbiot.com>
59727
59728         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59729
59730 2005-05-25  Derek Price  <derek@ximbiot.com>
59731             Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59734         * lib/getlogin_r.c, getlogin_r.h: New files.
59735
59736 2005-05-25  Bruno Haible  <bruno@clisp.org>
59737             Derek Price  <derek@ximbiot.com>
59738
59739         * lib/getlogin_r.h: Simplify API documentation.
59740
59741 2005-05-23  Derek Price  <derek@ximbiot.com>
59742
59743         * modules/minmax (Files): Add m4/minmax.m4.
59744         (configure.ac): Add gl_MINMAX.
59745
59746 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59747
59748         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59749         so that unistd-safer.h (GPL'ed code) need not be included.
59750
59751 2005-05-22  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/minmax.m4: New file.
59754         Based on a patch by Derek Price <derek@ximbiot.com>.
59755
59756 2005-05-22  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59759         (INT64_MIN): Fix definition.
59760         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59761
59762         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59763         NEED_SIGNED_INT_TYPES.
59764
59765         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59766         HAVE_SYSTEM_INTTYPES.
59767
59768 2005-05-22  Bruno Haible  <bruno@clisp.org>
59769
59770         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59771         Also include <sys/param.h> if it defines MIN, MAX.
59772         Based on a patch by Derek Price <derek@ximbiot.com>.
59773
59774 2005-05-21  Jim Meyering  <jim@meyering.net>
59775
59776         * modules/fts (Files): Add m4/inttypes-pri.m4.
59777         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59778
59779 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59780
59781         New fts module.
59782         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59783         (setup_dir, free_dir): New functions.
59784         (enter_dir, leave_dir): Define trivial
59785         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59786         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59787         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59788         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59789         Move to fts-cycle.c.
59790         (fts_open): Use setup_dir.
59791         (fts_close): Use free_dir.
59792         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59793         This adds a label and some gotos, but the alternatives were messier.
59794         Check for memory allocation failure when entering a dir.
59795         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59796         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59797         (FTS): New member fts_cycle, that is a union that contains the
59798         old active_dir_ht and cycle_state.  All uses changed to mention
59799         fts_cycle.ht and fts_cycle.state.
59800         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59801         fts.c, with the following changes:
59802         (setup_dir, free_dir): New functions.
59803         (enter_dir): Now returns bool.  Return true if successful, false
59804         if memory exhausted.  All callers changed.
59805         Do not bother partly cleaning up on
59806         memory allocation failure; that is free_dir's job.
59807         However, free ad if hash_insert fails, to avoid memory leak.
59808         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59809         fts->fts_options to see which union member to use.
59810
59811 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59812
59813         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59814         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59815
59816 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59817
59818         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59819
59820 2005-05-20  Jim Meyering  <jim@meyering.net>
59821
59822         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59823         Now a macro, to pacify GCC.
59824
59825 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59826
59827         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59828         of -1.
59829
59830 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59831
59832         * lib/chown.c (rpl_chown): Return -1 on failure.
59833
59834 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59835
59836         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59837         Don't check for stddef.h.
59838         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59839         don't use its results.
59840         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59841         since we include them unconditionally.  Don't require
59842         AM_STDBOOL_H, since stdbool is a prerequisite.
59843         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59844         since we assume C89 or better.
59845         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59846         as we don't use their results.
59847         Don't check for fchdir, memmove, memset, strrchr, as we use
59848         them unconditionally.
59849         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59850         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59851
59852 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59853
59854         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59855         Include <stddef.h> unconditionally, since we assume C89 now.
59856         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59857         * lib/fts.c: Include fts_.h first, to check interface.
59858         Do not include intprops.h; no longer needed.
59859         Include cycle-check.h and hash.h, since fts_.h no longer does.
59860         Remove unnecessary casts of closedir to void.
59861         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
59862         decide whether to decrement nlinks.
59863         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
59864         (FTS): Use struct hash_table * instead of Hash_table, so that
59865         we no longer need to include hash.h here.
59866
59867 2005-05-18  Jim Meyering  <jim@meyering.net>
59868
59869         * modules/dirfd (License): Change to LGPL.  Most of the code
59870         is already in the public domain.
59871
59872 2005-05-18  Jim Meyering  <jim@meyering.net>
59873
59874         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
59875         Reported by Yoann Vandoorselaere.
59876
59877 2005-05-17  Jim Meyering  <jim@meyering.net>
59878
59879         * m4/fts.m4: New file, from coreutils.
59880
59881 2005-05-17  Jim Meyering  <jim@meyering.net>
59882
59883         * lib/fts.c, lib/fts_.h: New files, from coreutils.
59884
59885 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         Sync from coreutils.
59888         * m4/unlinkdir.m4: New file.
59889
59890 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59891
59892         Sync from coreutils.
59893         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
59894         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
59895         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
59896         White space changes only.
59897         * lib/makepath.c (make_path): Port to hosts where leading "//" is
59898         special.
59899         * lib/yesno.c: Include getline.h, not ctype.h.
59900         (yesno): Don't remove leading white space; POSIX doesn't allow it.
59901         Use getline to remove arbitrary restriction on response length.
59902
59903 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
59904
59905         * config/srclist-update: Spell out "Street" in FSF postal
59906         mail address; this is the style the FSF seems to prefer.
59907
59908         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
59909         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
59910         this updates FSF postal mail address.
59911
59912         Sync from coreutils.
59913         * modules/unlinkdir: New file.
59914         * modules/yesno (Depends-on): Add getline.
59915         * MODULES.html.sh (File system functions): Add unlinkdir.
59916
59917 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
59920         lib/strsep.h:
59921         Change the initial comment to refer to GPL, not LGPL.
59922         gnulib-tool will change it to LGPL as needed.
59923
59924         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
59925         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
59926         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
59927         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
59928         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
59929         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
59930         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
59931         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
59932         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
59933         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
59934         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
59935         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
59936         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
59937         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
59938         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
59939         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
59940         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
59941         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
59942         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
59943         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
59944         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
59945         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
59946         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
59947         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
59948         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
59949         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
59950         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
59951         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
59952         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
59953         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
59954         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
59955         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
59956         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
59957         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
59958         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
59959         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
59960         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
59961         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
59962         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
59963         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
59964         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
59965         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
59966         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
59967         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
59968         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
59969         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
59970         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
59971         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
59972         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
59973         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
59974         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
59975         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
59976         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
59977         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
59978         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
59979         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
59980         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
59981         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
59982         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
59983         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
59984         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
59985         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
59986         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
59987         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
59988         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
59989         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
59990         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
59991         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
59992         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
59993         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
59994         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
59995         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
59996         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
59997         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
59998         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
59999         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60000         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60001         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60002         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60003         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60004         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60005         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60006         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60007         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60008         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60009         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60010         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60011         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60012         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60013         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60014         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60015         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60016         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60017         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60018         lib/yesno.c, lib/yesno.h:
60019         Update FSF postal mail address.
60020
60021 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60022
60023         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60024         tests/test-memmem.c, tests/test-stpncpy.c:
60025         Update FSF postal mail address.
60026
60027 2005-05-13  Bruno Haible  <bruno@clisp.org>
60028
60029         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60030         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60031         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60032         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60033         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60034         Add support for 64-bit integers in the MSVC compiler.
60035
60036 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60037
60038         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60039
60040 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60041
60042         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60043
60044 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60045
60046         * doc/getdate.texi (General date syntax): Don't say that date
60047         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60048         Problem reported by Nic Ferrier.
60049
60050 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60051
60052         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60053         specified in ai_socktype. Fix invalid ai_protocol
60054         check. ai_protocol is usually set to 0 or depending on
60055         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60056         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60057         ai_socktype / ai_protocol in the returned addrinfo structure.
60058
60059 2005-05-10  Simon Josefsson  <jas@extundo.com>
60060
60061         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60062         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60063
60064 2005-05-10  Karl Berry  <karl@gnu.org>
60065
60066         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60067         (from http://www.gnu.org/licenses).
60068         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60069         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60070         fdl.texi suffices.
60071
60072 2005-05-10  Karl Berry  <karl@gnu.org>
60073
60074         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60075         (COPYING.DOC): remove.
60076
60077         * config/srclist-update: new FSF address.
60078
60079 2005-05-10  Derek Price  <derek@ximbiot.com>
60080
60081         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60082         possible.
60083
60084 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60085             Bruno Haible  <bruno@clisp.org>
60086
60087         * modules/inet_ntop: New file.
60088         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60089         inet_ntop.
60090
60091 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60092             Bruno Haible  <bruno@clisp.org>
60093
60094         * m4/inet_ntop.m4: New file.
60095
60096 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60097             Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/inet_ntop.h: New file.
60100         * lib/inet_ntop.c: New file, from glibc with modifications.
60101
60102 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60103
60104         * modules/time_r (License): Change to LGPL.
60105         * modules/extensions (License): Change to LGPL.  Actually,
60106         the license is more permissive than that, but currently gnulib-tool
60107         doesn't know how to handle more-permissive licenses.
60108
60109         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60110         Problem reported by Dave Love.
60111
60112 2005-05-08  Jim Meyering  <jim@meyering.net>
60113
60114         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60115         blank.
60116
60117 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60118
60119         * modules/argmatch (Depends-on): Add stdbool.
60120         * modules/backupfile (Depends-on): Likewise.
60121         * modules/chdir-long (Depends-on): Likewise.
60122         * modules/closeout (Depends-on): Likewise.
60123         * modules/cycle-check (Depends-on): Likewise.
60124         * modules/dirname (Depends-on): Likewise.
60125         * modules/fnmatch (Depends-on): Likewise.
60126         * modules/fsusage (Depends-on): Likewise.
60127         * modules/fwriteerror (Depends-on): Likewise.
60128         * modules/getcwd (Depends-on): Likewise.
60129         * modules/getloadavg (Depends-on): Likewise.
60130         * modules/hard-locale (Depends-on): Likewise.
60131         * modules/makepath (Depends-on): Likewise.
60132         * modules/mountlist (Depends-on): Likewise.
60133         * modules/nanosleep (Depends-on): Likewise.
60134         * modules/posixtm (Depends-on): Likewise.
60135         * modules/quotearg (Depends-on): Likewise.
60136         * modules/readtokens (Depends-on): Likewise.
60137         * modules/readtokens0 (Depends-on): Likewise.
60138         * modules/readutmp (Depends-on): Likewise.
60139         * modules/save-cwd (Depends-on): Likewise.
60140         * modules/strftime (Depends-on): Likewise.
60141         * modules/userspec (Depends-on): Likewise.
60142         * modules/utimecmp (Depends-on): Likewise.
60143         * modules/xgetcwd (Depends-on): Likewise.
60144         * modules/xnanosleep (Depends-on): Likewise.
60145         * modules/xstrtod (Depends-on): Likewise.
60146         * modules/yesno (Depends-on): Likewise.
60147
60148 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60149
60150         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60151         needless checks.
60152
60153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60154
60155         Merge from coreutils.  Among other things,
60156         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60157         * lib/fd-safer.c: New file.
60158         * lib/fcntl-safer.h, open-safer.c: Remove.
60159         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60160         * lib/dup-safer.c: Include unistd-safer.h first.
60161         Don't include errno.h.
60162         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60163         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60164         * lib/file-type.c: Rely on file-type.h change.
60165         * lib/getloadavg.c: Include unistd-safer.h.
60166         (getloadavg): Use safer open.
60167         * lib/getusershell.c: Include "stdio-safer.h".
60168         (getusershell): Use safer fopen.
60169         * lib/long-options.c (long_options): Use NULL rather than 0.
60170         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60171         'free'.
60172         * lib/modechange.c: Likewise.
60173         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60174         (MODE_DONE): New constant.
60175         (struct mode_change): Remove 'next' member.
60176         (make_node_op_equals): New function; like the old one of the
60177         same name, except it allocates an array.
60178         (mode_compile, mode_create_from_ref): Use it.
60179         (mode_compile): Allocate result as an array, not a linked list.
60180         Parse octal string ourself, so that we catch mistakes like "+0".
60181         (mode_adjust): Arg is an array, not a linked list.
60182         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60183         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60184         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60185         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60186         Remove.  This is now stat-macros.h's job.
60187         (talloc): Remove.  All callers replaced by xalloc, so that
60188         our invokers don't have to worry about reporting memory failures.
60189         (make_node_op_equals): Remove.
60190         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60191         New constants.
60192         (struct mode_change): Moved here from modechange.h.
60193         (mode_append_entry): Remove.
60194         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60195         apps to have incorrect behavior.  Use simpler algorithm for head
60196         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60197         Detect more invalid usages rather than having somewhat-random behavior.
60198         Don't insert an "a=" action, as that leads to incorrect behavior.
60199         (mode_compile, mode_create_from_ref): Return NULL on error instead
60200         of an enum, since now there's only one way to have an error.  All
60201         callers changed.
60202         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60203         at the correct time.  Simplify calculation of "+u" and its ilk.
60204         Don't mishandle "+X".
60205         (mode_free): Remove "register" and localize decls.
60206         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60207         (struct mode_change): Move to modechange.c; callers don't
60208         need to see this stuff.
60209         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60210         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60211         (mode_change, mode_adjust): Reflect the new signatures noted above.
60212         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60213         that might redefine system include files.
60214         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60215         (my_usleep): Use NULL rather than (void *) 0.
60216         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60217         Use siginterrupt to specify that system calls should be interrupted.
60218         (rpl_nanosleep): Move initialization of suspended closer to call of
60219         my_usleep.
60220         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60221         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60222         (desirable_utmp_entry): New function.
60223         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60224         using x2nrealloc, to simplify logic.
60225         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60226         size calculation.  Do not assume utmp file is a regular file.
60227         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60228         (READ_UTMP_CHECK_PIDS): New constant.
60229         * lib/save-cwd.c: Include unistd-safer.h.
60230         (save_cwd): Use fd_safer.
60231         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60232         [!_LIBC] Include "stat-macros.h" instead.
60233         * lib/unistd-safer.h (fd_safer): New decl.
60234
60235 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         * modules/getloadavg (Depends-on): Add unistd-safer.
60238         * modules/getusershell (Depends-on): Add stdio-safer.
60239         * modules/lstat (Depends-on): Remove xalloc.
60240         * modules/mkstemp (Depends-on): Add stat-macros.
60241         * modules/modechange (Depends-on): Remove xstrtol.
60242         Add stat-macros, xalloc.
60243         * modules/save-cwd (Depends-on): Add unistd-safer.
60244         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60245         * modules/unistd-safer (Files): Add lib/fd-safer.c
60246         (Makefile.am): Remove lib_SOURCES.
60247
60248         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60249         Remove fcntl-safer; unistd-safer supersedes it.
60250
60251 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60254         AC_HEADER_STAT.
60255         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60256         (gl_PREREQ_CHOWN): Remove.
60257         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60258         it.  Don't require AC_HEADER_STAT.
60259         (gl_PREREQ_LSTAT): Remove.
60260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60261         Don't require AC_HEADER_STAT.
60262         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60263         (gl_PREREQ_RMDIR): Remove.
60264         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60265         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60266         the stat-macros module a prerequisite.
60267         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60268         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60269         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60270         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60271         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60272         variable names.
60273         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60274         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60275         variable prefixes.
60276         * m4/fcntl-safer.m4: Remove.
60277         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60278         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60279         Invoke gl_PREREQ_FD_SAFER.
60280         (gl_PREREQ_FD_SAFER): New macro.
60281         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60282         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60283         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60284         Remove duplicate call to AC_LIBOBJ(readutmp).
60285         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60286
60287         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60288         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60289
60290 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * MODULES.html.sh (Misc): Add byteswap.
60293
60294 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60295
60296         * modules/getcwd (Depends-on): Add extensions.
60297         * modules/openat (Depends-on): Likewise.
60298
60299 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60300
60301         * modules/byteswap: New file.
60302
60303 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60304
60305         * m4/byteswap.m4: New file.
60306
60307 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60308
60309         * lib/byteswap_.h: New file.
60310
60311 2005-04-25  Karl Berry  <karl@gnu.org>
60312
60313         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60314
60315 2005-04-25  Albert Chin  <china@thewrittenword.com>
60316
60317         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60318         Toolkit C bug.
60319
60320 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60321
60322         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60323         (func_ln_if_changed) Remove forcibly for no error message
60324         in case file does not exist.
60325
60326 2005-04-19  Simon Josefsson  <jas@extundo.com>
60327
60328         * gnulib-tool (Options): Make --symlink mean --symbolic.
60329
60330 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60331
60332         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60333
60334 2005-04-16  Simon Josefsson  <jas@extundo.com>
60335
60336         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60337
60338 2005-04-15  Simon Josefsson  <jas@extundo.com>
60339
60340         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60341
60342 2005-04-15  Simon Josefsson  <jas@extundo.com>
60343
60344         * gnulib-tool: Rename --symlink to --symbolic.
60345
60346 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60347
60348         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60349         symbolic links to files instead of copying/moving.  Add --aux-dir,
60350         specifying directory relative --dir where auxiliary build tools
60351         are placed.
60352
60353 2005-04-14  Bruno Haible  <bruno@clisp.org>
60354
60355         * modules/allocsa (License): Change to LGPL.
60356         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60357
60358 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60359
60360         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60361         that "UTC +1 second" continues to work.  Problem reported
60362         by Dmitry V. Levin.
60363         (relunit_snumber): New rule.
60364         (relunit): Use it.
60365
60366 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60367
60368         * lib/getdate.y (universal_time_zone_table): New constant.
60369         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60370         universal_time_zone_table.
60371         (lookup_zone): Prefer universal_time_zone_table to
60372         local_time_zone_table, so that "GMT" time stamps are allowed in
60373         London during the summer.  Problem reported by Ian Abbott.
60374
60375 2005-04-12  Jim Meyering  <jim@meyering.net>
60376
60377         * lib/human.c (humblock): Set *options even when returning due to
60378         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60379         warning from gcc-4.
60380
60381 2005-04-09  Jim Meyering  <jim@meyering.net>
60382
60383         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60384         -Wuninitialized: initialize tm0.tm_year.
60385
60386 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60387
60388         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60389         count, since there's no maximum.  All uses changed.
60390         Add member dsts_seen.
60391         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60392         not being INT_MAX.
60393         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60394         Use pc_rels_seen to decide whther a date is absolute.
60395
60396         * lib/getdate.y (number): Don't overwrite year.
60397         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60398         check.
60399
60400 2005-04-02  Simon Josefsson  <jas@extundo.com>
60401
60402         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60403         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60404
60405 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60406
60407         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60408         where no absolute path name can be longer than PATH_MAX.
60409
60410 2005-03-27  Jim Meyering  <jim@meyering.net>
60411
60412         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60413
60414 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60417         "one's complement" -> "ones' complement" in comment, as per Knuth.
60418         "value of type" -> "type or expression" in comment.
60419         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60420
60421 2005-03-26  Jim Meyering  <jim@meyering.net>
60422
60423         Comment nits.
60424         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60425         Correct typos: s/or/of/.
60426
60427 2005-03-26  Jim Meyering  <jim@meyering.net>
60428
60429         * modules/check-include-files: Move to ../ and rename to...
60430         * check-module: ...this.
60431
60432 2005-03-25  Jim Meyering  <jim@meyering.net>
60433
60434         * modules/xvasprintf (Files): Add xalloc.h.
60435
60436 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * modules/gettext (Files): config/config.rpath ->
60439         build-aux/config.rpath
60440         * modules/iconv (Files): Likewise.
60441         Problem reported by Oskar Liljeblad.
60442
60443 2005-03-23  Jim Meyering  <jim@meyering.net>
60444
60445         * modules/check-include-files: New script to check for
60446         missing dependencies, multiple includes, etc.
60447
60448         * modules/c-strtold (Depends-on): Add xalloc.
60449         * modules/c-strtod (Depends-on): Add xalloc.
60450         * modules/hash (Depends-on): Add xalloc.
60451         (Files): Remove lib/xalloc.h.
60452
60453         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60454         * modules/userspec (Files): Add lib/inttostr.h.
60455
60456 2005-03-23  Jim Meyering  <jim@meyering.net>
60457
60458         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60459
60460 2005-03-22  Jim Meyering  <jim@meyering.net>
60461
60462         * modules/stat-macros: New module.
60463         * modules/canonicalize, modules/euidaccess, modules/file-type,
60464         * modules/filemode, modules/lchown, modules/makepath,
60465         * modules/rmdir, modules/stat: Depend on new stat-macros module
60466         rather than listing lib/stat-macros.h manually.
60467         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60468
60469 2005-03-22  Jim Meyering  <jim@meyering.net>
60470
60471         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60472
60473 2005-03-22  Bruno Haible  <bruno@clisp.org>
60474
60475         * config/srclist.txt: Replace target directory 'config' with
60476         'build-aux'.
60477         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60478         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60479         ../build-aux/.
60480
60481 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * modules/chdir-long (Depends-on): Add mempcpy.
60484
60485         * modules/acl, modules/backupfile, modules/c-strtod,
60486         modules/c-strtold, modules/canon-host, modules/canonicalize,
60487         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60488         modules/exclude, modules/exitfail, modules/file-type,
60489         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60490         modules/getdate, modules/getline, modules/getpagesize,
60491         modules/getpass, modules/getugroups, modules/group-member,
60492         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60493         modules/inttostr, modules/long-options, modules/makepath,
60494         modules/md5, modules/memcasecmp, modules/memcoll,
60495         modules/modechange, modules/mountlist, modules/path-concat,
60496         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60497         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60498         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60499         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60500         modules/strftime, modules/strndup, modules/strverscmp,
60501         modules/timespec, modules/unlocked-io, modules/userspec,
60502         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60503         modules/yesno:
60504         Remove lib_SOURCES line from Makefile.am section, as this is now
60505         done automatically by the corresponding Autoconf macro.
60506
60507 2005-03-21  Jim Meyering  <jim@meyering.net>
60508
60509         Changes imported from coreutils.
60510
60511         * lib/cycle-check.c: Don't include xalloc.h.
60512
60513         * lib/path-concat.c: Don't include assert.h.
60514         (path_concat): Remove assertion that would have triggered
60515         for ABASE starting with more than one slash.
60516         Reported by Andreas Schwab.
60517
60518         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60519         properly when ABASE is an absolute file name.
60520         Correct the description of this function.
60521         Include <assert.h>.
60522         Add an assertion and a test driver.
60523         This fixes a bug introduced on 2004-07-02.
60524         Andreas Schwab reported the resulting failure of cp --parents:
60525         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60526
60527 2005-03-21  Jim Meyering  <jim@meyering.net>
60528
60529         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60530         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60531
60532 2005-03-21  Jim Meyering  <jim@meyering.net>
60533         and  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60536         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60537         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60538         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60539         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60540         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60541         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60542         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60543         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60544         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60545         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60546         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60547         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60548         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60549         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60550         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60551         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60552         for these modules.
60553
60554 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60557         (which shouldn't happen), generate nothing instead of returning 0
60558         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60559
60560 2005-03-16  Bruno Haible  <bruno@clisp.org>
60561
60562         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60563         HAVE_LONGLONG_64BIT.
60564
60565 2005-03-16  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60568         HAVE_LONGLONG_64BIT.
60569
60570 2005-03-16  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60573         HAVE_LONGLONG_64BIT.
60574
60575 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60578         reliably distinguish strftime failure from empty output on POSIX
60579         hosts.
60580
60581 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60582
60583         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60584         (iconv_string): Don't guess a size-zero buffer, as that might cause
60585         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60586         result would be 'too large', where 'too large' is (heuristically)
60587         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60588         overflow concerns.  This will prevent some unwanted malloc failures
60589         when the inputs are very large.
60590
60591 2005-03-15  Karl Berry  <karl@gnu.org>
60592
60593         * config/srclist.txt (config.rpath): from gettext.
60594         * config/config.rpath: update.
60595
60596 2005-03-15  Bruno Haible  <bruno@clisp.org>
60597
60598         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60599         to 'negate'.
60600
60601         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60602         variable.
60603
60604         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60605         results.
60606
60607 2005-03-14  Simon Josefsson  <jas@extundo.com>
60608
60609         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60610         <fx@gnu.org>.
60611
60612 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60613
60614         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60615         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60616         intprops.h.
60617         * lib/strtol.c: Likewise.
60618
60619 2005-03-14  Jim Meyering  <jim@meyering.net>
60620
60621         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60622         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60623         to be nonzero so that we (and caller) can detect the difference
60624         between a valid zero-length expansion and an error return, even
60625         when the underlying strftime fails before writing anything into
60626         that location.
60627
60628 2005-03-14  Bruno Haible  <bruno@clisp.org>
60629
60630         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60631         Update from GNU gettext 0.14.3.
60632
60633 2005-03-10  Jim Meyering  <jim@meyering.net>
60634
60635         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60636
60637 2005-03-10  Jim Meyering  <jim@meyering.net>
60638
60639         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60640         so that this module works on systems without fchdir.
60641
60642 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60643
60644         Factor int-properties macros into a single file, except for
60645         glibc-related files.
60646         * lib/intprops.h: New file.
60647         * lib/getloadavg.c: Include it instead of limits.h.
60648         (INT_STRLEN_BOUND): Remove.
60649         * lib/human.c: Include intprops.h.
60650         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60651         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60652         302/1000.
60653         * lib/inttostr.h: Include intprops.h instead of limits.h.
60654         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60655         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60656         for consistency with intprops.h.
60657         (time_t_is_integer, twos_complement_arithmetic): Use them.
60658         * lib/sig2str.h: Include <signal.h>, intprops.h.
60659         (INT_STRLEN_BOUND): Remove.
60660         * lib/strftime.c (TYPE_SIGNED): Remove.
60661         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60662         * lib/strtol.c: Adjust comments to match intprops.h.
60663         * lib/userspec.c: Include intprops.h.
60664         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60665         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60666         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60667         instead of rolling our own expressions.
60668         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60669
60670         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60671         instead of int.
60672         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60673         the right thing even if adding 1900 would overflow.  Similarly
60674         for tm_mon + 1 and tm_yday + 1.
60675         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60676         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60677         (DO_SIGNED_NUMBER): New macro.
60678         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60679
60680 2005-03-07  Bruno Haible  <bruno@clisp.org>
60681
60682         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60683
60684 2005-03-07  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60687
60688 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60689
60690         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60691         (func_import): Only replace files via --import when they have actually
60692         changed.
60693
60694 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60695
60696         * m4/mmap-anon.m4: New file.
60697         * m4/pagealign_alloc.m4: New file.
60698
60699 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60700             Bruno Haible  <bruno@clisp.org>
60701
60702         * modules/pagealign_alloc: New file.
60703         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60704
60705 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60706             Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/pagealign_alloc.h: New file.
60709         * lib/pagealign_alloc.c: New file.
60710
60711 2005-03-03  Bruno Haible  <bruno@clisp.org>
60712
60713         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60714         Use an all-permissive copyright notice, recommended by RMS.
60715
60716 2005-03-02  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60719         of AIX, the replacement has to be done only after <string.h> is
60720         included, therefore not in config.h. stpncpy.h does the replacement,
60721         and stpncpy.c uses it.
60722
60723 2005-03-02  Bruno Haible  <bruno@clisp.org>
60724
60725         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60726         stpncpy.c uses it.
60727
60728 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60729
60730         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60731         The workaround isn't strictly needed for POSIX conformance, and
60732         it's too much of a pain to configure and maintain.  We'll ask
60733         people to fix their kernels instead.
60734         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60735         (NANOSLEEP_BUG_WORKAROUND): Remove.
60736         (xnanosleep): Remove the workaround.
60737
60738 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60739
60740         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60741         Reported by Derek Price.
60742         (Include): Add "timespec.h".
60743
60744         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60745
60746 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60747
60748         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60749         to detect nanosleep bug.
60750
60751 2005-03-01  Bruno Haible  <bruno@clisp.org>
60752
60753         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60754
60755 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * modules/gethrxtime: New file.
60758         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60759         (Depends-on): Add gethrxtime.
60760         (configure.ac): Add gl_XNANOSLEEP.
60761         (Makefile.am): Remove lib_SOURCES line.
60762
60763 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60766         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60767
60768 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60769
60770         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60771         * lib/timespec.h (gettime): Return void, since it always
60772         succeeds now.  All uses changed.
60773         * lib/gettime.c (gettime) Likewise.
60774         [HAVE_NANOTIME]: Prefer nanotime.
60775         Assume gettimeofday succeeds, as POSIX requires.
60776         Assime time () succeeds, since other code already does.
60777         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60778         (timespec_subtract): Remove.
60779         (NANOSLEEP_BUG_WORKAROUND): New constant.
60780         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60781         things considerably.  Use it only on GNU/Linux hosts, since the
60782         workaround shouldn't be needed elsewhere.
60783
60784 2005-02-24  Bruno Haible  <bruno@clisp.org>
60785
60786         * modules/gettext (Files): Add m4/glibc2.m4.
60787
60788 2005-02-24  Bruno Haible  <bruno@clisp.org>
60789
60790         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60791         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60792         * m4/progtest.m4:
60793         Update from GNU gettext 0.14.2.
60794         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60795
60796 2005-02-24  Bruno Haible  <bruno@clisp.org>
60797
60798         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60799         * lib/config.charset: Update from GNU gettext 0.14.2.
60800
60801 2005-02-24  Bruno Haible  <bruno@clisp.org>
60802
60803         * lib/gettext.h: Update from GNU gettext 0.14.2.
60804
60805 2005-02-23  Simon Josefsson  <jas@extundo.com>
60806
60807         * m4/iconvme.m4: New file.
60808
60809 2005-02-23  Jim Meyering  <jim@meyering.net>
60810
60811         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60812         change.
60813         Thanks to Bruno Haible for catching it.
60814
60815 2005-02-22  Simon Josefsson  <jas@extundo.com>
60816
60817         * modules/iconvme: New file.
60818
60819         * MODULES.html.sh: Add iconvme.
60820
60821 2005-02-22  Simon Josefsson  <jas@extundo.com>
60822
60823         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60824
60825 2005-02-22  Simon Josefsson  <jas@extundo.com>
60826
60827         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60828
60829 2005-02-22  Jim Meyering  <jim@meyering.net>
60830
60831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60832         s/ifndef/ifdef/.
60833
60834 2005-02-20  Neil Conway  <neilc@samurai.com>
60835
60836         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60837         returned by OSX/Darwin if the specified buffer is not large
60838         enough for the hostname.
60839
60840 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60841
60842         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60843         pass it to _help, otherwise the latter coredumps trying to
60844         dereference state.root_argp.
60845
60846 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60847
60848         * modules/chdir-long (Depends-on): Add memrchr.
60849         * modules/memrchr (Files): Add lib/memrchr.h.
60850         (Include): "memrchr.h".
60851
60852 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60853
60854         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60855
60856 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * lib/memrchr.h: New file.
60859         * lib/chdir-long.c: Include it.
60860         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
60861         Don't bother including stddef.h.
60862
60863 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
60866         inclusion.
60867         Include <sys/types.h>, for dev_t.
60868         (ME_DUMMY, ME_REMOTE): Move from here....
60869         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
60870         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
60871         Dmitry V. Levin.
60872         Include mountlist.h first, to test the interface.
60873
60874 2005-01-29  Bruno Haible  <bruno@clisp.org>
60875
60876         * lib/progname.c (program_name): Initialize.
60877         Needed when linking statically on MacOS X.
60878
60879 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60880
60881         Sync from coreutils.
60882         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
60883         (Depends-on): Add c-strtod.
60884         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
60885
60886 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         Sync from coreutils.
60889         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
60890
60891         Remove files that are specific to coreutils.
60892         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
60893
60894 2005-01-28  Bruno Haible  <bruno@clisp.org>
60895
60896         * modules/javacomp: New file.
60897         * MODULES.html.sh (Java): Add javacomp.
60898
60899 2005-01-28  Bruno Haible  <bruno@clisp.org>
60900
60901         * m4/javacomp.m4: New file, from GNU gettext.
60902
60903 2005-01-28  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/javacomp.sh.in: New file, from GNU gettext.
60906         * lib/javacomp.h: New file, from GNU gettext.
60907         * lib/javacomp.c: New file, from GNU gettext.
60908
60909 2005-01-26  Simon Josefsson  <jas@extundo.com>
60910
60911         * lib/gai_strerror.c: Use GPL in header.
60912
60913 2005-01-26  Bruno Haible  <bruno@clisp.org>
60914
60915         * modules/javaexec: New file.
60916         * MODULES.html.sh (Java): Add javaexec.
60917
60918 2005-01-26  Bruno Haible  <bruno@clisp.org>
60919
60920         * m4/javaexec.m4: New file, from GNU gettext.
60921
60922 2005-01-26  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/javaexec.sh.in: New file, from GNU gettext.
60925         * lib/javaexec.h: New file, from GNU gettext.
60926         * lib/javaexec.c: New file, from GNU gettext.
60927
60928 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60929
60930         * modules/lchown (Depends-on): Remove lchown.h
60931
60932 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60933
60934         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
60935         must be defined if the header file was not found, in order
60936         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
60937
60938 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60939
60940         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
60941         initializers for struct pentry_state.
60942         (__argp_error): Check return value of __asprintf
60943         (__argp_failure): Translate error message
60944
60945         * lib/argp-parse.c: Removed braces around the expansion of N_()
60946
60947 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
60950         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
60951         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
60952         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
60953         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
60954         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
60955         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
60956         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
60957         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
60958         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
60959         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
60960         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
60961         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
60962         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
60963         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
60964         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
60965         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
60966         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
60967         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
60968         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
60969         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
60970         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
60971         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
60972         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
60973         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
60974         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
60975         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
60976         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
60977         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
60978         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
60979         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
60980         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
60981         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
60982         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
60983         xstrtol.m4, xstrtoumax.m4, yesno.m4:
60984         Use an all-permissive copyright notice, recommended by RMS.
60985
60986 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60987
60988         * modules/chdir-long (Depends-on): Remove mempcpy.
60989
60990 2005-01-21  Jim Meyering  <jim@meyering.net>
60991
60992         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
60993         same value as for Solaris 9.
60994
60995         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
60996         component length.  This included changing the parameter to be
60997         of type `char *' rather than `char const *'.
60998         * lib/chdir-long.h (chdir_long): Update prototype.
60999
61000         * lib/openat.c (fdopendir, fstatat): New functions.
61001         * lib/openat.h: Include headers required for use of DIR and struct
61002         stat.
61003         [AT_SYMLINK_NOFOLLOW]: Define.
61004         (fdopendir, fstatat): Add prototypes.
61005
61006 2005-01-21  Bruno Haible  <bruno@clisp.org>
61007
61008         * modules/classpath: New file.
61009         * MODULES.html.sh (Java): Add classpath.
61010
61011 2005-01-21  Bruno Haible  <bruno@clisp.org>
61012
61013         * lib/classpath.h: New file, from GNU gettext.
61014         * lib/classpath.c: New file, from GNU gettext.
61015
61016 2005-01-20  Simon Josefsson  <jas@extundo.com>
61017
61018         * modules/version-etc-fsf: New file.
61019
61020 2005-01-20  Simon Josefsson  <jas@extundo.com>
61021
61022         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61023         * lib/version-etc.c: Remove version_etc_copyright.
61024         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61025         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61026
61027 2005-01-20  Simon Josefsson  <jas@extundo.com>
61028
61029         * lib/base64.h (isbase64): Add.
61030
61031         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61032         using a unsigned prototype, don't inline.
61033         (base64_decode): Use it.
61034
61035 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61038         it.
61039
61040 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * lib/save-cwd.c (save_cwd): Remove code to support the case
61043         where fchdir is missing or flaky.
61044
61045 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61046
61047         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61048
61049 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61050
61051         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61052         AC_LIBSOURCES now does this.
61053         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61054         with new ullong_max module.
61055
61056 2005-01-19  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/sh-quote: New file.
61059         * MODULES.html.sh (Executing programs): Add sh-quote.
61060
61061 2005-01-19  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/sh-quote.h: New file, from GNU gettext.
61064         * lib/sh-quote.c: New file, from GNU gettext.
61065
61066 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61067
61068         Merge from coreutils.
61069         * m4/ullong_max.m4: New file.
61070         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61071         (gl_MACROS): Assume localeconv exists.
61072
61073 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61074
61075         Merge changes from coreutils, as described below in several
61076         changelogs dated today.
61077
61078         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61079         (O_DIRECTORY): Remove; not needed here, since "." must be
61080         a directory.  All uses removed.
61081         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61082         universal on Suns, and we also need to test for IRIX.
61083         Revamp code to use 'if' rather than '#if'.
61084         Avoid unnecessary comparison of cwd->desc to 0.
61085
61086         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61087         for known valid error numbers rather than observed invalid ones.
61088
61089 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61090
61091         * modules/ullong_max: New file.
61092
61093         * modules/chdir-long, modules/openat: New files.
61094         * modules/save-cwd (Depends-on): Depend on chdir-long.
61095         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61096
61097 2005-01-18  Jim Meyering  <jim@meyering.net>
61098
61099         Merge from coreutils.
61100         * m4/chdir-long.m4, m4/openat.m4: New files.
61101         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61102         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61103         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61104         is sane and DOES follow symlinks.  Besides, testing 20 different
61105         systems found no broken chown implementations.
61106         Prompted by a change in rsync's copy of this macro.
61107         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61108
61109         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61110
61111         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61112         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61113         NULL-means-set-to-current-time semantics.
61114         Remove temporary file immediately, rather than waiting
61115         for configure's at-exit trap code to do it.
61116
61117 2005-01-18  Jim Meyering  <jim@meyering.net>
61118
61119         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61120
61121         * lib/utimens.c (futimens): Account for the fact that futimes
61122         can also fail with errno == ENOSYS or errno == ENOENT.
61123         Patch from Dmitry V. Levin.
61124
61125         Change the name of the robust chdir function from chdir to chdir_long.
61126         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61127         (restore_cwd): Use chdir_long, not chdir.
61128         * lib/chdir-long.c: Renamed from chdir.c.
61129         * lib/chdir-long.h: Renamed from chdir.h.
61130         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61131         Hurd.
61132
61133 2005-01-18  Bruno Haible  <bruno@clisp.org>
61134
61135         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61136         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61137         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61138         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61139         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61140         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61141         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61142         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61143         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61144         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61145         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61146         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61147         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61148         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61149         Use an all-permissive copyright notice, recommended by RMS.
61150
61151 2005-01-18  Bob Proulx  <bob@proulx.com>
61152
61153         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61154         simplify offsetof() macro construct to avoid compile failure with
61155         native HP-UX 11.0 ANSI C compiler.
61156
61157 2005-01-17  Bruno Haible  <bruno@clisp.org>
61158
61159         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61160         redundant because stpncpy.m4 takes care of it.
61161
61162 2005-01-17  Bruno Haible  <bruno@clisp.org>
61163
61164         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61165
61166 2005-01-17  Bruno Haible  <bruno@clisp.org>
61167
61168         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61169         used.
61170
61171 2005-01-17  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/fwriteerror.h (fwriteerror): Change specification to include
61174         fclose.
61175         * lib/fwriteerror.c: Include <stdbool.h>.
61176         (fwriteerror): At the end, close the file stream. Record whether
61177         stdout was already closed.
61178
61179 2005-01-17  Bruno Haible  <bruno@clisp.org>
61180
61181         * lib/execute.c (environ): Declare if needed.
61182         * lib/pipe.c (environ): Likewise.
61183         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61184
61185 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61186
61187         * modules/argp: Depend on vsnprintf
61188
61189 2005-01-10  Jim Meyering  <jim@meyering.net>
61190
61191         * modules/closeout (Depends-on): Add atexit.
61192
61193 2005-01-06  Bruno Haible  <bruno@clisp.org>
61194
61195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61196
61197 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61198
61199         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61200         definitions to be after all include files, to avoid collisions.
61201         Problem reported by Bob Proulx.
61202
61203 2005-01-04  Jim Meyering  <jim@meyering.net>
61204
61205         Changes imported from coreutils.
61206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61207         as the mkstemp template, use a temporary directory and an
61208         8.3-friendly template to avoid trouble on systems like DJGPP.
61209         Reported by Juan M. Guerrero via Stepan Kasal.
61210         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61211         close. Remove the temporary directory right away, rather than waiting
61212         for configure's at-exit trap code to do it.
61213         Suggestion from Stepan Kasal.
61214
61215 2005-01-01  Simon Josefsson  <jas@extundo.com>
61216
61217         * gnulib-tool: Print #include directives when --import'ing.
61218
61219 2004-12-28  Simon Josefsson  <jas@extundo.com>
61220
61221         * tests/test-base64.c: Include required header files.  Remove
61222         unused variables.
61223
61224 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * modules/error (Depends-on): Remove gettext.
61227
61228 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61231         not needed.  This removes a dependency on the gettext module.
61232         [defined _LIBC]: Do not include <libintl.h>; not needed.
61233
61234 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61235
61236         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61237         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61238
61239 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61242         HAVE_DECL_STRTOLD.
61243
61244 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * modules/getdate (Depends-on): Remove alloca-opt.
61247
61248 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61249
61250         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61251
61252 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61253
61254         * lib/argp-parse.c: Include <stddef.h>.
61255         (alignof, alignto): New macros.
61256         (parser_init): Don't assume that void * is aligned sufficiently
61257         for struct option.
61258
61259         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61260         need to extend the stack.
61261         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61262         large.
61263
61264 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61265
61266         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61267
61268 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61271         (2004-10-24) change.  Apparently this was a false alarm.
61272
61273         * modules/getdate: Depend on alloca-opt, not alloca.
61274
61275 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61278         Remove now-obsolete comment about AIX.
61279         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61280         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61281         (YYMAXDEPTH): New macro.
61282
61283 2004-12-18  Simon Josefsson  <jas@extundo.com>
61284
61285         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61286
61287 2004-12-18  Bruno Haible  <bruno@clisp.org>
61288
61289         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61290
61291 2004-12-18  Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/fatal-signal.c (fatal_signals): Make non-const.
61294         (init_fatal_signals): New function.
61295         (uninstall_handlers, install_handlers): Ignore signals that were set to
61296         SIG_IGN.
61297         (at_fatal_signal): Call init_fatal_signals.
61298         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61299         SIG_IGN.
61300         Reported by Paul Eggert.
61301
61302 2004-12-18  Bruno Haible  <bruno@clisp.org>
61303
61304         * doc/alloca.texi: New file.
61305         * doc/alloca-opt.texi: New file.
61306
61307 2004-12-17  Jim Meyering  <jim@meyering.net>
61308
61309         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61310         Otherwise, install-sh could exit with improper exit status when
61311         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61312
61313 2004-12-16  Simon Josefsson  <jas@extundo.com>
61314
61315         * tests/test-base64.c: Add license.
61316
61317 2004-12-15  Stepan Kasal  <address@hidden>
61318
61319         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61320
61321 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61322
61323         * modules/getcwd (Files): Add m4/d-ino.m4.
61324         Suggested by Mark D. Baushke.
61325
61326 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61327
61328         * lib/getdate.y (textint): New member "negative".
61329         (time_zone_hhmm): New function.
61330         Expect 14 shift-reduce conflicts, not 13.
61331         (o_colon_minutes): New rule.
61332         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61333         (yylex): Set the "negative" member of signed numbers.
61334
61335 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61336
61337         * doc/getdate.texi (Time of day items, Time zone items):
61338         Describe new formats +00:00, UTC+00:00.
61339
61340 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61341
61342         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61343         spurious "-l"s.  Problem reported by Stepan Kasal.
61344
61345 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61348         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61349
61350 2004-12-04  Simon Josefsson  <jas@extundo.com>
61351
61352         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61353         Vandoorselaere <yoann@prelude-ids.org>.
61354
61355 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         Changes imported from coreutils.
61358         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61359         exist.
61360         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61361
61362 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         Changes imported from coreutils.
61365         * lib/hard-locale.c: Assume <locale.h> exists.
61366         Include "strdup.h".
61367         (GLIBC_VERSION): New macro.
61368         (hard_locale): Assume setlocale exists.
61369         Rewrite to avoid #ifdef.
61370         Use strdup rather than malloc + strcpy.
61371         * lib/human.c: Assume <locale.h> exists.
61372         (human_readable): Assume localeconv exists.
61373
61374 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61375
61376         * modules/hard-locale (Depends-on): Add strdup.
61377
61378 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61379
61380         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61381         convert T2, not T.  (Imported from libc.)
61382
61383 2004-11-30  Simon Josefsson  <jas@extundo.com>
61384
61385         * modules/restrict (License): Change to LGPL.
61386
61387 2004-11-30  Simon Josefsson  <jas@extundo.com>
61388
61389         * m4/restrict.m4: Add copyright and copying conditions.
61390
61391 2004-11-30  Simon Josefsson  <jas@extundo.com>
61392
61393         * m4/base64.m4: New file.
61394
61395 2004-11-30  Simon Josefsson  <jas@extundo.com>
61396
61397         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61398         base64.
61399
61400         * tests/test-base64.c: New file.
61401
61402         * modules/base64: New file.
61403
61404 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61405
61406         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61407         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61408
61409         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61410
61411 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61414         (__getcwd.c): Don't restore errno; glibc doesn't.
61415         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61416         first, falling back to our code only if its results look suspicious.
61417         Ensure that the resulting buffer is only as large as necessary.
61418
61419         * lib/readutmp.c: Include readutmp.h first.
61420         Include <errno.h>, since readutmp.h no longer does that.
61421         * lib/readutmp.h: Don't include <errno.h>,
61422         <sys/param.h>, <time.h>; not needed to establish interface.
61423         (errno): Remove decl.
61424         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61425         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61426         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61427
61428 2004-11-28  Simon Josefsson  <jas@extundo.com>
61429
61430         * lib/base64.h, base64.c: New file.
61431
61432 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61433
61434         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61435
61436 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61437
61438         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61439         (Depends-on): Remove pathmax, same.  Add mempcpy.
61440         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61441         (Makefile.am): Append getcwd.h to lib_SOURCES.
61442         (Include): Add getcwd.h.
61443         (Maintainer): Change from Jim Meyering to "all, glibc",
61444         since getdate now uses intended-for-glibc code.
61445         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61446         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61447
61448 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61451         HP's ANSI C compiler.
61452         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61453         Declaring int functions causes warnings on some modern systems and
61454         shouldn't be needed to compile on ancient ones.
61455         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61456         defined.
61457
61458         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61459         with the following changes.
61460         (__set_errno): Parenthesize properly.
61461         Include <stdbool.h>.
61462         (MIN, MAX, MATCHING_INO): New macros.
61463         (__getcwd): Define with prototype, not K&R form.
61464         Use heuristics to allocate default buffer on stack if possible.
61465         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61466         behavior, and to avoid the PATH_MAX limit when computing
61467         ../../../../...
61468         Use MATCHING_INO to compare inode number to file.
61469         Check for arithmetic overflow in size calculations.
61470         Fix bug in reallocation of dot array that caused getcwd to fail
61471         on directories nested deeper than 75.
61472         Be more careful about saving errno on error.
61473         Do not use realloc; use only free+malloc, as this is a bit
61474         more flexible and avoids a needless copy operation.
61475         Do not inspect st_dev and st_ino for symbolic links; POSIX
61476         doesn't specify the latter.
61477         Check for closedir errors.
61478         Avoid needless casts.
61479         Use "#ifdef weak_alias" around weak_alias, to be like other
61480         glibc code.
61481         The following changes to getcwd.c have effect only when used in
61482         gnulib; they have no effect inside glibc proper.
61483         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61484         as alloca isn't used.
61485         (alloca, __alloca): Likewise.
61486         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61487         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61488         unconditionally, as gnulib assumes C89 or better.
61489         Do not include <sys/param.h>.
61490         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61491         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61492         better.
61493         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61494         Include <dirent.h> in a way that is compatible with modern Autoconf.
61495         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61496         New macros, if not already defined.
61497         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61498         Use "_LIBC", not "defined _LIBC", for consistency.
61499         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61500         a mempcpy module.
61501         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61502         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61503         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61504         credit only to Jim Meyering and adjust the copyright dates.
61505         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61506         <stdlib.h>, <unistd.h>, "pathmax.h".
61507         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61508         (INITIAL_BUFFER_SIZE): Remove.
61509         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61510
61511 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61512
61513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61514         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61515         Use the _ONCE methods, for efficiency.
61516         Check for fcntl.h.  In test program, include <errno.h>
61517         and <fcntl.h> if available.  Remove old K&R cruft from
61518         test program.  Check for common errors in GNU/Linux,
61519         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61520         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61522         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61523         name accordingly.
61524         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61525         accommodate new getcwd.c.
61526         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61527         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61528         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61529         that's all we need now.
61530
61531 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61532
61533         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61534         argp-parse.c depends on getopt internals, that means we should
61535         always use our getopt, to be on the safe side.
61536         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61537         order not to spoil the result of an eventual previous invocation
61538         of gl_GETOPT_SUBSTITUTE.
61539
61540 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61541
61542         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61543         redefinition warnings. To avoid them, include the defines
61544         in `#if !defined __need_getopt ... #endif'. The only place
61545         where __getopt_argv_const is used is in definitions
61546         of getopt_long and getopt_long_only below, which are as well
61547         protected by `#ifndef __need_getopt'.
61548         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61549         __need_getopt after including <stdio.h> and <unistd.h> These
61550         headers might have defined it.
61551
61552 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61555
61556 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61559         (futimens): New function, which uses futimes if available.
61560         (futimens, utimens): Support timespec==NULL, with same semantics
61561         as utime and utimens.
61562         * lib/utimens.h (futimens): New decl.
61563
61564 2004-11-23  Jim Meyering  <jim@meyering.net>
61565
61566         * lib/getopt_.h: Remove trailing blanks.
61567
61568 2004-11-23  Jim Meyering  <jim@meyering.net>
61569
61570         * lib/__fpending.c: Add comment.
61571
61572 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         * modules/canonicalize (Depends-on): Add xreadlink.
61575         Problem reported by James Youngman.
61576
61577 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61580         New macros.
61581         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61582         optopt): Use them instead of invoking ## directly; otherwise, the
61583         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61584
61585 2004-11-19  Bruno Haible  <bruno@clisp.org>
61586
61587         * lib/strtok_r.c: Move comments from here...
61588         * lib/strtok_r.h: ... to here.
61589
61590 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61591
61592         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61593         implementations that mishandle size_t overflow.
61594
61595 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61596
61597         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61598         might fail.  Problem reported by Yoann Vandoorselaere.
61599         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61600         implementations that mishandle size_t overflow.
61601
61602 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * modules/canon-host (Depends-on): Add strdup.
61605
61606 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61609
61610 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61611
61612         * lib/canon-host.c: Include "strdup.h".
61613         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61614         Use strdup instead of malloc/strcpy to duplicate strings.
61615
61616         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61617         (human_space_before_unit): New constant.
61618         * lib/human.c (human_readable): Support it.
61619
61620         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61621         (xgetcwd): Set errno correctly when failing.
61622         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61623         the failure is actually due to a PATH_MAX problem.
61624
61625         Further getopt changes to make it more likely that glibc will
61626         buy the changes back.
61627         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61628         (getopt): Use it, so to preserve glibc semantic
61629         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61630         when compiling for libc.
61631         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61632         (getopt_long, getopt_long_only): Use it.
61633
61634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61635         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61636         (getopt): Argv is now char * const *, as per standard.
61637         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61638         not char *__getopt_argv_const *.
61639         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61640         _getopt_long_only_r): Likewise.
61641         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61642         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61643         _getopt_long_r, _getopt_long_only_r): Likewise.
61644         * lib/getopt_.h (__getopt_argv_const): Remove.
61645         (getopt): Argv is now char * const *, as per standard.
61646
61647         * lib/getdate.y (tORDINAL): New token.
61648         (day, relunit): Allow it for relative times.
61649         (relative_time_table): Use tORDINAL for ordinals.
61650
61651 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61654         Document that "second" isn't allowed as an ordinal number.
61655
61656 2004-11-16  Jim Meyering  <jim@meyering.net>
61657
61658         * modules/closeout (Depends-on): Add fpending.
61659
61660 2004-11-15  Jim Meyering  <jim@meyering.net>
61661
61662         * lib/closeout.c: Include "__fpending.h" once again.
61663         Include <stdbool.h>.
61664         (close_stdout): Don't fail just because stdout was closed initially,
61665         since some programs don't write to stdout in the normal course of
61666         operation (other than --version and --help), and we don't want this
61667         function to make e.g. `touch file >&-' fail.
61668         But do fail if it was closed and someone has tried to write to it.
61669         E.g., `printf foo >&-' must fail.
61670
61671 2004-11-13  Jim Meyering  <jim@meyering.net>
61672
61673         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61674
61675 2004-11-12  Simon Josefsson  <jas@extundo.com>
61676
61677         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61678         small doc fix is still pending.
61679
61680 2004-11-11  Simon Josefsson  <jas@extundo.com>
61681
61682         * modules/strtok_r: New file.
61683
61684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61685         strtok_r.
61686
61687 2004-11-11  Simon Josefsson  <jas@extundo.com>
61688
61689         * m4/strtok_r.m4: New file.
61690
61691         * m4/getopt.m4: Replace opterr.
61692
61693 2004-11-11  Simon Josefsson  <jas@extundo.com>
61694
61695         * lib/strtok_r.h, strtok_r.c: New file.
61696
61697 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61698
61699         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61700         of replacing opterr, getopt, etc.  This should handle the
61701         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61702
61703 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61704
61705         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61706         we can stop lying to compilers about the constness of argv when we
61707         are compiled outside glibc.
61708         (getopt, getopt_long, getopt_long_only): Use it.
61709         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61710         _getopt_internal, getopt): Likewise.
61711         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61712         _getopt_long_only_r): Likewise.
61713         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61714         _getopt_long_r, _getopt_long_only_r): Likewise.
61715
61716         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61717         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61718         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61719         the other external symbols.
61720         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61721         declaration, since the above renaming now works around collisions.
61722
61723 2004-11-11  Jim Meyering  <jim@meyering.net>
61724
61725         * lib/linebreak.c: Remove trailing blanks.
61726         * lib/alloca_.h: Likewise.
61727         * lib/acosl.c: Likewise.
61728         * lib/euidaccess.c: Likewise.
61729         * lib/allocsa.h: Likewise.
61730
61731 2004-11-10  Simon Josefsson  <jas@extundo.com>
61732
61733         * m4/getaddrinfo.m4: New file.
61734
61735 2004-11-10  Simon Josefsson  <jas@extundo.com>
61736
61737         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61738
61739 2004-11-10  Simon Josefsson  <jas@extundo.com>
61740
61741         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61742         getaddrinfo.
61743
61744         * modules/getaddrinfo: New file.
61745
61746 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61749
61750 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * lib/mktime.c (SHR): New macro, which is a portable
61753         substitute for >> that should work even on Crays.
61754         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61755         Problem reported by Mark D. Baushke in
61756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61757         * lib/getdate.y (SHR): Likewise.
61758         (tm_diff): Use it.
61759         * lib/strftime.c (SHR): Likewise.
61760         (tm_diff): Use it.
61761         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61762         quote_these_too, so that right shifts are well defined.  All uses
61763         changed.
61764
61765 2004-11-10  Jim Meyering  <jim@meyering.net>
61766
61767         Ensure that no close failure goes unreported.
61768         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61769         return early when it seems there's nothing to flush.
61770         Don't include __fpending.h.
61771
61772 2004-11-10  Jim Meyering  <jim@meyering.net>
61773
61774         * modules/closeout (Depends-on): Remove fpending.
61775
61776 2004-11-10  Jim Meyering  <jim@meyering.net>
61777
61778         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61779
61780 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61783         gl_FUNC_STRFTIME.
61784         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61785         and AC_REQUIRE when possible, to avoid duplicate checks.
61786         Check for <wchar.h>.
61787
61788 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61791
61792 2004-11-09  Bruno Haible  <bruno@clisp.org>
61793
61794         * m4/sockpfaf.m4: New file.
61795
61796 2004-11-05  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61799         Reported by Mark D. Baushke <mdb@cvshome.org>.
61800
61801 2004-11-04  Bruno Haible  <bruno@clisp.org>
61802
61803         2004-09-11  Bruno Haible  <bruno@clisp.org>
61804                 * allocsa.valgrind: New file.
61805         2004-02-06  Bruno Haible  <bruno@clisp.org>
61806                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61807                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61808                 Reported by Christopher Seip <chris.seip@hp.com>.
61809
61810 2004-11-04  Bruno Haible  <bruno@clisp.org>
61811
61812         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61813         (Makefile.am): Distribute it.
61814
61815 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61816
61817         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61818         with errno == ERANGE if the buffer is too small.
61819         Problem reported by Mark D. Baushke.
61820
61821 2004-11-03  Albert Chin  <china@thewrittenword.com>
61822             Paul Eggert  <eggert@cs.ucla.edu>
61823
61824         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61825         equivalent, substitute $ac_type for equivalent type rather than
61826         blindly using uint32_t *always* which won't work if uint32_t is not
61827         available.  Define _UINT32_T to work around typedef of uint32_t if
61828         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61829         2.5.1.
61830
61831 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         * m4/jm-macros.m4: Sync from coreutils.
61834         (gl_MACROS): Check for mbrlen, for pathchk.
61835         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61836
61837 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61838
61839         * lib/xreadlink.c (MAXSIZE): New macro.
61840         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61841         size does not exceed MAXSIZE.  Avoid cast.
61842         As suggested by Mark D. Baushke in
61843         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61844         if readlink fails with buffer size just under MAXSIZE, try again
61845         with MAXSIZE.
61846
61847 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61850
61851 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61852         and  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61855         (get_date): Overparenthesize to avoid GCC warning.
61856
61857 2004-11-02  Bruno Haible  <bruno@clisp.org>
61858
61859         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61860         returns void.
61861
61862 2004-11-02  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
61865         function returns void.
61866
61867 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61868
61869         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
61870         fflush_unlocked, flockfile, funlockfile, funlockfile,
61871         fputs_unlocked, putc_unlocked.
61872
61873 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61876         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
61877         already declared.
61878
61879 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * modules/getdate (Files): Add doc/getdate.texi.
61882         (Depends-on): Add setenv, xalloc.
61883
61884 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61885
61886         * lib/getdate.y: Add support for TZ="foo" within a date string.
61887         Fix some bugs near time_t boundaries.  Reject dates with
61888         out-of-range components, e.g., "Sept 31".
61889         Include <stdlib.h>, "setenv.h", "xalloc.h".
61890         (ISDIGIT_LOCALE): Remove; unused.
61891         Note that the TZ and time functions used here are not reentrant.
61892         (mktime_ok, get_tz): New functions.
61893         (TZBUFSIZE): New constant.
61894         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
61895         This requires that we sometimes generate our own TZ="XXX..." setting.
61896
61897 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
61898
61899         * doc/getdate.texi: New file, from coreutils with modifications for
61900         the new TZ parsing.
61901
61902 2004-10-27  Derek R. Price  <derek@ximbiot.com>
61903
61904         * lib/mktime.c (not_equal_tm): Remove redundant check.
61905
61906 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * modules/regex (lib_SOURCES): Add regex.c.
61909         Reported by James Youngman in
61910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
61911
61912 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * lib/getdate.y: Use Bison 1.875 features, and some minor
61915         code cleanups.  This change does not affect semantics.
61916         Don't include <stdlib.h>; no longer needed.
61917         Don't include unlocked-io.h; only the "#if TEST" code uses
61918         stdio, and performance isn't crucial there.
61919         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
61920         Bison 1.875 features as described below.
61921         All uses of "PC." replaced by "pc->".
61922         (YYSTYPE): Add a forward declaration.
61923         (yylex, yyerror): Use full prototypes in forward decls.
61924         Use "%pure-parser" rather than obsolescent "%pure_parser".
61925         Use %parse-param and %lex-param instead of obsolescent
61926         YYPARSE_PARAM and YYLEX_PARAM.
61927         (meridian_table, month_and_day_table, time_units_table,
61928         relative_time_table, time_zone_table, military_table,
61929         lookup_zone, lookup_word, get_date):
61930         Use NULL instead of 0 where appropriate.
61931         (to_hour): Avoid abort (), to avoid a dependency on
61932         stdlib.h.
61933         (yyerror, yylex): Now accepts parser_control * arg.
61934         (main) [TEST]: Use '\0' rather than 0 for char.
61935
61936 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
61939
61940 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
61943         It's now the caller's responsibility to handle the case where
61944         !HAVE_GETPAGESIZE && !defined getpagesize.
61945
61946         * lib/mktime.c (leapyear): Arg is long int, not int.
61947
61948 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
61949
61950         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
61951
61952 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61953
61954         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
61955         missing.  Problem reported by James Youngman.
61956
61957 2004-10-16  Simon Josefsson  <jas@extundo.com>
61958
61959         * gnulib-tool: Fix comments.  Fix parse problem.
61960         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
61961
61962 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
61963
61964         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
61965         implementation of getopt_long.  Problem reported by Alexander Taler in:
61966         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
61967
61968 2004-10-15  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool: Untabify. Initialize supplied_libname.
61971         (func_usage): More homogenous output.
61972         (func_modules_transitive_closure, func_modules_to_filelist,
61973         func_emit_lib_Makefile_am): New functions.
61974         (func_import): New function, extracted from big case statement. Use
61975         func_get_license, func_modules_transitive_closure,
61976         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
61977         opt_lgpl. Don't use test -a, as it's not portable.
61978         (func_create_testdir): Use func_modules_transitive_closure,
61979         func_modules_to_filelist, func_emit_lib_Makefile_am.
61980
61981 2004-10-15  Bruno Haible  <bruno@clisp.org>
61982
61983         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
61984
61985 2004-10-15  Bruno Haible  <bruno@clisp.org>
61986
61987         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
61988         the portions belonging to each module.
61989         Suggested by Derek Robert Price <derek@ximbiot.com>.
61990
61991 2004-10-12  Simon Josefsson  <jas@extundo.com>
61992
61993         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
61994         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
61995         to real functions.
61996
61997 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61998
61999         * modules/vsnprintf: New file.
62000
62001 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62002
62003         * m4/vsnprintf.m4: New file.
62004
62005 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62006
62007         * lib/vsnprintf.h: New file.
62008         * lib/vsnprintf.c: New file.
62009
62010 2004-10-11  Bruno Haible  <bruno@clisp.org>
62011
62012         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62013         vsnprintf.
62014
62015 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62016
62017         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62018
62019 2004-10-07  Bruno Haible  <bruno@clisp.org>
62020
62021         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62022         fits into the provided buffer.
62023
62024 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62025
62026         * lib/diacrit.c, diacrit.h: Add GPL notice.
62027
62028         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62029         notice.
62030         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62031         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62032         This avoids a potential constant-folding bug.
62033
62034 2004-10-05  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62037         for the declaration of strsep.
62038
62039 2004-10-05  Bruno Haible  <bruno@clisp.org>
62040
62041         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62042
62043 2004-10-04  Simon Josefsson  <jas@extundo.com>
62044
62045         * modules/memmem: New file.
62046         * tests/test-memmem.c: New file.
62047         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62048
62049 2004-10-04  Simon Josefsson  <jas@extundo.com>
62050
62051         * m4/memmem.m4: New file.
62052
62053 2004-10-04  Simon Josefsson  <jas@extundo.com>
62054
62055         * lib/memmem.h: New file.
62056         * lib/memmem.c: New file, taken from glibc.
62057
62058 2004-10-04  Simon Josefsson  <jas@extundo.com>
62059
62060         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62061         '#ifdef USE_UNLOCKED_IO'.
62062
62063 2004-10-04  Simon Josefsson  <jas@extundo.com>
62064
62065         * config/srclist.txt: Add memmem from glibc.
62066
62067 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62068
62069         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62070
62071         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62072         modules/exclude, modules/getdate, modules/getline,
62073         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62074         modules/getusershell, modules/linebuffer, modules/md5,
62075         modules/mountlist, modules/posixtm, modules/readtokens,
62076         modules/readutmp, modules/regex, modules/sha1,
62077         modules/version-etc, modules/yesno:
62078         Remove dependency on unlocked-io.
62079
62080 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62081
62082         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62083
62084         * m4/unlocked-io.m4: Add copyright notice.
62085         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62086
62087 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62088
62089         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62090         * lib/xmalloc.c (xmemdup): Likewise.
62091         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62092         XFREE): Remove these long-obsolescent macros.
62093         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62094         * lib/xstrdup.c: Remove.
62095
62096         * lib/regex.c (re_comp): Cast gettext return value to char *,
62097         Problem reported by Martin Neitzel via Mark D. Baushke.
62098
62099 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62100
62101         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62102         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62103         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62104         regex.c, sha1.c, version-etc.c, yesno.c:
62105         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62106         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62107         the includer's responsibility.
62108
62109         Sync from coreutils.
62110
62111         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62112         points to the start of a string, as the C Standard says the
62113         resulting behavior is undefined.
62114
62115         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62116         simple -> simple_backups, numbered_existing ->
62117         numbered_existing_backups, numbered -> numbered_backups
62118         to avoid shadowing problems.  All uses changed.
62119         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62120         * lib/backupfile.c (check_extension, numbered_backup):
62121         Rename locals to avoid shadowing 'basename'.
62122         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62123         once.
62124
62125         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62126         * lib/.cvsignore: Add getopt.h.
62127
62128 2004-10-04  Bruno Haible  <bruno@clisp.org>
62129
62130         * modules/README: New file.
62131         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62132         not a module.
62133
62134 2004-10-02  Jim Meyering  <jim@meyering.net>
62135
62136         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62137
62138 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62139
62140         * modules/strsep: New file.
62141
62142 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62143
62144         * m4/strsep.m4: New file.
62145
62146 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62147
62148         * lib/strsep.h: New file.
62149         * lib/strsep.c: New file.
62150
62151 2004-10-01  Simon Josefsson  <jas@extundo.com>
62152
62153         * lib/snprintf.c (snprintf): Handle size==0.
62154
62155 2004-10-01  Simon Josefsson  <jas@extundo.com>
62156             Bruno Haible  <bruno@clisp.org>
62157
62158         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62159         (snprintf): Declare 'args'.
62160
62161 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62162
62163         * lib/snprintf.c: Remove comments as to why each header is needed.
62164
62165 2004-10-01  Bruno Haible  <bruno@clisp.org>
62166
62167         * MODULES.html.sh: Add strsep.
62168
62169 2004-09-30  Simon Josefsson  <jas@extundo.com>
62170
62171         * modules/snprintf: New file.
62172
62173 2004-09-30  Simon Josefsson  <jas@extundo.com>
62174
62175         * m4/snprintf.m4: New file.
62176
62177 2004-09-30  Simon Josefsson  <jas@extundo.com>
62178
62179         * lib/snprintf.h, lib/snprintf.c: New files.
62180
62181 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62182
62183         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62184         (hol_entry_help): Never translate an empty string.
62185         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62186         * lib/argp.h (OPTION_NO_TRANS): New option.
62187
62188 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         * modules/argp (Maintainer): Replace Simon Josefsson
62191         by Sergey Poznyakoff.
62192
62193 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62196         changes merged back into glibc.
62197
62198 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62201
62202 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62203
62204         * lib/xvasprintf.c: Include xalloc.h.
62205         (xvasprintf): Use xalloc_die, not xmalloc_die.
62206
62207 2004-09-29  Bruno Haible  <bruno@clisp.org>
62208
62209         * modules/alloca-opt: New file, derived from modules/alloca.
62210         * modules/allocsa: Depend on alloca-opt instead of alloca.
62211         * modules/setenv: Likewise.
62212         * modules/vasnprintf: Likewise.
62213         * MODULES.html.sh: Add alloca-opt.
62214
62215 2004-09-28  Simon Josefsson  <jas@extundo.com>
62216
62217         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62218         LGPL, and to replace license template from GPL to LGPL.
62219
62220 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * modules/dummy: Change license to LGPL.
62223
62224 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62225
62226         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62227
62228 2004-09-24  Simon Josefsson  <jas@extundo.com>
62229
62230         * modules/minmax (License): Change from GPL to LGPL.
62231
62232 2004-09-23  Simon Josefsson  <jas@extundo.com>
62233
62234         * gnulib-tool (--import): Typo.
62235
62236 2004-09-23  Simon Josefsson  <jas@extundo.com>
62237
62238         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62239
62240 2004-09-22  Bruno Haible  <bruno@clisp.org>
62241
62242         * modules/*: Add 'License' field.
62243         * gnulib-tool: Accept --extract-license option.
62244         (func_get_license): New function.
62245
62246 2004-09-21  Bruno Haible  <bruno@clisp.org>
62247
62248         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62249         Reported by Simon Josefsson.
62250
62251 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62252
62253         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62254         gl_AC_TYPE_LONG_LONG.
62255
62256 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62257
62258         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62259
62260 2004-09-18  Simon Josefsson  <jas@extundo.com>
62261         and  Paul Eggert  <eggert@cs.ucla.edu>
62262
62263         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62264         calls with autoreconf.  Define GL_LIB.
62265
62266 2004-09-14  Karl Berry  <karl@gnu.org>
62267
62268         * config/srclist.txt: unsync setenv.c, sigh.
62269
62270 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62273         Problem reported by Bruno Haible in:
62274         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62275
62276 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62277
62278         * config/srclist.txt: Comment out argp-pvh.c.
62279
62280 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62283         in case some system header has #define'd it.  Problem reported by
62284         Soeren D. Schulze in
62285         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62286
62287 2004-09-09  Karl Berry  <karl@gnu.org>
62288
62289         * regex.[ch]: delete from the root.  These were supposed to be
62290                 synced with emacs cvs, but this has not happened for about
62291                 a year, and anyway nothing else uses emacs regex.[ch].
62292                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62293                 lib/regex[.ch] is untouched.
62294
62295 2004-09-09  Bruno Haible  <bruno@clisp.org>
62296
62297         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62298
62299 2004-09-09  Bruno Haible  <bruno@clisp.org>
62300
62301         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62302         modifications.
62303         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62304
62305 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62306
62307         * modules/xvasprintf: New file.
62308         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62309
62310 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62311
62312         * lib/xvasprintf.h: New file.
62313         * lib/xvasprintf.c: New file.
62314         * lib/xasprintf.c: New file.
62315
62316 2004-09-08  Bruno Haible  <bruno@clisp.org>
62317
62318         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62319
62320 2004-09-08  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62323         length is > INT_MAX.
62324         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62325         more.
62326
62327 2004-09-08  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/stdint_.h: New file, taken from GNU clisp.
62330
62331 2004-09-08  Bruno Haible  <bruno@clisp.org>
62332             Oskar Liljeblad  <oskar@osk.mine.nu>
62333
62334         * modules/stdint: New file.
62335         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62336
62337 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         Import from coreutils.
62340         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62341         strings on unbounded length.  alloca's performance benefits aren't
62342         that important here.
62343         (V_STRDUP): Remove.
62344         (parse_with_separator): New function, with most of the internals
62345         of the old parse_user_spec.  Allow user to omit both user and group,
62346         for compatibility with FreeBSD.
62347         Clone only the user name, not the entire spec.
62348         Do not set *uid, *gid unless entirely successful.
62349         Avoid memory leak in some failing cases.
62350         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62351         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62352         (parse_user_spec): Rewrite to use parse_with_separator.
62353
62354 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         * modules/userspec: Don't depend on alloca.
62357
62358 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62359
62360         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62361
62362 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62363
62364         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62365         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62366         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62367
62368 2004-08-16  Simon Josefsson  <jas@extundo.com>
62369
62370         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62371         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62372         Add --dry-run for --import.
62373         Let user provided command line parameters override configure.ac
62374         settings.
62375
62376 2004-08-12  Simon Josefsson  <jas@extundo.com>
62377
62378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62379         as discussed with Paul Eggert in threads rooted at
62380         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62381         and
62382         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62383         Before, the test was empty, and relied on ELIDE_CODE in source
62384         code.)
62385         (gl_PREREQ_GETOPT): New macro.
62386         (gl_GETOPT): Use them.
62387
62388 2004-08-12  Simon Josefsson  <jas@extundo.com>
62389
62390         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62391         * lib/getopt_.h: Renamed from getopt.h.
62392
62393 2004-08-12  Simon Josefsson  <jas@extundo.com>
62394
62395         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62396         Change default library name from libfoo to libgnu.
62397         Now, if you have a configure.ac that says:
62398                 gl_SOURCE_BASE(gl)
62399                 gl_M4_BASE(gl/m4)
62400                 gl_MODULES(error getopt etcetera)
62401                 gl_INIT
62402         you can import all you need by running:
62403                 ../gnulib/gnulib-tool --import
62404
62405         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62406         (Makefile.am): Rewrite, use logic from argz.
62407         (Include): Use <getopt.h> instead of "getopt.h".
62408
62409 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * modules/argp (Files): Add m4/unlocked-io.m4.
62412         (Depends-on): Add extensions.
62413
62414 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62417         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62418         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62419         Check for program_invocation_name, program_invocation_short_name,
62420         flockfile, funlockfile, features.h, _getopt_long_only_r.
62421
62422 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62425         its complicated substitute.
62426         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62427         and program_invocation_name.
62428         (__argp_basename) [!_LIBC]: Remove; the only use was
62429         replaced by its body.
62430         (__argp_short_program_name): Change condition from
62431         !defined __argp_short_program_name to
62432         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62433         to match argp-namefrob.h.
62434         (__argp_failure): Don't assume strerror_r returns char *.
62435         * lib/argp-parse.c (N_): Define unconditionally.
62436         (argp_default_options): Fill out initializers with 0 to avoid
62437         gcc warnings.
62438
62439 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62442         getopt1.c.
62443
62444 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62445
62446         Merge from coreutils.
62447
62448         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62449
62450         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62451         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62452
62453 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62454
62455         Merge from coreutils.
62456
62457         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62458         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62459         for Reliant Unix 5.43.
62460
62461         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62462         (union fooround): Use uintmax_t, not long int.
62463         The rest is a merge from libc:
62464         [defined _LIBC]: Include <shlib-compat.h>.
62465         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62466
62467         * lib/settime.c (settime): Recode to avoid warning with
62468         Sun Forte C 6U2.
62469
62470         * lib/strverscmp.c: Convert to UTF-8.
62471
62472 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62475         m4/uintmax_t.m4.
62476
62477 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62478
62479         * modules/xalloc-die: New file.
62480         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62481
62482         * modules/md5 (Files): Add m4/uint32_t.m4.
62483         * modules/sha1: Renamed from modules/sha.
62484         (Files):
62485         Rename lib/sha.h to lib/sha1.h.
62486         Rename lib/sha.c to lib/sha1.c.
62487         Rename m4/sha.m4 to m4/sha1.m4.
62488         (lib_SOURCES): Likewise.
62489         (configure.ac): Rename gl_SHA to gl_SHA1.
62490         (Include): sha.h -> sha1.h.
62491
62492 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62493
62494         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62495         * m4/sha1.m4: Renamed from sha.m4.
62496         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62497
62498 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/obstack.h (obstack_empty_p):
62501         Don't assume that chunk->contents is suitably aligned.
62502         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62503         Likewise. Problem reported by Benno in
62504         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62505
62506         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62507         readable.  This could be improved further but it'd take some work.
62508
62509 2004-08-08  Simon Josefsson  <jas@extundo.com>
62510
62511         * modules/xgethostname (Depends-on): Remove exit and error (not
62512         used).
62513
62514         * modules/getpass-gnu: Add getpass.h.
62515         (Depends-on): Add stdbool.
62516         * modules/getpass: Add getpass.h.
62517
62518 2004-08-08  Simon Josefsson  <jas@extundo.com>
62519
62520         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62521         Check getpass declaration.
62522
62523 2004-08-08  Simon Josefsson  <jas@extundo.com>
62524
62525         * lib/xgethostname.c: Don't include error.h (not used).
62526
62527         * lib/getpass.h: Add.
62528         * lib/getpass.c: Include getpass.h first.
62529
62530 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62531
62532         * lib/xalloc-die.c: New file.
62533         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62534         All uses removed.
62535         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62536         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62537         xalloc-die.c.
62538         (_, N_, xalloc_die): Move to xalloc-die.c.
62539         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62540         so that we needn't mess with xalloc_msg_memory_exhausted.
62541
62542         * lib/sha1.h: Renamed from sha.h.
62543         (SHA1_H): Renamed from _SHA_H.
62544         (sha1_ctx): Renamed from sha_ctx.
62545         (sha1_init_ctx): Renamed from sha_init_ctx.
62546         (sha1_process_block): Renamed from sha_process_block.
62547         (sha1_process_bytes): Renamed from sha_process_bytes.
62548         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62549         (sha1_read_ctx): Renamed from sha_read_ctx.
62550         (sha1_stream): Renamed from sha_stream.
62551         (sha1_buffer): Renamed from sha_buffer.
62552         * lib/sha1.c: Likewise; renamed from sha.c.
62553         Do not include <sys/types.h>.
62554         Include <stddef.h> rather than <stdlib.h>.
62555
62556 2004-08-08  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62559         FILESYSTEM_PREFIX_LEN.
62560         * lib/progreloc.c: Likewise.
62561         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62562
62563 2004-08-06  Simon Josefsson  <jas@extundo.com>
62564
62565         * modules/progname (Depends-on): Don't depend on stdbool.
62566
62567 2004-08-06  Simon Josefsson  <jas@extundo.com>
62568
62569         * modules/getsubopt: New file.
62570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62571         getsubopt.
62572
62573 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62574
62575         More merge from coreutils.
62576
62577         * m4/utimens.m4, m4/utimecmp.m4: New files.
62578         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62579         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62580         prereq.m4, sha.m4: Import changes from coreutils.
62581
62582 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         More merge from coreutils.
62585         * modules/raise, modules/readtokens0, modules/utimens:
62586         * modules/utimecmp, module/xnanosleep: New files.
62587         * modules/strftime: Add lib/strftime.h.
62588         Change include from <time.h> to "strftime.h".
62589         * modules/yesno: Add lib/yesno.h.
62590         * modules/backupfile: Remove lib/addext.c.
62591         * modules/euidaccess: Add stat-macros.h.
62592         * modules/canonicalize, modules/euidaccess,
62593         modules/filemode, modules/lchown, modules/makepath,
62594         modules/rmdir, modules/stat: Likewise.
62595
62596 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62597
62598         Merge from tar.
62599         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62600         SIZE_MAX is a valid preprocessor constant.
62601         (__argp_basename): Change from "#ifndef _LIBC"
62602         to "#ifndef __argp_short_program_name", so that
62603         we don't compile these functions for tar.
62604
62605         More merges from coreutils.
62606         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62607         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62608         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62609         * lib/addext.c: Remove; no longer needed.
62610         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62611         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62612         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62613         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62614         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62615         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62616         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62617         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62618         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62619         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62620         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62621         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62622         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62623         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62624         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62625         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62626         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62627         Import changes from coreutils.
62628
62629 2004-08-05  Simon Josefsson  <jas@extundo.com>
62630
62631         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62632
62633 2004-08-05  Simon Josefsson  <jas@extundo.com>
62634
62635         * m4/getsubopt.m4: New file.
62636
62637 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         Merge from coreutils.
62640
62641         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62642         * m4/getcwd-path-max.m4: New files.
62643
62644         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62645         FILESYSTEM_PREFIX_LEN ->
62646         FILE_SYSTEM_PREFIX_LEN.
62647         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62648         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62649         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62650         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62651
62652         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62653         prerequisite modules now handle the DOS stuff.
62654         Don't check for unistd.h.
62655
62656 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         Merge from coreutils.
62659
62660         * lib/.gdb-history: Remove; this doesn't belong here.
62661
62662         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62663         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62664         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62665         * lib/getcwd.c: New files.
62666
62667         * lib/dirname.h: Include <stdbool.h>.
62668         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62669         for consistency with POSIX terminology.  All uses changed.
62670         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62671         (strip_trailing_slashes): Use bool for booleans.
62672         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62673
62674         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62675         sometimes returns a positive errno value even when it succeeds.
62676         (print_errno_message) [!LIBC]: Fall back on strerror if
62677         __strerror_r fails.
62678
62679         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62680         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62681         (longest_relative_suffix): New function.
62682         (path_concat): Use it.  Assume first argument is not NULL.
62683         Port to DOS.  Omit redundant separators.
62684         Report an error instead of returning NULL.
62685         Use mempcpy instead of memcpy.
62686         (xpath_concat): Remove: not declared or used.
62687
62688         * lib/same.h: Include <stdbool.h>
62689         (same_name): Return bool, not int.
62690         * lib/same.c (same_name): Likewise.
62691         (errno): Don't declare; we assume C89 or better now.
62692
62693         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62694         if not already defined.
62695
62696         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62697         * lib/dup-safer.c (errno): Likewise.
62698
62699 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         Merge from coreutils.
62702         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62703         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62704         * modules/path-concat: Don't depend on strdup.
62705
62706 2004-08-03  Simon Josefsson  <jas@extundo.com>
62707
62708         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62709         * lib/progname.h: Don't include stdbool.h.
62710
62711 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62712
62713         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62714         * MODULES.html.sh (func_all_modules): Remove fatal.
62715
62716 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62719
62720 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62721
62722         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62723         working.
62724
62725 2004-08-02  Simon Josefsson  <jas@extundo.com>
62726
62727         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62728         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62729         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62730
62731 2004-08-01  Simon Josefsson  <jas@extundo.com>
62732
62733         * lib/xgetdomainname.c: Include stdlib.h, for free().
62734
62735 2004-07-19  Bruno Haible  <bruno@clisp.org>
62736
62737         * MODULES.html.sh (func_all_modules): Add dummy.
62738
62739 2004-07-16  Simon Josefsson  <jas@extundo.com>
62740
62741         * modules/dummy: New file.
62742
62743 2004-07-16  Simon Josefsson  <jas@extundo.com>
62744
62745         * lib/dummy.c: New file.
62746
62747 2004-07-16  Bruno Haible  <bruno@clisp.org>
62748
62749         * lib/backupfile.h: Add extern "C" for C++.
62750         * lib/closeout.h: Likewise.
62751         * lib/copy-file.h: Likewise.
62752         * lib/findprog.h: Likewise.
62753         * lib/full-write.h: Likewise.
62754         * lib/pathname.h: Likewise.
62755         * lib/progname.h: Likewise.
62756         * lib/stpcpy.h: Likewise.
62757         * lib/stpncpy.h: Likewise.
62758         * lib/strcase.h: Likewise.
62759         * lib/strstr.h: Likewise.
62760         * lib/xalloc.h: Likewise.
62761
62762         * lib/mbswidth.h: Add extern "C" for C++.
62763         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62764
62765 2004-07-13  Robert Millan  <robertmh@gnu.org>
62766
62767         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62768
62769 2004-07-09  Simon Josefsson  <jas@extundo.com>
62770
62771         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62772         failed without this.)
62773
62774 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62775
62776         * modules/chown (Files): Add lib/fchown-stub.c, since
62777         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62778
62779 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62780
62781         * lib/fchown-stub.c: New file.
62782
62783 2004-06-24  Jim Meyering  <jim@meyering.net>
62784
62785         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62786
62787 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62788
62789         * modules/argz: Omit "#include".
62790
62791         * MODULES.html.sh (func_all_modules): Add calloc, to match
62792         2004-06-01 addition of calloc module.
62793
62794 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * m4/argz.m4: New file, which is autoupdated from libtool.
62797
62798 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62799
62800         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62801         libtool.
62802
62803 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * config/srclist-update: Don't insist on "USA." before the
62806         close-comment, as libtool omits the period and puts the */ on a
62807         separate line.
62808         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62809         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62810
62811 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62812
62813         * modules/argz: New file.
62814         * MODULES.html.sh (func_all_modules): Add argz.
62815
62816 2004-06-12  Jim Meyering  <jim@meyering.net>
62817         and  Paul Eggert  <eggert@cs.ucla.edu>
62818
62819         * modules/hash (Files): Add lib/xalloc.h.
62820         * modules/pipe (Depends-on): Add wait-process.
62821         * modules/stat (Depends-on): Add xalloc.
62822         * modules/userspec (Files): Add lib/userspec.h.
62823         * modules/xstrto
62824
62825         Upgrade from gettext-0.13.
62826         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62827         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62828         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62829
62830 2004-06-10  Jim Meyering  <jim@meyering.net>
62831
62832         * lib/calloc.c: New file.
62833
62834 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         * lib/getdate.y (yylex): Allow space between sign and number.
62837         Problem reported by Dan Jacobson.
62838
62839 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         Merge from coreutils CVS.
62842
62843         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62844         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62845         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62846         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62847         xstrtol.m4: Fix copyright date and/or serial number.
62848
62849         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62850         See if we need an fchown replacement.
62851         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62852         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62853         and use the replacement function if we detect either defect.
62854
62855         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62856         gl_UTIMECMP.
62857
62858 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62859         and  Jim Meyering  <jim@meyering.net>
62860
62861         Merge from coreutils CVS.
62862
62863         * lib/stat-macros.h: New file, with contents from file-type.h
62864         and coreutils' system.h.
62865         * lib/file-type.c: Include "stat-macros.h".
62866         * lib/file-type.h (file_type): Move all macro definitions to new file,
62867         stat-macros.h.
62868
62869         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
62870         Wrap old code with this conditional.
62871         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
62872         function that does not dereference symlinks.
62873         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
62874
62875         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
62876         dependency problems.
62877         (xreadlink): Accept new arg SIZE, for efficiency.
62878         All decls and uses changed.
62879         * lib/xreadlink.h: Include <stddef.h>, for size_t.
62880
62881         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
62882         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
62883
62884         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
62885         sysexits.h.
62886
62887 2004-06-01  Jim Meyering  <jim@meyering.net>
62888
62889         * m4/calloc.m4: New file.
62890
62891 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
62892
62893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
62894         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
62895         Also, fix a typo in a diagnostic.
62896
62897 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
62900         or AC_FUNC_REALLOC.
62901
62902 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
62903
62904         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
62905         macros to be defined.
62906         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
62907         the allocator returns NULL because the requested size is zero.
62908
62909 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
62912         var.  Add comment explaining why libc still defines it.  This
62913         merges the following patch from glibc:
62914         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
62915
62916 2004-05-20  Andreas Schwab  <schwab@suse.de>
62917
62918         * m4/free.m4: Replace free if it not known to work, not the other
62919         way round.
62920
62921 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
62924         present in glibc since revision 1.1 of this file.
62925         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
62926         obstack_alignment_mask, obstack_alloc, obstack_base,
62927         obstack_blank, obstack_blank_fast, obstack_chunk_size,
62928         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
62929         obstack_grow0, obstack_init, obstack_int_grow,
62930         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
62931         obstack_next_free, obstack_object_size, obstack_ptr_grow,
62932         obstack_ptr_grow_fast, obstack_room): Remove declarations of
62933         nonexistent functions.
62934
62935 2004-05-18  Karl Berry  <karl@gnu.org>
62936
62937         * config/srclist.txt: break link for vasnprintf.c.
62938
62939 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62940
62941         Port obstack to the AS/400, where pointers are 16 bytes wide and
62942         you cannot cast an integer to a valid pointer.  This patch is
62943         currently waiting to be integrated into glibc; see
62944         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
62945
62946         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
62947         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
62948         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
62949         (struct obstack): temp member is now a union of a pointer and
62950         an integer, instead of an integer.  All integer uses changed.
62951         This does not affect the physical layout of struct obstack,
62952         except on hosts (like the AS/400) where the size or alignment of
62953         void * is greater than that of ptrdiff_t.
62954         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
62955         __STDC__)]: Store temporary in pointer member of union, not
62956         integer member.
62957         * lib/obstack.c: Include <stddef.h>, for offsetof.
62958         (struct fooalign): Remove; it doesn't need a name.
62959         (union fooround): Change double to long double, and add void *.
62960         (DEFAULT_ALIGNMENT): Use offsetof to compute.
62961         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
62962         not a macro.  Hence the values are always int; so remove all
62963         casts-to-int in uses.
62964
62965 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
62968         we can get this patch merged into glibc.
62969
62970 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62971             Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * m4/argp: Depend on alloca.
62974
62975 2004-05-17  Derek R. Price  <derek@ximbiot.com>
62976             Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
62979         freecoding.
62980
62981 2004-05-17  Bruno Haible  <bruno@clisp.org>
62982
62983         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
62984         precision that consists of a '.' followed by an empty digit string.
62985         Patch by Tor Lillqvist <tml@iki.fi>.
62986
62987 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
62990         for backward compatibility with older code.  We need our own
62991         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
62992         it under some other name, and our alloca.h will define it.
62993
62994 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62995             Derek Price  <derek@ximbiot.com>
62996
62997         * lib/alloca.c: Include <alloca.h>, to get our interface.
62998         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
62999         include <alloca.h> first.  Use C89 prototype for alloca; this
63000         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63001         Use #elif for simplicity, since we can assume C89 now.
63002         Don't try to source the system alloca.h since it will not be found
63003         and to prevent recursively including its replacement.
63004         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63005         * lib/regex.c: Likewise.
63006
63007 2004-05-16  Derek Price  <derek@ximbiot.com>
63008             Paul Eggert  <eggert@cs.ucla.edu>
63009
63010         getline cleanup.  This changes the getndelim2 API: both order of
63011         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63012         no delimiter).
63013
63014         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63015         interface does that.
63016         (getline): Always use getdelim, so that we don't have two
63017         copies of this code.
63018         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63019         if available.
63020         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63021         (GETNDELIM2_MAXIMUM): New macro.
63022         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63023         instead of the old practice of delim2==0.  All callers changed.
63024         Return -1 on overflow, instead of returning junk.
63025         Do not set *linesize unless allocation succeeds.
63026         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63027         that we include sys/types.h.
63028         * lib/getnline.h: Likewise.
63029         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63030         (getndelim2): Reorder arguments.
63031         * lib/getnline.c (getnline, getndelim):
63032         Don't discard the NMAX argument.
63033         (getnline): Invoke getndelim, to avoid code duplication.
63034         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63035         of (size_t) -1 by callers of the getnline family.
63036
63037 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63038
63039         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63040         Check for gettimeofday.
63041         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63042         Check for settimeofday, stime.
63043
63044 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63045
63046         * lib/nanosleep.c (suspended): Change its type from int to
63047         sig_atomic_t volatile.
63048         (first_call): Make it private to rpl_nanosleep, and have it
63049         be zero initially as that's a bit faster.
63050         (my_usleep): Round up fractional times instead of truncating them,
63051         as this is the usual meaning for 'sleep'.
63052
63053         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63054         doesn't work.
63055         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63056         (ENOSYS): Define if not defined.
63057         (settime): Fall back on stime if it exists and settimeofday fails.
63058         But don't bother with fallbacks if a method fails with errno == EPERM.
63059
63060 2004-05-11  Jim Meyering  <jim@meyering.net>
63061
63062         Prior to this change, the save_cwd caller required read access to the
63063         current directory on most systems (ones with the fchdir function).
63064
63065         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63066         fails, try write-only, and finally, resort to using xgetcwd.
63067
63068 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * lib/obstack.c, obstack.h: Import changes from libc.
63071
63072 2004-04-28  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63075         also implicitly appends .exe to executables.
63076         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63077         accepts Windows pathnames.
63078         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63079         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63080         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63081         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63082         Reported by Derek Robert Price <derek@ximbiot.com>.
63083
63084 2004-04-21  Karl Berry  <karl@gnu.org>
63085
63086         * config/srclist.txt (localcharset.c): break sync.
63087
63088 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63089
63090         * m4/host-os.m4: Add a copyright notice.
63091
63092 2004-04-20  Jim Meyering  <jim@meyering.net>
63093
63094         Change UTILS_ to gl_ in AC_DEFINE'd names.
63095         Change utils_- and jm_-prefixed variables, too.
63096         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63097         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63099
63100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63101         Don't emit trailing blanks.
63102         Also rename jm_-prefixed variables to have gl_ prefix.
63103
63104         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63105         Also rename jm_-prefixed variables to have gl_ prefix.
63106
63107         * m4/jm-macros.m4: Reflect the renamings.
63108         * m4/prereq.m4: Likewise.
63109
63110 2004-04-20  Jim Meyering  <jim@meyering.net>
63111
63112         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63113         memory.
63114
63115 2004-04-20  Jim Meyering  <jim@meyering.net>
63116             Bruno Haible  <bruno@clisp.org>
63117
63118         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63119         memory when realloc fails.
63120
63121 2004-04-19  Jim Meyering  <jim@meyering.net>
63122
63123         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63124         now that readutmp.c may call `free (0)'.
63125
63126 2004-04-19  Bruno Haible  <bruno@clisp.org>
63127
63128         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63129         * m4/inttypes_h.m4: Likewise.
63130         * m4/stdint_h.m4: Likewise.
63131         * m4/intmax_t.m4: Likewise.
63132         * m4/uintmax_t.m4: Likewise.
63133
63134 2004-04-18  Jim Meyering  <jim@meyering.net>
63135
63136         * m4/prereq.m4: Don't forbid jm_ prefix.
63137
63138         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63139         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63140         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63141         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63142         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63143         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63144         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63145         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63146         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63147         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63148         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63149         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63150         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63151         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63152         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63153         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63154         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63155         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63156         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63157
63158 2004-04-18  Jim Meyering  <jim@meyering.net>
63159
63160         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63161         failure, don't leak memory and do call END_UTMP_ENT.
63162
63163 2004-04-16  Jim Meyering  <jim@meyering.net>
63164
63165         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63166         coreutils' stat program.
63167         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63168
63169 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63170
63171         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63172         C89.
63173         (CHAR_BIT): Remove, since we assume C89.
63174         Include <stdint.h> if available, as per current Autoconf CVS advice.
63175
63176 2004-03-31  Jim Meyering  <jim@meyering.net>
63177
63178         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63179         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63180         * m4/xalloc.m4: Likewise.
63181
63182 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63183
63184         Merge from coreutils.
63185
63186         * m4/inttostr.m4: New file.
63187         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63188         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63189         Require gl_CLOCK_TIME.
63190         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63191
63192 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63193
63194         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63195         not bool, to be more consistent with Unix conventions.
63196         Suggested by Bruno Haible.
63197
63198         Merge from coreutils.
63199
63200         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63201         * lib/umaxtostr.c: New files.
63202
63203         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63204         the usual <time.h> dance.
63205         (get_date): Change signature to support fractional time stamps.
63206         All callers changed.
63207         * lib/getdate.y: Include "getdate.h" first, as we can now
63208         assume C89 and don't need to worry about 'const'.
63209         Similarly, include "unlocked-io.h" near start, not in middle.
63210         Include <limits.h>.
63211         (textint.value): Use long int rather than int.
63212         (textint.digits): Use size_t rather than int.
63213         (BILLION, LOG10_BILLION): New constants.
63214         (parser_control): New member rel_ns.  Members day_ordinal,
63215         time_zone, month, day, hour, minutes, rel_year, rel_month,
63216         rel_day, rel_hour, rel_minutes, rel_seconds
63217         are now long int, not int.  Member seconds is now struct timespec,
63218         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63219         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63220         not int.
63221         (%union.intval): Now long int, not int.
63222         New member timespec.
63223         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63224         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63225         (spec): Now is a timespec or an item list.
63226         (timespec, items): New nonterminals.
63227         (time, rel, relunit, number, get_date):
63228         Add support for fractional seconds.
63229         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63230         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63231         (to_hour): First arg is now long int, not int.
63232         (to_year): Returns long int, not int.
63233         Don't treat year -70 like 70.
63234         (tm_diff): Returns long int, not int.
63235         (lookup_word): Use bool instead of int when appropriate.
63236         (yylex): Use size_t for count, not int.
63237         Detect overflow when parsing large integer constants.
63238         Add support for fractions.
63239         (get_date): Make pointers 'const' if possible.
63240         Use more-portable code to detect integer overflow.
63241         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63242         Don't use ctime; it's not reliable if the year has >4 digits.
63243
63244         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63245         This is for compatibility with BSD.
63246
63247         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63248         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63249         From coreutils' system.h.
63250
63251         * lib/userspec.c: Don't include "posixver.h".
63252         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63253         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63254         compatible extension.  Simplify code by removing a boolean int
63255         that was always nonzero if a string was nonnull.
63256
63257 2004-03-30  Jim Meyering  <jim@meyering.net>
63258
63259         Merge from coreutils.
63260
63261         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63262         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63263         on some systems one must include <grp.h> before it.
63264         Reported by Christian Krackowizer.
63265
63266 2004-03-30  Jim Meyering  <jim@meyering.net>
63267
63268         Merge from coreutils.
63269
63270         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63271
63272         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63273         an empty input stream.
63274
63275         * lib/readtokens.c: Include <stdbool.h>.
63276         (readtoken): Use `size_t' rather than int/long.
63277         All callers adjusted.
63278         Use `bool' rather than `int' where appropriate.
63279         Use memset rather than an explicit loop.
63280         Use x2nrealloc rather than xrealloc.
63281         Allow the use of `\0' as a delimiter.
63282         (readtokens): Likewise.
63283         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63284
63285 2004-03-30  Jim Meyering  <jim@meyering.net>
63286
63287         * m4/realloc.m4: Remove file, since now it does no more than
63288         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63289         the `configure.ac' section of module/realloc.
63290         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63291
63292 2004-03-30  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63295         nonnull.
63296
63297 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63298
63299         Merge changes to getloadavg.c from coreutils and Emacs.
63300
63301         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63302         Define to an expression, not to the empty string.
63303         Include cloexec.h and xalloc.h.
63304         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63305         Use set_cloexec_flag rather than rolling our own.
63306         * lib/cloexec.c, lib/cloexec.h: New files.
63307
63308 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63309
63310         * m4/cloexec.m4: New file.
63311
63312 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63313
63314         * lib/getopt.h: Sync with libc CVS.
63315
63316 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63317             Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63320         mbswidth.
63321
63322 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63323             Bruno Haible  <bruno@clisp.org>
63324
63325         * lib/mbswidth.h: Include <wchar.h> only if
63326         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63327         <wchar.h>.
63328         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63329
63330 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63331
63332         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63333         Sync with libc CVS.
63334         * lib/getopt_int.h: New file, also synced from libc.
63335
63336 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63337
63338         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63339         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63340         Bring back getopt.c, getopt.h, getopt1.c.
63341
63342 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63343
63344         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63345         All uses changed.  Check for sa_sigaction member; this fixes
63346         a bug first reported by Jason Andrade in
63347         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63348
63349 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63350
63351         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63352         '#if' expressions.  Unlike the code it replaces, it does not
63353         depend on (defined _SC_PAGESIZE).  However, it does depend on
63354         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63355         first reported by Jason Andrade in
63356         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63357
63358 2004-02-25  Simon Josefsson  <jas@extundo.com>
63359
63360         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63361
63362 2004-02-25  Simon Josefsson  <jas@extundo.com>
63363
63364         * lib/strdup.h: New file.
63365         * lib/strdup.c: Include it.
63366         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63367         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63368
63369 2004-02-23  Karl Berry  <karl@gnu.org>
63370
63371         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63372         (from fencepost.gnu.org:/gd/gnuorg).
63373
63374 2004-02-23  Karl Berry  <karl@gnu.org>
63375
63376         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63377         * config/srclist.txt: add maintain/standards documents.
63378
63379 2004-02-18  Bruno Haible  <bruno@clisp.org>
63380
63381         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63382         Reported by Derek Robert Price <derek@ximbiot.com>.
63383
63384 2004-02-16  Karl Berry  <karl@gnu.org>
63385
63386         * config/mkinstalldirs, install-sh: update from automake.
63387
63388 2004-02-06  Karl Berry  <karl@gnu.org>
63389
63390         * m4/po.m4: update from gettext 0.14.1.
63391
63392 2004-02-06  Karl Berry  <karl@gnu.org>
63393
63394         * lib/config.charset: update from gettext 0.14.1.
63395
63396 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63397
63398         Add comments and code, prompted by suggestions from Bruno Haible
63399         for sh-quote.
63400         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63401         describing the enum quoting_style values.
63402         * lib/quotearg.c (quotearg_alloc): New function.
63403         (quotearg_buffer_restyled): Treat lone { and } as special.
63404         Treat = as special.  Work around bug with older shells
63405         that "see" a '\' that is really the 2nd byte of a multibyte char.
63406         Quote empty string with shell_quoting_style.
63407
63408 2004-02-03  Bruno Haible  <bruno@clisp.org>
63409
63410         * m4/pipe.m4: New file, from GNU gettext.
63411
63412 2004-02-03  Bruno Haible  <bruno@clisp.org>
63413
63414         * lib/pipe.h: New file, from GNU gettext.
63415         * lib/pipe.c: New file, from GNU gettext.
63416
63417 2004-01-27  Bruno Haible  <bruno@clisp.org>
63418
63419         * m4/execute.m4: New file, from GNU gettext.
63420
63421 2004-01-27  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/execute.h: New file, from GNU gettext.
63424         * lib/execute.c: New file, from GNU gettext.
63425         * lib/w32spawn.h: New file, from GNU gettext.
63426
63427 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63428
63429         Merge from diffutils.
63430
63431         * lib/file-type.c (file_type): Add typed memory objects.
63432         * lib/file-type.h (S_TYPEISTMO): New macro.
63433
63434         * lib/c-stack.h (c_stack_action): Remove argv argument.
63435         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63436         (die): Don't calculate message unless segv_action returns.
63437         (get_stack_location, min_address_from_argv, max_address_from_argv,
63438         volatile stack_base, volatile_stack_size): Remove.
63439         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63440         that every segmentation violation is a stack overflow.  (Ouch!)
63441         See Debian bug 136249 (still outstanding) for more info about why
63442         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63443
63444 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63445
63446         Exit-status fix from coreutils.
63447
63448         Use exit_failure consistently in place of EXIT_FAILURE,
63449         so that program exit statuses are consistent on failure.
63450
63451         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63452         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63453         * lib/argmatch.h: Comment fix to match the above.
63454         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63455         Now a macro referring to exit_failure, instead of a separate
63456         variable.  Include "exitfail.h" to get it.
63457         * lib/xstrtol.h: Include "exitfail.h".
63458         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63459
63460         * lib/long-options.c (parse_long_options): Use prototype
63461         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63462         for clarity.
63463
63464 2004-01-21  Jim Meyering  <jim@meyering.net>
63465
63466         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63467         so as not to conflict with a different-sized __mktime_internal
63468         function in GNU libc.
63469         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63470         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63471
63472 2004-01-20  Karl Berry  <karl@gnu.org>
63473
63474         * config/config.guess: update from config.
63475
63476         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63477
63478 2004-01-20  Bruno Haible  <bruno@clisp.org>
63479
63480         Safer stack allocation.
63481         * lib/setenv.c: Include allocsa.h.
63482         (alloca): Remove fallback definition.
63483         (freea): Remove macro.
63484         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63485         instead of freea.
63486
63487 2004-01-20  Bruno Haible  <bruno@clisp.org>
63488
63489         * m4/eealloc.m4: New file, from GNU gettext.
63490
63491 2004-01-20  Bruno Haible  <bruno@clisp.org>
63492
63493         * m4/allocsa.m4: New file, from GNU gettext.
63494
63495 2004-01-20  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/xallocsa.h: New file, from GNU gettext.
63498         * lib/xallocsa.c: New file, from GNU gettext.
63499
63500 2004-01-20  Bruno Haible  <bruno@clisp.org>
63501
63502         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63503
63504 2004-01-20  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63507         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63508         specially.
63509
63510 2004-01-20  Bruno Haible  <bruno@clisp.org>
63511
63512         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63513         patch.
63514
63515 2004-01-20  Bruno Haible  <bruno@clisp.org>
63516
63517         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63518
63519 2004-01-20  Bruno Haible  <bruno@clisp.org>
63520
63521         * lib/eealloc.h: New file.
63522
63523 2004-01-20  Bruno Haible  <bruno@clisp.org>
63524
63525         * lib/binary-io.h: Avoid warnings on Cygwin.
63526
63527 2004-01-20  Bruno Haible  <bruno@clisp.org>
63528
63529         * lib/allocsa.h: New file, from GNU gettext.
63530         * lib/allocsa.c: New file, from GNU gettext.
63531
63532 2004-01-18  Karl Berry  <karl@gnu.org>
63533
63534         * doc/gpl.texi, doc/lgpl.texi: new files.
63535
63536 2004-01-18  Karl Berry  <karl@gnu.org>
63537
63538         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63539         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63540
63541 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63542
63543         Merge from coreutils.
63544
63545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63546         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63547         (gl_DEFAULT_POSIX2_VERSION): Move
63548         the documentation from 'configure' into 'config.hin',
63549         so that 'configure --help' isn't burdened by it and
63550         we don't have to worry about its formatting there.
63551         Reword the documentation so that it's more succinct
63552         and can be run together into a single paragraph.
63553         * m4/same.m4 (gl_SAME): Check for pathconf.
63554
63555 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63556
63557         Merge from coreutils.
63558
63559         * lib/posixver.c: Include posixver.h.
63560
63561         * lib/same.c: Include <stdbool.h>, <limits.h>.
63562         (_POSIX_NAME_MAX): Define if not defined.
63563         (MIN): New macro.
63564         (same_name): If file names are silently truncated, report
63565         that the file names are the same if they are the same after
63566         the silent truncation.
63567
63568         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63569         conversion function.
63570         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63571         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63572         longer needed.
63573
63574 2004-01-15  Jim Meyering  <jim@meyering.net>
63575
63576         Merge from coreutils.
63577
63578         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63579         if no library is required.
63580         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63581         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63582         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63583         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63584         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63585         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63586         value, $ac_cv_search_crypt, if it's "none required".
63587         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63588         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63589         not gl_FUNC_GETLOADAVG.
63590         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63591         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63592
63593 2004-01-15  Jim Meyering  <jim@meyering.net>
63594
63595         Merge from coreutils.
63596
63597         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63598         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63599         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63600
63601         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63602         optional configure-time default.
63603
63604         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63605
63606         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63607
63608 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63609
63610         Merge from coreutils.
63611
63612         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63613         value, $ac_cv_search_nanosleep, if it's "none required".
63614
63615 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63616
63617         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63618         with like-named macro in fnmatch.c.
63619         (EXT): Use an internal constant instead.
63620
63621         Merge fnmatch patches from glibc.
63622         * lib/fnmatch.c (mbsinit): Remove define.
63623         Add libc_hidden_ver (__fnmatch, fnmatch).
63624         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63625         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63626
63627 2004-01-14  Karl Berry  <karl@gnu.org>
63628
63629         * config/install-sh: update from automake.
63630
63631 2004-01-13  Karl Berry  <karl@gnu.org>
63632
63633         * config/install-sh: update from automake.
63634
63635 2004-01-09  Karl Berry  <karl@gnu.org>
63636
63637         * config/install-sh: update from automake.
63638
63639 2004-01-05  Karl Berry  <karl@gnu.org>
63640
63641         * config/config.{sub,guess}: update from config.
63642
63643 2003-12-31  Karl Berry  <karl@gnu.org>
63644
63645         * config/depcomp: update from automake.
63646
63647 2003-12-14  Karl Berry  <karl@gnu.org>
63648
63649         * lib/config.charset: update from gettext-runtime.
63650
63651 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63652
63653         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63654         Bug reported by Alfred M. Szmidt.
63655
63656 2003-12-03  Bruno Haible  <bruno@clisp.org>
63657
63658         * m4/gettext.m4: Upgrade from gettext-0.13.
63659         * m4/po.m4: Upgrade from gettext-0.13.
63660         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63661         * m4/intmax.m4: New file, from gettext-0.13.
63662         * m4/printf-posix.m4: New file, from gettext-0.13.
63663
63664 2003-11-29  Karl Berry  <karl@gnu.org>
63665
63666         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63667
63668 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63669             Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/printf-parse.h: Don't include sys/types.h.
63672         (ARG_NONE): New macro.
63673         (char_directive): Change type of *arg_index fields to size_t.
63674         * lib/printf-parse.c: Don't include sys/types.h.
63675         (SSIZE_MAX): Remove macro.
63676         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63677         Remove unnecessary overflow check.
63678         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63679         fields.
63680
63681 2003-11-25  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63684
63685 2003-11-25  Bruno Haible  <bruno@clisp.org>
63686
63687         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63688         gt_TYPE_SSIZE_T.
63689
63690 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63691
63692         * modules/alloca: Remove dependency on xalloc.
63693
63694 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63695
63696         * lib/alloca.c: Remove dependency on xalloc module.
63697         (xalloc_die): Remove.
63698         (memory_full) [!defined emacs]: New macro.
63699         [!defined emacs]: Don't include xalloc.h.
63700         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63701         address arithmetic overflows.  Change datatypes a bit to avoid
63702         unnecessary casts.
63703
63704 2003-11-22  Jim Meyering  <jim@meyering.net>
63705
63706         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63707         s/size/size_t/.
63708
63709 2003-11-21  Karl Berry  <karl@gnu.org>
63710
63711         * config/config.{sub,guess}: update from config.
63712
63713 2003-11-18  Karl Berry  <karl@gnu.org>
63714
63715         * config/config.{sub,guess}: update from config.
63716
63717         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63718
63719 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63720
63721         * README: Mention that S+T cannot overflow if S is the size of
63722         an existing object and T is sufficiently small.
63723
63724 2003-11-17  Jim Meyering  <jim@meyering.net>
63725
63726         On systems without utime and without a utimes function capable of
63727         dealing with a NULL struct utimbuf* argument, this utime replacement
63728         could -- in unusual circumstances -- leak a file descriptor.
63729         * lib/utime.c: Include <unistd.h> and <errno.h>.
63730         (utime_null): Be sure to close `fd' and to preserve errno.
63731         Reported by Geoff Collyer via Arnold Robbins.
63732
63733 2003-11-17  Bruno Haible  <bruno@clisp.org>
63734
63735         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63736         (Depends-on): Add xsize.
63737
63738 2003-11-17  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63741
63742 2003-11-17  Bruno Haible  <bruno@clisp.org>
63743
63744         * lib/vasnprintf.c (alloca): Remove fallback definition.
63745         (freea): Remove definition.
63746         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63747         Reported by Paul Eggert.
63748
63749 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63750             Bruno Haible  <bruno@clisp.org>
63751
63752         Protect against address arithmetic overflow.
63753         * lib/printf-args.h: Include stddef.h.
63754         (arguments): Change type of field 'count' to size_t.
63755         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63756         'unsigned int' where appropriate.
63757         * lib/printf-parse.h: Include sys/types.h.
63758         (char_directive): Change type of *arg_index fields to ssize_t.
63759         (char_directives): Change type of fields 'count', max_*_length to
63760         size_t.
63761         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63762         (SSIZE_MAX): Define fallback value.
63763         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63764         instead of 'int' where appropriate. Check a_allocated, d_allocated
63765         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63766         * lib/vasnprintf.c: Include xsize.h.
63767         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63768         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63769         overflow. Avoid wraparound when converting a width or precision from
63770         decimal to binary.
63771
63772 2003-11-16  Bruno Haible  <bruno@clisp.org>
63773
63774         Update from GNU gettext.
63775         * lib/printf-parse.c: Generalize to it can be compiled for wide
63776         strings.
63777         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63778         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63779         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63780         SNPRINTF): New macros.
63781         Don't include <alloca.h> if the file is used inside libintl.
63782         (local_wcslen): New function, for Solaris 2.5.1.
63783         (VASNPRINTF): Use it instead of wcslen.
63784
63785 2003-11-16  Bruno Haible  <bruno@clisp.org>
63786
63787         * lib/xsize.h (xmax): New function.
63788         (xsum, xsum3, xsum4): Declare as "pure" functions.
63789
63790 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63791
63792         * modules/xalloc (Files): Undo latest change, since xalloc.h
63793         no longer needs SIZE_MAX or PTRDIFF_MAX.
63794
63795 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63796
63797         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63798         gl_PTRDIFF_MAX.
63799
63800 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63801
63802         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63803         "return", to pacify some unknown compiler.  Problem reported
63804         by Joerg Schilling.
63805
63806 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63807
63808         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63809         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63810         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63811         heuristic is just as accurate as far as we know, and it removes a
63812         dependency on size_max.m4 and ptrdiff_max.m4.
63813
63814 2003-11-11  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/xsize (Files): Add m4/size_max.m4.
63817         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63818
63819 2003-11-11  Bruno Haible  <bruno@clisp.org>
63820
63821         * m4/size_max.m4: New file.
63822         * m4/ptrdiff_max.m4: New file.
63823         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63824         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63825         (gl_XALLOC): Invoke it.
63826
63827 2003-11-11  Bruno Haible  <bruno@clisp.org>
63828
63829         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63830         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63831         defined.
63832
63833 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63834
63835         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63836         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63837         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63838         From Bruno Haible.
63839         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63840         not (size_t) -1, since it's defined here.
63841
63842 2003-11-09  Karl Berry  <karl@gnu.org>
63843
63844         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63845
63846 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63847
63848         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63849         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63850         Reject sizes of exactly SIZE_MAX bytes.
63851         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63852         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63853
63854 2003-11-05  Bruno Haible  <bruno@clisp.org>
63855
63856         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63857         SIZE_MAX defined in <limits.h> on Solaris.
63858
63859 2003-11-04  Jim Meyering  <jim@meyering.net>
63860
63861         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
63862         variable names, rather than @VAR@.
63863         * modules/poll: Likewise.
63864
63865 2003-11-04  Bruno Haible  <bruno@clisp.org>
63866
63867         * modules/xsize: New file.
63868         * modules/linebreak: Depend on xsize.
63869         * MODULES.html.sh (func_all_modules): Add xsize.
63870
63871 2003-11-04  Bruno Haible  <bruno@clisp.org>
63872
63873         * m4/xsize.m4: New file.
63874
63875 2003-11-04  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/xsize.h: New file.
63878         * lib/linebreak.c: Include xsize.h.
63879         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
63880         argument for overflow.
63881         Suggested by Paul Eggert.
63882
63883 2003-11-03  Karl Berry  <karl@gnu.org>
63884
63885         * config/config.{guess,sub}: update from config.
63886
63887 2003-11-03  Jim Meyering  <jim@meyering.net>
63888
63889         * modules/userspec (lib_SOURCES): Add userspec.h.
63890         (Include): Add "userspec.h".
63891         Improve description.
63892
63893 2003-11-03  Jim Meyering  <jim@meyering.net>
63894
63895         * lib/userspec.c: Include "userspec.h".
63896         * lib/userspec.h: New file.
63897
63898 2003-11-03  Bruno Haible  <bruno@clisp.org>
63899
63900         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
63901
63902 2003-11-03  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
63905         available, to avoid (extremely rare) race condition.
63906         Suggested by Paul Eggert.
63907
63908 2003-11-02  Karl Berry  <karl@gnu.org>
63909
63910         * config/srclist.txt (vasprintf.c): sync broken, sigh.
63911
63912 2003-10-31  Paul Eggert  <eggert@twinsun.com>
63913
63914         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
63915         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
63916         (read_filesystem_list): Set and use me_type_malloced.
63917         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
63918         whatever the type happens to be), for brevity and consistency.
63919         Check for size calculation overflow on Alphas running OSF/1.
63920
63921 2003-10-31  Jim Meyering  <jim@meyering.net>
63922
63923         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
63924
63925         * lib/linebuffer.c: Include <string.h> for declaration of memset.
63926
63927 2003-10-30  Paul Eggert  <eggert@twinsun.com>
63928             Bruno Haible  <bruno@clisp.org>
63929
63930         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
63931         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
63932
63933 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
63936         netbsd*-gnu*.  Suggested by Robert Millan.
63937
63938 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63939
63940         * modules/group-member: Depend on stdbool.
63941
63942 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63943
63944         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
63945
63946 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63947
63948         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
63949         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
63950         after the 'gnu' in these cases.  This fixes some bugs in the
63951         previous change, and is based on suggestions by Robert Millan.
63952
63953 2003-10-29  Paul Eggert  <eggert@twinsun.com>
63954
63955         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
63956         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
63957         no longer needed.
63958         * lib/quotearg.c (quotearg_n_options): Use it.
63959         * lib/group-member.c: Include <stdbool.h>.
63960         (free_group_info): Arg is now const *; don't free arg.
63961         (get_group_info): Now returns bool and accepts struct group_info *,
63962         rather than returning a malloc'ed struct group_info *.
63963         All uses changed.  Check for overflow in internal size calculation.
63964
63965         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
63966         rather than xmalloc/xrealloc.
63967         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
63968         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
63969         conformance bug: the old code used a pointer after freeing the
63970         storage that it addressed.
63971         * lib/hash.c (hash_initialize): Simplify the code by using
63972         xalloc_oversized rather than doing it by hand.
63973         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
63974         the buffer preserved.  Use free and xmalloc instead.
63975         * lib/quotearg.c (quotearg_n_options): Likewise.
63976         Use a simpler test for size overflow.  Don't use xalloc_oversized
63977         because unsigned int might be wider than size_t (!); this suggests
63978         that we should switch from unsigned int to size_t for slot numbers.
63979
63980 2003-10-28  Paul Eggert  <eggert@twinsun.com>
63981
63982         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
63983         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
63984         NetBSD kernels.  Requested by Richard Stallman.
63985
63986 2003-10-27  Paul Eggert  <eggert@twinsun.com>
63987
63988         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
63989         to allocate the returned structure.  Do not allocate a subarray,
63990         as x2nrealloc will do that.
63991         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
63992         instead of xnrealloc.
63993         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
63994
63995 2003-10-27  Bruno Haible  <bruno@clisp.org>
63996
63997         * lib/stdbool_.h: Better support for BeOS.
63998
63999 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64000
64001         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64002         now uses inline.
64003
64004 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64005
64006         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64007         callers that want to do their own size-overflow checking.  Include
64008         <stdbool.h>, since xalloc_oversized returns bool.
64009         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64010         to use xalloc_oversized.
64011
64012         Add two functions x2realloc, x2nrealloc, for programs that grow
64013         arrays dynamically by doubling their sizes.
64014         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64015         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64016         New functions.
64017
64018         Port to C99 semantics for 'inline' of external functions.
64019         Bug reported by Bruno Haible.
64020         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64021         with the old contents of xnmalloc.
64022         (xnmalloc, xmalloc): Use it.
64023         (xnrealloc_inline): New static inline function,
64024         with the old contents of xnrealloc.
64025         (xnrealloc, xrealloc): Use it.
64026
64027         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64028         that.
64029
64030 2003-10-26  Karl Berry  <karl@gnu.org>
64031
64032         * config/srclist.txt (COPYING.DOC): no longer available from
64033         /gd/gnuorg; don't know where the ultimate source is.
64034
64035 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64036
64037         Fix several address-calculation bugs in the hash modules,
64038         plus some minor code cleanup.
64039
64040         * lib/hash.h: Include <stdbool.h>, for bool.
64041         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64042         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64043         hash_get_n_entries, hash_get_max_bucket_length,
64044         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64045         hash_rehash): Use size_t rather than unsigned.
64046         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64047         hash_get_n_buckets_used, hash_get_n_entries,
64048         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64049         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64050         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64051         Likewise.
64052         (SIZE_MAX): Define if not defined.
64053         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64054         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64055         hash_print):
64056         Use const * when possible.
64057         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64058         (check_tuning): Fix bug: if tuning parameters were very close to
64059         0 or 1, rounding errors could have caused subscript violations.
64060         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64061         (hash_initialize): Add 'fail:' label
64062         to free table and return NULL, and use it to simplify code.
64063         Use calloc rather than clearing the storage ourself.
64064         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64065         buffer size calculations.
64066         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64067         Include <stddef.h>, for size_t.
64068         * lib/hash-pjw.c (hash_pjw): Likewise.
64069         Switch to method described by Bruno Haible.
64070         Include <limits.h>, for CHAR_BIT.
64071         (SIZE_BITS): New macro.
64072
64073 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64074
64075         * m4/getline.m4 (AM_FUNC_GETLINE):
64076         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64077         hosts.  Problem reported by Derek Robert Price in
64078         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64079         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64080         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64081
64082 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64083
64084         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64085         ceiling the allocation at NMAX bytes rather than silently
64086         discarding input bytes before NMAX is reached.  This makes
64087         a difference only if NMAX exceeds SIZE_MAX / 2.
64088
64089         * lib/obstack.c: Merge from glibc.
64090         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64091         Add libc_hidden_def (_obstack_newchunk).
64092         (_obstack_free) [! defined _LIBC]: Remove.
64093         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64094         a clone of the function body.
64095         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64096         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64097
64098         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64099         glibc.
64100         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64101         arg to memcpy.
64102
64103         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64104         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64105         Don't use lvalue casts, as GCC plans to remove support for them
64106         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64107         was also present in the non-GCC version, indicating that this
64108         code had always been buggy and had never been widely used.
64109         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64110         Use the fast variant of each macro, rather than copying the
64111         definiens of the fast variant; that way, we'll be more likely to
64112         catch future bugs in the fast variants.
64113
64114 2003-10-20  Bruno Haible  <bruno@clisp.org>
64115
64116         * modules/wait-process: New file.
64117         * MODULES.html.sh (func_all_modules): Add wait-process.
64118
64119 2003-10-20  Bruno Haible  <bruno@clisp.org>
64120
64121         * m4/wait-process.m4: New file.
64122
64123 2003-10-20  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/wait-process.h: New file, from GNU gettext.
64126         * lib/wait-process.c: New file, from GNU gettext.
64127
64128 2003-10-19  Jim Meyering  <jim@meyering.net>
64129
64130         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64131         HPUX 10.20.
64132
64133 2003-10-18  Karl Berry  <karl@gnu.org>
64134
64135         * config/config.guess: update from config.
64136
64137 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64138
64139         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64140         (getgroups): First arg is int, not size_t.
64141         Don't let 'free' mangle errno.
64142
64143 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64144
64145         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64146
64147 2003-10-16  Karl Berry  <karl@gnu.org>
64148
64149         * config/config.{guess,sub}: update from config.
64150
64151 2003-10-16  Jim Meyering  <jim@meyering.net>
64152
64153         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64154         memcpy.
64155
64156 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64157
64158         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64159         (SIZE_MAX): Remove.
64160         (new_exclude, add_exclude_file): Initial size no longer needs to
64161         be a power of 2.
64162         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64163         our own address arithmetic overflow checking.
64164
64165         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64166         (fnmatch): Do not alloca more than 2000 wide characters;
64167         instead, use malloc for large buffers.
64168         Check for address arithmetic overflow, and return -1
64169         with errno set to ENOMEM in that case.
64170         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64171         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64172         instead, return -1.  Check for address arithmetic overflow.
64173
64174 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64175
64176         Handle invalid suffixes and overflow independently, so that
64177         callers can treat them independently as needed.  Fix some bugs in
64178         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64179         suffix for a human-readable blocksize.  The major caller-visible
64180         change is the addition of a new
64181         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64182         that both overflow and suffix chars were found.
64183
64184         * lib/human.c (humblock): Don't check separately for invalid suffix
64185         char; that is xstrtoumax's job (now that its bug is fixed).
64186         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64187         INTMAX_MAX]: New macros.
64188         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64189         TYPE_MAXIMUM): New macros.
64190         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64191         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64192         if overflow occurs, as it's what __strtol does and it's more useful
64193         in practice.
64194         (__xstrtol): If __strtol reports some error other than ERANGE,
64195         reflect it to the caller as LONGINT_INVALID.  If it reports
64196         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64197         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64198         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64199         value.
64200         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64201         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64202         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64203         [defined UINTMAX_MAX]: New macros.
64204
64205 2003-10-14  Bruno Haible  <bruno@clisp.org>
64206
64207         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64208
64209 2003-10-14  Bruno Haible  <bruno@clisp.org>
64210
64211         * m4/sig_atomic_t: New file, from GNU gettext.
64212         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64213
64214 2003-10-14  Bruno Haible  <bruno@clisp.org>
64215
64216         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64217         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64218         Also use volatile where needed.
64219
64220 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64221
64222         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64223         Change maintainer from Bruno Haible to 'all'.
64224
64225 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64226
64227         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64228
64229 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64230
64231         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64232         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64233         and define in terms of the other primitives.
64234         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64235         (SIZE_MAX): Define if not already defined.
64236         (array_size_overflow): New function.
64237         (xalloc_die): Abort instead of exiting if 'error' returns.
64238         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64239         (xmalloc, xrealloc): Use them.
64240         (xcalloc): Check for address arithmetic overflow.
64241         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64242         a bit faster than strcpy.
64243
64244 2003-10-10  Simon Josefsson  <jas@extundo.com>
64245
64246         * modules/argp (Depends-on): Add restrict and strcase.
64247
64248 2003-10-10  Simon Josefsson  <jas@extundo.com>
64249
64250         * m4/argp.m4: Add AC_C_INLINE.
64251
64252 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64253
64254         Merge getpass from libc, plus a few fixes.
64255
64256         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64257         Include <stdbool.h>.
64258         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64259         __fsetlocking to empty.
64260         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64261         do include <bits/libc-lock.h>.
64262         Do not include <fcntl.h>; not needed.
64263         [_LIBC]: Include <wchar.h>.
64264         (NOTCANCEL_MODE): New macro.
64265         (flockfile, funlockfile) [_LIBC]: New macros.
64266         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64267         [!_LIBC]: New macros.
64268         (call_fclose): New function.
64269         (getpass): Use it.  Save tty stream separately; this simplifies the
64270         code and makes it more reliable if stdin happens to equal stdout.
64271         Invoke __fsetlocking on tty.
64272         Handle thread cancellation if needed.
64273         Namespace cleanup (use __tcgetattr, __getline).
64274         Use bool for Booleans.
64275         [USE_IN_LIBIO]: Handle wide streams.
64276         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64277         stream might go where.
64278
64279         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64280         doesn't have to include <stdio.h> before us.
64281         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64282         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64283         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64284         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64285         if not declared, so that we can use getpass.c code from libc without
64286         rewriting it.
64287         (flockfile, ftrylockfile, funlockfile): New macros.
64288
64289 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64290
64291         * modules/getpass: Depend on stdbool.
64292
64293 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64294
64295         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64296
64297 2003-10-07  Karl Berry  <karl@gnu.org>
64298
64299         * config/config.{guess,sub}: update from config.
64300
64301 2003-10-06  Jim Meyering  <jim@meyering.net>
64302             Bruno Haible  <bruno@clisp.org>
64303
64304         This lets translators provide better translations for the
64305         "Written by ..." part of --version output.
64306         * lib/version-etc.h: Include stdarg.h.
64307         (version_etc_copyright): Declare as readonly.
64308         (version_etc): Make this function variadic with a NULL-terminated list
64309         of author name strings.
64310         (version_etc_va): New declaration.
64311         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64312         (version_etc_copyright): Declare as readonly.
64313         (version_etc_va): New function. Provide a different translatable string
64314         for each possible number of authors < 10. Abbreviate when there are 10
64315         authors or more.
64316         (version_etc): Make this function variadic. Call version_etc_va.
64317         Suggestion from Gary V. Vaughan.
64318
64319         * lib/long-options.h (parse_long_options): Change prototype: the
64320         authors string is moved to the end and becomes variadic.
64321         * lib/long-options.c: Include stdarg.h.
64322         (parse_long_options): Make this function variadic, too.
64323         Call version_etc_va, not version_etc.
64324
64325 2003-10-06  Bruno Haible  <bruno@clisp.org>
64326
64327         * modules/version-etc-2: Remove file.
64328         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64329
64330 2003-10-06  Bruno Haible  <bruno@clisp.org>
64331
64332         * modules/fatal-signal: New file.
64333         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64334
64335 2003-10-06  Bruno Haible  <bruno@clisp.org>
64336
64337         * m4/fatal-signal.m4: New file.
64338         * m4/signalblocking.m4: New file, from GNU gettext.
64339
64340 2003-10-06  Bruno Haible  <bruno@clisp.org>
64341
64342         * lib/version-etc-2.h: Remove file.
64343         * lib/version-etc-2.c: Remove file.
64344
64345 2003-10-06  Bruno Haible  <bruno@clisp.org>
64346
64347         * lib/fatal-signal.h: New file, from GNU gettext.
64348         * lib/fatal-signal.c: New file, from GNU gettext.
64349
64350 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64351
64352         * README: Rework advice for preventing empty .o files.
64353         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64354         not <sys/types.h>.
64355
64356 2003-10-04  Karl Berry  <karl@gnu.org>
64357
64358         * lib/argp*: update from libc.
64359
64360 2003-10-04  Karl Berry  <karl@gnu.org>
64361
64362         * config/config.{guess,sub}: update from config.
64363
64364 2003-10-02  Bruno Haible  <bruno@clisp.org>
64365
64366         * modules/lchown (Include): Add lchown.h.
64367         * modules/time_r (Include): Use "..." syntax.
64368         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64369
64370 2003-10-01  Simon Josefsson  <jas@extundo.com>
64371
64372         * MODULES.html.sh (func_all_modules): Move gethostname from section
64373         'based on' to section 'lacking' POSIX:2001.
64374
64375 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64376
64377         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64378         to output mode on the same stream.
64379
64380 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64381
64382         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64383         Fix arg typo in previous patch.
64384
64385 2003-09-28  Jim Meyering  <jim@meyering.net>
64386
64387         * lib/error.c: Correct cpp indentation.
64388
64389 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64390
64391         * modules/free: New file.
64392
64393 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64394
64395         * m4/free.m4: New file.
64396
64397 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64398
64399         * lib/minmax.h (MIN, MAX)
64400         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64401         Omit the special code that used __typeof__, since we worry that
64402         it could be more trouble than it's worth.  See:
64403         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64404         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64405
64406         * lib/free.c: New file.
64407
64408 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64409
64410         Trivial fixes to Makefile.am parts of module listings.
64411         * modules/strstr: Append strstr.h to lib_SOURCES.
64412         * modules/strcase: Likewise, for strcase.h.
64413
64414 2003-09-27  Karl Berry  <karl@gnu.org>
64415
64416         * config/mkinstalldirs: update from automake.
64417
64418 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64419
64420         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64421         (error_tail): Do not loop, reallocating temporary buffer, since
64422         the output cannot contain more wide characters than the input
64423         contains bytes, the size must be big enough already.  This avoids
64424         one potential size overflow calculation.  Check for size overflow
64425         when calculating temporary buffer size.  Free temporary buffer
64426         when done, if it was allocated with malloc; this plugs a memory
64427         leak.  Remove casts from void * to pointers, that are no longer
64428         needed now that we're assuming C89 or better.
64429
64430         Merge error changes from glibc.
64431
64432         * lib/error.c, error.h: Update copyright notice header to match glibc.
64433         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64434         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64435         Disable cancellation while printing error.
64436         * lib/error.h: Prepend __ to parameter names.
64437
64438 2003-09-26  Jim Meyering  <jim@meyering.net>
64439
64440         * lib/error.c (error_tail): Move some declarations
64441         into inner scope where the local variables are used.
64442
64443 2003-09-26  Bruno Haible  <bruno@clisp.org>
64444
64445         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64446         stpncpy().
64447         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64448
64449 2003-09-26  Bruno Haible  <bruno@clisp.org>
64450
64451         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64452         (stpncpy): Define as alias for gnu_stpncpy.
64453         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64454
64455 2003-09-25  Simon Josefsson  <jas@extundo.com>
64456
64457         * lib/xgetdomainname.h: New file.
64458         * lib/xgetdomainname.c: New file.
64459
64460 2003-09-25  Simon Josefsson  <jas@extundo.com>
64461             Bruno Haible  <bruno@clisp.org>
64462
64463         * modules/getdomainname: New file.
64464         * modules/xgetdomainname: New file.
64465         * MODULES.html.sh (func_all_modules): Add getdomainname,
64466         xgetdomainname.
64467
64468 2003-09-25  Simon Josefsson  <jas@extundo.com>
64469             Bruno Haible  <bruno@clisp.org>
64470
64471         * m4/getdomainname.m4: New file.
64472
64473 2003-09-25  Simon Josefsson  <jas@extundo.com>
64474             Bruno Haible  <bruno@clisp.org>
64475
64476         * lib/getdomainname.h: New file.
64477         * lib/getdomainname.c: New file.
64478
64479 2003-09-25  Karl Berry  <karl@gnu.org>
64480
64481         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64482
64483 2003-09-25  Karl Berry  <karl@gnu.org>
64484
64485         * config/install-sh: update from automake.
64486
64487 2003-09-25  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/version-etc-2: New file, from modules/version-etc with
64490         modifications.
64491         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64492
64493 2003-09-25  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64496         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64497
64498 2003-09-24  Simon Josefsson  <jas@extundo.com>
64499
64500         * modules/xgethostname: Add xgethostname.h.
64501
64502 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64503
64504         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64505         the buffer associated with the argument.  Bug reported by
64506         Simon Josefsson.
64507
64508 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64509
64510         * README: Document assumptions that 'int' is at least 32 bits
64511         wide, that integer arithmetic is 2's complement without overflow,
64512         that there are no holes in integer values, that adding sizes of
64513         two nonoverlapping objects can't overflow, and that all-bits-zero
64514         yields scalar zero.  Fix spelling and capitalization typos.
64515
64516 2003-09-19  Karl Berry  <karl@gnu.org>
64517
64518         * lib/argp.h: update from libc.
64519
64520 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64521
64522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64523         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64524         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64525
64526 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64527
64528         * gnulib-tool: Use "test -h", not "test -L", for portability
64529         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64530         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64531         (sed_extract_prog): Issue s commands one-by-one, rather than
64532         using \| in one s command.
64533
64534 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64535
64536         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64537         input error, instead of returning NULL the next time we are called
64538         (and therefore losing track of errno).
64539
64540 2003-09-16  Bruno Haible  <bruno@clisp.org>
64541
64542         * gnulib-tool (func_create_testdir): Warn about duplicated
64543         dependencies.
64544
64545 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64546
64547         * modules/argmatch, modules/fatal, modules/obstack,
64548         modules/xalloc, modules/xgethostname: Sort dependencies by
64549         importance, not alphabetically.
64550
64551 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64552
64553         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64554         fails, so that the caller gets the proper errno.
64555
64556         * lib/readutmp.c (read_utmp): Likewise.
64557         Check for fstat error.  Close stream and free storage
64558         when failing.
64559
64560 2003-09-14  Karl Berry  <karl@gnu.org>
64561
64562         * config/srclist.txt (strdup.c): disable for c89 changes.
64563
64564 2003-09-14  Jim Meyering  <jim@meyering.net>
64565
64566         * lib/getloadavg.c: Correct cpp indentation.
64567         * lib/strdup.c: Likewise.
64568         * lib/vasnprintf.c: Likewise.
64569
64570 2003-09-14  Bruno Haible  <bruno@clisp.org>
64571
64572         * modules/fwriteerror: New file.
64573         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64574
64575 2003-09-14  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/fwriteerror.h: New file.
64578         * lib/fwriteerror.c: New file.
64579
64580 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64581
64582         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64583         modules/xgethostname, modules/xalloc: Depend on exit.
64584
64585 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64586
64587         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64588
64589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64590         and AC_MINIX, too, so that their extensions are available.
64591
64592         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64593         This macro has been superseded by gl_BACKUPFILE.
64594
64595         More patches to assume C89 or better.
64596
64597         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64598
64599         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64600         unconditionally.
64601         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64602         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64603         Include <string.h>, <stdlib.h> unconditionally.
64604         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64605         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64606         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64607         headers or for string.h.
64608         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64609         or strtoul.
64610
64611         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64612         headers.
64613         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64614         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64615         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64616         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64617         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64618         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64619         memcpy, memset.
64620         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64621         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64622         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64623         strtol.
64624         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64625         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64627         strtoul.
64628
64629 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64630
64631         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64632         * lib/obstack.c [!defined _LIBC]: Likewise.
64633         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64634         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64635         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64636
64637         More changes to assume C89 or better.
64638
64639         * lib/error.c (error_tail): Assume vprintf.
64640
64641         * lib/argmatch.c (getenv): Remove decl.
64642         * lib/progreloc.c (get_full_program_name): Define via prototype.
64643         * lib/setenv.c (clearenv): Likewise.
64644         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64645         needed.
64646         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64647         (malloc, memcpy): Remove decls.
64648         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64649         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64650         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64651         (memcpy): Remove macro.
64652         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64653         (__P): Remove.  All uses removed.
64654         (PTR): Remove.  All uses changed to void *.
64655         (CHAR_BIT, NULL): Remove.
64656         (spaces, zeros, memset_space, memset_zero)
64657         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64658         Remove.
64659         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64660         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64661         Define with prototype.
64662         Remove now-unnecessary prototype decl.
64663         (extra_args_spec): Assume ANSI C.  All uses changed.
64664         (extra_args_spec_iso): Remove.
64665         (my_strftime, emacs_strftimeu): Define via prototype.
64666         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64667         unconditionally.
64668         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64669         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64670         (strtoul, strtol): Remove decls.
64671         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64672         LONG_MAX): Remove.
64673         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64674         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64675         (LOCALE_PARAM_PROTO): New macro.
64676         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64677         (INTERNAL (strtol), strtol): Define with a prototype.
64678         (PARAMS): Remove.  All uses removed.
64679         * lib/tempname.c: Include <string.h> unconditionally.
64680         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64681         * lib/xgethostname.c (main): Define with a prototype.
64682         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64683         Include <stdlib.h> unconditionally.
64684         (calloc, malloc, realloc, free): Remove decls.
64685         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64686         Include <stdlib.h> unconditionally.  Sort include file names.
64687         (strtod): Remove.
64688         (xstrtod): Define with a prototype.
64689         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64690         (strtol, strtoul): Remove decls.
64691
64692 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64693
64694         More patches to assume C89 or better.
64695         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64696         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64697         string.h, memchr, STDC_HEADERS.
64698
64699 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64700
64701         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64702         Include <stdlib.h>, <string.h> unconditionally.
64703         Remove now-unnecessary cast to char *.
64704         * lib/strnlen.c: Include <string.h> unconditionally.
64705         * lib/yesno.c (yesno): Define with a prototype.
64706
64707 2003-09-11  Bruno Haible  <bruno@clisp.org>
64708
64709         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64710
64711 2003-09-10  Jim Meyering  <jim@meyering.net>
64712
64713         * lib/error.c: Correct indentation of cpp directives.
64714
64715 2003-09-10  Bruno Haible  <bruno@clisp.org>
64716
64717         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64718         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64719         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64720         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64721         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64722         <stdlib.h> and <string.h> checks.
64723         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64724         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64725
64726 2003-09-10  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/strcspn.c: Include <string.h> unconditionally.
64729         * lib/strpbrk.c: Include <string.h> unconditionally.
64730         * lib/strstr.c: Include <string.h> unconditionally.
64731         * lib/unicodeio.c: Include <string.h> unconditionally.
64732         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64733         * lib/unsetenv.c: Likewise.
64734         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64735         * lib/yesno.c: Include <stdlib.h> unconditionally.
64736         (rpmatch): Add prototype.
64737
64738 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64739
64740         More patches to assume C89 or better.
64741         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64742         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64743         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64744         or for string.h.
64745         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64746         stdlib.h.
64747         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64748         C headers.
64749         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64750         string.h.
64751         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64752         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64753         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64754         or for string.h.
64755         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64756         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64757         C headers.
64758         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64759         memcpy.
64760         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64761         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64762         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64763         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64764         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64765         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64766         string.h, free.
64767         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64768         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64769         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64770         C headers, or for string.h.
64771         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64772         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64773         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64774         headers, memory.h, stdlib.h, string.h, strings.h.
64775         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64776         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64777         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64778         strchr.
64779         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64780         headers, memory.h, string.h.
64781         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64782         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64783         free.
64784         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64785         headers.
64786         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64787         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64788         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64789         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64790         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64791
64792 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64793
64794         More K&R removal.
64795
64796         * lib/acosl.c (main): Use a prototype.
64797         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64798         tanl.c: Likewise.
64799
64800         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64801
64802         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64803         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64804         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64805         with a prototype.
64806         * lib/getopt.c (const): Remove macro.
64807         Include <string.h> unconditionally.
64808         (my_index): Remove; all uses changed to strchr.
64809         (strlen): Remove decl.
64810         (exchange): Remove forward decl; no longer needed.
64811         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64812         Define with prototype.
64813         * lib/getopt1.c (const): Remove macro.
64814         (getopt_long, getopt_long_only, main): Define with prototype.
64815
64816         * lib/getugroups.c: Include <string.h> unconditionally.
64817
64818         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64819         (getusershell, setusershell, endusershell, readname, main):
64820         Define with prototypes.
64821
64822         * lib/group-member.c: Include group-member.h first.
64823         Include <stdlib.h> unconditionally.
64824
64825         * lib/hard-locale.c: Include hard-locale.h first.
64826         Include <stdlib.h>, <string.h> unconditionally.
64827
64828         * lib/hash.c (free, malloc): Remove decls.
64829         Include <stdlib.h> unconditionally.
64830
64831         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64832         (getenv): Do not declare.
64833
64834         * lib/idcache.c: Include <string.h> unconditionally.
64835
64836         * lib/long-options.c: Include long-options.h first, to test interface.
64837         Include <stdlib.h> unconditionally.
64838
64839         * lib/makepath.c: Include makepath.h first, to test interface.
64840         Include <stdlib.h> and <string.h> unconditionally.
64841
64842         * lib/linebuffer.c: Include <stdlib.h>.
64843         (free): Remove decl.
64844
64845         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64846         stddef.h. rpl_malloc returns void *, not char *.
64847         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64848         prototype.
64849
64850         * lib/md5.h: Include <limits.h> unconditionally.
64851         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64852         (__P): Remove; all uses removed.
64853         * lib/md5.c: Include "md5.h" first.
64854         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64855         md5_buffer, md5_process_bytes, md5_process_block):
64856         Define with prototypes.
64857         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64858         * lib/sha.c: Include "sha.h" first.
64859         Include <stdlib.h>, <string.h> unconditionally.
64860
64861         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
64862         * lib/memcmp.c (__ptr_t): Likewise.
64863         * lib/memrchr.c (__ptr_t): Likewise.
64864         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
64865         Include <string.h> unconditionally.
64866         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
64867         * lib/memchr.c: Include <stdlib.h> unconditionally.
64868         * lib/memchr.c (LONG_MAX): Remove.
64869         * lib/memrchr.c (LONG_MAX): Likewise.
64870         * lib/memchr.c (__memchr): Define via a prototype.
64871         * lib/memrchr.c (__memrchr): Likewise.
64872         * lib/memcmp.c (__P): Remove, and remove all uses.
64873         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
64874         Remove forward decls; no longer needed.
64875         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
64876         Use types required by C89 in prototype.
64877
64878         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
64879         * lib/savedir.c: Likewise.
64880         * lib/mkdir.c (free): Remove decl.
64881         * lib/rmdir.c (rmdir): Define with a prototype.
64882         * lib/savedir.c: Include savedir.h first, to test interface.
64883
64884         * lib/mktime.c (STDC_HEADERS): Remove.
64885         Include <stdlib.h>, <string.h> unconditionally.
64886
64887         * lib/modechange.c: Include <stdlib.h> unconditionally.
64888         (malloc): Remove decl.
64889
64890         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
64891         (free): Remove decl.
64892
64893         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
64894         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
64895         (This type really should be intptr_t, but that's a C99ism.)
64896         (_obstack_memcpy): Remove: all uses changed to memcpy.
64897         Include <string.h> unconditionally.
64898         (struct obstack): Assume __STDC__ for types of members
64899         chunkfun, freefun, extra_arg.
64900         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
64901         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
64902         obstack_begin, obstack_specify_allocation,
64903         obstack_specify_allocation_with_arg, obstack_chunkfun,
64904         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
64905         Remove unprototyped decls and the macros that use them.
64906         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
64907         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
64908         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
64909         (defined __STDC__ && __STDC__)]:
64910         Remove nonprototyped code.
64911         Include <stdlib.h> unconditionally.
64912         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
64913         _obstack_allocated_p, _obstack_free, obstack_free,
64914         _obstack_memory_used, print_and_abort):
64915         Define using prototypes.
64916         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
64917         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
64918         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
64919         obstack_next_free, obstack_object_size, obstack_room) [0]:
64920         Remove unused, unprototyped code.
64921
64922         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
64923
64924         * lib/physmem.c (physmem_total, physmem_available, main): Define
64925         with prototypes.
64926
64927         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
64928         (main): Define with a prototype.
64929
64930         * lib/posixver.c (getenv): Remove decl.
64931
64932         * lib/putenv.c (malloc): Returns void *, not char *.
64933         Include <string.h> unconditionally.
64934         (strchr, memcpy, NULL): Do not define.
64935
64936         * lib/readtokens.c: Include readtokens.h first, to test interface.
64937         Include <stdlib.h>, <string.h> unconditionally.
64938         (init_tokenbuffer): Define with a prototype.
64939
64940         * lib/regex.c (PARAMS): Remove.  All uses removed.
64941         All uses of _RE_ARGS removed, too.
64942         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
64943         unconditionally.
64944         (bzero): Assume memset exists.
64945         (memcmp, memcpy, NULL): Remove.
64946         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
64947         char, or assignments to local vars of type signed char.
64948         (init_syntax_once, PREFIX(extract_number_and_incr),
64949         PREFIX(print_partial_compiled_pattern),
64950         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
64951         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
64952         PREFIX(regex_grow_registers), PREFIX(regex_compile),
64953         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
64954         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
64955         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
64956         wcs_compile_range, byte_compile_range, truncate_wchar,
64957         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
64958         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
64959         count_mbs_length, wcs_re_match_2_internal,
64960         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
64961         PREFIX(alt_match_null_string_p),
64962         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
64963         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
64964         regfree, PREFIX(extract_number)): Define with prototype.  Remove
64965         now-unnecessary declaration, if any.
64966         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
64967         regcomp, regexec):
64968         Remove now-unnecessary casts among pointer types.
64969         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
64970
64971         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
64972         (free): Remove decl.
64973
64974         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
64975
64976         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
64977         (free): Remove decl.
64978
64979         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
64980         * lib/xgetcwd.c: Likewise.
64981
64982         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
64983         (free): Remove decl.
64984
64985         * lib/strchrnul.c (strchrnul): Define with a prototype.
64986         Fix bug: c_in was not converted to char before searching.
64987
64988         The following changes are not K&R related:
64989
64990         * lib/group-member.h: Include <sys/types.h>, so that this file is
64991         self-contained.
64992         * lib/makepath.h: Likewise.
64993
64994         * lib/getusershell.c (readname, default_index, line_size, readname):
64995         Use size_t, not int, for sizes.
64996         (readname): If the size overflows, report an error instead of
64997         looping forever.
64998
64999 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65000
65001         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65002         libc.
65003
65004 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65005
65006         * README: New section: portability guidelines.
65007
65008 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65009
65010         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65011         C89 spec.
65012
65013 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65014
65015         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65016
65017 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65018
65019         Assume C89 or better; remove K&R cruft.
65020         A few of these changes were first proposed by Derek Robert Price
65021         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65022
65023         * lib/addext.c: Include <string.h> unconditionally.
65024         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65025         Don't declare getenv or malloc.
65026
65027         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65028         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65029         (NULL): Remove.
65030         (find_stack_direction, alloca): Use prototypes.
65031
65032         * lib/atexit.c (atexit): Define using a prototype.
65033
65034         * lib/basename.c, dirname.c, stripslash.c:
65035         Include <string.h> unconditionally.
65036
65037         * lib/bcopy.c: Include <stddef.h>.
65038         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65039
65040         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65041
65042         * lib/error.h (error, error_at_line, error_print_progname)
65043         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65044         * lib/error.c: Include error.h first, to check interface.
65045         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65046         (VA_START): Remove; all uses changeed to va_start.
65047         (exit, strerror): Remove decls.
65048         (error_print_progname): Prototype uncondionally.
65049         Don't include <errno.h>; no longer needed.
65050         (private_strerror): Remove.
65051         (error_tail): Always define.
65052         (error, error_at_line): Assume C89 or better; always use prototypes.
65053         * lib/fatal.c: Include "fatal.h" first, to test interface.
65054         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65055         (VA_START): Remove; all uses changed to va_start.
65056         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65057         this case.
65058         (exit): Remove decl.
65059         (fatal): Prototype unconditionally.  Assume va_start works.
65060         Abort at end, to pacify gcc.
65061
65062         * lib/euidaccess.c (main): Define with a prototype.
65063
65064         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65065
65066         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65067
65068         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65069         prototypes.
65070         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65071         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65072         (getenv): Remove decl.
65073         (fnmatch): Define using a prototype.
65074         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65075         (FCT): Define using a prototype.
65076
65077         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65078
65079         * lib/gethostname.c: Include <stddef.h>.
65080         (gethostname): Define with prototype.  Length is size_t, not int.
65081
65082 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65083
65084         Assume C89 or better; remove K&R cruft.
65085         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65086         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65087         string.h, getenv, malloc.
65088         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65089         headers.
65090         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65091         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65092         do not check for strerror.
65093         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65094         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65095         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65096         do not check for doprnt or vprintf.
65097         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65098         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65099
65100 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65101
65102         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65103         getversion.c should have been removed then, but was accidentally
65104         preserved.
65105
65106         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65107         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65108
65109 2003-09-08  Karl Berry  <karl@gnu.org>
65110
65111         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65112                 config, forget about prep.
65113
65114         * config/depcomp, missing: update from automake.
65115
65116 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65117
65118         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65119         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65120
65121 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65122
65123         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65124         copy_tm_result.  Bug reported by Simon Josefsson in
65125         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65126
65127 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65128
65129         * m4/time_r.m4: New file.
65130         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65131         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65132         is. Check for timegm declaration.
65133         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65134         Do not check for gmtime_r.
65135         Replace mktime if __mktime_internal does not exist and if mktime
65136         hasn't been replaced already.
65137
65138 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65139
65140         * lib/time_r.c, lib/time_r.h: New files.
65141
65142         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65143         __localtime_r.
65144         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65145         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65146
65147         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65148         __gmtime_r.
65149         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65150         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65151         Include <time_r.h>.
65152
65153         * lib/timegm.c: Switch to glibc implementation, with the following
65154         changes:
65155         [defined HAVE_CONFIG_H]: Include <config.h>.
65156         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65157         (__mktime_internal) [!defined _LIBC]: New decl.
65158         (__gmtime_r) [!defined _LIBC]: New macro and function.
65159         (timegm): Use a prototype, since gnulib assumes C89.
65160         Do not bother declaring tmp to be const, as it's not really usefu.
65161         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65162         (timegm): Declare only if HAVE_DECL_TIMEGM.
65163
65164 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65165
65166         * MODULES.html.sh (func_all_modules): Add time_r.
65167         * modules/time_r: New file.
65168         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65169         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65170
65171 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65172
65173         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65174         Bug reported by Lute Kamstra in
65175         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65176
65177         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65178         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65179         course with correspondingly smaller numbers for tomorrow and
65180         yesterday.  From Tadayoshi Funaba.  Originally installed into
65181         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65182         coreutils merge?).
65183
65184 2003-08-31  Simon Josefsson  <jas@extundo.com>
65185
65186         * modules/timegm: New file.
65187         * MODULES.html.sh (func_all_modules): Add timegm.
65188
65189 2003-08-31  Simon Josefsson  <jas@extundo.com>
65190
65191         * m4/timegm.m4: New file.
65192
65193 2003-08-31  Simon Josefsson  <jas@extundo.com>
65194
65195         * lib/timegm.h: New file.
65196         * lib/timegm.c: New file.  Based on
65197         wget-1.8.2/src/http.c:mktime_from_utc.
65198
65199 2003-08-31  Karl Berry  <karl@gnu.org>
65200
65201         * lib/argp.h: update from libc.
65202
65203 2003-08-28  Bruno Haible  <bruno@clisp.org>
65204
65205         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65206         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65207         followed by '#define fnmatch fnmatch_posix' gives an error.
65208
65209 2003-08-28  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65212         warning on QNX, which defines O_BINARY to 000000.
65213
65214 2003-08-27  Jim Meyering  <jim@meyering.net>
65215
65216         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65217         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65218         would fail after 32.  Reported by Danny Levinson.  Details here:
65219         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65220
65221 2003-08-24  Bruno Haible  <bruno@clisp.org>
65222
65223         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65224         MSVC7 <stdio.h> is included later.
65225
65226 2003-08-22  Simon Josefsson  <jas@extundo.com>
65227
65228         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65229
65230 2003-08-20  Karl Berry  <karl@gnu.org>
65231
65232         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65233
65234 2003-08-20  Bruno Haible  <bruno@clisp.org>
65235
65236         * modules/progname: New file.
65237         * MODULES.html.sh (func_all_modules): Add progname.
65238
65239 2003-08-20  Bruno Haible  <bruno@clisp.org>
65240
65241         * lib/progname.h: New file, from GNU gettext.
65242         * lib/progname.c: New file, from GNU gettext.
65243         * lib/progreloc.c: New file, from GNU gettext.
65244
65245 2003-08-19  Jim Meyering  <jim@meyering.net>
65246
65247         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65248         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65249
65250 2003-08-19  Bruno Haible  <bruno@clisp.org>
65251
65252         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65253         more.
65254
65255 2003-08-19  Bruno Haible  <bruno@clisp.org>
65256
65257         * lib/xstrdup.c: Assume <string.h> exists.
65258
65259 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65260
65261         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65262         in makefile rules.
65263
65264 2003-08-18  Jim Meyering  <jim@meyering.net>
65265
65266         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65267         * m4/lib-ld.m4: Likewise.
65268
65269 2003-08-18  Jim Meyering  <jim@meyering.net>
65270
65271         * lib/setenv.h: Indent nested cpp directive.
65272         * lib/vasnprintf.c: Remove trailing blanks.
65273
65274 2003-08-17  Simon Josefsson  <jas@extundo.com>
65275
65276         * modules/xstrndup: New file.
65277         * MODULES.html.sh (func_all_modules): Add xstrndup.
65278
65279 2003-08-17  Simon Josefsson  <jas@extundo.com>
65280
65281         * modules/argp: Fix autoconf macro name. Add more dependencies.
65282
65283 2003-08-17  Simon Josefsson  <jas@extundo.com>
65284
65285         * m4/xstrndup.m4: New file.
65286
65287 2003-08-17  Simon Josefsson  <jas@extundo.com>
65288
65289         * m4/argp.m4: New file.
65290
65291 2003-08-17  Simon Josefsson  <jas@extundo.com>
65292             Bruno Haible  <bruno@clisp.org>
65293
65294         * lib/xstrndup.h: New file.
65295         * lib/xstrndup.c: New file.
65296
65297 2003-08-17  Bruno Haible  <bruno@clisp.org>
65298
65299         * modules/strndup (Files, Include): Add lib/strndup.h.
65300
65301 2003-08-17  Bruno Haible  <bruno@clisp.org>
65302
65303         * modules/euidaccess (Files): Add lib/euidaccess.h.
65304
65305 2003-08-17  Bruno Haible  <bruno@clisp.org>
65306
65307         * lib/strndup.h: New file.
65308
65309 2003-08-17  Bruno Haible  <bruno@clisp.org>
65310
65311         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65312         like AC_GNU_SOURCE.
65313         * modules/extensions (configure.ac): Comment out the invocation of
65314         gl_USE_SYSTEM_EXTENSIONS.
65315
65316 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65317
65318         Merges from coreutils, etc.
65319         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65320         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65321         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65322         fixing a typo.
65323         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65324         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65325
65326 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65327
65328         Document merge from coreutils.
65329         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65330         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65331         * modules/utime: Add m4/utimes-null.m4.
65332
65333 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65334
65335         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65336         space, undoing this 2003-08-12 change:
65337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65338
65339 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65340
65341         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65342         strtoul.c from libc, undoing this 2003-08-12 change:
65343         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65344
65345 2003-08-16  Jim Meyering  <jim@meyering.net>
65346
65347         Merges from coreutils.
65348         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65349         prefix.  Adjust cache variables similarly.  Create 500 rather than
65350         just 300 files, to exercise bug on Darwin6.5, too.
65351         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65352         $missing_dir.
65353         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65354         AM_SYS_POSIX_TERMIOS.
65355         Reported by mkc@mathdogs.com.
65356         Also change use of $am_cv_sys_posix_termios
65357         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65358         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65359         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65360         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65361         in /proc/mounts until it finds one with matching device number.  This
65362         is unnecessary when the FILE argument *is* a mount point.  No stat call
65363         is necessary in that case.  So, disable the statvfs-testing code on
65364         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65365         as RedHat bug# 84846.
65366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65367         to 1MB, so as not to render systems with no stack size limit (e.g.,
65368         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65369         Include <unistd.h>.  On some systems,
65370         it is required for the definition of _SC_PAGESIZE.
65371
65372 2003-08-16  Jim Meyering  <jim@meyering.net>
65373
65374         Merge from coreutils.
65375         * lib/xstrtoimax.c: #else #if -> #elif.
65376         * lib/xstrtoumax.c: Likewise.
65377
65378 2003-08-16  Jim Meyering  <jim@meyering.net>
65379
65380         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65381         * m4/utimes.m4: Removed.
65382         * m4/utimes-null.m4: Renamed from utimes.m4.
65383
65384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65385         to 1MB, so as not to render systems with no stack size limit (e.g.,
65386         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65387         Include <unistd.h>.  On some systems,
65388         it is required for the definition of _SC_PAGESIZE.
65389
65390 2003-08-16  Jim Meyering  <jim@meyering.net>
65391         and Paul Eggert  <eggert@cs.ucla.edu>
65392
65393         Merges from coreutils, etc.
65394
65395         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65396         using the latest version from cvs.  This avoids problems with #line
65397         directives using a vendor (Sun) compiler.
65398         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65399         Don't set GETGROUPS_LIB here; now it's
65400         done via getgroups.m4's wrapper function.
65401         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65402         rather than just in sh-util/configure.in, so that the
65403         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65404         same.
65405         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65406         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65407         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65408         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65409         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65410         Remove code that is now done by the newly-required macros.
65411         Append $(EXEEXT) to DF_PROG.
65412         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65413         Do not invoke or require the following here,
65414         since prereq.m4 or some gnulib .m4 now does this for us:
65415         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65416         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65417         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65418         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65419         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65420         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65421         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65422         AC_FUNC_OBSTACK.
65423         Do not replace the following functions, as this is now the job
65424         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65425         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65426         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65427         atexit getpass, strdup, getpagesize.
65428         Replace 'raise'.
65429         Do not check for the following functions, as this is now the job
65430         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65431         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65432         setregid.
65433         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65434         Check for sys/sysctl.h.
65435         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65436         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65437         of checking for ssize_t ourselves.
65438
65439         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65440         Require every macro that gnulib/modules/* suggests for us.
65441         (jm_PREREQ_ADDEXT): New macro.
65442         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65443         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65444
65445         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65446         (gl_PHYSMEM): Use it.
65447         Also check for `table' function.
65448         Check for new headers and functions.
65449         Add check for sys/sysmp.h.
65450         With suggestions from Kaveh Ghazi.
65451         Ignore headers that are present but cannot be compiled.  This
65452         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65453         C 5.4.
65454
65455 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65456
65457         Document merge from coreutils.
65458         * modules/userspec: Depend on posixver.
65459         * modules/strftime: Depend on tzset.
65460
65461 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65462
65463         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65464         rather than tab, after '#' in shell-script copyright notices.
65465         Suggested by Bruno Haible.
65466
65467 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65468
65469         * config/srclist-update: Use three spaces, rather than tab, after '#'
65470         in shell-script copyright notices.  Suggested by Bruno Haible.
65471         Remove unnecessary parenthesization in regular expression.
65472
65473 2003-08-15  Jim Meyering  <jim@meyering.net>
65474
65475         Merge from coreutils.
65476         * lib/xgethostname.c: Include <stdlib.h>.
65477         (xghostname): Don't exit for anything other than memory-related
65478         failure; just return NULL.
65479         * lib/userspec.c: Include "posixver.h".
65480         (parse_user_spec): Accept `.' as a separator only
65481         in pre-POSIX-200112 mode.
65482         * lib/strtoimax.c: Use #elif rather than #else #if.
65483         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65484         Remove function, now that we can rely on a working tzset function.
65485         [!_LIBC]: Ensure that the required autoconf test has been run.
65486         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65487         Use underlying_strftime for %r.
65488         * lib/sha.c: Merge in some clean-up and optimization changes from
65489         glibc.
65490         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65491         Ensure that it is a multiple of 64.
65492         Rearrange loop exit tests so as to avoid performing an
65493         additional fread after encountering an error or EOF.
65494         * lib/realloc.c: Update copyright date.
65495
65496 2003-08-15  Jim Meyering  <jim@meyering.net>
65497         and Paul Eggert  <eggert@twinsun.com>
65498
65499         Merge from coreutils.
65500         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65501         member but strut utmpx does not.  Needed for AIX 4.3.3.
65502         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65503
65504 2003-08-15  Jim Meyering  <jim@meyering.net>
65505         and Paul Eggert  <eggert@cs.ucla.edu>
65506
65507         Merges from coreutils, etc.
65508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65509         Require gl_FUNC_TZSET_CLOBBER.
65510         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65511         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65512         members.
65513
65514 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65515
65516         Help the merge from coreutils.
65517         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65518         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65519         * m4/tzset.m4: Use it too.
65520
65521 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65522
65523         * modules/tzset: New file.
65524
65525 2003-08-14  Jim Meyering  <jim@meyering.net>
65526
65527         Merges from coreutils.
65528         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65529         variable names, rather than @FNMATCH_H@.
65530         * modules/alloca: Likewise for $(ALLOCA_H).
65531
65532         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65533         the three copies of the literal target, `fnmatch.h'.
65534         * modules/alloca (alloca.h): Likewise.
65535
65536 2003-08-14  Jim Meyering  <jim@meyering.net>
65537
65538         Merge from coreutils.
65539         * m4/tzset.m4: New file.
65540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65541         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65542         otherwise, AIX 5.1 systems would end up using the latter.
65543         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65544         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65545         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65546         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65547
65548 2003-08-14  Jim Meyering  <jim@meyering.net>
65549
65550         Merge from coreutils.
65551         * lib/obstack.h: Whitespace changes.
65552         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65553         and xcalloc return values.
65554         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65555         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65556         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65557         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65558         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65559         error from mntctl.
65560         Use mntctl's return value to drive the entry-processing loop, since
65561         we can't rely on the value of the vmt_length member in the last
65562         entry.  On some systems doing so could result in exhausting
65563         virtual memory.  Based in part on a patch from Mike Jetzer.
65564
65565 2003-08-14  Jim Meyering  <jim@meyering.net>
65566         and Paul Eggert  <eggert@twinsun.com>
65567
65568         Merges from coreutils, plus other fixes.
65569         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65570         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65571         for credits and details.  Thanks to Kaveh Ghazi for helping
65572         to keep these files in sync.
65573         (ARRAY_SIZE): Define it.
65574         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65575         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65576         (memcasecmp): Don't assume size_t fits in unsigned int.
65577         Remove casts and duplicate code.
65578         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65579         (memcpy): Remove definition.
65580         Merge in some clean-up and optimization changes from glibc.
65581         [BLOCKSIZE]: Move definition to top of file.
65582         Ensure that it is a multiple of 64.
65583         Rearrange loop exit tests so as to avoid performing an
65584         additional fread after encountering an error or EOF.
65585         * lib/md5.h (md5_uintptr): Define.
65586         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65587         return to the initial working directory.  Preserve errno
65588         for caller.
65589         * lib/idcache.c: Include "xalloc.h".
65590         (xmalloc, xrealloc): Remove decls.
65591         (getuser): Remove casts no longer required in C89.
65592         * lib/human.c: Include stdio.h, for sprintf.
65593         * lib/group-member.c: Include "xalloc.h".
65594         (xmalloc, xrealloc): Remove decls.
65595         (get_group_info): Remove casts no longer required in C89.
65596         * lib/getusershell.c (readname): Remove casts no longer required in
65597         C89.
65598         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65599         * lib/getline.c: Whitespace fix, from coreutils.
65600
65601 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65602
65603         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65604         Check for isascii.
65605
65606         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65607         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65608         Undo previous (whitespace-only) change.
65609
65610 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65611
65612         * lib/exclude.c: Include <ctype.h>
65613         (IN_CTYPE_DOMAIN): New macro.
65614         (is_space): New fn.
65615         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65616         and empty lines.
65617
65618         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65619         Undo previous (whitespace-only) change.
65620
65621 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65622
65623         * config/srclist-update: Change update back to the old behavior,
65624         leaving whitespace alone.  Use one 'sed' command rather than a
65625         pipeline.
65626         (fixlicense): Now a variable, not a function.
65627         (remove_trailing_blanks): Remove.
65628         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65629         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65630         Undo previous (whitespace-only) change.
65631
65632 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65633
65634         Merge from coreutils.
65635         * modules/euidaccess: Add lib_SOURCES, include for new
65636         file euidaccess.h
65637
65638 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65639
65640         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65641         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65642         Normalize leading white space and remove trailing white space.
65643
65644         Merge from coreutils
65645         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65646
65647         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65648         0.12.1.  These files are now being upgraded automatically by
65649         ../config/srclist-update.
65650
65651 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65652
65653         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65654         Normalize leading white space and remove trailing white space.
65655         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65656         notice, as per ../config/srclist-update.
65657
65658         Merge from coreutils.
65659         * lib/euidaccess.h: New file.
65660         * lib/euidaccess.c: Include it.
65661         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65662         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65663         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65664
65665 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65666
65667         * config/srclist-update: Add copyright notice.
65668         (remove_id_lines, remove_trailing_blanks): New constants.
65669         (fixfile): Use them to normalize spacing a bit in copied files.
65670         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65671         Normalize leading white space and remove trailing white space.
65672
65673         * config/texinfo.tex: Sync with texinfo.
65674
65675         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65676         strtoul.c from libc, to merge coreutils whitespace changes.
65677
65678         * config/srclist.txt: Get the following m4 files from gettext:
65679         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65680         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65681         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65682         wint_t.m4.
65683
65684 2003-08-12  Karl Berry  <karl@gnu.org>
65685
65686         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65687         been made.
65688
65689 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65690
65691         * modules/gnu-source, m4/gnu-source.m4:
65692         Remove; we're assuming Autoconf 2.54 or later now.
65693         Suggested by Bruno Haible.
65694         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65695
65696 2003-08-11  Bruno Haible  <bruno@clisp.org>
65697
65698         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65699
65700 2003-08-11  Bruno Haible  <bruno@clisp.org>
65701
65702         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65703         (vasnprintf): Use it instead of wcslen.
65704
65705 2003-08-11  Bruno Haible  <bruno@clisp.org>
65706
65707         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65708         value to ensure that _Bool promotes to int. Use #define for _Bool when
65709         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65710
65711 2003-08-10  Karl Berry  <karl@gnu.org>
65712
65713         * lib/regex.h: update from libc (whitespace fix).
65714
65715 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65716
65717         Merge some files from coreutils.  These changes were
65718         originally made by Jim Meyering.
65719         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65720         many older Unixes require this.
65721         * lib/alloca.c (alloca): Remove cast to argument of free;
65722         no longer needed in C89.
65723         * lib/alloca_.h, regex.h: Fix white space to match
65724         what GNU indent does.
65725
65726 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65727
65728         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65729         apparently Emacs's Unicode mode got confused before my 2003-08-05
65730         checkin.
65731
65732 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65733
65734         * m4/extensions.m4: New file.
65735         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65736         Require gl_USE_SYSTEM_EXTENSIONS.
65737         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65738         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65739
65740 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65741
65742         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65743         * modules/extensions, modules/gnu-source: New files.
65744         * modules/timespec, modules/unlocked-io: Depend on extensions.
65745
65746 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65747
65748         * modules/restrict: New file.
65749         * MODULES.html.sh (func_all_modules): Add restrict.
65750         * modules/regex: Depend on restrict.
65751
65752 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65753
65754         * m4/restrict.m4: New file.
65755         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65756
65757 2003-08-07  Bruno Haible  <bruno@clisp.org>
65758
65759         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65760         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65761
65762 2003-08-07  Bruno Haible  <bruno@clisp.org>
65763
65764         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65765         makes the module 'getndelim2' compatible with the module 'getline'.
65766
65767 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65768
65769         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65770         byte with "\201" to avoid glitches when editing that source file
65771         with multi-gnome-terminal.
65772
65773 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65774
65775         * lib/bumpalloc.h: Remove.
65776
65777 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65778
65779         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65780         * modules/bumpalloc: Remove.
65781
65782 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65783
65784         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65785         GNU coding style.
65786
65787         Merge from coreutils.
65788         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65789         1. From glibc.
65790         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65791         from Karl Berry, implemented by Jim Meyering.
65792         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65793         from Dmitry V. Levin.
65794         Remove anachronistic cast of xrealloc.
65795         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65796         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65797         type. Otherwise, it wouldn't compile with at least /bin/cc on
65798         ymp-cray-unicos9.0.2.X.
65799         Combine two mostly-identical uses of alloca into one.
65800         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65801
65802 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65803
65804         [From Emacs.]
65805
65806         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65807         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65808         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65809         obsolete NLIST_NAME_UNION.
65810         [__GNU__]: Undef BSD and FSCALE.
65811         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65812
65813 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65814
65815         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65816         an enum type, so that it's guaranteed to promote to int.  See:
65817         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65818
65819 2003-08-03  Karl Berry  <karl@gnu.org>
65820
65821         * config/depcomp: update from automake.
65822
65823 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65824
65825         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65826         (strerror): Don't assume that a printable int fits in 14 bytes.
65827
65828 2003-07-31  Bruno Haible  <bruno@clisp.org>
65829
65830         * modules/getpass-gnu: New file.
65831         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65832
65833 2003-07-31  Bruno Haible  <bruno@clisp.org>
65834
65835         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65836
65837 2003-07-24  Karl Berry  <karl@gnu.org>
65838
65839         * config/missing: update from automake.
65840
65841 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65842             Bruno Haible  <bruno@clisp.org>
65843
65844         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65845         * lib/getline.c (getline, getdelim): Likewise.
65846         Remove _GNU_SOURCE define; now it's defined in config.h through
65847         m4/getline.m4.
65848
65849 2003-07-23  Karl Berry  <karl@gnu.org>
65850
65851         * config/config.sub: update from prep.
65852
65853 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65854
65855         * modules/xalloc (Depends-on): Add exitfail.
65856         * modules/xmemcoll: Likewise.
65857
65858 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65859
65860         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
65861         over-parenthesization in macros.
65862
65863         Sync with coreutils.
65864
65865         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
65866         required by C99.
65867
65868         Use `exit_failure' for xalloc and xmemcoll instead of their own
65869         private exit-failure variables.
65870         * lib/xalloc.h (xalloc_exit_failure): Remove.
65871         * lib/xmalloc.c: Likewise.  Include exitfail.h.
65872         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
65873         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
65874         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
65875         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
65876
65877 2003-07-20  Jim Meyering  <jim@meyering.net>
65878
65879         * modules/closeout (Depends-on): Add exitfail.
65880         Suggestion from Bruno Haible.
65881
65882 2003-07-19  Karl Berry  <karl@gnu.org>
65883
65884         * config/config.sub: update from prep.
65885
65886 2003-07-18  Paul Eggert  <eggert@twinsun.com>
65887
65888         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
65889         Remove.
65890         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
65891         to test that it can stand by itself.  Include "exitfail.h".
65892         Clients should set exit_failure instead.
65893         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
65894
65895 2003-07-18  Bruno Haible  <bruno@clisp.org>
65896
65897         * modules/getndelim2: New file.
65898         * modules/getline: Share files with module getndelim2.
65899         * modules/getnline: Depend on getndelim2 instead of sharing files with
65900         it. Add getnline.c to lib_SOURCES.
65901         * MODULES.html.sh (func_all_modules): Add getndelim2.
65902
65903 2003-07-18  Bruno Haible  <bruno@clisp.org>
65904
65905         * m4/getndelim2.m4: New file.
65906         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
65907         invoke gl_PREREQ_GETNDELIM2.
65908         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
65909         gl_PREREQ_GETNDELIM2.
65910         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
65911         gl_GETNDELIM2.
65912
65913 2003-07-18  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/getndelim2.h: New file.
65916         * lib/getndelim2.c: Make into a module of its own. Include config.h,
65917         getndelim2.h.
65918         (getndelim2): Make non-static. Change return type to ssize_t.
65919         * lib/getline.h: Change argument names.
65920         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
65921         * lib/getnline.c: Include getndelim2.h.
65922
65923 2003-07-18  Andreas Schwab  <schwab@suse.de>
65924
65925         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
65926
65927 2003-07-17  Karl Berry  <karl@gnu.org>
65928
65929         * config/config.sub: update from prep.
65930
65931 2003-07-17  Bruno Haible  <bruno@clisp.org>
65932
65933         * modules/getnline: New file.
65934         * modules/getline: Add lib/getndelim2.c to source file list.
65935         * MODULES.html.sh (func_all_modules): Add getnline.
65936
65937 2003-07-17  Bruno Haible  <bruno@clisp.org>
65938
65939         * m4/getnline.m4: New file.
65940
65941 2003-07-17  Bruno Haible  <bruno@clisp.org>
65942
65943         * m4/Makefile.am.in: Remove file.
65944         * m4/Makefile.am: Remove file.
65945         * m4/Makefile.in: Remove file.
65946
65947 2003-07-17  Bruno Haible  <bruno@clisp.org>
65948
65949         * lib/getnline.h: New file.
65950         * lib/getnline.c: New file.
65951         * lib/getndelim2.c: New file, extracted from getline.c.
65952         (getndelim2): Renamed from getdelim2, with added nmax argument.
65953         * lib/getline.c: Include getndelim2.c.
65954         (getdelim2): Moved out to getndelim2.c.
65955         (getline, getdelim): Update.
65956
65957 2003-07-17  Bruno Haible  <bruno@clisp.org>
65958
65959         * lib/Makefile.am: Remove file.
65960         * lib/Makefile.in: Remove file.
65961
65962 2003-07-17  Bruno Haible  <bruno@clisp.org>
65963
65964         * configure.in: Remove file.
65965         * Makefile.in: Remove file.
65966
65967 2003-07-17  Bruno Haible  <bruno@clisp.org>
65968
65969         * MODULES.html.sh: Put the </BODY> right before </HTML>.
65970
65971 2003-07-16  Karl Berry  <karl@gnu.org>
65972
65973         * config/srclist-update: was running fixlicense twice, which caused
65974                 texinfo.tex to be nullified for some reason.  Simplify,
65975                 $gplsrc is no longer needed as far as I can see?
65976
65977 2003-07-16  Jim Meyering  <jim@meyering.net>
65978
65979         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
65980
65981 2003-07-15  Paul Eggert  <eggert@twinsun.com>
65982
65983         * config/srclist.txt: Get the following files from gettext-runtime/intl
65984         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
65985         ref-del.sin.  From Bruno Haible.
65986         * config/srclist-update (fixfile): Change grep pattern again, since the
65987         previous fix didn't work (there was another trailing $).  Use
65988         '[$]' to escape the $s.
65989
65990 2003-07-15  Karl Berry  <karl@gnu.org>
65991
65992         * lib/vasnprintf.c: update from gettext.
65993
65994 2003-07-15  Karl Berry  <karl@gnu.org>
65995
65996         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
65997         gets expanded when surrounded by '$'.
65998
65999 2003-07-15  Jim Meyering  <jim@meyering.net>
66000
66001         * modules/save-cwd: Don't depend on error.  From Derek Price.
66002
66003 2003-07-15  Jim Meyering  <jim@meyering.net>
66004
66005         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66006
66007 2003-07-14  Simon Josefsson  <jas@extundo.com>
66008
66009         * modules/mempcpy: New file.
66010         * MODULES.html.sh (func_all_modules): Add mempcpy.
66011
66012 2003-07-14  Simon Josefsson  <jas@extundo.com>
66013
66014         * m4/mempcpy.m4: New file.
66015
66016 2003-07-14  Simon Josefsson  <jas@extundo.com>
66017
66018         * lib/mempcpy.h: New file.
66019         * lib/mempcpy.c: New file.
66020
66021 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66022
66023         * modules/getdate, modules/posixtm: Depend on mktime.
66024
66025 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66026
66027         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66028         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66029         unicodeio.c, unicodeio.h, unlocked-io.h:
66030         Switch from LGPL to GPL.
66031
66032 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66033
66034         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66035         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66036         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66037         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66038         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66039         updated automatically by ../config/srclist-update.  This changes
66040         their license from LPGL to GPL.
66041
66042 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66043
66044         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66045         assumed to refer to the root of the most recent stable gettext version.
66046         * config/srclistvars.sh: Add defaults for eggert.
66047         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66048         Match "This program" as well as "The program".  This is needed
66049         for gettext.
66050
66051 2003-07-14  Jim Meyering  <jim@meyering.net>
66052
66053         Don't emit diagnostics.  Let callers do that.
66054         * lib/save-cwd.c: Don't include "error.h".
66055         (save_cwd): Don't call error.  Ensure that errno is valid
66056         when returning nonzero.
66057
66058         * lib/save-cwd.h (restore_cwd): Update prototype.
66059         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66060         Simplify.  Don't call error upon failure.  Let callers do that.
66061         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66062         when auditing is enabled.  But don't bother updating the #if.
66063
66064 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66065
66066         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66067         it breaks C++ compilation.
66068         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66069
66070 2003-07-10  Simon Josefsson  <jas@extundo.com>
66071
66072         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66073
66074 2003-07-10  Jim Meyering  <jim@meyering.net>
66075
66076         * m4/clock_time.m4: Remove trailing blank.
66077         * m4/intmax_t.m4: Likewise.
66078
66079 2003-07-10  Jim Meyering  <jim@meyering.net>
66080
66081         * lib/vasnprintf.c: Remove trailing blanks.
66082         Make cpp indentation consistent.
66083
66084 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66085
66086         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66087         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66088         Switch from LGPL to GPL.
66089
66090 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66091
66092         * config/srclist.txt: Sort sublists.  Add
66093         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66094         that differ from gnulib for one reason or another; we'd like this list
66095         to be smaller but for now let's document what we have.
66096
66097 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66098
66099         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66100         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66101         and sweeter "eval x=$x".
66102         * config/srclist.txt: Get lib/argp* from glibc.
66103
66104 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66105
66106         * lib/mktime.c: Fix some boundary cases and remove need for floating
66107         point.
66108
66109         Issue a compile-time diagnostic if time_t is floating point, or if
66110         two's complement arithmetic is not in effect, or if arithmetic
66111         right shift does not propagate the sign.  These assumptions were
66112         all in the original code but they weren't checked.
66113
66114         (TIME_T_MIDPOINT, verify): New macros.
66115         (__isleap): Remove; it has integer overflow problems.
66116         (leapyear): New function, without those problems.
66117         (ydhms_tm_diff): Remove; splitting into two parts.
66118         (ydhms_diff): New function, containing the arithmetic part of
66119         the old ydhms_tm_diff function.  Issue a compile-time
66120         diagnostic if we are not using C99 integer division.
66121         Avoid casts when possible.
66122         (guess_time_tm): New function, containing the checking part of
66123         the old ydhms_tm_diff function.  Return the new value, rather than
66124         the difference between it and the old.  Accept a new argument T
66125         so that *T specifies the old value.  Check for overflow in the result.
66126
66127         (__mktime_internal): Use a time_t offset, not a long int offset.
66128         This undoes the 2003-06-04 change, which is no longer needed now
66129         that we have better overflow checking.
66130         (localtime_offset): Likewise.
66131
66132         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66133         and long are 64-bit but int is only 32-bit.
66134         (ydhms_diff): Use long int to store year1 and yday1.
66135         Issue a compile-time diagnostic if long int is not wide enough.
66136
66137         (__mktime_internal): Use long int to store adjusted year and yday.
66138         Use plain C rather than preprocessor commands, if that doesn't
66139         affect efficiency.
66140         Check for overflow (and try to repair) after each probe
66141         rather than checking only at the very end.  This avoids some bugs
66142         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66143         does not equal GMT offset at maximum time).
66144         Use integer to check for overflow rather than floating point; this
66145         is more portable to non-IEEE hosts, and is a tad faster.
66146         When we detect that we are oscillating between two values,
66147         don't check whether tm_isdst has the requested value, since
66148         we already know the answer.  When tm_isdst has the wrong value,
66149         use a different heuristic to find the right one, based on the
66150         extreme values actually observed in practice in tz2003a,
66151         rather than the (overly optimistic) "previous 3 calendar quarters".
66152
66153         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66154         "T const" to accommodate glibc style.
66155         (check_result): Use less-confusing report format.  "long" -> "long int.
66156         (main): Likewise.
66157         Don't loop if the iteration overflows time_t.
66158         Allow a negative step in the iteration.
66159
66160 2003-07-06  Karl Berry  <karl@gnu.org>
66161
66162         * config/depcomp: update from automake.
66163         * config/config.sub: update from prep.
66164
66165 2003-07-03  Karl Berry  <karl@gnu.org>
66166
66167         * config/config.guess: update from prep.
66168
66169 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66170
66171         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66172         xreadlink.c now includes it unconditionally.
66173
66174 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66175
66176         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66177         having it depend on HAVE_SYS_TYPES_H.
66178
66179 2003-07-01  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66182         <sys/types.h> should be sufficient.
66183         Reported by Paul Eggert.
66184
66185 2003-06-26  Karl Berry  <karl@gnu.org>
66186
66187         * config/depcomp: update from automake.
66188
66189 2003-06-26  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/human: Depend on module stdbool.
66192
66193 2003-06-25  Bruno Haible  <bruno@clisp.org>
66194
66195         * modules/readlink: New file.
66196         * modules/xreadlink: Depend on it.
66197         * MODULES.html.sh (func_all_modules): Add readlink.
66198
66199 2003-06-25  Bruno Haible  <bruno@clisp.org>
66200
66201         * m4/readlink.m4: New file.
66202
66203 2003-06-25  Bruno Haible  <bruno@clisp.org>
66204
66205         * lib/readlink.c: New file.
66206
66207 2003-06-22  Karl Berry  <karl@gnu.org>
66208
66209         * config/srclist.txt: update mkinstalldirs from automake.
66210         * config/mkinstalldirs: update.
66211
66212 2003-06-22  Bruno Haible  <bruno@clisp.org>
66213
66214         Portability to mingw32.
66215         * m4/ssize_t.m4: New file, from GNU gettext.
66216         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66217         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66218
66219 2003-06-22  Bruno Haible  <bruno@clisp.org>
66220
66221         * modules/safe-read: Add m4/ssize_t.m4.
66222         * modules/xreadlink: Add m4/ssize_t.m4.
66223
66224 2003-06-20  Bruno Haible  <bruno@clisp.org>
66225
66226         Assume C89, so PARAMS isn't needed.
66227         * lib/unicodeio.h (PARAMS): Remove.
66228         * lib/unicodeio.c: Don't use PARAMS.
66229
66230 2003-06-18  Karl Berry  <karl@gnu.org>
66231
66232         * config/config.{guess,sub}: update from prep.
66233
66234 2003-06-18  Jim Meyering  <jim@meyering.net>
66235
66236         Merge changes from coreutils.
66237         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66238         Remove explicit declarations of xmalloc and realloc.
66239         Include xalloc.h.
66240         (read_utmp): Remove anachronistic cast of xmalloc.
66241
66242 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66243
66244         Assume C89, so PARAMS isn't needed.
66245         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66246         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66247         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66248         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66249         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66250         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66251         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66252         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66253         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66254         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66255         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66256         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66257         no longer needed. Anyway, config.h should always be included before any
66258         other file.
66259
66260 2003-06-11  Simon Josefsson  <jas@extundo.com>
66261
66262         * modules/sysexits: New file.
66263         * MODULES.html.sh (func_all_modules): Add sysexits.
66264
66265 2003-06-11  Simon Josefsson  <jas@extundo.com>
66266
66267         * lib/sysexit_.h: New file.
66268
66269 2003-06-11  Derek Price  <derek@ximbiot.com>
66270
66271         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66272         necessary.
66273
66274 2003-06-11  Bruno Haible  <bruno@clisp.org>
66275
66276         * m4/sysexits.m4: New file.
66277
66278 2003-06-10  Simon Josefsson  <jas@extundo.com>
66279
66280         * lib/argp.h: New file, from glibc.
66281         * lib/argp-ba.c: New file, from glibc.
66282         * lib/argp-eexst.c: New file, from glibc.
66283         * lib/argp-fmtstream.c: New file, from glibc.
66284         * lib/argp-fmtstream.h: New file, from glibc.
66285         * lib/argp-fs-xinl.c: New file, from glibc.
66286         * lib/argp-help.c: New file, from glibc.
66287         * lib/argp-namefrob.h: New file, from glibc.
66288         * lib/argp-parse.c: New file, from glibc.
66289         * lib/argp-pv.c: New file, from glibc.
66290         * lib/argp-pvh.c: New file, from glibc.
66291         * lib/argp-xinl.c: New file, from glibc.
66292
66293 2003-06-10  Simon Josefsson  <jas@extundo.com>
66294
66295         * modules/strchrnul: New file.
66296
66297 2003-06-10  Simon Josefsson  <jas@extundo.com>
66298
66299         * modules/argp: New file.
66300
66301 2003-06-10  Simon Josefsson  <jas@extundo.com>
66302
66303         * m4/strchrnul.m4: New file.
66304
66305 2003-06-10  Simon Josefsson  <jas@extundo.com>
66306
66307         * lib/strchrnul.h: New file.
66308         * lib/strchrnul.c: New file.
66309
66310 2003-06-10  Bruno Haible  <bruno@clisp.org>
66311
66312         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66313
66314 2003-06-07  Karl Berry  <karl@gnu.org>
66315
66316         * config/config.{guess,sub}: update from prep.
66317
66318 2003-06-07  Jim Meyering  <jim@meyering.net>
66319
66320         * modules/strtod: Use $(...) notation, not @...@ for
66321         AC_REPLACE'd variables.
66322         * modules/localcharset: Likewise.
66323
66324 2003-06-07  Jim Meyering  <jim@meyering.net>
66325
66326         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66327         in place of my name in the copyright comment.
66328         Remove definition and uses of __P.
66329
66330         From coreutils.
66331         * lib/stat.c: Don't declare xmalloc explicitly.
66332         Instead, include "xalloc.h".
66333         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66334         xrealloc, and xcalloc return values.
66335         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66336         Improve comment.
66337         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66338
66339 2003-06-07  Bruno Haible  <bruno@clisp.org>
66340
66341         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66342         avoid AC_CONFIG_LINKS.
66343         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66344         fnmatch.h, to avoid AC_CONFIG_LINKS.
66345         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66346
66347 2003-06-07  Bruno Haible  <bruno@clisp.org>
66348
66349         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66350         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66351         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66352         directory.
66353         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66354         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66355         directory.
66356
66357 2003-06-06  Jim Meyering  <jim@meyering.net>
66358
66359         Merge from coreutils.
66360         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66361         Consolidate declarations and initializations of *_base* locals.
66362
66363         Merge from coreutils.
66364         This avoids a core dump on systems without GNU putenv,
66365         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66366         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66367         (unsetenv): New static function, from GNU libc.
66368         (rpl_putenv): Use it.
66369
66370         * lib/modechange.c: Remove trailing blanks.
66371
66372         Merge from coreutils.
66373         * lib/fsusage.c: Remove declaration of statfs.
66374         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66375
66376         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66377
66378 2003-06-06  Jim Meyering  <jim@meyering.net>
66379
66380         * lib/stdbool_.h: Renamed from stdbool.h.in.
66381
66382 2003-06-06  Jim Meyering  <jim@meyering.net>
66383             Bruno Haible  <bruno@clisp.org>
66384
66385         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66386         Adjust Makefile.am snippet not to redirect directly to target.
66387         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66388
66389 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66390
66391         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66392         mismatch, look in future quarters as well as past.  This fixes a
66393         bug when processing fall-backwards gaps immediately after a long
66394         period of daylight-saving time.
66395
66396         * lib/mktime.c: Assume freestanding C89 or better.
66397         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66398         (__P): Remove; not used.
66399         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66400         (mktime, not_equal_tm, print_tm, check_result,
66401         main): Use prototypes.  Use const * where appropriate.
66402         (main): Fix typo in testing code that uncovered by above changes.
66403         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66404
66405 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66406
66407         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66408         locale.h, localeconv.  This merges changes from coreutils.
66409
66410         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66411         It can be removed after the next Autoconf is released.
66412         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66413         needed.
66414
66415 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66416
66417         * lib/mktime.c: Fix Debian bug 177940
66418         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66419         (localtime_offset): Now long int, not time_t, because we want it
66420         to be guaranteed to be signed.  All uses changed.
66421         (__mktime_internal): If overflow would occur when adding offset,
66422         don't add it.
66423
66424         Merge 'human' changes from coreutils.  Rewrite to support
66425         locale-specific notations like thousands separators.
66426         * lib/human.c: Simplify authorship notice.
66427         Include human.h immediately after config.h.
66428         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66429         <limits.h>: Do not include, since human.h does.
66430         (SIZE_MAX, UINTMAX_MAX): New macros.
66431         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66432         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66433         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66434         (power_letter): Renamed from suffixes.
66435         (generate_suffix_backwards): Remove.
66436         (adjust_value): Now takes int style (because of human.h changes)
66437         and long double value (for greater precision on some platforms).
66438         (group_number): New function.
66439         (human_readable): Use it.  Use integer options, not enum.
66440         Put the options before the sizes in the arg list.
66441         Support all the new options.
66442         The old human_readable function has been removed;
66443         use inttostr.h instead.
66444         (human_readable, default_block_size, humblock):
66445         Use uintmax_t, not int, for block sizes.
66446         (human_readable_inexact, block_size_types): Remove.
66447         (block_size_opts): New constant.
66448         (human_options): Renamed from human_block_size, with new signature
66449         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66450         * lib/human.h: Add copyright and authorship notice.
66451         Include <limits.h> and <stdbool.h> unconditionally.
66452         (PARAMS): Remove.  All uses removed.
66453         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66454         (enum human_inexact_style): Remove tag; now a nameless enum.
66455         (human_floor, human_ceiling, human_round_to_even): Now have
66456         values 2, 0, 1 rather than -1, 1, 0.
66457         (human_group_digits, human_suppress_point_zero, human_autoscale,
66458         human_base_1024, human_SI, human_B): New constants.
66459         (human_readable_inexact, human_block_size): Remove.
66460         (human_readable): Size args are now uintmax_t, not int.
66461         (human_options): New decl.
66462
66463         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66464         unnecessary now that we assume C89 or better.  This change
66465         imported from coreutils.
66466
66467         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66468         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66469         in the 2003-05-30 sync from glibc.
66470
66471         .h files should stand alone, but we shouldn't include <sys/types.h>
66472         if we can get away with just <stddef.h>.
66473
66474         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66475         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66476         rather than <sys/types.h>, as we merely need size_t.
66477         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66478         to get size_t.
66479         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66480         Include <stdio.h>, to get FILE.
66481         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66482         memcasecmp.h has included <stddef.h> and all we need is size_t.
66483         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66484         our interface, instead of including <sys/types.h>
66485
66486 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66487
66488         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66489         now, as glibc mktime is buggy on non-glibc systems.
66490
66491 2003-06-03  Karl Berry  <karl@gnu.org>
66492
66493         * config/config.sub: update from prep.
66494
66495 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66496
66497         [from coreutils]
66498         Fix some minor time-related bugs with POSIX time arguments.
66499         Some valid time stamps were being rejected (notably -1, and
66500         time stamps before 1900 on 64-bit hosts).  And some invalid
66501         time stamps were being accepted, e.g. September 31.
66502
66503         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66504         that we can return (time_t) -1 successfully.
66505         * lib/posixtm.c: Likewise.
66506         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66507         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66508         (t): Remove static var.
66509         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66510         of static var.  All uses changed.
66511         (year): Do not reject years before 1900; they can occur with
66512         64-bit time_t.
66513         (posix_time_parse): Do not check for out-of-range components;
66514         that is now the caller's responsibility, since our checks were
66515         only approximations.
66516         (posixtime): Use mktime to check for out-of-range components,
66517         since it knows them exactly.
66518         If mktime returns (time_t) -1, check whether an error actually occurred
66519         by invoking localtime on -1.
66520         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66521         posixtime failures better.
66522         Improve the test data (in comments only).
66523
66524 2003-06-02  Karl Berry  <karl@gnu.org>
66525
66526         * config/mkinstalldirs (version): new variable.
66527         (--version): new option.
66528         (usage): improve message.
66529
66530 2003-05-30  Karl Berry  <karl@gnu.org>
66531
66532         * lib/mktime.c: update from libc.
66533
66534 2003-05-30  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66537         * config/config.rpath: Upgrade to gettext-0.12.1.
66538
66539 2003-05-30  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66542         * m4/nls.m4: New file, from gettext-0.12.1.
66543         * m4/po.m4: New file, from gettext-0.12.1.
66544         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66545
66546 2003-05-30  Bruno Haible  <bruno@clisp.org>
66547
66548         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66549         * lib/localcharset.h: Likewise.
66550         * lib/localcharset.c: Likewise.
66551
66552 2003-05-29  Karl Berry  <karl@gnu.org>
66553
66554         * config/config.rpath: update from gettext.
66555
66556 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66557
66558         Assume the headers required for C89 freestanding compilers.
66559         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66560         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66561         * m4/human.m4 (gl_HUMAN): Likewise.
66562         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66563         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66564         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66565         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66566         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66567         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66568
66569 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66570
66571         Assume the headers required for C89 freestanding compilers.
66572         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66573         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66574         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66575         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66576         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66577         define, since <limits.h> is guaranteed to do that.
66578         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66579         * lib/exclude.c: Include <stdbool.h> unconditionally.
66580         * lib/tempname.c: Include <stddef.h> unconditionally.
66581         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66582         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66583         <stddef.h> does that.
66584         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66585         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66586         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66587         needed.
66588         * lib/xstrtol.c: Likewise.
66589         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66590         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66591
66592         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66593         warnings on some platforms.
66594
66595         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66596         arbitrarily.
66597
66598 2003-05-26  Jim Meyering  <jim@meyering.net>
66599
66600         Merge in a change from coreutils:
66601         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66602         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66603         that condition, rather than `-1' which is slightly misleading.
66604         Change the name of the cache variable to have the gl_ prefix.
66605         Prompted by a patch from Richard Dawe for DJGPP.
66606
66607 2003-05-24  Karl Berry  <karl@gnu.org>
66608
66609         * config/config.guess: update from prep.
66610
66611 2003-05-22  Karl Berry  <karl@gnu.org>
66612
66613         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66614
66615 2003-05-20  Karl Berry  <karl@gnu.org>
66616
66617         * config/config.guess: update from prep.
66618
66619 2003-05-18  Karl Berry  <karl@gnu.org>
66620
66621         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66622         might actually be set by the user.
66623
66624         * config/depcomp, install-sh, mdate-sh: update from automake.
66625
66626 2003-05-17  Bruno Haible  <bruno@clisp.org>
66627
66628         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66629         invalid expansion for AC_EGREP_CPP.
66630         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66631         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66632         Suggested by Akim Demaille <akim@epita.fr> in
66633         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66634
66635 2003-05-12  Jim Meyering  <jim@meyering.net>
66636
66637         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66638         the space-padded-by-default conversion specifiers, %e, %k, %l.
66639
66640 2003-05-12  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66643         the string is longer than 4 KB.
66644
66645 2003-05-11  Karl Berry  <karl@gnu.org>
66646
66647         * config/config.{guess,sub}: update from prep.
66648
66649 2003-05-09  Bruno Haible  <bruno@clisp.org>
66650
66651         * modules/error: Add m4/strerror_r.m4 to file list.
66652
66653 2003-05-03  Bruno Haible  <bruno@clisp.org>
66654
66655         Upgrade to Unicode-4.0.
66656         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66657         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66658         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66659         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66660         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66661         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66662         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66663         Change width of U+E0100..U+E01EF from 1 to 0.
66664
66665 2003-04-25  Jim Meyering  <jim@meyering.net>
66666
66667         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66668         of type size_t, not int.
66669
66670 2003-04-25  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/copy-file.c: Include <stddef.h>, for size_t.
66673
66674 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66675
66676         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66677         code which expansion is under static control.  Patch imported from
66678         Akim Demaille's patch to Bison; see
66679         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66680
66681 2003-04-14  Bruno Haible  <bruno@clisp.org>
66682
66683         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66684
66685 2003-04-11  Jim Meyering  <jim@meyering.net>
66686
66687         Merge changes from Coreutils.
66688
66689         2003-03-22  Jim Meyering  <jim@meyering.net>
66690
66691         * lib/strftime.c (widen): Cast alloca return value to proper type.
66692
66693         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66694
66695         From GNU libc.
66696         * lib/strftime.c (my_strftime): Handle very large width
66697         specifications for numeric values correctly.  Improve checks for
66698         overflow.
66699
66700         2003-01-19  Jim Meyering  <jim@meyering.net>
66701
66702         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66703         definitions.
66704         (nl_get_alt_digit) [! defined my_strftime]: Define.
66705         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66706         _nl_get_alt_digit and _nl_get_walt_digit.
66707
66708         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66709         libc. These changes have no effect outside of _LIBC.
66710
66711 2003-04-10  Bruno Haible  <bruno@clisp.org>
66712
66713         * modules/findprog: New file.
66714         * MODULES.html.sh (func_all_modules): Add it.
66715
66716 2003-04-10  Bruno Haible  <bruno@clisp.org>
66717
66718         * m4/findprog.m4: New file.
66719         * m4/eaccess.m4: New file.
66720
66721 2003-04-10  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/findprog.h: New file, from GNU gettext.
66724         * lib/findprog.c: New file, from GNU gettext.
66725
66726 2003-04-05  Jim Meyering  <jim@meyering.net>
66727
66728         Merge changes from Coreutils.
66729
66730         * lib/exclude.h (PARAMS): Remove definition and uses.
66731         * lib/exclude.c: Remove uses of `PARAMS'.
66732
66733         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66734         Add test-cases for DOS filenames. Declare program_name.
66735         (main): Set up program_name.  Patch by Rich Dawe.
66736
66737         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66738         error from mntctl.
66739         Use mntctl's return value to drive the entry-processing loop, since
66740         we can't rely on the value of the vmt_length member in the last
66741         entry.  On some systems doing so could result in exhausting
66742         virtual memory.  Based in part on a patch from Mike Jetzer.
66743
66744 2003-04-04  Bruno Haible  <bruno@clisp.org>
66745
66746         * modules/linebreak: New file.
66747         * MODULES.html.sh (func_all_modules): Add it.
66748
66749 2003-04-04  Bruno Haible  <bruno@clisp.org>
66750
66751         * m4/linebreak.m4: New file.
66752
66753 2003-04-04  Bruno Haible  <bruno@clisp.org>
66754
66755         * lib/linebreak.h: New file, from GNU gettext.
66756         * lib/linebreak.c: New file, from GNU gettext with slight
66757         modifications.
66758         * lib/lbrkprop.h: New file, from GNU gettext.
66759
66760 2003-04-03  Bruno Haible  <bruno@clisp.org>
66761
66762         * modules/utf8-ucs4: New file.
66763         * modules/utf16-ucs4: New file.
66764         * modules/ucs4-utf8: New file.
66765         * modules/ucs4-utf16: New file.
66766         * MODULES.html.sh (func_all_modules): Add them.
66767
66768 2003-04-03  Bruno Haible  <bruno@clisp.org>
66769
66770         * m4/utf-ucs4.m4: New file.
66771         * m4/ucs4-utf.m4: New file.
66772
66773 2003-04-03  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/utf8-ucs4.h: New file, from GNU gettext.
66776         * lib/utf16-ucs4.h: New file, from GNU gettext.
66777         * lib/ucs4-utf8.h: New file, from GNU gettext.
66778         * lib/ucs4-utf16.h: New file, from GNU gettext.
66779
66780 2003-04-02  Bruno Haible  <bruno@clisp.org>
66781
66782         * modules/binary-io: New file.
66783         * MODULES.html.sh (func_all_modules): Add it.
66784
66785 2003-04-02  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/binary-io.h: New file, from GNU gettext.
66788
66789 2003-04-01  Bruno Haible  <bruno@clisp.org>
66790
66791         * modules/pathname: New file.
66792         * MODULES.html.sh (func_all_modules): Add it.
66793
66794 2003-04-01  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/pathname.h: New file, from GNU gettext.
66797         * lib/concatpath.c: New file, from GNU gettext.
66798
66799 2003-03-30  Bruno Haible  <bruno@clisp.org>
66800
66801         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66802
66803 2003-03-30  Bruno Haible  <bruno@clisp.org>
66804
66805         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66806         function chown() doesn't exist.
66807
66808 2003-03-28  Bruno Haible  <bruno@clisp.org>
66809
66810         * modules/copy-file: New file.
66811         * MODULES.html.sh (func_all_modules): Add it.
66812
66813 2003-03-28  Bruno Haible  <bruno@clisp.org>
66814
66815         * m4/copy-file.m4: New file.
66816
66817 2003-03-28  Bruno Haible  <bruno@clisp.org>
66818
66819         * lib/copy-file.h: New file, from GNU gettext.
66820         * lib/copy-file.c: New file, from GNU gettext.
66821
66822 2003-03-18  Jim Meyering  <jim@meyering.net>
66823
66824         * lib/quote.c (quote_n): Fix typo in comment.
66825
66826 2003-03-18  Bruno Haible  <bruno@clisp.org>
66827
66828         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66829         checking.
66830         * m4/onceonly_2_57.m4: Likewise.
66831
66832 2003-03-17  Bruno Haible  <bruno@clisp.org>
66833
66834         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66835         (m4_quote): Remove macro.
66836         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66837
66838 2003-03-14  Jim Meyering  <jim@meyering.net>
66839
66840         Merge changes from Coreutils.
66841         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66842         to be const, in order to avoid warnings.
66843         (obstack_room): Likewise.
66844         (obstack_empty_p): Likewise.
66845
66846 2003-03-14  Bruno Haible  <bruno@clisp.org>
66847
66848         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66849         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66850
66851 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66852
66853         Merge changes from Bison.
66854         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66855         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66856         when compiling Bison 1.875's `bitset bset = obstack_alloc
66857         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66858         * lib/hash.c: Include <stdbool.h> unconditionally.
66859
66860 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66861
66862         * m4/onceonly.m4 (m4_quote): New macro.
66863         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
66864         Quote AC_FOREACH variable-expansions properly.
66865
66866 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66867
66868         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
66869
66870 2003-03-09  Paul Eggert  <eggert@twinsun.com>
66871
66872         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
66873         Reported by Bruce Becker; see:
66874         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
66875
66876 2003-03-03  Paul Eggert  <eggert@twinsun.com>
66877             Bruno Haible  <bruno@clisp.org>
66878
66879         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
66880         Reported by John Hughes, see
66881         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
66882
66883 2003-02-20  Bruno Haible  <bruno@clisp.org>
66884
66885         * MODULES.html.sh (func_all_modules): Add poll.
66886
66887 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66888
66889         * modules/poll: New file.
66890
66891 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66892
66893         * lib/poll_.h: New file.
66894         * lib/poll.c: New file.
66895
66896 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
66897
66898         * m4/poll.m4: New file.
66899
66900 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66901
66902         * modules/mathl: New file.
66903
66904 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66905
66906         * lib/mathl.h: New file.
66907         * lib/acosl.c: New file.
66908         * lib/asinl.c: New file.
66909         * lib/atanl.c: New file.
66910         * lib/ceill.c: New file.
66911         * lib/cosl.c: New file.
66912         * lib/expl.c: New file.
66913         * lib/floorl.c: New file.
66914         * lib/frexpl.c: New file.
66915         * lib/ldexpl.c: New file.
66916         * lib/logl.c: New file.
66917         * lib/sincosl.c: New file.
66918         * lib/sinl.c: New file.
66919         * lib/sqrtl.c: New file.
66920         * lib/tanl.c: New file.
66921         * lib/trigl.c: New file.
66922         * lib/trigl.h: New file.
66923
66924 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
66925
66926         * m4/mathl.m4: New file.
66927
66928 2003-02-18  Bruno Haible  <bruno@clisp.org>
66929
66930         * MODULES.html.sh (func_all_modules): Add mathl.
66931
66932 2003-02-17  Bruno Haible  <bruno@clisp.org>
66933
66934         * modules/mkdtemp: New module.
66935         * MODULES.html.sh (func_all_modules): Add it.
66936
66937 2003-02-17  Bruno Haible  <bruno@clisp.org>
66938
66939         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
66940
66941 2003-02-17  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/mkdtemp.h: New file, from GNU gettext.
66944         * lib/mkdtemp.c: New file, from GNU gettext.
66945
66946 2003-02-02  Jim Meyering  <jim@meyering.net>
66947
66948         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
66949         e.g. glibc-2.2.93.
66950
66951 2003-01-31  Bruno Haible  <bruno@clisp.org>
66952
66953         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
66954         'rpl_rename'.
66955         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
66956         'rpl_strnlen'.
66957         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
66958         'rpl_strtod'.
66959         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
66960         'rpl_utime'.
66961
66962 2003-01-31  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/rename.c: #undef rename before defining rpl_rename.
66965         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
66966
66967 2003-01-30  Bruno Haible  <bruno@clisp.org>
66968
66969         * modules/vasnprintf, modules/vasprintf: New modules.
66970         * MODULES.html.sh (func_all_modules): Add them.
66971
66972 2003-01-30  Bruno Haible  <bruno@clisp.org>
66973
66974         * m4/signed.m4: New file, from GNU gettext.
66975         * m4/longdouble.m4: New file, from GNU gettext.
66976         * m4/wchar_t.m4: New file, from GNU gettext.
66977         * m4/wint_t.m4: New file, from GNU gettext.
66978         * m4/vasnprintf.m4: New file.
66979         * m4/vasprintf.m4: New file.
66980
66981 2003-01-30  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/printf-args.h: New file, from GNU gettext.
66984         * lib/printf-args.c: New file, from GNU gettext.
66985         * lib/printf-parse.h: New file, from GNU gettext.
66986         * lib/printf-parse.c: New file, from GNU gettext.
66987         * lib/vasnprintf.h: New file, from GNU gettext.
66988         * lib/vasnprintf.c: New file, from GNU gettext.
66989         * lib/asnprintf.c: New file, from GNU gettext.
66990         * lib/vasprintf.h: New file, from GNU gettext with modifications.
66991         * lib/vasprintf.c: New file, from GNU gettext.
66992         * lib/asprintf.c: New file, from GNU gettext.
66993
66994 2003-01-29  Bruno Haible  <bruno@clisp.org>
66995
66996         * modules/stpncpy: New module.
66997         * MODULES.html.sh (func_all_modules): Add it.
66998
66999 2003-01-29  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/stpncpy.m4: New file.
67002
67003 2003-01-29  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67006         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67007
67008 2003-01-28  Bruno Haible  <bruno@clisp.org>
67009
67010         * modules/c-ctype: New module.
67011         * MODULES.html.sh (func_all_modules): Add it.
67012
67013 2003-01-28  Bruno Haible  <bruno@clisp.org>
67014
67015         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67016         Paul Eggert.
67017         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67018         Paul Eggert.
67019
67020 2003-01-27  Bruno Haible  <bruno@clisp.org>
67021
67022         * modules/xsetenv: New module.
67023         * MODULES.html.sh (func_all_modules): Add it.
67024
67025 2003-01-27  Bruno Haible  <bruno@clisp.org>
67026
67027         * lib/xsetenv.h: New file, from GNU gettext.
67028         * lib/xsetenv.c: New file, from GNU gettext.
67029
67030 2003-01-23  Jim Meyering  <jim@meyering.net>
67031
67032         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67033         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67034
67035 2003-01-23  Bruno Haible  <bruno@clisp.org>
67036
67037         * modules/minmax: New module.
67038         * MODULES.html.sh (func_all_modules): Add it.
67039
67040 2003-01-23  Bruno Haible  <bruno@clisp.org>
67041
67042         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67043         Eggert.
67044
67045 2003-01-22  Bruno Haible  <bruno@clisp.org>
67046
67047         * modules/exit: New module.
67048         * MODULES.html.sh (func_all_modules): Add it.
67049
67050 2003-01-22  Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/exit.h: New file, from GNU gettext.
67053
67054 2003-01-19  Bruno Haible  <bruno@clisp.org>
67055
67056         * gnulib-tool: Recognize option --extract-maintainer.
67057         (func_get_maintainer): New function.
67058         * modules/*: Add Maintainer entry.
67059
67060 2003-01-16  Jim Meyering  <jim@meyering.net>
67061
67062         * m4/regex.m4: The `regex' struct is both input and output.
67063         Initialize it before each use.  Patch by Tim Waugh.
67064
67065 2003-01-16  Bruno Haible  <bruno@clisp.org>
67066
67067         * MODULES.html.sh: Add a table of contents. Add the module name as
67068         leftmost column. Add hyperlinks.
67069
67070 2003-01-15  Bruno Haible  <bruno@clisp.org>
67071
67072         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67073
67074 2003-01-15  Bruno Haible  <bruno@clisp.org>
67075
67076         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67077         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67078         suffix.
67079
67080 2003-01-15  Bruno Haible  <bruno@clisp.org>
67081
67082         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67083
67084 2003-01-15  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67087         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67088
67089 2003-01-14  Jim Meyering  <jim@meyering.net>
67090
67091         * lib/same.c (same_name): Tweak a comment.
67092
67093 2003-01-14  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67096         when a string comparison is sufficient.
67097
67098 2003-01-14  Bruno Haible  <bruno@clisp.org>
67099
67100         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67101         'unsigned int'.
67102
67103 2003-01-14  Bruno Haible  <bruno@clisp.org>
67104
67105         * lib/hash-pjw.c: Add comment about low quality of this function.
67106
67107 2003-01-13  Bruno Haible  <bruno@clisp.org>
67108
67109         * modules/stpcpy: Distribute lib/stpcpy.h.
67110         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67111
67112 2003-01-13  Bruno Haible  <bruno@clisp.org>
67113
67114         * modules/*: Add a description.
67115         * modules/strpbrk: Fix Makefile.am snippet.
67116         * modules/strtoimax: Fix dependencies.
67117         * modules/strtoumax: Likewise.
67118
67119 2003-01-13  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67122         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67123         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67124
67125 2003-01-13  Bruno Haible  <bruno@clisp.org>
67126
67127         * gnulib-tool (func_create_testdir): Store config/* files in the main
67128         directory.
67129         * config.rpath: Move to ...
67130         * config/config.rpath: ... here.
67131         * modules/gettext: Contains config/config.rpath, not config.rpath.
67132         * modules/iconv: Likewise.
67133
67134 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67135
67136         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67137         to avoid collisions with libcurses and libreadline.
67138
67139         * m4/getstr.m4: Remove.
67140         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67141
67142 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67143
67144         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67145         to avoid collisions with libcurses and libreadline.
67146
67147         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67148         * lib/getstr.h, getstr.c: Remove.
67149         * lib/getline.c: Include "getline.h", to check interface.
67150         Move body of old getstr.c here: this defines MIN_CHUNK and
67151         declares getdelim2, which is renamed from getstr.
67152         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67153
67154         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67155         All uses changed.
67156         * lib/linebuffer.h: Likewise.
67157         (readline): Remove backward-compatibility macro.
67158
67159 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67160
67161         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67162         to avoid collisions with libcurses and libreadline.
67163         * getstr: Remove.
67164         * MODULES.html.sh: Remove getstr.
67165         * modules/getline: Depend on unlocked-io, not getstr.
67166
67167 2003-01-12  Jim Meyering  <jim@meyering.net>
67168
67169         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67170
67171 2003-01-10  Bruno Haible  <bruno@clisp.org>
67172
67173         * modules/alloca: Change Makefile.am requirements. Simplify Include
67174         requirements. Add lib/alloca_.h to file list.
67175
67176 2003-01-10  Bruno Haible  <bruno@clisp.org>
67177
67178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67179
67180 2003-01-10  Bruno Haible  <bruno@clisp.org>
67181
67182         * lib/alloca_.h: New file.
67183         * lib/getdate.y: Unconditionally include alloca.h.
67184         * lib/makepath.c: Likewise.
67185         * lib/setenv.c: Likewise.
67186         * lib/userspec.c: Likewise.
67187
67188 2003-01-09  Karl Berry  <karl@gnu.org>
67189
67190         * MODULES.html.sh: include `dirname $0` in PATH, to find
67191         gnulib-tool.
67192
67193 2003-01-09  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67196         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67197
67198 2003-01-09  Bruno Haible  <bruno@clisp.org>
67199
67200         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67201
67202 2003-01-09  Bruno Haible  <bruno@clisp.org>
67203
67204         * lib/stdbool.h.in: New file.
67205
67206 2003-01-09  Bruno Haible  <bruno@clisp.org>
67207
67208         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67209         * MODULES.html.sh: Likewise.
67210
67211 2003-01-08  Jim Meyering  <jim@meyering.net>
67212
67213         * lib/full-write.c: Undefine and define-away `const' after inclusion
67214         of errno.h, not before.  Suggestion from Bruno Haible.
67215
67216 2003-01-08  Bruno Haible  <bruno@clisp.org>
67217
67218         * modules/full-read: Depend on full-write.
67219
67220 2003-01-08  Bruno Haible  <bruno@clisp.org>
67221
67222         * lib/safe-read.c: Include specification header first, to ensure its
67223         selfcontainedness.
67224         * lib/full-write.c: Likewise.
67225
67226 2003-01-07  Jim Meyering  <jim@meyering.net>
67227
67228         * lib/full-write.c: Rework so that it may serve to define full_read,
67229         too.
67230         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67231
67232 2003-01-07  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67235         <inttypes.h>.
67236         * lib/xstrtol.h: Likewise.
67237         * lib/xstrtoimax.c: Likewise.
67238         * lib/xstrtoumax.c: Likewise.
67239         * lib/human.h: Likewise.
67240
67241         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67242         on systems that have <inttypes.h> but not <stdint.h>.
67243
67244 2003-01-07  Bruno Haible  <bruno@clisp.org>
67245
67246         * MODULES.html.sh: Add copyright notice.
67247         (missed_files): Omit CVS directory entries.
67248         (func_module): Make it work with sed-3.02.
67249         * MODULES.txt: Remove file.
67250
67251 2003-01-06  Jim Meyering  <jim@meyering.net>
67252
67253         * lib/version-etc.c: Update year in translatable copyright string.
67254
67255 2003-01-03  Karl Berry  <karl@gnu.org>
67256
67257         * config/config.{guess,sub}: update from prep.
67258
67259 2003-01-02  Karl Berry  <karl@gnu.org>
67260
67261         * doc/COPYING.DOC: belatedly updated to 1.2.
67262
67263 2003-01-01  Karl Berry  <karl@gnu.org>
67264
67265         * gnulib-tool (func_verify_module): report module name $module in
67266         error message, not $1.
67267         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67268         be created, only if it doesn't exist.
67269         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67270
67271 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67272
67273         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67274
67275 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67276
67277         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67278         memcmp if strcoll doesn't work.
67279
67280 2002-12-31  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67283         nonempty.
67284
67285 2002-12-31  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/memcoll.c (STRCOLL): New macro.
67288         (memcoll): Use it.
67289
67290 2002-12-31  Bruno Haible  <bruno@clisp.org>
67291
67292         * lib/localcharset.h: New file.
67293         * lib/localcharset.c: Include it.
67294         * lib/unicodeio.c: Likewise.
67295
67296 2002-12-31  Bruno Haible  <bruno@clisp.org>
67297
67298         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67299         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67300
67301 2002-12-31  Bruno Haible  <bruno@clisp.org>
67302
67303         * lib/getline.h: Include <stddef.h>, for size_t.
67304
67305         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67306         * lib/unicodeio.c: Don't include <stddef.h>.
67307
67308 2002-12-31  Bruno Haible  <bruno@clisp.org>
67309
67310         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67311         HAVE_TM_ZONE.
67312
67313 2002-12-24  Karl Berry  <karl@gnu.org>
67314
67315         * config/config.guess: update from prep.
67316
67317 2002-12-24  Bruno Haible  <bruno@clisp.org>
67318
67319         General infrasructure.
67320         * m4/README: Rewritten.
67321         * m4/onceonly.m4: New file.
67322         * m4/onceonly_2_57.m4: New file.
67323
67324         Module atexit.
67325         * m4/atexit.m4: New file.
67326
67327         Module strtod.
67328         * m4/strtod.m4: New file.
67329
67330         Module strtol.
67331         * m4/strtol.m4: New file.
67332
67333         Module strtoul.
67334         * m4/strtoul.m4: New file.
67335
67336         Module memchr.
67337         * m4/memchr.m4: New file.
67338
67339         Module memcmp.
67340         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67341         (jm_FUNC_MEMCMP): Invoke it.
67342
67343         Module memcpy.
67344         * m4/memcpy.m4: New file.
67345
67346         Module memmove.
67347         * m4/memmove.m4: New file.
67348
67349         Module memset.
67350         * m4/memset.m4: New file.
67351
67352         Module strcspn.
67353         * m4/strcspn.m4: New file.
67354
67355         Module strpbrk.
67356         * m4/strpbrk.m4: New file.
67357
67358         Module strstr.
67359         * m4/strstr.m4: New file.
67360
67361         Module strerror.
67362         * m4/strerror.m4: New file.
67363
67364         Module mktime.
67365         * m4/mktime.m4: Renamed from jm-mktime.m4.
67366         (gl_PREREQ_MKTIME): New macro.
67367         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67368
67369         Module malloc.
67370         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67371         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67372         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67373
67374         Module realloc.
67375         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67376         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67377         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67378
67379         Module strftime.
67380         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67382         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67383         gl_TM_GMTOFF.
67384         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67385
67386         Module xalloc.
67387         * m4/xalloc.m4: New file.
67388
67389         Module alloca.
67390         * m4/alloca.m4: New file.
67391
67392         Module putenv.
67393         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67394         (jm_FUNC_PUTENV): Invoke it.
67395
67396         Module setenv.
67397         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67398         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67399         when invoked twice.
67400         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67401         gt_FUNC_SETENV.
67402
67403         Module memrchr.
67404         * m4/memrchr.m4: New file.
67405
67406         Module stpcpy.
67407         * m4/stpcpy.m4: New file.
67408
67409         Module strcase.
67410         * m4/strcase.m4: New file.
67411
67412         Module strdup.
67413         * m4/strdup.m4: New file.
67414
67415         Module strnlen.
67416         * m4/strnlen.m4: New file.
67417
67418         Module strndup.
67419         * m4/strndup.m4: New file.
67420
67421         Module xstrtod.
67422         * m4/xstrtod.m4: New file.
67423
67424         Module xstrtol.
67425         * m4/xstrtol.m4: New file.
67426
67427         Module getdate.
67428         * m4/getdate.m4: New file.
67429
67430         Module unlocked-io.
67431         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67432         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67433         * m4/jm-glibc-io.m4n: Remove file.
67434
67435         Module long-options.
67436         * m4/long-options.m4: New file.
67437
67438         Module md5.
67439         * m4/md5.m4: New file.
67440
67441         Module sha.
67442         * m4/sha.m4: New file.
67443
67444         Module getstr.
67445         * m4/getstr.m4: New file.
67446
67447         Module getline.
67448         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67449         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67450         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67451         simply getline. Infoke gl_PREREQ_GETLINE.
67452
67453         Module obstack.
67454         * m4/obstack.m4: New file.
67455
67456         Module hash.
67457         * m4/hash.m4: New file.
67458
67459         Module readtokens.
67460         * m4/readtokens.m4: New file.
67461
67462         Module strverscmp.
67463         * m4/strverscmp.m4: New file.
67464
67465         Module stdbool.
67466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67467         OSF/1.
67468
67469         Module strtoll.
67470         * m4/strtoll.m4: New file.
67471
67472         Module strtoull.
67473         * m4/strtoull.m4: New file.
67474
67475         Module strtoimax.
67476         * m4/strtoimax.m4: New file.
67477
67478         Module strtoumax.
67479         * m4/strtoumax.m4: New file.
67480
67481         Module xstrtoimax.
67482         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67483         jm_AC_PREREQ_XSTRTOIMAX.
67484         Moved the strtol prerequisites to strtol.m4.
67485         Moved the strtoll prerequisites to strtoll.m4.
67486         Moved the strtoimax prerequisites to strtoimax.m4.
67487
67488         Module xstrtoumax.
67489         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67490         jm_AC_PREREQ_XSTRTOUMAX.
67491         Moved the strtoul prerequisites to strtoul.m4.
67492         Moved the strtoull prerequisites to strtoull.m4.
67493         Moved the strtoumax prerequisites to strtoumax.m4.
67494
67495         Module chown.
67496         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67497         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67498
67499         Module dup2.
67500         * m4/dup2.m4: New file.
67501
67502         Module ftruncate.
67503         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67504         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67505
67506         Module getgroups.
67507         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67508         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67509
67510         Module gettimeofday.
67511         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67512         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67513         gl_PREREQ_GETTIMEOFDAY.
67514
67515         Module mkdir.
67516         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67517         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67518
67519         Module mkstemp.
67520         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67521         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67522         jm_AC_TYPE_UINTMAX_T.
67523         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67524
67525         Module stat.
67526         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67527         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67528
67529         Module lstat.
67530         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67531         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67532
67533         Module timespec.
67534         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67535         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67536         * m4/st_mtim.m4: Indentation.
67537
67538         Module nanosleep.
67539         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67540         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67541         gl_PREREQ_NANOSLEEP.
67542
67543         Module regex.
67544         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67545         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67546         (gl_REGEX): New macro.
67547
67548         Module rename.
67549         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67550         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67551
67552         Module rmdir.
67553         * m4/rmdir.m4: New file.
67554
67555         Module utime.
67556         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67557         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67558         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67559
67560         Module dirname.
67561         * m4/dirname.m4: New file.
67562
67563         Module getopt.
67564         * m4/getopt.m4: New file.
67565
67566         Module unistd-safer.
67567         * m4/unistd-safer.m4: New file.
67568
67569         Module fnmatch.
67570         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67571         declaration.
67572         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67573         (gl_FUNC_FNMATCH_POSIX): New macro.
67574         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67575         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67576         simply fnmatch.
67577
67578         Module exclude.
67579         * m4/exclude.m4: New file.
67580
67581         Module human.
67582         * m4/human.m4: New file.
67583
67584         Module acl.
67585         * m4/acl.m4: Nop.
67586
67587         Module backupfile.
67588         * m4/backupfile.m4: New file.
67589         * m4/d-ino.m4: Indentation.
67590
67591         Module fsusage.
67592         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67593         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67594         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67595
67596         Module dirfd.
67597         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67598         requirements.
67599
67600         Module euidaccess.
67601         * m4/euidaccess.m4: New file.
67602
67603         Module file-type.
67604         * m4/file-type.m4: New file.
67605
67606         Module fileblocks.
67607         * m4/fileblocks.m4: New file.
67608
67609         Module filemode.
67610         * m4/filemode.m4: New file.
67611
67612         Module isdir.
67613         * m4/isdir.m4: New file.
67614
67615         Module lchown.
67616         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67617         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67618
67619         Module makepath.
67620         * m4/makepath.m4: New file.
67621
67622         Module modechange.
67623         * m4/modechange.m4: New file.
67624
67625         Module mountlist.
67626         * m4/mountlist.m4: New file.
67627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67628         Indentation.
67629
67630         Module path-concat.
67631         * m4/path-concat.m4: New file.
67632
67633         Module pathmax.
67634         * m4/pathmax.m4: New file.
67635
67636         Module same.
67637         * m4/same.m4: New file.
67638
67639         Module save-cwd.
67640         * m4/save-cwd.m4: New file.
67641
67642         Module savedir.
67643         * m4/savedir.m4: New file.
67644
67645         Module xgetcwd.
67646         * m4/xgetcwd.m4: New file.
67647         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67648
67649         Module xreadlink.
67650         * m4/xreadlink.m4: New file.
67651
67652         Module safe-read.
67653         * m4/safe-read.m4: New file.
67654
67655         Module safe-write.
67656         * m4/safe-write.m4: New file.
67657
67658         Module closeout.
67659         * m4/closeout.m4: New file.
67660
67661         Module stdio-safer.
67662         * m4/stdio-safer.m4: New file.
67663
67664         Module getpass.
67665         * m4/getpass.m4: New file.
67666
67667         Module getugroups.
67668         * m4/getugroups.m4: New file.
67669
67670         Module group-member.
67671         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67672         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67673
67674         Module idcache.
67675         * m4/idcache.m4: New file.
67676
67677         Module userspec.
67678         * m4/userspec.m4: New file.
67679
67680         Module gettime.
67681         * m4/clock_time.m4: New file.
67682         * m4/gettime.m4: New file.
67683
67684         Module settime.
67685         * m4/settime.m4: New file.
67686
67687         Module posixtm.
67688         * m4/posixtm.m4: New file.
67689
67690         Module gethostname.
67691         * m4/gethostname.m4: New file.
67692
67693         Module canon-host.
67694         * m4/canon-host.m4: New file.
67695
67696         Module gettext.
67697         * m4/codeset.m4: New file, from gettext-0.11.5.
67698         * m4/gettext.m4: New file, from gettext-0.11.5.
67699         * m4/glibc21.m4: New file, from gettext-0.11.5.
67700         * m4/iconv.m4: New file, from gettext-0.11.5.
67701         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67702         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67703         * m4/inttypes.m4: New file, from gettext-0.11.5.
67704         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67705         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67706         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67707         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67708         * m4/lib-link.m4: New file, from gettext-0.11.5.
67709         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67710         * m4/progtest.m4: New file, from gettext-0.11.5.
67711         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67712         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67713         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67714
67715         Module localcharset.
67716         * m4/localcharset.m4: New file.
67717
67718         Module hard-locale.
67719         * m4/hard-locale.m4: New file.
67720
67721         Module mbswidth.
67722         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67723         onceonly macros.
67724         * m4/mbrtowc.m4: Add comment.
67725
67726         Module memcasecmp.
67727         * m4/memcasecmp.m4: New file.
67728
67729         Module memcoll.
67730         * m4/memcoll.m4: New file.
67731
67732         Module unicodeio.
67733         * m4/unicodeio.m4: New file.
67734
67735         Module rpmatch.
67736         * m4/rpmatch.m4: New file.
67737
67738         Module yesno.
67739         * m4/yesno.m4: New file.
67740
67741         Module exitfail.
67742         * m4/exitfail.m4: New file.
67743
67744         Module c-stack.
67745         * m4/c-stack.m4 (gl_C_STACK): New macro.
67746         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67747
67748         Module error.
67749         * m4/error.m4 (gl_ERROR): New macro.
67750         (jm_PREREQ_ERROR): Use onceonly macros.
67751
67752         Module fatal.
67753         * m4/fatal.m4: New file.
67754
67755         Module getloadavg.
67756         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67757         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67758
67759         Module getpagesize.
67760         * m4/getpagesize.m4: New file.
67761
67762         Module getusershell.
67763         * m4/getusershell.m4: New file.
67764
67765         Module physmem.
67766         * m4/physmem.m4: New file.
67767
67768         Module posixver.
67769         * m4/posixver.m4: New file.
67770
67771         Module quotearg.
67772         * m4/quotearg.m4: New file.
67773
67774         Module quote.
67775         * m4/quote.m4: New file.
67776
67777         Module readutmp.
67778         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67779
67780         Module sig2str.
67781         * m4/sig2str.m4: New file.
67782
67783         Other.
67784         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67785         ulonglong.m4.
67786         * m4/intmax_t.m4: New file.
67787         * m4/d-type.m4: Indentation.
67788         * m4/jm-macros.m4: Update.
67789         * m4/prereq.m4 (jm_PREREQ): Update.
67790         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67791         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67792         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67793         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67794         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67795         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67796         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67797         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67798         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67799         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67800         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67801         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67802         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67803         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67804         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67805         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67806         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67807         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67808         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67809
67810 2002-12-24  Bruno Haible  <bruno@clisp.org>
67811
67812         * MODULES.txt: Update according to m4/ changes.
67813
67814         Module gettext.
67815         * config.rpath: New file, from gettext-0.11.5.
67816
67817         * modules/*: New module descriptions.
67818         * gnulib-tool: New file.
67819         * MODULES.html.sh: New file.
67820
67821 2002-12-21  Karl Berry  <karl@gnu.org>
67822
67823         * doc/fdl.texi: update to version 1.2.
67824
67825 2002-12-19  Karl Berry  <karl@gnu.org>
67826
67827         * config/config.guess: update from prep.
67828
67829 2002-12-18  Bruno Haible  <bruno@clisp.org>
67830
67831         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67832         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67833
67834 2002-12-17  Bruno Haible  <bruno@clisp.org>
67835
67836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67837         stdlib.h, string.h.
67838
67839 2002-12-17  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/canon-host.c (strdup): Remove unused declaration.
67842
67843         * lib/fsusage.c: Include full_read.h.
67844         (get_fs_usage): Use full_read instead of safe_read.
67845
67846         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67847
67848 2002-12-12  Karl Berry  <karl@gnu.org>
67849
67850         * config/config.guess: update from prep.
67851
67852 2002-12-11  Bruno Haible  <bruno@clisp.org>
67853
67854         * m4/setenv.m4: New file, from gettext-0.11.5.
67855
67856 2002-12-11  Bruno Haible  <bruno@clisp.org>
67857
67858         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67859         not unsetenv().
67860         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
67861         modifications:
67862
67863         2002-12-11  Bruno Haible  <bruno@clisp.org>
67864
67865                 * setenv.c (alloca): Fall back to malloc.
67866                 (freea): New macro.
67867                 (setenv): Use freea() to free memory allocated with alloca().
67868
67869         2002-11-13  Bruno Haible  <bruno@clisp.org>
67870
67871                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
67872                 function declarations.
67873                 * unsetenv.c (unsetenv): Likewise.
67874
67875         2002-03-04  Bruno Haible  <bruno@clisp.org>
67876
67877                 Portability to AIX 4.3.3.
67878                 * unsetenv.c: New file, extracted from setenv.c.
67879                 * setenv.c: Move the unsetenv() function to unsetenv.c.
67880
67881         2001-12-20  Bruno Haible  <bruno@clisp.org>
67882
67883                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
67884                 use malloc instead. For SunOS 4.
67885
67886         2001-12-11  Bruno Haible  <bruno@clisp.org>
67887
67888                 * setenv.c: Declare alloca.
67889                 (compar_fn_t): New typedef.
67890                 (KNOWN_VALUE, STORE_VALUE): Use it.
67891
67892         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
67893         setenv.h.
67894
67895 2002-12-10  Paul Eggert  <eggert@twinsun.com>
67896
67897         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
67898         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
67899         Choose values that are less likely to collide with system fnmatch
67900         options.
67901         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
67902         defined (e.g., a pure POSIX system).
67903         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
67904         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
67905
67906 2002-12-06  Paul Eggert  <eggert@twinsun.com>
67907
67908         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
67909         a pain in practice to deal with generated m4 files.  This change
67910         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
67911
67912         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
67913         and jm-glibc-io.m4, as they are no longer a special case.
67914         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
67915         kludge and the auto-generation stuff.  Check only whether the
67916         functions are declared, not whether they exist, since older hosts
67917         that don't declare the functions can't use the optimization anyway.
67918
67919 2002-12-06  Jim Meyering  <jim@meyering.net>
67920
67921         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
67922
67923         Merge in changes from libc's misc/error.c, in preparation
67924         for the merge of gnulib's changes back into libc.
67925
67926         * lib/error.c (_): Define only if not already defined.
67927         Move definition to follow all #include directives.
67928         Include unlocked-io.h only if !_LIBC.
67929         [_LIBC]: Include <libio/libioP.h>.
67930         [USE_IN_LIBIO]: Include <libio/iolibio.h>
67931         (fflush): Tweak definition to use INTUSE.
67932         (putc): Define.
67933
67934 2002-12-05  Paul Eggert  <eggert@twinsun.com>
67935
67936         * lib/alloca.c [defined emacs]: Include "lisp.h".
67937         (xalloc_die) [defined emacs]: New macro.
67938         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
67939         [! defined emacs]: Include <xalloc.h>.
67940         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
67941         (pointer): Typedef to POINTER_TYPE *.
67942         (malloc): Remove decl; we now always use xmalloc.
67943         (alloca): Use old-style definition, since Emacs needs this.
67944         Check for arithmetic overflow when computing combined size.
67945
67946 2002-12-04  Paul Eggert  <eggert@twinsun.com>
67947
67948         Do not generate unlocked-io.h automatically, since it's easier to
67949         maintain it by hand.
67950
67951         * lib/unlocked-io.h: New file, from GNU diffutils,
67952         but with proper copyright notice and attribution.
67953         * lib/gen-uio: Remove.
67954         * lib/Makefile.am: Add copyright notice.
67955         (libfetish_a_SOURCES): Add unlocked-io.h.
67956         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
67957         (DISTCLEANFILES, io_functions): Remove macros.
67958         (EXTRA_DIST): Remove gen_uio.
67959         (unlocked-io.h): Remove rule.
67960
67961 2002-12-04  Jim Meyering  <jim@meyering.net>
67962
67963         Reflect the fact that stat.c and lstat.c are no longer generated.
67964         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
67965         (DISTCLEANFILES): Likewise.
67966         (EXTRA_DIST): Likewise.
67967         (all_local): Don't depend on stat.c or lstat.c.
67968         (stat.c, lstat.c): Remove rules.
67969         (EXTRA_DIST): Remove xstat.in.
67970
67971         * lib/xstat.in: Remove file.  Contents moved into stat.c.
67972         * lib/stat.c: New file.  Contents mostly from xstat.in.
67973         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
67974         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
67975
67976         * lib/safe-read.c: Rework so that it may serve to define safe_write,
67977         too.
67978         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
67979
67980 2002-12-03  Jim Meyering  <jim@meyering.net>
67981
67982         * lib/safe-read.c, safe-write.c: Change variable names and comments,
67983         but not semantics, to minimize the differences between these two files.
67984         (safe_read): Change comment to mention SAFE_READ_ERROR.
67985
67986         * lib/safe-read.c (IS_EINTR): Define.
67987         (safe_read): Use IS_EINTR in place of in-function cpp directives.
67988
67989 2002-12-02  Jim Meyering  <jim@meyering.net>
67990
67991         * lib/safe-read.c (EINTR): Define.
67992         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
67993         (INT_MAX): Provide fallback.
67994         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
67995
67996         * lib/safe-read.h (SAFE_READ_ERROR): Define.
67997
67998 2002-12-02  Bruno Haible  <bruno@clisp.org>
67999
68000         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68001         Define, taken from safe-read.c.
68002         (INT_MAX): Provide fallback.
68003         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68004         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68005
68006         * lib/safe-read.c (EINTR): Remove definition.
68007         (safe_read): Don't use EINTR if it is absent.
68008
68009 2002-12-01  Jim Meyering  <jim@meyering.net>
68010
68011         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68012         zero.
68013         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68014
68015 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68016
68017         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68018         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68019         with `if (! (value < limit)) abort ();', for readability.
68020
68021 2002-11-26  Karl Berry  <karl@gnu.org>
68022
68023         * lib/strdup.c: copy from libc again, with jim's ok.
68024         * lib/.cppi-disable: re-add strdup.c
68025
68026 2002-11-25  Karl Berry  <karl@gnu.org>
68027
68028         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68029         instead of "strtol.c".
68030
68031 2002-11-25  Karl Berry  <karl@gnu.org>
68032
68033         * config/install-sh: update from automake for variable quoting, $0 in
68034         error msgs, etc.
68035
68036         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68037         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68038         entry.
68039
68040 2002-11-25  Jim Meyering  <jim@meyering.net>
68041
68042         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68043
68044 2002-11-24  Karl Berry  <karl@gnu.org>
68045
68046         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68047         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68048
68049 2002-11-24  Jim Meyering  <jim@meyering.net>
68050
68051         Update from coreutils:
68052
68053         * lib/mktime.c: Merge in changes from libc.
68054
68055         Avoid a link-time failure on some Linux systems.
68056         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68057         (otherwise).
68058         (__mon_yday): Declare with the STATIC attribute.
68059         (__mktime_internal): Likewise.
68060         Based on a report from Greg Schafer.
68061
68062 2002-11-23  Jim Meyering  <jim@meyering.net>
68063
68064         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68065         Use `unsigned', not `int', as type of index.
68066
68067         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68068
68069         * lib/fsusage.c: Remove unneeded parentheses around operands of
68070         `defined'.
68071
68072 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68073
68074         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68075         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68076         so that we can be included first.
68077         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68078         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68079         No need to include stddef.h or sys/types.h any more.
68080         Surround local include files with "", not "<>".
68081         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68082         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68083         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68084         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68085         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68086         (ISPRINT): Remove; no longer needed now that we assume C89.
68087
68088         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68089         Preserve errno.
68090
68091         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68092         quotearg_char): Use SIZE_MAX rather than
68093         (size_t) -1 when we are talking about "infinity".
68094
68095         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68096
68097 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68098
68099         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68100         hint that one should use `if (! x) abort ();' rather than `assert
68101         (x);', and anyway it's one less thing to worry about configuring.
68102         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68103         hash_rehash, hash_insert): Use abort rather than assert.
68104
68105 2002-11-22  Bruno Haible  <bruno@clisp.org>
68106
68107         * lib/safe-read.h: Assume C89. Add comments.
68108         (safe_read): Change return type to size_t.
68109         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68110         byte counts > SSIZE_MAX correctly.
68111         * lib/safe-write.h: New file.
68112         * lib/safe-write.c: New file.
68113         * lib/full-read.h: New file.
68114         * lib/full-read.c: New file.
68115         * lib/full-write.h: Assume C89. Add comments.
68116         * lib/full-write.c: Include safe-write.h.
68117         (full_write): Rewritten to use safe_write.
68118         Suggested by Jim Meyering and Paul Eggert.
68119
68120 2002-11-21  Jim Meyering  <jim@meyering.net>
68121
68122         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68123
68124         Merge in changes from the coreutils.
68125
68126         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68127         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68128         <stdint.h>.
68129         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68130         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68131         int.  Work more efficiently if X is the same width as uintmax_t.
68132         Do not compare X to -1, to avoid bogus compiler warning.
68133         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68134         Don't assume that f_frsize and f_bsize are the same type.
68135
68136         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68137         warning on FreeBSD.
68138
68139         * lib/makepath.c (make_path): Restore umask *before* creating the final
68140         component.
68141         (make_path): Minor reformatting.
68142
68143         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68144         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68145         HAVE_MALLOC/HAVE_REALLOC.
68146
68147         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68148         dummy ones.  At least on GNU/Linux systems, `auto' means something
68149         else.
68150         From Michael Stone.
68151
68152 2002-11-21  Bruno Haible  <bruno@clisp.org>
68153
68154         Remove case insensitive option matching.
68155         * lib/argmatch.h (argcasematch): Remove declaration.
68156         (ARGCASEMATCH): Remove macro.
68157         (__xargmatch_internal): Remove case_sensitive argument.
68158         (XARGMATCH): Update.
68159         (XARGCASEMATCH): Remove macro.
68160         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68161         case_sensitive argument.
68162         (argcasematch): Remove function.
68163         (__xargmatch_internal): Remove case_sensitive argument.
68164         (main): Use XARGMATCH instead of XARGCASEMATCH.
68165
68166         * lib/xmalloc.c: Change compile-time error message. Add comment about
68167         required autoconf version.
68168
68169 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68170
68171         Merge argmatch cleanups from Bison.  Assume C89.
68172
68173         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68174         Include stdlib.h, for EXIT_FAILURE.
68175         Always include <string.h>, since we assume C89.
68176         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68177         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68178         Include <stddef.h> instead, since it's all we need for size_t.
68179         (PARAMS): Remove.  All uses removed.
68180         (ARRAY_CARDINALITY): Do not bother to #undef.
68181         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68182         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68183         Remove unnecessary parentheses.
68184         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68185         Insert necessary parentheses.
68186         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68187         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68188
68189 2002-11-19  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68192         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68193
68194         * lib/mbswidth.h (PARAMS): Remove macro.
68195         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68196         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68197
68198         * lib/gcd.h (PARAMS): Remove macro.
68199         (gcd): Use ANSI C function declarations.
68200         * lib/gcd.c (gcd): Likewise.
68201
68202 2002-11-15  Bruno Haible  <bruno@clisp.org>
68203
68204         * lib/strcspn.c: Include <stddef.h>.
68205         (strcspn): Use ANSI C function declaration. Change return type to
68206         size_t. Use NULL.
68207         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68208         (strpbrk): Use NULL.
68209         * lib/strpbrk.h (PARAMS): Remove macro.
68210         (strpbrk): Use ANSI C function declaration.
68211         * lib/strstr.c: Don't include <sys/types.h>.
68212         * lib/strstr.h (PARAMS): Remove macro.
68213         (strstr): Use ANSI C function declarations.
68214
68215 2002-11-14  Karl Berry  <karl@gnu.org>
68216
68217         * config/mkinstalldirs: `do' on separate line, instead of
68218         `for var; do'.
68219
68220 2002-11-06  Bruno Haible  <bruno@clisp.org>
68221
68222         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68223         * lib/gcd.c (gcd): Likewise.
68224
68225 2002-11-05  Bruno Haible  <bruno@clisp.org>
68226
68227         * lib/gcd.h: New file, from gettext-0.11.5.
68228         * lib/gcd.c: New file, from gettext-0.11.5.
68229
68230 2002-11-05  Bruno Haible  <bruno@clisp.org>
68231
68232         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68233         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68234         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68235         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68236
68237         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68238         <libintl.h>.
68239         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68240         <libintl.h>.
68241
68242         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68243         * lib/human.c: Include gettext.h instead of <libintl.h>.
68244         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68245         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68246         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68247         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68248         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68249         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68250         (textdomain): Remove definition.
68251         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68252
68253         * lib/long-options.c: Remove include of <libintl.h> and definition of
68254         _.
68255         * lib/same.c: Remove include of <libintl.h> and definition of _.
68256
68257 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68258
68259         * lib/config.charset: A few additions for Solaris.
68260
68261 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68262
68263         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68264         * lib/localcharset.c (locale_charset): Declare as extern "C".
68265
68266 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68267
68268         * lib/config.charset: msdos in uk_UA uses CP1125.
68269
68270 2002-11-04  Bruno Haible  <bruno@clisp.org>
68271
68272         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68273         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68274         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68275         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68276         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68277
68278 2002-11-04  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/localcharset.c (locale_charset): Don't return an empty string.
68281
68282 2002-11-04  Bruno Haible  <bruno@clisp.org>
68283
68284         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68285         aliases.
68286
68287 2002-11-04  Bruno Haible  <bruno@clisp.org>
68288
68289         * lib/config.charset: Update for newest glibc. Add canonical names
68290         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68291
68292 2002-11-04  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/config.charset: Add support for NetBSD.
68295
68296 2002-11-04  Bruno Haible  <bruno@clisp.org>
68297
68298         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68299
68300 2002-11-01  Bruno Haible  <bruno@clisp.org>
68301
68302         * configure.in: Add AC_CONFIG_AUX_DIR call.
68303         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68304         test/Makefile.
68305         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68306
68307 2002-09-28  Karl Berry  <karl@gnu.org>
68308
68309         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68310         installed automake until the next release, since changes have been
68311         made.
68312
68313 2002-09-25  Karl Berry  <karl@gnu.org>
68314
68315         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68316         * lib/getopt*: copy from libc/posix.
68317         * lib/gettext.h: copy from gettext.
68318         * lib/.cppi-disable: add strdup.c, gettext.h.
68319
68320 2002-09-25  Karl Berry  <karl@gnu.org>
68321
68322         * config/srclist.txt: enable gettext.h check.
68323         * config/config.{guess,sub}: update from prep.
68324         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68325                 from automake 1.6.3.
68326         See srclist*.
68327
68328 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68329
68330         * regex.c (PATFETCH): Remove the translating fetch.
68331         (PATFETCH_RAW): Rename to PATFETCH.
68332         (set_image_of_range): New fun.
68333         (SET_RANGE_TABLE_WORK_AREA): Use it.
68334         (regex_compile): Don't translate the pattern chars so eagerly.
68335         Only do it when inserting an `exactn' bytecode or when handling
68336         a char-range.
68337         (mutually_exclusive_p): Avoid empty statement.
68338
68339 2002-07-06  Jim Meyering  <meyering@lucent.com>
68340
68341         * m4/README: Don't mention Makefile.am.in.
68342         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68343
68344 2002-07-01  Jim Meyering  <meyering@lucent.com>
68345
68346         * lib/c-stack.c: Include sys/time.h.
68347         From Volker Borchert.
68348
68349 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68350
68351         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68352
68353 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68354
68355         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68356         New macro.  Use it uniformly instead of
68357         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68358         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68359         reported by Vin Shelton.
68360
68361 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68362
68363         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68364         Do not assume SA_SIGINFO behavior.
68365         Bug reported by Jim Meyering on NetBSD 1.5.2.
68366
68367 2002-06-22  Jim Meyering  <meyering@lucent.com>
68368
68369         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68370         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68371
68372         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68373         now that configure.ac uses AC_GNU_SOURCE.
68374         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68375         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68376
68377         Update to latest tools.  Suggestions from Paul Eggert.
68378         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68379         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68380         * m4/fnmatch.m4: Likewise.
68381         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68382         to AC_HEADER_STDBOOL
68383
68384 2002-06-22  Jim Meyering  <meyering@lucent.com>
68385
68386         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68387         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68388
68389 2002-06-22  Jim Meyering  <meyering@lucent.com>
68390
68391         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68392
68393         * lib/exitfail.c, exitfail.h: Likewise.
68394         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68395
68396         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68397         of fnmatch.h.
68398         (EXTRA_DIST): Add fnmatch_loop.c.
68399         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68400
68401         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68402         * lib/fnmatch.c: Update from diffutils-2.8.2.
68403         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68404         * lib/fnmatch.h: Remove file.
68405
68406 2002-06-21  Jim Meyering  <meyering@lucent.com>
68407
68408         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68409         * m4/mbrtowc.m4: Likewise.
68410
68411         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68412         * m4/mbswidth.m4: Reflect name change:
68413         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68415
68416         * m4/lib-link.m4: Update from gettext-0.11.2.
68417         * m4/gettext.m4: Likewise.
68418
68419         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68420         From Alfred M. Szmidt.
68421
68422 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68423
68424         * lib/file-type.h: Report an error if neither S_ISREG nor
68425         S_IFREG is defined, instead of using a test specific to glibc
68426         2.2.  This should be safe, since POSIX requires S_ISREG and
68427         Unix Version 7 had S_IFREG.  We don't need to check for
68428         <sys/types.h> since we don't use any symbols that it defines.
68429
68430 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68431
68432         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68433         $@-t, so that each temporary file name is unique and valid in the first
68434         8 characters, for operation under DOS.
68435
68436 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68437
68438         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68439
68440 2002-06-15  Jim Meyering  <meyering@lucent.com>
68441
68442         Work even with DJGPP 2.03, which lacks support for symlinks.
68443         From Richard Dawe.
68444         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68445         is defined.
68446         * lib/lchown.c (S_ISLNK): Likewise.
68447
68448 2002-06-15  Jim Meyering  <meyering@lucent.com>
68449
68450         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68451         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68452         have been included before this file.
68453
68454 2002-06-14  Jim Meyering  <meyering@lucent.com>
68455
68456         * lib/file-type.h: Use the version from diffutils-2.8.2.
68457         * lib/file-type.c: Likewise.
68458
68459 2002-06-07  Jim Meyering  <meyering@lucent.com>
68460
68461         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68462         They're needed at least for NetBSD 1.5.2.
68463         ($statxfs_includes): Include those same headers.
68464         ($statxfs_includes): Include sys/vfs.h if available.
68465         ($statxfs_includes): Likewise for sys/statvfs.h.
68466         Check for the following members in both structs statfs and statvfs:
68467         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68468
68469 2002-06-01  Jim Meyering  <meyering@lucent.com>
68470
68471         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68472         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68473
68474 2002-05-28  Jim Meyering  <meyering@lucent.com>
68475
68476         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68477         Reported by Volker Borchert.
68478
68479 2002-05-27  Jim Meyering  <meyering@lucent.com>
68480
68481         Fix a problem seen only on nonconforming systems whereby ls.c's
68482         use of localtime, and then of gettimeofday would cause trouble:
68483         the localtime call used to initialize rpl_gettimeofday's save
68484         mechanism would clobber ls's current local time information so
68485         that in any long listing the first file would always be listed
68486         with date 1970-01-01.  Analysis by Volker Borchert.
68487
68488         * lib/gettimeofday.c (localtime): Undefine.
68489         (rpl_localtime): New function.
68490
68491 2002-05-27  Jim Meyering  <meyering@lucent.com>
68492
68493         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68494         localtime.
68495
68496         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68497         use the replacement function; it wouldn't resolve at link time.
68498         Reported by Volker Borchert.
68499
68500 2002-05-22  Jim Meyering  <meyering@lucent.com>
68501
68502         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68503         file-type.h.
68504         * lib/file-type.h: New file.
68505         * lib/file-type.c (file_type): New file/function.  Extracted from
68506         diffutils.
68507
68508 2002-04-30  Jim Meyering  <meyering@lucent.com>
68509
68510         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68511
68512 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68513
68514         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68515
68516 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68517
68518         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68519         Do not check for alloca.h (no longer used) or stdbool.h (was never
68520         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68521
68522 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68523
68524         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68525
68526 2002-04-29  Jim Meyering  <meyering@lucent.com>
68527
68528         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68529         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68530         Use AC_FUNC_STRNLEN here instead.
68531
68532         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68533         With autoconf-2.53a, it's part of AC_PROG_CC.
68534
68535 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68536
68537         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68538         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68539
68540 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68541
68542         * lib/sig2str.h, lib/sig2str.c: New files.
68543         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68544
68545 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68546
68547         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68548         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68549         of 127, since 64 is the largest conceivable number for ancient
68550         nonstandard hosts.
68551         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68552
68553 2002-04-28  Jim Meyering  <meyering@lucent.com>
68554
68555         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68556
68557 2002-04-24  Jim Meyering  <meyering@lucent.com>
68558
68559         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68560         (jm_PREREQ): Use it.
68561
68562         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68563         mach/mach.h fcntl.h.
68564         Check for this function: setlocale.
68565
68566 2002-04-24  Jim Meyering  <meyering@lucent.com>
68567
68568         * lib/gettext.h: New file, from Gettext.
68569         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68570         (libfetish_a_SOURCES): Add gettext.h.
68571
68572 2002-04-16  Jim Meyering  <meyering@lucent.com>
68573
68574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68575         ut_pid, ut_id, ut_exit.
68576
68577 2002-04-16  Jim Meyering  <meyering@lucent.com>
68578
68579         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68580         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68581         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68582
68583 2002-04-12  Jim Meyering  <meyering@lucent.com>
68584
68585         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68586         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68587         existence of the getmntinfo function.  Needed for Darwin 5.3.
68588
68589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68590         This is necessary at least on Darwin 5.3.
68591
68592         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68593         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68594         strnlen.o in the library, and that makes some versions of ranlib
68595         object.
68596
68597 2002-04-12  Jim Meyering  <meyering@lucent.com>
68598
68599         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68600
68601 2002-04-09  Jim Meyering  <meyering@lucent.com>
68602
68603         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68604         to be more precise.  Rather than saying we're checking whether the
68605         function `works', say what we're testing.
68606         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68607         Reported by Bruno Haible.
68608
68609 2002-03-10  Jim Meyering  <meyering@lucent.com>
68610
68611         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68612         Suggestion from Santiago Vila.
68613
68614 2002-03-08  Jim Meyering  <meyering@lucent.com>
68615
68616         * lib/rename.c: Mention that this wrapper is needed also on
68617         mips-dec-ultrix4.4 systems.
68618
68619 2002-03-02  Jim Meyering  <meyering@lucent.com>
68620
68621         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68622         not HAVE_CLOCK_SETTIME.
68623
68624 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68625
68626         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68627         Check for clock_settime.
68628
68629 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68630
68631         * lib/nanosleep.h: Rename to....
68632         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68633
68634         * lib/gettime.c: New file.
68635         * lib/settime.c: New file.
68636         * lib/stime.c: Remove.
68637
68638         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68639         timespec.h.  Remove nanosleep.h.
68640
68641 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68642
68643         * m4/acl.m4: New file.
68644         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68645         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68646
68647 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68648
68649         * lib/acl.c, lib/acl.h: New files.
68650         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68651
68652 2002-02-24  Jim Meyering  <meyering@lucent.com>
68653
68654         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68655         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68656         cause trouble.  Reported by Nelson Beebe.
68657
68658 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68659
68660         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68661         compilers that don't know that xalloc_die never returns.
68662
68663 2002-02-20  Jim Meyering  <meyering@lucent.com>
68664
68665         * lib/getdate.c: Regenerate using bison-1.33.
68666
68667 2002-02-17  Jim Meyering  <meyering@lucent.com>
68668
68669         * config/config.guess (main): Don't use `head -1'; it's no longer
68670         portable. Use `sed 1q' instead.
68671
68672 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68673
68674         * m4/codeset.m4: Upgrade to gettext-0.11.
68675         * m4/gettext.m4: Upgrade to gettext-0.11.
68676         * m4/glibc21.m4: Upgrade to gettext-0.11.
68677         * m4/iconv.m4: Upgrade to gettext-0.11.
68678         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68679         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68680         * m4/lib-ld.m4: New file, from gettext-0.11.
68681         * m4/lib-link.m4: New file, from gettext-0.11.
68682         * m4/lib-prefix.m4: New file, from gettext-0.11.
68683         * m4/progtest.m4: Upgrade to gettext-0.11.
68684
68685 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68686
68687         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68688         (jm_PREREQ): Use it.
68689
68690 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68691
68692         * lib/posixver.c, lib/posixver.h: New files.
68693         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68694
68695 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68696             Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68699         (fwrite_success_callback): New declaration.
68700         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68701         print_unicode_char. Call failure callback instead of error.
68702         (fwrite_success_callback): New function.
68703         (exit_failure_callback): New function.
68704         (fallback_failure_callback): New function.
68705         (print_unicode_char): Call unicode_to_mb.
68706
68707 2002-01-26  Jim Meyering  <meyering@lucent.com>
68708
68709         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68710         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68711
68712 2002-01-26  Jim Meyering  <meyering@lucent.com>
68713
68714         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68715
68716 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68717
68718         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68719
68720 2002-01-22  Jim Meyering  <meyering@lucent.com>
68721
68722         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68723         Otherwise, some versions of automake would omit the rule that makes
68724         Makefile from Makefile.in.
68725
68726 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68727
68728         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68729         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68730         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68731         (memcoll): Set errno to zero if there is no error.
68732
68733         * lib/quotearg.c (quotearg_buffer_restyled):
68734         Fix bug with quoting buffers containing NUL when backslashing escapes.
68735         This bug was exposed by the other changes in this patch.
68736         (quotearg_n_options): New arg ARGSIZE.
68737         All callers changed.
68738         (quoting_options_from_style): New function.
68739         (quotearg_n_style): Use it.
68740         (quotearg_n_style_mem): New function.
68741
68742         * lib/quotearg.h (quotearg_n_style_mem): New function.
68743
68744 2002-01-19  Jim Meyering  <meyering@lucent.com>
68745
68746         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68747         Remove useless quotes: DF_PROG="df".
68748         * m4/strnlen.m4: New file.
68749
68750 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68751
68752         * lib/backupfile.c (ISDIGIT): Comment fix.
68753         * lib/getdate.y (ISDIGIT): Likewise.
68754         * lib/posixtm.c (ISDIGIT, year): Likewise.
68755         * lib/strverscmp.c (ISDIGIT): Likewise.
68756         * lib/userspec.c (ISDIGIT): Likewise.
68757
68758 2002-01-16  Jim Meyering  <meyering@lucent.com>
68759
68760         * lib/getdate.y: Add three semicolons, each just before a closing
68761         brace. Bison (as of version 1.31) no longer papers over that mistake.
68762
68763 2002-01-05  Jim Meyering  <meyering@lucent.com>
68764
68765         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68766
68767 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68768
68769         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68770         not silently exit merely because the output buffer happens to
68771         have nothing pending.
68772
68773 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68774
68775         See the big note in ../ChangeLog.
68776         * lib/human.c (suffixes): Prefer K to k for 1024.
68777         (generate_suffix_backwards): New function.
68778         (human_readable_inexact): Use it.
68779         * lib/xstrtol.c (__xstrtol): If there is no number but there
68780         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68781         Accept 'K' as well as 'k'.
68782
68783 2001-12-15  Jim Meyering  <meyering@lucent.com>
68784
68785         * lib/regex.h (__restrict_arr): Update from libc.
68786
68787         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68788         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68789         (STREQ): Define.
68790
68791 2001-12-14  Jim Meyering  <meyering@lucent.com>
68792
68793         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68794         Suggestion from Bruno Haible.
68795
68796 2001-12-10  Jim Meyering  <meyering@lucent.com>
68797
68798         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68799         xrealloc, Instead, include "xalloc.h".
68800         (initbuffer): Don't cast xmalloc return value to char*.
68801         (readline): Reword comment.
68802         Don't cast xrealloc return value to char*
68803         Return NULL, not 0.
68804
68805 2001-12-09  Jim Meyering  <meyering@lucent.com>
68806
68807         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68808         about `signed and unsigned type in conditional expression'.
68809         * lib/posixtm.c (posix_time_parse): Likewise.
68810
68811         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68812
68813         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68814         to avoid a pedantic warning.
68815
68816         * lib/getstr.c: Don't include assert.h.
68817         (getstr): Remove warning-evoking assertions.
68818         Return -1 if offset parameter is out of bounds.
68819         Change the type of a local from int to size_t.
68820
68821         * lib/strftime.c (my_strftime_localtime_r): Include this function
68822         definition in the `#if ! HAVE_TM_GMTOFF' block.
68823
68824         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68825         Include xalloc.h instead.
68826
68827 2001-12-02  Jim Meyering  <meyering@lucent.com>
68828
68829         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68830         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68831         included.
68832
68833         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68834         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68835
68836 2001-11-30  Akim Demaille  <akim@epita.fr>
68837
68838         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68839         before being defined.
68840
68841 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68842
68843         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68844         First arg is int, not unsigned.
68845         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68846         (SIZE_MAX, UINT_MAX): New macros.
68847         (quotearg_n_options): Abort if N is negative.
68848         Avoid overflow check on hosts where size_t is 64 bits and int
68849         is 32 bits, as overflow is impossible there.
68850         Fix off-by-one typo that caused unnecessary reallocation.
68851
68852 2001-11-27  Jim Meyering  <meyering@lucent.com>
68853
68854         * lib/tempname.c: Merge with version from libc.
68855         * lib/regex.c: Likewise.
68856
68857         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68858         systems for which STDC_HEADERS is 0, it was not included, resulting in
68859         a warning about an integer-to-pointer conversion problem with getenv.
68860         Reported by Volker Borchert.
68861
68862 2001-11-26  Jim Meyering  <meyering@lucent.com>
68863
68864         * lib/gtod.h: Remove file.
68865         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
68866         * lib/gettimeofday.c: Don't include gtod.h.
68867         (GTOD_init): Remove function.
68868         (rpl_gettimeofday): Do its job here instead, rather than aborting.
68869         Suggestion from Volker Borchert.
68870
68871 2001-11-23  Jim Meyering  <meyering@lucent.com>
68872
68873         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
68874         it.
68875         * lib/hash.c (struct hash_table): Define it here instead.
68876
68877 2001-11-22  Jim Meyering  <meyering@lucent.com>
68878
68879         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
68880
68881 2001-11-20  Jim Meyering  <meyering@lucent.com>
68882
68883         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
68884         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
68885
68886 2001-11-19  Jim Meyering  <meyering@lucent.com>
68887
68888         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
68889         directory.  Use "conftestXXXXXX" as the template.
68890         Suggestion from Paul Eggert.
68891
68892         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
68893         immediately, so the test doesn't mistakenly hit the max-open-files
68894         limit.
68895
68896 2001-11-18  Paul Eggert  <eggert@twinsun.com>
68897
68898         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
68899         (TEMPORARIES): New macro.
68900         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
68901         removes an artificial limitation (e.g. HP-UX 10.20, where
68902         TMP_MAX is 17576).
68903
68904 2001-11-18  Jim Meyering  <meyering@lucent.com>
68905
68906         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
68907
68908 2001-11-18  Jim Meyering  <meyering@lucent.com>
68909
68910         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
68911         on SunOS 4.
68912
68913         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
68914         files will be created before anything else.
68915
68916 2001-11-17  Paul Eggert  <eggert@twinsun.com>
68917
68918         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
68919         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
68920
68921 2001-11-17  Jim Meyering  <meyering@lucent.com>
68922
68923         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
68924         Prompted by a report from Bob Proulx.
68925
68926         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
68927         Instead, require UTILS_FUNC_MKSTEMP.
68928
68929 2001-11-17  Jim Meyering  <meyering@lucent.com>
68930
68931         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
68932         Now, that's done as part of AC_FUNC_STRTOD.
68933
68934 2001-11-17  Jim Meyering  <meyering@lucent.com>
68935
68936         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
68937         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
68938         rather than group writable.  Patch by Juan F. Codagnone.
68939
68940         * lib/readtokens.c: Remove explicit declarations of xmalloc and
68941         xrealloc, Instead, include "xalloc.h".
68942
68943         * lib/mountlist.c: Include unlocked-io.h after all system headers.
68944         Remove explicit declarations of xmalloc, xrealloc,
68945         and xstrdup.  Instead, include "xalloc.h".
68946
68947         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
68948         unlocked-io.h.
68949         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
68950         Likewise.
68951         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
68952
68953         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
68954         Reported by Padraig Brady.
68955
68956         * lib/mkstemp.c: #undef mkstemp.
68957         Include config.h.
68958         (rpl_mkstemp): Rename from mkstemp.
68959         Protoize.
68960
68961 2001-11-16  Jim Meyering  <meyering@lucent.com>
68962
68963         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
68964         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
68965         determine the amount of total physical memory, use pstat_getstatic.
68966         HPUX-11 doesn't define _SC_PHYS_PAGES.
68967         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
68968         If sysconf couldn't be used to determine the amount of available
68969         physical memory, use both pstat_getstatic and pstat_getdynamic.
68970         Based on a patch from Bob Proulx.
68971
68972 2001-11-10  Jim Meyering  <meyering@lucent.com>
68973
68974         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
68975         (jm_PREREQ): Use it.
68976
68977 2001-11-09  Jim Meyering  <meyering@lucent.com>
68978
68979         * m4/jm-macros.m4: Require autoconf-2.52f.
68980         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
68981         Use these AC_-prefixed names, not the AM_-prefixed ones.
68982
68983         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
68984
68985 2001-11-05  Jim Meyering  <meyering@lucent.com>
68986
68987         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
68988
68989 2001-11-04  Jim Meyering  <meyering@lucent.com>
68990
68991         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
68992         $DEFS.
68993
68994 2001-11-03  Jim Meyering  <meyering@lucent.com>
68995
68996         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
68997         of AC_DEFUN.
68998
68999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69000         know the name of the variable in the macro definition.
69001
69002 2001-11-03  Jim Meyering  <meyering@lucent.com>
69003
69004         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69005         in argmatch_to_argument call.
69006
69007         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69008         argument.
69009
69010         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69011         e.g., a fault due to an attempt to free a NULL pointer.
69012
69013 2001-11-01  Jim Meyering  <meyering@lucent.com>
69014
69015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69016         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69017
69018 2001-11-01  Jim Meyering  <meyering@lucent.com>
69019
69020         * lib/dirfd.c, lib/dirfd.h: New files.
69021         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69022
69023         * lib/hash.c (hash_print) [TESTING]: Clean up.
69024
69025 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69026
69027         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69028         to avoid a warning if -Wall.
69029
69030 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69031
69032         * README: New file
69033         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69034         (per RMS's instructions, this is now the canonical source)
69035         * lgpl/, gpl/: New directories.
69036
69037 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69038
69039         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69040
69041 2001-10-21  Jim Meyering  <meyering@lucent.com>
69042
69043         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69044         this code would end up calling gettext even in packages built
69045         with --disable-nls.
69046         * lib/getopt.c (_): Likewise.
69047         * lib/regex.c (_): Likewise.
69048
69049 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69050
69051         * m4/error.m4 (jm_PREREQ_ERROR):
69052         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69053         AC_FUNC_STRERROR_R does that.
69054         Check for strerror declaration.
69055
69056         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69057         are supposed to have them these days.
69058         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69059         Merge changes from latest Autoconf CVS.
69060         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69061         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69062         POSIX decided to standardize on the int flavor of strerror_r.
69063
69064 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69065
69066         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69067         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69068         Use strerror_r that is only a macro, even if it is not a function.
69069         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69070         (private_strerror): Use prototypes, not old-style function definition.
69071         (print_errno_message): New function.
69072         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69073         char*-flavored one.
69074         (error_tail, error, error_at_line): Use it.
69075
69076 2001-10-11  Jim Meyering  <meyering@lucent.com>
69077
69078         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69079         and quote_n (1, ... to avoid clobbering a buffer.
69080
69081 2001-10-05  Jim Meyering  <meyering@lucent.com>
69082
69083         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69084         hash-pjw.h.
69085         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69086         * lib/hash-pjw.h: New file.
69087
69088 2001-09-30  Jim Meyering  <meyering@lucent.com>
69089
69090         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69091         `struct fsstat' has the `f_fstypename' member.
69092         Use that to define FS_TYPE, which is now used to make
69093         the getfsstat link test tighter.
69094
69095 2001-09-30  Jim Meyering  <meyering@lucent.com>
69096
69097         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69098         Include <sys/ucred.h>, for Apple Darwin.
69099         Include sys/mount.h and sys/fs_types.h only if available.
69100         (FS_TYPE): Define.
69101         (read_filesystem_list): Use FS_TYPE.
69102
69103 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69104
69105         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69106         a boolean context.
69107
69108 2001-09-29  Jim Meyering  <meyering@lucent.com>
69109
69110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69111         [one-argument getmntent function]): Include stdio.h before mntent.h.
69112         SunOS 4.1.x needs it for the declaration of `FILE'.
69113         Patch by Volker Borchert.
69114
69115         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69116         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69117         sys/fs_types.h, and make the link-test for getfsstat guard #include
69118         directives with appropriate #if HAVE_*_H tests so that we can
69119         detect getfsstat on Apple Darwin1.3.7 systems.
69120         Reported by Nelson Beebe.
69121         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69122
69123 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69124
69125         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69126         #defines strtoimax.  Also treat the other strto* functions
69127         like strtoimax.
69128
69129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69130         Check for strtoul and strtoumax,
69131         as those declarations are made even in the signed case.
69132         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69133         Likewise, for strtol and strtoimax.
69134
69135 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69136
69137         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69138         #defines strtoimax.  Also treat the other strto* functions
69139         like strtoimax.
69140
69141         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69142         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69143         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69144
69145 2001-09-26  Jim Meyering  <meyering@lucent.com>
69146
69147         Most macros in unlocked-io.h had the wrong number of arguments.
69148         * lib/gen-uio: New script.
69149         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69150         * lib/unlocked-io.hin: Remove file.
69151         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69152         rather than trying to embed it here.
69153         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69154         Reported by Padraig Brady.
69155
69156 2001-09-25  Volker Borchert  <bt@teknon.de>
69157
69158         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69159         `result'.
69160
69161 2001-09-24  Jim Meyering  <meyering@lucent.com>
69162
69163         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69164
69165 2001-09-23  Jim Meyering  <meyering@lucent.com>
69166
69167         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69168         instead of the mere test for existence of mntent.h.  The latter
69169         would get a false-positive on AIX 3.4 systems.
69170         In the outer getmntent if-block, don't die if neither of the getmntent
69171         tests succeeds.  Instead, just fall through and continue with the
69172         remaining tests.
69173
69174 2001-09-23  Jim Meyering  <meyering@lucent.com>
69175
69176         * lib/mountlist.c: Remove useless parentheses in #if directives.
69177         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69178         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69179
69180 2001-09-22  Jim Meyering  <meyering@lucent.com>
69181
69182         * m4/gettext.m4: New file.  From gettext.
69183         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69184         * m4/progtest.m4: Likewise
69185         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69186         * m4/glibc21.m4: Likewise.
69187
69188         * m4/libintl.m4: Remove.  No longer used.
69189
69190 2001-09-22  Jim Meyering  <meyering@lucent.com>
69191
69192         * lib/localcharset.c: Update from latest gettext.
69193         * lib/config.charset: Likewise.
69194
69195 2001-09-20  Jim Meyering  <meyering@lucent.com>
69196
69197         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69198         strtoimax.
69199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69200         strtoumax.
69201
69202 2001-09-20  Jim Meyering  <meyering@lucent.com>
69203
69204         * lib/xstrtol.c (strtoimax): Guard declaration with
69205         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69206         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69207         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69208         (strtoumax): Likewise, for completeness (it wasn't necessary).
69209
69210 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69211
69212         * lib/strtoimax.c (HAVE_LONG_LONG):
69213         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69214         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69215         to work around bug in IBM C compiler.
69216
69217 2001-09-17  Jim Meyering  <meyering@lucent.com>
69218
69219         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69220         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69221         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69222         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69223         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69224         whenever the right hand side need not be expanded by the shell.
69225
69226 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69227
69228         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69229         library.  It's not correct, as some older glibcs are buggy.
69230         fnmatch wasn't fixed until glibc 2.2.
69231
69232         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69233         special shell magic here.
69234
69235 2001-09-16  Jim Meyering  <meyering@lucent.com>
69236
69237         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69238         * m4/jm-macros.m4: Require it.
69239
69240 2001-09-16  Jim Meyering  <meyering@lucent.com>
69241
69242         * lib/mkdir.c: New file.
69243
69244 2001-09-15  Jim Meyering  <meyering@lucent.com>
69245
69246         * m4/jm-macros.m4: Check for help2man.
69247
69248 2001-09-11  Jim Meyering  <meyering@lucent.com>
69249
69250         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69251         The body, by Paul Eggert, was moved here from configure.in.
69252         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69253
69254 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69255
69256         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69257         (jm_PREREQ): Use it.
69258
69259 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69260
69261         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69262         Use ssize_t, not int, to store result of readlink.
69263         Check for ssize_t overflow as well as size_t overflow,
69264         as POSIX says the result of readlink is implementation-defined
69265         when ssize_t overflows.
69266         Remove unnecessary cast to char*.
69267         Use free+malloc instead of realloc, as the storage doesn't need
69268         to be preserved and it's clearer and can be more efficient that way.
69269         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69270         * lib/xreadlink.h (xreadlink): Update prototype.
69271
69272 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69273
69274         * lib/xgetcwd.c: Revert some of the previous change; intead,
69275         fix the HAVE_GETCWD_NULL code to behave more like the
69276         !HAVE_GETCWD_NULL code used to.
69277
69278         Include "xalloc.h".
69279         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69280         invoke xalloc_die.
69281
69282 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69283
69284         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69285         sys/param.h, as pathmax.h includes them.
69286
69287 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69288
69289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69290         (jm_PREREQ_XGETCWD): New macro.
69291
69292         * m4/getcwd.m4: New file.
69293
69294 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69295
69296         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69297         like the HAVE_GETCWD_NULL code.
69298         Include pathmax.h if not HAVE_GETCWD.
69299         Do not include xalloc.h.
69300         (INITIAL_BUFFER_SIZE): New symbol.
69301         Do not use xmalloc / xrealloc, since the caller is responsible for
69302         handling errors.  Preserve errno around `free' during failure.
69303         Do not overrun buffer when using getwd.
69304
69305 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69306
69307         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69308         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69309         getcwd (NULL, 0).
69310
69311 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69312
69313         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69314         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69315         spotted by Jim Meyering.
69316
69317 2001-09-03  Jim Meyering  <meyering@lucent.com>
69318
69319         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69320         failure.
69321
69322 2001-09-02  Jim Meyering  <meyering@lucent.com>
69323
69324         * lib/error.c: Update from GNU libc.
69325
69326 2001-09-01  Jim Meyering  <meyering@lucent.com>
69327
69328         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69329         Used by df.
69330
69331 2001-09-01  Jim Meyering  <meyering@lucent.com>
69332
69333         * lib/xreadlink.c: New file.
69334         * lib/xreadlink.h: New file.
69335         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69336         xreadlink.h.
69337
69338         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69339         doesn't conflict with sparc Solaris 7's definition in
69340         /usr/include/sys/int_types.h.
69341
69342         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69343         files.
69344         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69345         and strncasecmp as r-values.  Unixware didn't have declarations.
69346
69347 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69348
69349         * lib/xstrtol.h: Add copyright notice.
69350         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69351         LONGINT_INVALID_SUFFIX_CHAR.
69352
69353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69354
69355         * lib/xstrtol.c (strtoimax): New decl.
69356
69357 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69358
69359         * lib/xgetcwd.c: Don't include pathmax.h.
69360         Include stdlib.h and unistd.h if available.
69361         Include xalloc.h.
69362         (xmalloc, xstrdup, free): Remove decls.
69363         (xgetcwd): Don't assume sizes fit in unsigned.
69364         Check for overflow when computing sizes.
69365         Simplify reallocation code.
69366
69367 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69368
69369         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69370         a directory's st_size can have an arbitrary value, so the old
69371         usage could waste an arbitrary amount of memory.  All uses
69372         changed.
69373         * lib/savedir.h: Update prototype.
69374
69375 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69376
69377         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69378
69379         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69380         old strtoimax.c.
69381
69382         Also, make the following further changes to make this file's
69383         configuration more similar to that of strtol.c:
69384         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69385         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69386         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69387         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69388         changed to signed values.
69389
69390         And make the following changes as well:
69391         Fix copyright notice, as 1999 was missing.
69392         (verify): New macro.
69393         (strtoimax): Check sizes at compile-time, not run-time.
69394         Prefer strtol to strtoll if both work.
69395         (main): Remove; it was not that useful and was a pain to maintain.
69396
69397         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69398
69399 2001-08-31  Jim Meyering  <meyering@lucent.com>
69400
69401         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69402         Use an initial, malloc'd, buffer of length 128 rather than
69403         a statically allocated one of length 1024.
69404
69405 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69406
69407         Simplify code, partly by assuming autoconf 2.52 semantics.
69408
69409         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69410
69411         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69412         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69413         All uses removed.
69414         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69415         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69416         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69417         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69418         jm_AC_HEADER_INTTYPES_H.
69419         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69420
69421         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69422
69423         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69424         Quote first arg of AC_DEFUN.
69425         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69426         since they are needed to parse the include file even if we need
69427         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69428         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69429         but with opposite signedness.
69430
69431 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69432
69433         Merge 'exclude' changes from tar 1.13.22.
69434         This fixes one or two unlikely storage allocation overflow bugs,
69435         but doesn't change user-visible behavior otherwise.
69436
69437 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69438
69439         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69440         (jm_PREREQ_EXCLUDE): New macro.
69441
69442 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69443
69444         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69445         tm to be declared.
69446
69447 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69448
69449         * lib/hash.c: Remove '2001' from copyright notice.
69450
69451 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69452
69453         * lib/full-write.h: New file.
69454         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69455         * lib/full-write.c: Correct credits, as cccp.c no longer
69456         exists and anyway it was so heavily changed from the old cccp
69457         code as to be unrecognizable.  Include full-write.h.
69458         (full_write) Return size_t, with short writes meaning failure.
69459         All callers changed.  This fixes a bug with large buffers
69460         on 64-bit hosts.
69461         * lib/utime.c: Include full-write.h.
69462
69463 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69464
69465         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69466         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69467         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69468         Include if available.
69469         (<xalloc.h>): Include
69470         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69471         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69472         collide with FNM macros.
69473         (struct patopts): New struct.
69474         (struct exclude): Use it, as exclude patterns now come with options.
69475         (new_exclude): Support above changes.
69476         (new_exclude, add_exclude_file):
69477         Initial size must now be a power of two to simplify overflow checking.
69478         (free_exclude, fnmatch_no_wildcards): New function.
69479         (excluded_filename): No longer requires options arg, as the options
69480         are determined by add_exclude.  Now returns bool, not int.
69481         (excluded_filename, add_exclude):
69482         Add support for the fancy new exclusion options.
69483         (add_exclude, add_exclude_file): Now takes int options arg.
69484         Check for arithmetic overflow when computing sizes.
69485         (add_exclude_file): xrealloc might modify errno, so don't
69486         realloc until after errno might be used.
69487
69488         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69489         New macros.
69490         (free_exclude): New decl.
69491         (add_exclude, add_exclude_file): Now takes int options arg.
69492         (excluded_filename): No longer requires options arg, as the options
69493         are determined by add_exclude.  Now returns bool, not int.
69494
69495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69496
69497         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69498
69499 2001-08-27  Jim Meyering  <meyering@lucent.com>
69500
69501         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69502
69503         * lib/version-etc.c (N_): Remove definition.
69504         Revert most of last change.
69505         Instead, simply don't mark the `Copyright...' string for translation.
69506         Based on advice from Paul Eggert.
69507
69508         * lib/strtoxmax.c: Tweak comment.
69509
69510 2001-08-26  Jim Meyering  <meyering@lucent.com>
69511
69512         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69513
69514         * m4/xstrtoimax.m4: New file.
69515         * m4/xstrtoumax.m4: Add comments explaining why we
69516         AC_REPLACE_FUNCS(strtol).
69517
69518 2001-08-26  Jim Meyering  <meyering@lucent.com>
69519
69520         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69521         of copyright with `%s' so translators don't get an untranslated
69522         message in 2002.
69523         (COPYRIGHT_YEAR): Define.
69524         (version_etc): Use fprintf rather than fputs.
69525         Suggestion from Ulrich Drepper.
69526
69527         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69528
69529         * lib/strtoll.c: New file, from GNU libc.
69530         * lib/xstrtoimax.c: New file.
69531
69532         * lib/xstrtol.h: Add xstrtoimax.
69533         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69534         * lib/strtoimax.c: New file.  Likewise, but first define
69535         STRTOUXMAX_SIGNED.
69536
69537         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69538         ...
69539         * lib/strtoxmax.c: ... then renamed to this.
69540
69541 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69542
69543         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69544         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69545         (jm_AC_TYPE_INTMAX_T): New macro.
69546         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69547
69548         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69549
69550         * m4/longlong.m4: Renamed from ulonglong.m4.
69551         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69552         * m4/uintmax_t.m4: Removed.
69553
69554 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69555
69556         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69557         Port to Solaris 8, where 'sed' requires a space after the 'r'
69558         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69559         Redirect output to $tmp just once.
69560
69561 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69562
69563         * lib/addext.c (<errno.h>): Include.
69564         (errno): Declare if not defined.
69565         (addext): Work correctly when pathconf returns -1 and leaves
69566         errno alone because there is no limit.  Also, work even if
69567         pathconf returns a value greater than SIZE_MAX.
69568
69569 2001-08-12  Jim Meyering  <meyering@lucent.com>
69570
69571         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69572         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69573         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69574         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69575         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69576         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69577         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69578         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69579         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69580         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69581         utime.m4, utimes.m4, xstrtoumax.m4:
69582         Quote the first argument in each use of AC_DEFUN.
69583
69584 2001-08-12  Jim Meyering  <meyering@lucent.com>
69585
69586         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69587         Simply `return getcwd (NULL, 0);'.
69588         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69589         Use 1300 as initial value for length, not PATH_MAX.
69590
69591         * lib/pathmax.h: Clean up cpp syntax.
69592
69593 2001-08-12  Jim Meyering  <meyering@lucent.com>
69594
69595         * lib/gettimeofday.c: New file.
69596         * lib/gtod.h: New file.
69597         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69598
69599 2001-08-05  Jim Meyering  <meyering@lucent.com>
69600
69601         * m4/jm-macros.m4: Require autoconf-2.52.
69602
69603 2001-08-04  Jim Meyering  <meyering@lucent.com>
69604
69605         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69606         stmt, to get in sync with glibc.
69607
69608 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69609
69610         The following changes are from gettext 0.10.39 as maintained by
69611         Bruno Haible.
69612
69613         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69614         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69615         with inverted sense.  All uses changed.
69616
69617         * lib/mbswidth.c: Don't include <limits.h>.
69618         Include <stdlib.h> and <string.h> unconditionally.
69619         (iswcntrl, mbsinit, ISCNTRL): New macros.
69620         (mbsnwidth): Use K&R style function declarations.
69621         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69622         can optimize it when MB_CUR_MAX == 1.
69623         The width of control characters is zero, not 1.
69624
69625 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69626
69627         The following changes are from gettext 0.10.39 as maintained by
69628         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69629
69630         * m4/codeset.m4: Upgrade to serial AM1.
69631         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69632         all uses changed.  Quote first arg of AC_DEFUN.
69633         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69634
69635         * m4/iconv.m4: Upgrade to serial AM2.
69636         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69637         Add --with-libconv-prefix.
69638         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69639         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69640         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69641         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69642         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69643
69644         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69645         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69646         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69647         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69648         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69649         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69650         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69651         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69652         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69653
69654         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69655         string.h any more.
69656
69657         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69658         not the default value.
69659
69660         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69661         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69662         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69663         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69664         Also check for iswcntrl, used for wcwidth fallback.
69665         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69666         to Autoconf 2.13.
69667
69668 2001-08-03  Jim Meyering  <meyering@lucent.com>
69669
69670         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69671         as it was in the original.  Reported by Paul Eggert.
69672
69673 2001-07-16  Jim Meyering  <meyering@lucent.com>
69674
69675         * m4/gettimeofday.m4: New file.
69676         Prompted by a report from Bernhard Baehr.
69677
69678 2001-07-15  Jim Meyering  <meyering@lucent.com>
69679
69680         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69681         stuff. Now it's in ../Makefile.cfg.
69682
69683 2001-07-15  Jim Meyering  <meyering@lucent.com>
69684
69685         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69686         (BUILT_SOURCES): Add unlocked-io.h.
69687         (io_functions): Define.
69688         (unlocked-io.h): New rule.
69689         (DISTCLEANFILES): Add unlocked-io.h.
69690         (all-local): Depend on unlocked-io.h, to ensure it is created.
69691
69692         * lib/unlocked-io.hin: New file
69693
69694         * lib/regex.c: Update from glibc.
69695
69696 2001-07-05  Jim Meyering  <meyering@lucent.com>
69697
69698         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69699         recommendation.
69700         (libfetish_a_SOURCES): Put all .h files here instead.
69701         Remove a thus-exposed (better checks in automake) duplicate and
69702         two unnecessary .h files.
69703
69704 2001-07-04  Jim Meyering  <meyering@lucent.com>
69705
69706         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69707         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69708         distcheck failure.
69709
69710 2001-07-02  Jim Meyering  <meyering@lucent.com>
69711
69712         The following changes were prompted by suggestions from Bruno Haible.
69713
69714         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69715         is now generated.
69716         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69717         definition of EXTRA_DIST.
69718         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69719         ensure that the generated file is created/updated whenever the list
69720         of $(unlocked_functions) is changed.
69721         (jm-glibc-io.m4): New rule.
69722         (unlocked-io.h): New rule -- currently unused.
69723
69724 2001-06-24  Jim Meyering  <meyering@lucent.com>
69725
69726         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69727         unmatched right bracket, rather than kludging it with an extra,
69728         falsely-matching quote in a comment.  Patch by Akim Demaille.
69729
69730 2001-06-11  Jim Meyering  <meyering@lucent.com>
69731
69732         * lib/regex.c: Update from GNU libc.
69733
69734 2001-05-27  Jim Meyering  <meyering@lucent.com>
69735
69736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69737         Check for ut_type in struct utmp.
69738
69739 2001-05-27  Jim Meyering  <meyering@lucent.com>
69740
69741         * lib/readutmp.h (UT_TYPE): Define.
69742
69743 2001-05-24  Jim Meyering  <meyering@lucent.com>
69744
69745         * lib/argmatch.c: Include "quote.h".
69746         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69747         quote function.  Reported by Göran Uddeborg.
69748
69749 2001-05-22  Jim Meyering  <meyering@lucent.com>
69750
69751         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69752         now that we use the package-supplied version unconditionally.
69753         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69754
69755 2001-05-21  Jim Meyering  <meyering@lucent.com>
69756
69757         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69758         shell syntax errors.
69759
69760 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69761
69762         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69763
69764 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69765
69766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69767         Don't bother to check library strftime, since
69768         we'll be using our own my_strftime function anyway.
69769         Define my_strftime instead of strftime.
69770
69771 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69772
69773         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69774         which is not yet declared.
69775
69776 2001-05-15  Jim Meyering  <meyering@lucent.com>
69777
69778         * m4/regex.m4: Use proper quoting so brackets appear in the test
69779         program.
69780         Reported by, and with help from, Bruno Haible.
69781
69782 2001-05-13  Jim Meyering  <meyering@lucent.com>
69783
69784         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69785         undefined.
69786
69787 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69788
69789         dirname code cleanup.  base_name now behaves more compatibly
69790         with POSIX basename when given file names that have trailing
69791         slashes, and similarly for dir_name.  Add new primitives
69792         base_len and dir_len.  Put the directory-name-related decls
69793         into dirname.h.
69794
69795         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69796         * lib/backupfile.c (base_name): Likewise.
69797         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69798         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69799         * lib/makepath.c (strip_trailing_slashes): Likewise.
69800         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69801         ISSLASH): Likewise.
69802         * lib/rename.c (strip_trailing_slashes): Likewise.
69803         * lib/same.c (base_name): Likewise.
69804         * lib/stripslash.c (ISSLASH): Likewise.
69805
69806         * lib/addext.c: Include <dirname.h> after size_t is defined.
69807         * lib/backupfile.c: Likewise.
69808
69809         * lib/addext.c (addext): Use base_len to trim redundant
69810         trailing slashes instead of doing it ourselves.
69811         But do not trim the last slash if it is not redundant.
69812
69813         * lib/backupfile.c (find_backup_file_name,
69814         max_backup_version): Use base_len instead of rolling it ourselves.
69815         Handle the case of "" and (on DOS) "C:" correctly.
69816
69817         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69818         needed. Include <string.h>, <dirname.h>.
69819         (base_name): Allow file names ending in slashes, other than names
69820         that are all slashes.  In this case, return the basename followed
69821         by the slashes.  This is more general, and can be used in places
69822         where the original base_name purposely had an assertion failure.
69823         (base_len): New function.
69824
69825         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69826         Do not include <assert.h>; no longer needed.
69827         Include xalloc.h.
69828         (memrchr): Remove decl.
69829         (dir_name_r): Remove.
69830         (dir_len): Renamed from dirlen.  All callers changed.
69831         Rewrite in terms of base_name, for simplicity and consistency.
69832         (dir_name): Never return NULL.  All callers changed.
69833         Do not include <stdlib.h> in test program; no longer needed.
69834         return 0; is fine for test program.
69835
69836         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69837         New macros.
69838         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69839
69840         * lib/path-concat.c (path_concat): Use base_len to compute
69841         base length, not strlen; this means we cannot rely on memcpy
69842         to null-terminate.
69843
69844         * lib/same.c (STREQ): Remove.
69845         (same_name): Handle the case where the basename ends in trailing '/'.
69846
69847         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69848         a slash was stripped.  Do not strip the last slash after a
69849         file system prefix.
69850
69851 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69852
69853         * lib/Makefile.am (libfetish_a_SOURCES):
69854         Add strftime.c, since we now compile it on all hosts.
69855
69856         * lib/strftime.c (my_strftime):
69857         Define to nstrftime if emacs, but only if my_strftime is not defined.
69858         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69859         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69860         Add one more extra argument: a nanoseconds value.
69861         All uses changed.
69862         (ns): New macro.
69863         (my_strftime function): Add %N format.
69864         (emacs_strftimeu): Renamed from emacs_strftime,
69865         with extra ut argument.
69866
69867 2001-05-09  Paul Eggert  <eggert@twinsun.com>
69868
69869         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
69870
69871 2001-04-21  Jim Meyering  <meyering@lucent.com>
69872
69873         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
69874         doesn't interfere.
69875
69876 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69877
69878         * m4/ftruncate.m4: Check for chsize.
69879         Link with ftruncate.o unconditionally if ftruncate is missing.
69880         This was required when cross-compiling to i586-mingw32msvc.
69881
69882 2001-04-08  Jim Meyering  <meyering@lucent.com>
69883
69884         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
69885         recomputed; that's necessary when the offset spans a DST transition.
69886         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
69887
69888 2001-04-02  Jim Meyering  <meyering@lucent.com>
69889
69890         * lib/regex.h, regex.c: Update from GNU libc.
69891
69892 2001-03-24  Jim Meyering  <meyering@lucent.com>
69893
69894         * m4/jm-macros.m4: Require autoconf-2.49d.
69895
69896 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
69897
69898         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
69899
69900 2001-03-19  Paul Eggert  <eggert@twinsun.com>
69901
69902         * lib/version-etc.c (version_etc_copyright): Update to 2001.
69903
69904 2001-03-17  Jim Meyering  <meyering@lucent.com>
69905
69906         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
69907         now that the version in autoconf is equivalent.
69908         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
69909
69910         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
69911         Suggestion from Akim Demaille.
69912
69913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
69914         (jm_PREREQ_TEMPNAME): New function.
69915
69916 2001-03-16  Paul Eggert  <eggert@twinsun.com>
69917
69918         * lib/tempname.c (uint64_t): Define to uintmax_t if
69919         not defined, and if UINT64_MAX is not defined.
69920         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
69921         Reported by John David Anglin.
69922
69923 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
69924
69925         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
69926         resolve alias if codeset is empty.
69927         * lib/config.charset (BeOS): Use wildcard syntax.
69928
69929 2001-03-13  Jim Meyering  <meyering@lucent.com>
69930
69931         * lib/path-concat.c (path_concat)
69932         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
69933         concatenating e.g., `C:' and `foo'.
69934         From Bruno Haible.
69935
69936 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69937
69938         * lib/localcharset.c (locale_charset): Don't use
69939         setlocale(LC_CTYPE,NULL). Don't return NULL.
69940         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
69941
69942 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
69943
69944         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
69945         support for DOS/DJGPP.
69946
69947 2001-03-01  Paul Eggert  <eggert@twinsun.com>
69948
69949         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
69950         lacks mkstemp.  Compile our own tempname.c if we compile our own
69951         mkstemp.c, as mkstemp relies on tempname.
69952
69953 2001-03-01  Jim Meyering  <meyering@lucent.com>
69954
69955         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
69956         AH_VERBATIM really does output its argument verbatim.
69957
69958 2001-02-28  Paul Eggert  <eggert@twinsun.com>
69959
69960         * lib/Makefile.am (libfetish_a_SOURCES):
69961         Add dup-safer.c, fopen-safer.c.
69962         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
69963
69964         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
69965         * lib/unistd-safer.h: New files.
69966
69967 2001-02-25  Paul Eggert  <eggert@twinsun.com>
69968
69969         The mkstemp replacement is taken from glibc 2.2.2, with some
69970         portability fixes for use outside glibc, as follows:
69971
69972         * lib/tempname.c (struct_stat64): New macro.
69973         (direxists, __gen_tempname): Use it.
69974         This avoids a portability problem with Solaris 8.
69975
69976         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
69977         (<stddef.h>, <stdint.h>, <string.h>):
69978         Include only if STDC_HEADERS || _LIBC.
69979         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
69980         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
69981         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
69982         (__set_errno): Define this macro if <errno.h> doesn't.
69983         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
69984         Define these macros if <stdio.h> doesn't.
69985         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
69986         Define these macros if <sys/stat.h>
69987         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
69988         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
69989         __xstat64): Define if not _LIBC.
69990         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
69991         (__gen_tempname): Invoke gettimeofday only if
69992         HAVE_GETTIMEOFDAY || _LIBC;
69993         otherwise, fall back on plain "time".
69994         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
69995
69996         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
69997
69998         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
69999
70000 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70001
70002         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70003
70004 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70005
70006         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70007         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70008         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70009         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70010
70011 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70012
70013         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70014         Remove workaround macros for hosts that have mbrtowc but not
70015         mbstate_t, as we now insist on proper declarations for both
70016         before using mbrtowc.
70017
70018 2001-02-17  Jim Meyering  <meyering@lucent.com>
70019
70020         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70021         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70022         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70023         UnixWare 7.1.1.
70024
70025         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70026         rather than AC_CACHE_VAL.
70027
70028 2001-02-17  Jim Meyering  <meyering@lucent.com>
70029
70030         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70031         around included file name.
70032
70033         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70034
70035         * lib/strftime.c: Update from GNU libc (the only changes were to
70036         comments).
70037
70038 2001-02-17  Jim Meyering  <meyering@lucent.com>
70039
70040         * lib/regex.c: Update from libc.
70041
70042 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70043
70044         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70045         clash.
70046
70047 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70048
70049         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70050         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70051         Reported by Mark Hounschell via Paul Eggert.
70052
70053 2001-02-07  Jim Meyering  <meyering@lucent.com>
70054
70055         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70056
70057 2001-02-05  Jim Meyering  <meyering@lucent.com>
70058
70059         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70060         it includes the patch required for `large file' support with at least
70061         HP-UX's 10.20 /bin/cc.
70062
70063 2001-02-03  Jim Meyering  <meyering@lucent.com>
70064
70065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70066         AS_IF, now that it works once again (mysteriously).
70067         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70068
70069 2001-01-30  Jim Meyering  <meyering@lucent.com>
70070
70071         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70072         * m4/chown.m4: Rename conftestchown to conftest.chown.
70073         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70074         s/conftestdir2/conftest.d2/.
70075         * m4/utimes.m4: s/conftestdata/conftest.data/
70076         Inspired by Pavel Roskin's change in autoconf.
70077
70078 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70079
70080         * lib/config.charset: Update for FreeBSD 4.2.
70081
70082 2001-01-27  Jim Meyering  <meyering@lucent.com>
70083
70084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70085         a use of AS_IF.
70086         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70087
70088 2001-01-26  Jim Meyering  <meyering@lucent.com>
70089
70090         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70091         quotearg.c includes it.
70092
70093 2001-01-26  Jim Meyering  <meyering@lucent.com>
70094
70095         * lib/quotearg.c: Include stddef.h.
70096         * lib/quote.c: Include stddef.h.
70097         Reported by Axel Kittenberger.
70098
70099         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70100         line in double quotes so that it evokes a better diagnostic.
70101         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70102         Reported by Axel Kittenberger.
70103
70104 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70105
70106         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70107         as if it was a `charset'.
70108
70109 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70110
70111         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70112         has const.
70113
70114 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70115
70116         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70117         to avoid a warning.  Add back 'const' to inptr.
70118
70119 2001-01-20  Jim Meyering  <meyering@lucent.com>
70120
70121         Be sure that headers are checked before used in code compiled
70122         for the type checks.
70123         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70124         In place of that, invoke jm_CHECK_ALL_TYPES.
70125         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70126         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70127         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70128         The check for ssize_t was mistakenly run before the test for unistd.h.
70129
70130         The configure-time check for stdbool.h was missing.
70131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70132         (jm_PREREQ_HASH): New function.
70133
70134 2001-01-17  Jim Meyering  <meyering@lucent.com>
70135
70136         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70137         for autoconf-2.49c.
70138         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70139
70140 2001-01-16  Jim Meyering  <meyering@lucent.com>
70141
70142         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70143         From Bruno Haible.
70144
70145 2001-01-14  Jim Meyering  <meyering@lucent.com>
70146
70147         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70148         foo and bar.  Create conftestdir/ in the script, not in the C code.
70149         Remove directories in the script, not in the C code.
70150         Remove conftestdir{,2} before trying to create the directory.
70151         Make the entire configure script fail if the mkdir fails.
70152
70153 2001-01-14  Jim Meyering  <meyering@lucent.com>
70154
70155         * lib/rename.c: New file.  From Volker Borchert.
70156         Include stdlib.h, string.h or strings.h, and xalloc.h.
70157         Use strip_trailing_slashes rather than open-coding it.
70158
70159 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70160
70161         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70162
70163 2001-01-03  Jim Meyering  <meyering@lucent.com>
70164
70165         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70166         of local `inptr' to avoid warning with some system declarations of
70167         iconv.
70168
70169 2001-01-02  Volker Borchert  <bt@teknon.de>
70170
70171         * m4/rename.m4: New file.
70172         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70173
70174 2001-01-01  Jim Meyering  <meyering@lucent.com>
70175
70176         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70177         even on systems with utmpx.h.  It's necessary for the declaration of
70178         utmp's ut_user member.  Reported by Andreas Jaeger.
70179
70180         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70181         available. They are required for the declarations of getgrgid and
70182         getpwuid resp.
70183         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70184         Reported by Andreas Jaeger.
70185
70186 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70187
70188         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70189         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70190         so `make install' also works in VPATH builds.
70191
70192 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70193
70194         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70195         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70196         can be used in subdirectories.
70197
70198 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70199
70200         * lib/modechange.c: Do not assume that mode_t uses the
70201         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70202         the other-execute bit of FOO even if S_IXOTH != 1.
70203
70204         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70205         WOTH, XOTH, ALLM): New macros.
70206         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70207          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70208         Use them.
70209         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70210         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70211         (mode_compile):
70212         No need to use uintmax_t; unsigned long is long enough.
70213         Don't bother to get suffix since we don't use it.
70214
70215 2000-12-26  Jim Meyering  <meyering@lucent.com>
70216
70217         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70218         better with autoheader.
70219
70220 2000-12-24  Jim Meyering  <meyering@lucent.com>
70221
70222         * lib/hash.c (is_prime): Return explicit boolean values.
70223         (hash_get_first): Return NULL to appease Irix5.6's 89.
70224         Reported by Nelson Beebe.
70225
70226 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70227
70228         * lib/localcharset.c (locale_charset): Add support for Win32.
70229
70230 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70231
70232         * lib/physmem.h, lib/physmem.c: New files.
70233
70234         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70235         (noinst_HEADERS): Add physmem.h.
70236
70237         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70238         't' for compatibility with Solaris 8 sort.
70239
70240 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70241
70242         * lib/config.charset: Add support for BeOS.
70243
70244 2000-12-17  Jim Meyering  <meyering@lucent.com>
70245
70246         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70247         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70248
70249 2000-12-16  Jim Meyering  <meyering@lucent.com>
70250
70251         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70252         N and M) would have treated it like `chown N:N FILE'.
70253
70254         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70255
70256 2000-12-16  Jim Meyering  <meyering@lucent.com>
70257
70258         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70259         SHELLS_FILE to a file name that's useful on djgpp systems.
70260         Include stdlib.h.
70261         (ADDITIONAL_DEFAULT_SHELLS): Define.
70262         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70263         Based mostly on a patch from Prashant TR.
70264
70265 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70266
70267         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70268         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70269         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70270
70271 2000-12-08  Andreas Schwab  <schwab@suse.de>
70272
70273         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70274         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70275
70276 2000-12-07  Jim Meyering  <meyering@lucent.com>
70277
70278         * lib/stripslash.c (ISSLASH): Define.
70279         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70280         `/'.
70281         From Prashant TR.
70282
70283         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70284         (dir_name_r): Declare this function as static.
70285         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70286         manifest itself on a name containing a mix of slashes and
70287         backslashes.
70288         Make this function work with names starting with a DOS-style
70289         drive letter and colon prefix.
70290         (dir_name): Append `.' if necessary.
70291         Based mostly on patches from Prashant TR and Eli Zaretskii.
70292
70293         * lib/dirname.h (dir_name_r): Remove prototype.
70294
70295 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70296
70297         * m4/off_t-format.m4: Remove this file.
70298         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70299
70300 2000-12-06  Jim Meyering  <meyering@lucent.com>
70301
70302         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70303         replacement strtoull, we may well need the replacement strtoul, too.
70304         Check for declarations of strtoul and strtoull.
70305         Check for strtol.  Mainly as a cue to cause automake to include
70306         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70307         Check for limits.h -- strtol.c needs it.
70308
70309 2000-12-05  Jim Meyering  <meyering@lucent.com>
70310
70311         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70312
70313 2000-12-04  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70316         Also include memory.h, stdlib.h, unistd.h if appropriate.
70317         Reported by Andreas Jaeger (conflicting declaration of malloc).
70318
70319 2000-12-02  Jim Meyering  <meyering@lucent.com>
70320
70321         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70322         * m4/jm-macros.m4 (jm_MACROS): require it.
70323
70324 2000-12-02  Jim Meyering  <meyering@lucent.com>
70325
70326         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70327
70328 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70329
70330         * lib/memrchr.c: Include <config.h> before any system include file.
70331
70332 2000-11-30  Jim Meyering  <meyering@lucent.com>
70333
70334         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70335
70336 2000-11-30  Jim Meyering  <meyering@lucent.com>
70337
70338         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70339
70340 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70341
70342         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70343
70344 2000-11-26  Jim Meyering  <meyering@lucent.com>
70345
70346         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70347
70348 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70349
70350         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70351         size of (size_t) -1; it's not portable.
70352
70353 2000-11-17  Jim Meyering  <meyering@lucent.com>
70354
70355         * lib/strstr.c: Update from GNU libc.
70356
70357 2000-11-17  Akim Demaille  <akim@epita.fr>
70358
70359         * lib/obstack.h: Formatting changes.
70360         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70361         prevent type checking.
70362         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70363         cast the value to (void *): assigning a `foo *' to a `void *'
70364         variable is valid.
70365         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70366
70367 2000-11-16  Jim Meyering  <meyering@lucent.com>
70368
70369         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70370
70371 2000-11-11  Jim Meyering  <meyering@lucent.com>
70372
70373         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70374
70375 2000-11-10  Jim Meyering  <meyering@lucent.com>
70376
70377         * lib/obstack.h: Update from GNU libc.
70378         * lib/obstack.c: Likewise.
70379
70380 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70381
70382         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70383
70384 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70385
70386         * lib/getusershell.c (setusershell): Use rewind rather than
70387         fseek/fseeko, to avoid configuration hassles with fseeko.
70388         Don't bother opening SHELLS_FILE if shellstream is NULL;
70389         it's not necessary.
70390
70391 2000-11-05  Jim Meyering  <meyering@lucent.com>
70392
70393         * lib/makepath.h (make_dir): Declare.
70394         * lib/makepath.c (make_dir): Remove `static' attribute.
70395         Tweak a comment.
70396
70397 2000-11-04  Jim Meyering  <meyering@lucent.com>
70398
70399         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70400
70401 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70402
70403         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70404         last one in a bucket, advance to the next bucket.
70405
70406 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70407
70408         * lib/fnmatch.c: Do not comment out all the code if we are using
70409         the GNU C library, because in some cases we are replacing buggy
70410         code in the GNU C library itself.
70411
70412 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70413
70414         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70415         (regex_compile): Catch bogus \(\1\).
70416
70417 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70418
70419         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70420         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70421         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70422
70423 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70424
70425         * lib/error.h, getline.h, modechange.h:
70426         Remove "2000" from Copyright line, as the file hasn't been
70427         changed this year other than in the copyright notice.
70428
70429         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70430         was changed this year.
70431
70432 2000-10-29  Jim Meyering  <meyering@lucent.com>
70433
70434         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70435         renaming.
70436         * m4/ls-mntd-fs.m4: Likewise
70437
70438 2000-10-29  Jim Meyering  <meyering@lucent.com>
70439
70440         * lib/xstat.in: Fix grammar in comment.
70441
70442 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70443
70444         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70445         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70446         doesn't define __restrict_arr.
70447
70448 2000-10-28  Jim Meyering  <meyering@lucent.com>
70449
70450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70451         (jm_PREREQ_MEMCHR): New function.
70452
70453 2000-10-28  Jim Meyering  <meyering@lucent.com>
70454
70455         * lib/memchr.c: Update from libc.
70456         Adjust for portability:
70457         [HAVE_STDLIB_H]: Include stdlib.h.
70458         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70459         Undef __memchr, too.
70460         [!weak_alias]: Define __memchr to memchr.
70461
70462         * lib/regex.c: Update from libc.
70463         * lib/regex.h: Likewise.
70464         * lib/getopt1.c: Likewise.
70465         * lib/memcmp.c: Likewise.
70466
70467         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70468         Avoid using fseek, when possible -- it's broken by design.
70469         Patch by Ulrich Drepper.
70470
70471 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70472
70473         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70474         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70475         Giving in to popular pressure to shut up the compiler with casts.
70476
70477 2000-10-26  Jim Meyering  <meyering@lucent.com>
70478
70479         * lib/strftime.c: Update from libc.
70480
70481 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70482
70483         * regex.c: More `unsigned char' -> `re_char' changes.
70484         Also change several `int' into `re_wchar_t'.
70485         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70486         (PUSH_FAILURE_POINTER): Don't cast any more.
70487         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70488         We want GCC to complain, since this piece of code makes
70489         re_match non-reentrant, which *should* be fixed.
70490         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70491         (EXTEND_BUFFER): Use RETALLOC.
70492         (SET_LIST_BIT): Don't cast.
70493         (re_wchar_t): New type.
70494         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70495         that those two functions will always properly return.
70496         (IMMEDIATE_QUIT_CHECK): Cast to void.
70497         (analyse_first): Use recursion rather than an explicit stack.
70498         (re_compile_fastmap): Can't fail anymore.
70499         (re_search_2): Don't check re_compile_fastmap for failure.
70500         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70501         Now also sets the new value (passed in a new argument).
70502         (re_match_2_internal): Use it.
70503         Also, use a new var `reg' of type size_t when looping through regs
70504         rather than reuse the inappropriate `mcnt'.
70505
70506 2000-10-25  Jim Meyering  <meyering@lucent.com>
70507
70508         * lib/obstack.c: Update from libc.
70509
70510 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70511
70512         * regex.c (regex_compile): Change the way of handling a range from
70513         a char less than 256 to a char not less than 256.
70514
70515 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70516
70517         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70518         NT-Emacs only.
70519         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70520         so that re_search functions only quit when callers expect them to.
70521
70522 2000-10-23  Jim Meyering  <meyering@lucent.com>
70523
70524         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70525         wrong.  That set_locale call must not have any side effects.
70526         From Paul Eggert.
70527
70528 2000-10-22  Jim Meyering  <meyering@lucent.com>
70529
70530         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70531         [CYCLIC]: Remove now-unused definition.
70532
70533         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70534         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70535         Suggestion from Ulrich Drepper.
70536
70537 2000-10-21  Jim Meyering  <meyering@lucent.com>
70538
70539         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70540         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70541         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70542
70543 2000-10-21  Jim Meyering  <meyering@lucent.com>
70544
70545         * lib/dirname.c (memrchr): Declare if necessary.
70546         (dir_name): Remove the restriction that there be no
70547         trailing slashes.  Now, this code skips past them, effectively
70548         ignoring them.
70549         [TEST_DIRNAME] (main): New unit tests.
70550
70551         * lib/memrchr.c: New file from GNU libc.
70552         Undef __memrchr, too.
70553         [!weak_alias]: Define __memrchr to memrchr.
70554         Guard weak_alias use with `#ifdef weak_alias'.
70555
70556 2000-10-21  Jim Meyering  <meyering@lucent.com>
70557
70558         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70559         (dir_name): Use dir_name_r.
70560         * lib/dirname.h (dir_name_r): Declare it.
70561
70562 2000-10-17  Jim Meyering  <meyering@lucent.com>
70563
70564         * lib/quote.h (PARAMS): Define and use.
70565         Reported by Akim Demaille.
70566
70567         * lib/getopt.c: Update from libc.
70568
70569 2000-10-16  Jim Meyering  <meyering@lucent.com>
70570
70571         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70572         setlocale.
70573         From Jan Fedak.
70574
70575 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70576
70577         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70578
70579 2000-09-25  Jim Meyering  <meyering@lucent.com>
70580
70581         * lib/md5.h (rol): Define (from GnuPG).
70582
70583         * lib/sha.c: Give credit (GnuPG) where due.
70584         (M): Use rol rather than open-coding it.
70585         Add a FIXME comment.
70586
70587 2000-09-21  Jim Meyering  <meyering@lucent.com>
70588
70589         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70590         Reported by Michael Stone.
70591
70592 2000-09-20  Jim Meyering  <meyering@lucent.com>
70593
70594         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70595         (noinst_HEADERS): Add sha.h.
70596         Based on code from Scott G. Miller and from GnuPG.
70597
70598 2000-09-18  Jim Meyering  <meyering@lucent.com>
70599
70600         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70601         LIBS. Otherwise, everyone ends up linking with -lelf for some
70602         configurations.
70603         Reported by Mike Stone.
70604
70605 2000-09-15  Jim Meyering  <meyering@lucent.com>
70606
70607         * lib/regex.c: Update from libc.
70608
70609 2000-09-10  Jim Meyering  <meyering@lucent.com>
70610
70611         * lib/getopt.c (_getopt_internal): Update from glibc.
70612
70613 2000-09-09  Jim Meyering  <meyering@lucent.com>
70614
70615         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70616         think it should be used as a general replacement for isascii.
70617         * lib/fnmatch.c: Likewise.
70618         * lib/mbswidth.c: Likewise
70619         * lib/regex.c: Likewise.
70620
70621         Don't use atoi.
70622         * lib/userspec.c: Include sys/param.h and limits.h.
70623         Include xstrtol.h.
70624         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70625         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70626         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70627         UID, GID.  Check range.
70628
70629 2000-09-06  Jim Meyering  <meyering@lucent.com>
70630
70631         * lib/getopt.c (_getopt_internal): Update from glibc.
70632
70633 2000-08-30  Jim Meyering  <meyering@lucent.com>
70634
70635         * lib/strftime.c: Merge in changes from GNU libc.
70636
70637 2000-08-26  Jim Meyering  <meyering@lucent.com>
70638
70639         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70640         * m4/fpending.m4: New file.
70641
70642 2000-08-26  Jim Meyering  <meyering@lucent.com>
70643
70644         * lib/closeout.c: Include "__fpending.h".
70645         (close_stdout_status): Return right away if there's nothing to flush.
70646
70647         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70648         * lib/__fpending.c: New file.
70649         * lib/__fpending.h: New file.
70650
70651 2000-08-20  Jim Meyering  <meyering@lucent.com>
70652
70653         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70654         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70655         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70656
70657 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70658
70659         Improve fileutils installation on systems where running
70660         programs (like install) can't be unlinked.
70661         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70662         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70663
70664 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70665
70666         Standardize on "memory exhausted" instead of "Memory exhausted"
70667         or "virtual memory exhausted".
70668         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70669         "virtual memory exhausted".
70670         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70671         our own message.
70672         * lib/userspec.c (parse_user_spec): Likewise.
70673         * lib/bumpalloc.h: comment fix
70674         * lib/same.c, userspec.c: Include xalloc.h.
70675
70676         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70677         not char *const and pointing to a constant array.
70678         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70679         (xrealloc): Comment fix.
70680
70681         * lib/userspec.c (parse_user_spec):
70682         Don't translate a message until just before returning,
70683         to avoid unnecessary translation.
70684
70685 2000-08-07  Jim Meyering  <meyering@lucent.com>
70686
70687         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70688         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70689         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70690         getgroups.c, gethostname.c, getopt.h, group-member.c,
70691         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70692         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70693         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70694         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70695         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70696         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70697         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70698         yesno.c: Back out Copyright date changes for each file with no change
70699         this year.  This eases coordination with other programs using the same
70700         source code modules.  From Paul Eggert.
70701
70702 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70703
70704         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70705         not char, for compatibility with glibc 2.1.3 strftime.c.
70706
70707 2000-08-03  Greg McGary  <greg@mcgary.org>
70708
70709         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70710         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70711         (EXTEND_BUFFER): Use them.
70712
70713 2000-08-01  Jim Meyering  <meyering@lucent.com>
70714
70715         * lib/dirname.c (ISSLASH): Define.
70716         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70717         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70718         both `\' and `/' may be use as path separators.
70719         Based on a patch from Prashant TR.
70720
70721 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70722
70723         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70724         slot vector a constant, since it might get modified.
70725
70726 2000-07-31  Jim Meyering  <meyering@lucent.com>
70727
70728         * lib/xmalloc.c: Use `virtual memory exhausted', not
70729         `Memory exhausted'.
70730         * lib/obstack.c (print_and_abort): Likewise.
70731
70732 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70733
70734         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70735         buffer, so that the caller can always quote one small
70736         component of a "memory exhausted" message in slot 0.
70737         From a suggestion by Jim Meyering.
70738
70739 2000-07-30  Jim Meyering  <meyering@lucent.com>
70740
70741         * lib/makepath.c (make_path): Quote the other instance, too.
70742
70743         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70744         (STATIC_BUF_SIZE): Define.
70745         (quotearg_n_options): Use only statically allocated storage when
70746         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70747         than STATIC_BUF_SIZE.
70748
70749 2000-07-29  Jim Meyering  <meyering@lucent.com>
70750
70751         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70752         * lib/dirname.c (dir_name): Likewise.
70753
70754         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70755         `/'.
70756
70757         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70758         (dir_name): Assert that there are no trailing slashes.
70759
70760 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70761
70762         * lib/mbswidth.h (mbswidth): Add a flags argument.
70763         (mbswidth): New declaration.
70764         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70765         * lib/mbswidth.c (mbswidth): Add a flags argument.
70766         (mbsnwidth): New function.
70767
70768 2000-07-24  Jim Meyering  <meyering@lucent.com>
70769
70770         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70771
70772 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70773
70774         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70775
70776 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70777
70778         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70779         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70780         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70781         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70782         invoke multibyte primitives.
70783
70784 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70785
70786         * lib/quotearg.c:
70787         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70788         so that mbstate_t is always defined.
70789
70790         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70791         be 1 in at least one GCC installation, and this configuration
70792         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70793         performance on hosts that have mbrtowc but have only unibyte
70794         locales, but I assume these hosts are rare.
70795
70796 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70797
70798         * lib/mbswidth.c (_XOPEN_SOURCE):
70799         Don't define; this causes problems on Solaris 7.
70800         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70801
70802 2000-07-23  Jim Meyering  <meyering@lucent.com>
70803
70804         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70805         too: getgrgid, getpwuid, getuid.
70806
70807 2000-07-23  Jim Meyering  <meyering@lucent.com>
70808
70809         * lib/basename.c (base_name): Add an assertion.
70810
70811 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70812
70813         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70814         shadow its mbsinit function.
70815
70816 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70817
70818         * lib/mbswidth.h: New file.
70819         * lib/mbswidth.c: New file.
70820         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70821         (noinst_HEADERS): Add mbswidth.h.
70822
70823 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70824
70825         * lib/config.charset: Add support for FreeBSD. Improve support for
70826         HP-UX and IRIX 6.
70827
70828 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70829
70830         * m4/mbswidth.m4: New file.
70831         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70832
70833 2000-07-15  Jim Meyering  <meyering@lucent.com>
70834
70835         * lib/makepath.c: Include quote.h.
70836         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70837         corresponding argument in a `quote (...)' call.
70838         Give better diagnostics.
70839
70840         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70841         (noinst_HEADERS): Add quote.h.
70842
70843         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70844         from tar's src/misc.c.
70845         * lib/quote.h: New file.  Prototypes for same.
70846
70847 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70848
70849         From a suggestion by Bruno Haible.
70850         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70851         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70852         to decide whether to define the BeOS workaround macro;
70853         this adjusts to the change to AC_MBSTATE_T.
70854
70855 2000-07-14  Jim Meyering  <meyering@lucent.com>
70856
70857         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70858         jm_AC_TYPE_UINTMAX_T.
70859
70860 2000-07-13  Paul Eggert  <eggert@twinsun.com>
70861
70862         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
70863
70864         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
70865         quotearg_buffer_restyled): Add support for
70866         clocale_quoting_style.  Undo previous change to
70867         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
70868         and "{RIGHT QUOTATION MARK}" msgids.
70869
70870 2000-07-10  Paul Eggert  <eggert@twinsun.com>
70871
70872         From a suggestion by Bruno Haible.
70873         * m4/mbstate_t.m4 (AC_MBSTATE_T):
70874         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
70875         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
70876         and mbstate_t, to a single-part test that simply defines mbstate_t.
70877         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
70878         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
70879
70880 2000-07-10  Jim Meyering  <meyering@lucent.com>
70881
70882         * m4/strerror_r.m4: Mirror the correction made in autoconf.
70883
70884         * m4/gnu-source.m4: Output to confdefs.h directly.
70885         Suggestion from Akim Demaille.
70886
70887 2000-07-09  Paul Eggert  <eggert@twinsun.com>
70888
70889         The old behavior of quoting `like this' doesn't look good with
70890         newer, ISO-style fonts.  See:
70891         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
70892
70893         Instead, quote "like this" by default.  Let the translator
70894         tailor the locale-specific quoting behavior by providing
70895         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
70896
70897         * lib/quotearg.c (N_): New macro.
70898         (gettext_default): New function.
70899         (quotearg_buffer_restyled): Use
70900         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
70901         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
70902
70903 2000-07-09  Jim Meyering  <meyering@lucent.com>
70904
70905         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
70906         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
70907
70908         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
70909         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
70910
70911 2000-07-09  Jim Meyering  <meyering@lucent.com>
70912
70913         * lib/Most files: Update copyright dates to include 2000.
70914
70915 2000-07-08  Jim Meyering  <meyering@lucent.com>
70916
70917         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
70918         if not defined.
70919         (xgethostname): Remove now-unnecessary #ifdef.
70920         Move declaration of `err' into loop where it's used.
70921
70922 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70923         and Bruno Haible  <haible@clisp.cons.org>
70924
70925         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
70926         only if the test for an object-type mbstate_t fails.  This
70927         prevents us from mistakenly reporting that mbstate_t is a
70928         system object type after we "#define mbstate_t int" to work
70929         around its lack.
70930
70931 2000-07-05  Paul Eggert  <eggert@twinsun.com>
70932         and Bruno Haible  <haible@clisp.cons.org>
70933
70934         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
70935
70936 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70937
70938         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
70939         to strerror_r.
70940         Include <ctype.h> for use of isalpha.
70941
70942 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70943
70944         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
70945         by allocating a larger buffer. Test the gethostname return value for
70946         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
70947         returns an error and ENAMETOOLONG isn't defined.
70948
70949 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
70950
70951         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
70952         dimension.
70953
70954 2000-07-04  Jim Meyering  <meyering@lucent.com>
70955
70956         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
70957         of the deprecated AC_CHECKING.
70958
70959 2000-07-04  Jim Meyering  <meyering@lucent.com>
70960
70961         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
70962         Reported by Bruno Haible.
70963
70964 2000-07-04  Jim Meyering  <meyering@lucent.com>
70965
70966         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
70967         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
70968         lacks mbrtowc.
70969
70970 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70971
70972         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
70973         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
70974
70975 2000-07-03  Paul Eggert  <eggert@twinsun.com>
70976         and Bruno Haible  <haible@clisp.cons.org>
70977
70978         * lib/quotearg.c (mbrtowc):
70979         Assign to *pwc, and return 1 only if result is nonzero.
70980         (iswprint): Use ISPRINT when substituting our own mbrtowc.
70981
70982 2000-07-03  Jim Meyering  <meyering@lucent.com>
70983
70984         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
70985
70986 2000-07-03  Jim Meyering  <meyering@lucent.com>
70987
70988         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
70989         This is necessary to get a definition of e.g., UTMP_FILE on
70990         HP-UX 10.20.
70991         From Bob Proulx.
70992
70993 2000-07-02  Jim Meyering  <meyering@lucent.com>
70994
70995         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
70996
70997         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
70998         AC_LIBOBJ(function_name).
70999         * m4/chown.m4: Likewise.
71000         * m4/fnmatch.m4: Likewise.
71001         * m4/ftruncate.m4: Likewise.
71002         * m4/getgroups.m4: Likewise.
71003         * m4/getline.m4: Likewise.
71004         * m4/group-member.m4: Likewise.
71005         * m4/jm-macros.m4: Likewise.
71006         * m4/lstat.m4: Likewise.
71007         * m4/malloc.m4: Likewise.
71008         * m4/memcmp.m4: Likewise.
71009         * m4/nanosleep.m4: Likewise.
71010         * m4/putenv.m4: Likewise.
71011         * m4/realloc.m4: Likewise.
71012         * m4/regex.m4: Likewise.
71013         * m4/stat.m4: Likewise.
71014         * m4/strftime.m4: Likewise.
71015
71016 2000-07-02  Jim Meyering  <meyering@lucent.com>
71017
71018         * lib/quotearg.c (mbstate_t): Don't define here.
71019
71020 2000-07-02  Jim Meyering  <meyering@lucent.com>
71021
71022         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71023
71024 2000-07-01  Jim Meyering  <meyering@lucent.com>
71025
71026         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71027
71028 2000-07-01  Jim Meyering  <meyering@lucent.com>
71029
71030         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71031         problem.
71032
71033 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71034
71035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71036         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71037
71038 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71039
71040         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71041         per change in ../m4/ls-mntd-fs.m4.
71042         (read_filesystem_list): Ignore symbolic links.
71043
71044 2000-06-29  Jim Meyering  <meyering@lucent.com>
71045
71046         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71047         for declaration of strcmp.
71048
71049         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71050
71051         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71052         Avoid warning by casting result to `char *' to remove `const'.
71053
71054 2000-06-28  Jim Meyering  <meyering@lucent.com>
71055
71056         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71057         included by quotearg.c, for which we perform this test.  From
71058         Bruno Haible.
71059
71060 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71061
71062         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71063         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71064         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71065
71066 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71067
71068         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71069
71070 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71071
71072         savedir now sets errno on failure and invokes xmalloc to get memory.
71073         Fix a couple of other minor bugs while we're at it.
71074
71075         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71076         (NAMLEN): Remove macro.
71077         (malloc, realloc): Remove decls.
71078         (stpcpy): Likewise.
71079         ("xalloc.h"): Include.
71080         (NAME_SIZE_DEFAULT): New macro.
71081         (savedir): Use xmalloc / xrealloc to allocate memory.
71082         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71083         Skip "" directory entries.
71084         Use strlen to calculate directory entry length, since the old method
71085         is rarely used these days and isn't worth supporting.
71086         Don't use a pointer after freeing it.
71087         Check for integer overflow when calculating allocation size.
71088         Use memcpy to copy entries, instead of stpcpy.
71089         Set errno properly when returning NULL.
71090         Check for readdir error.
71091
71092 2000-06-26  Jim Meyering  <meyering@lucent.com>
71093
71094         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71095
71096 2000-06-25  Jim Meyering  <meyering@lucent.com>
71097
71098         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71099         Linux header bug when _XOPEN_SOURCE is defined to 500.
71100
71101 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71102
71103         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71104         deficiency.
71105
71106 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71107
71108         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71109         Include xalloc.h.
71110         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71111
71112 2000-06-24  Jim Meyering  <meyering@lucent.com>
71113
71114         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71115         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71116         for which strerror does return char*, but which lacks a conveniently
71117         accessible declaration of the function.  If the compile-test says
71118         strerror_r doesn't work, then resort to a `run'-test that works on
71119         BeOS and segfaults on DEC Unix.
71120
71121 2000-06-24  Jim Meyering  <meyering@lucent.com>
71122
71123         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71124
71125 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71126
71127         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71128         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71129
71130 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71131
71132         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71133         (mbrtowc, mbstate_t): Define substitutes if
71134         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71135         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71136         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71137
71138 2000-06-23  Jim Meyering  <meyering@lucent.com>
71139
71140         * m4/afs.m4: Add missing AC_MSG_RESULT.
71141         Reported by Bruno Haible.
71142
71143         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71144         Suggestion from Bruno Haible.
71145
71146 2000-06-23  Jim Meyering  <meyering@lucent.com>
71147
71148         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71149
71150 2000-06-21  Jim Meyering  <meyering@lucent.com>
71151
71152         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71153
71154 2000-06-21  Jim Meyering  <meyering@lucent.com>
71155
71156         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71157         (noinst_HEADERS): Add getstr.h.
71158
71159         * lib/getline.c (getstr): Move into a separate file.
71160         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71161         the following changes: new parameter, delim2; both delim[12]
71162         parameters have type `int', not `char'.  The latter would lose
71163         with 8-bit delimiters.
71164         * lib/getstr.h: New file.
71165
71166 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71167
71168         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71169         than 1024, return a memory chunk of least possible size, instead
71170         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71171         Use free/xmalloc instead of xrealloc to avoid copying for very long
71172         paths.
71173
71174 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71175
71176         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71177         the empty string.
71178
71179 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71180
71181         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71182         address, not strdup.  Include <stdlib.h> and don't declare free().
71183
71184 2000-06-19  Jim Meyering  <meyering@lucent.com>
71185
71186         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71187
71188 2000-06-18  Jim Meyering  <meyering@lucent.com>
71189
71190         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71191
71192         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71193         `checking whether...' message to be consistent with that of the
71194         lstat test.
71195
71196 2000-06-18  Jim Meyering  <meyering@lucent.com>
71197
71198         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71199         Besides, these days every porting target provides a mkdir function.
71200
71201         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71202         needed. (this snippet comes from src/system.h).
71203
71204 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71205
71206         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71207
71208 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71209
71210         * lib/human.c (adjust_value): New function.
71211         (human_readable_inexact): Apply rounding style even when
71212         printing approximate values.
71213
71214 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71215
71216         * lib/human.c (human_readable_inexact): Allow an input block
71217         size that is not a multiple of the output block size, and vice versa.
71218         Reported by Piergiorgio Sartor.
71219
71220 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71221
71222         * lib/getdate.y (get_date): Apply relative times after time
71223         zone indicator, not before.  Reported by Todd A. Jacobs.
71224
71225 2000-06-13  Jim Meyering  <meyering@lucent.com>
71226
71227         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71228
71229         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71230
71231 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71232
71233         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71234
71235 2000-06-12  Jim Meyering  <meyering@lucent.com>
71236
71237         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71238         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71239         optional argument.
71240         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71241         the optional argument, `lib'.
71242
71243 2000-06-08  Jim Meyering  <meyering@lucent.com>
71244
71245         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71246
71247 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71248
71249         Rewrite largefile configuration so that we don't need to run
71250         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71251         AC_CANONICAL_HOST in configure.in -- jmm]
71252
71253         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71254         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71255         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71256         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71257         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71258         All uses changed.
71259         Instead of inspecting the output of getconf, try to compile the
71260         test program without and with the macro definition.
71261         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71262         for getconf.  Instead, check for the needed flags by compiling
71263         test programs.
71264
71265 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71266
71267         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71268
71269 2000-06-04  Jim Meyering  <meyering@lucent.com>
71270
71271         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71272         SunOS 4.1.4 for which gid_t is an unsigned type.
71273
71274 2000-06-03  Jim Meyering  <meyering@lucent.com>
71275
71276         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71277         now that autoconf requires that.
71278
71279         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71280         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71281         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71282
71283 2000-06-03  Jim Meyering  <meyering@lucent.com>
71284
71285         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71286
71287 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71288
71289         * m4/glibc21.m4: New file.
71290         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71291
71292 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71293
71294         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71295         newer, don't install charset.alias.
71296         * lib/config.charset: Change the Linux/glibc rules so they become empty
71297         on glibc-2.1 or newer.
71298
71299 2000-06-02  Jim Meyering  <meyering@lucent.com>
71300
71301         * lib/mountlist.c: Back out last change.  Instead, do this...
71302         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71303         me_dummy member using the same `ignore'-testing code.
71304         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71305         fs_type strings.
71306         From Mark D. Roth.
71307
71308 2000-05-29  Jim Meyering  <meyering@lucent.com>
71309
71310         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71311         mounts with the `ignore' attribute.  Based on a patch from
71312         Mark D. Roth.
71313
71314 2000-05-28  Jim Meyering  <meyering@lucent.com>
71315
71316         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71317         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71318         * m4/stat.m4: Likewise.
71319         * m4/lstat.m4: Likewise.
71320         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71321
71322         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71323         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71324
71325 2000-05-26  Jim Meyering  <meyering@lucent.com>
71326
71327         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71328
71329 2000-05-24  Jim Meyering  <meyering@lucent.com>
71330
71331         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71332         autoconf requires that.
71333         * m4/lib-check.m4: Likewise.
71334         * m4/jm-macros.m4: Likewise.
71335         * m4/strftime.m4: Likewise.
71336
71337         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71338         AC_CHECK_DECLS, now that autoconf requires that.
71339
71340 2000-05-22  Jim Meyering  <meyering@lucent.com>
71341
71342         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71343         * m4/lstat.m4: Likewise.
71344
71345 2000-05-22  Jim Meyering  <meyering@lucent.com>
71346
71347         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71348
71349 2000-05-20  Jim Meyering  <meyering@lucent.com>
71350
71351         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71352         (jm_PREREQ): Use it.
71353
71354 2000-05-18  Jim Meyering  <meyering@lucent.com>
71355
71356         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71357         back, too, since it may have been modified by allocate_entry.
71358         (hash_delete): Rewrite to use neither the assignment operator
71359         nor the comma operator in an if-expression.
71360
71361 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71362
71363         * lib/closeout.c:
71364         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71365         Remove; no longer needed.
71366         "quotearg.h": Add include.
71367         (file_name): Do not bother to explicitly initialize to NULL; it's less
71368         efficient on some hosts.
71369         (close_stdout_status): Remove test as to whether stdout was already
71370         closed; it breaks for the case "echo x | sort >&-".
71371         Quote file name colons.
71372         Do not assume that _("write error") lacks format strings.
71373
71374 2000-05-15  Jim Meyering  <meyering@lucent.com>
71375
71376         * lib/version-etc.c (version_etc_copyright): Update the copyright
71377         string used in all --version output.
71378
71379 2000-05-14  Jim Meyering  <meyering@lucent.com>
71380
71381         * lib/closeout.c (close_stdout_set_file_name): New function.
71382         (close_stdout_status): Use new file-scoped global.
71383         Return right away if fstat says the stdout file descriptor is invalid.
71384         * lib/closeout.h (close_stdout_set_file_name): Declare.
71385
71386 2000-05-10  Jim Meyering  <meyering@lucent.com>
71387
71388         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71389         (close_stdout_set_status): New function.
71390         * lib/closeout.h (close_stdout_set_status): Declare.
71391
71392 2000-05-09  Jim Meyering  <meyering@lucent.com>
71393
71394         * m4/gettext.m4: Rename this...
71395         * m4/libintl.m4: ...to this.
71396
71397 2000-05-08  Jim Meyering  <meyering@lucent.com>
71398
71399         * lib/long-options.c: Don't include closeout.h.
71400         (parse_long_options): Don't call close_stdout for --version.
71401
71402 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71403
71404         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71405         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71406         2.1.3 bug.  This avoids a clash when files like regex.c define
71407         _GNU_SOURCE.
71408
71409 2000-05-06  Jim Meyering  <meyering@lucent.com>
71410
71411         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71412         (AC_REPLACE_FUNCS): Add strnlen.
71413
71414         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71415         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71416
71417         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71418         AC_SEARCH_LIBS call for nanosleep.
71419         (LIB_NANOSLEEP): Set and AC_SUBST.
71420
71421 2000-05-06  Jim Meyering  <meyering@lucent.com>
71422
71423         * lib/strnlen.c: Undefine __strnlen and strnlen.
71424         [!weak_alias]: Define __strnlen to strnlen.
71425
71426         * lib/atexit.c: New file, from libiberty.
71427
71428 2000-05-06  Jim Meyering  <meyering@lucent.com>
71429
71430         * lib/closeout.c (close_stdout_status): Also check for errors on the
71431         stderr stream.
71432
71433 2000-05-05  Jim Meyering  <meyering@lucent.com>
71434
71435         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71436         AC_SEARCH_LIBS call for clock_gettime.
71437         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71438
71439         * m4/search-libs.m4: Update from autoconf.
71440
71441         su doesn't work on Solaris 2.6.
71442         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71443         <shadow.h>.  Reported by Dragos Harabor.
71444
71445 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71446
71447         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71448         memcpy instead of xmalloc, xrealloc, path_concat.
71449         (locale_charset): Treat empty environment variables as absent.
71450         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71451
71452 2000-05-04  Jim Meyering  <meyering@lucent.com>
71453
71454         * lib/getopt.c: Update from glibc.
71455         * lib/obstack.c: Likewise.
71456         * lib/obstack.h: Likewise.
71457         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71458         file
71459
71460         * lib/regex.h: Likewise.
71461         * lib/strndup.c: Likewise.
71462         * lib/strnlen.c: New file, from glibc.
71463
71464 2000-05-03  Jim Meyering  <meyering@lucent.com>
71465
71466         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71467
71468 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71469
71470         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71471         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71472         compile-time test, rather than inspecting host and OS, to
71473         decide whether to define _LARGEFILE_SOURCE.
71474
71475 2000-05-01  Jim Meyering  <meyering@lucent.com>
71476
71477         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71478
71479         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71480         Based on a patch from Bruno Haible.
71481
71482 2000-05-01  Jim Meyering  <meyering@lucent.com>
71483
71484         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71485
71486 2000-04-29  Jim Meyering  <meyering@lucent.com>
71487
71488         * lib/path-concat.c: Declare strdup only if it's not defined.
71489         * lib/canon-host.c: Likewise.
71490
71491 2000-04-28  Jim Meyering  <meyering@lucent.com>
71492
71493         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71494         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71495         is included first, then limits.h is included by locale.h by libintl.h.
71496         From John David Anglin.
71497
71498 2000-04-25  Jim Meyering  <meyering@lucent.com>
71499
71500         * lib/makepath.c (S_IRWXUGO): Define.
71501         (make_path): Always perform explicit chmod if MODE specifies any
71502         of the `special' permission bits.  Prompted by a bug report against
71503         install from Mate Wierdl and Joost van Baal.
71504
71505 2000-04-18  Jim Meyering  <meyering@lucent.com>
71506
71507         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71508         (jm_PREREQ): Use it.
71509
71510 2000-04-18  Jim Meyering  <meyering@lucent.com>
71511
71512         * lib/README: New file.
71513
71514         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71515         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71516
71517 2000-04-17  Jim Meyering  <meyering@lucent.com>
71518
71519         Get it right :-)
71520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71521         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71522         Suggestion from Akim Demaille.
71523
71524 2000-04-17  Jim Meyering  <meyering@lucent.com>
71525
71526         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71527         the definition of it to rpl_strftime also defined-away the system's
71528         declaration.
71529
71530 2000-04-15  Jim Meyering  <meyering@lucent.com>
71531
71532         Use `C' to denote so-called `contiguous' files, the same way
71533         that tar does.
71534         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71535         (ftypelet): Use S_ISCTG.
71536         From Michael Deutschmann.
71537
71538 2000-04-14  Jim Meyering  <meyering@lucent.com>
71539
71540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71541         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71542         clobbered.
71543
71544 2000-04-14  Jim Meyering  <meyering@lucent.com>
71545
71546         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71547
71548 2000-04-13  Jim Meyering  <meyering@lucent.com>
71549
71550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71551         AH_VERBATIM to insert required #ifndef into config.h.in.
71552         Suggestion from Akim Demaille.
71553
71554 2000-04-12  Jim Meyering  <meyering@lucent.com>
71555
71556         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71557         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71558         Christian Krackowizer.
71559
71560         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71561         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71562         (AC_SYS_LARGEFILE): Require.
71563         (AM_C_PROTOTYPES): Require.
71564
71565 2000-04-08  Jim Meyering  <meyering@lucent.com>
71566
71567         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71568         names don't conflict.  Reported by Eli Zaretskii.
71569
71570 2000-04-07  Jim Meyering  <meyering@lucent.com>
71571
71572         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71573         sys/types.h, to work around system header problems on AIX 3.2.5.
71574         From Bruno Haible.
71575
71576 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71577
71578         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71579         bug.  Deal with the different error behavior of Irix iconv.
71580
71581 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71582
71583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71584         IRIX if the installer said otherwise.
71585
71586 2000-04-05  Jim Meyering  <meyering@lucent.com>
71587
71588         Portability tweaks required for ultrix4.3.
71589         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71590         (jm_CHECK_DECLS): Add getutent to the list of functions.
71591         (_jm_DECL_HEADERS): Add utmpx.h.
71592         From John David Anglin.
71593
71594         * m4/strftime.m4: Back out the 2000-04-02 change.
71595         Instead of that change, simply undefine putenv in the test program.
71596
71597 2000-04-05  Jim Meyering  <meyering@lucent.com>
71598
71599         Portability tweaks required for ultrix4.3.
71600         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71601         getutent.
71602         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71603         * lib/canon-host.c: Declare strdup.
71604         * lib/path-concat.c: Likewise.
71605         From John David Anglin.
71606
71607 2000-04-04  Jim Meyering  <meyering@lucent.com>
71608
71609         Be more DOS 8.3-friendly.
71610         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71611         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71612         * lib/Makefile.am: Reflect renaming.
71613         Reported by Eli Zaretskii.
71614
71615         Use a temporary file name that won't clash with `charset.alias'
71616         in the DOS 8.3 name space.
71617         * lib/Makefile.am (charset_tmp): Define.
71618         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71619         (uninstall-local): Likewise.
71620         Reported by Eli Zaretskii.
71621
71622 2000-04-03  Jim Meyering  <meyering@lucent.com>
71623
71624         * m4/gettext.m4: Fix typo in comment.
71625
71626         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71627         textutils/configure.in).  Suggestion from Paul Eggert.
71628         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71629
71630 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71631
71632         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71633         variable in the shell rather than using putenv, which isn't
71634         portable.  This avoids the configure-time inter-test dependency
71635         on the potentially-renamed putenv function.
71636
71637 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71638
71639         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71640         before checking struct stat.st_blksize, so that
71641         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71642
71643 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71644
71645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71646         since strftime.c uses HAVE_STRFTIME to decide whether to use
71647         the underlying strftime.
71648
71649 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71650
71651         * lib/time/strftime.c (my_strftime): Make sure we call the system
71652         strftime, not ourselves, when invoking the underlying strftime.
71653
71654 2000-03-24  Jim Meyering  <meyering@lucent.com>
71655
71656         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71657         (charset_alias): Define.
71658         (install-exec-local): Factor out common code.
71659         (uninstall-local): Split lines longer than 80.
71660         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71661         (SUFFIXES): Define.
71662         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71663         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71664
71665 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71666
71667         * lib/config.charset: Output a line containing "Packages using this
71668         file".
71669         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71670         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71671         ref-del.sed): New rules.
71672
71673 2000-03-17  Jim Meyering  <meyering@lucent.com>
71674
71675         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71676         Otherwise, include <strings.h>
71677
71678 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71679
71680         * lib/unicodeio.c (utf8_wctomb): New function.
71681         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71682         format instead of in UCS-4 with platform dependent endianness.
71683
71684 2000-03-10  Jim Meyering  <meyering@lucent.com>
71685
71686         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71687         From Marco Franzen.
71688
71689 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71690
71691         * lib/savedir.c (savedir): Work even if directory size is
71692         negative; this can happen with some screwy NFS configurations.
71693
71694 2000-03-06  Jim Meyering  <meyering@lucent.com>
71695
71696         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71697         if it's NULL (because we ran out of memory).  From Bruno Haible.
71698
71699 2000-03-05  Jim Meyering  <meyering@lucent.com>
71700
71701         * lib/localcharset.c ("path-concat.h"): Include.
71702         (get_charset_aliases): Use path_concat instead of ANSI string
71703         concatenation.
71704
71705         * lib/unicodeio.h (PARAMS): Define.
71706         Use it to guard prototype.
71707
71708 2000-03-04  Jim Meyering  <meyering@lucent.com>
71709
71710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71711         for lib/localcharset.c.
71712
71713 2000-03-04  Jim Meyering  <meyering@lucent.com>
71714
71715         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71716         installing into it.
71717         (uninstall-local): Uncomment this rule so `make distcheck' works
71718         once again.
71719
71720         * lib/unicodeio.c (<errno.h>): Include it.
71721         (errno): Declare if not defined.
71722
71723         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71724
71725         * lib/config.charset: New version, incorporating remarks from a linux
71726         i18n mailing list.  From Bruno Haible.
71727
71728 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71729
71730         * m4/codeset.m4: New file.
71731         * m4/iconv.m4: New file.
71732         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71733
71734 2000-03-03  Jim Meyering  <meyering@lucent.com>
71735
71736         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71737
71738 2000-03-02  Jim Meyering  <meyering@lucent.com>
71739
71740         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71741         the messages come out on separate lines.
71742
71743         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71744         rather than jm_CHECK_DECLARATIONS.
71745         * m4/decl.m4: Remove now-unused file.
71746
71747         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71748         geteuid.
71749
71750 2000-03-02  Jim Meyering  <meyering@lucent.com>
71751
71752         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71753
71754 2000-03-01  Jim Meyering  <meyering@lucent.com>
71755
71756         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71757         * lib/unicodeio.c: Likewise.
71758
71759 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71760
71761         * lib/config.charset: New file.
71762         * lib/localcharset.c: New file.
71763         * lib/unicodeio.h, lib/unicodeio.c: New files.
71764         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71765         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71766         (noinst_HEADERS): Add unicodeio.h.
71767         (all-local, install-exec-local, charset.alias): New targets.
71768
71769 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71770
71771         * lib/quotearg.c (ALERT_CHAR): New macro.
71772         (quotearg_buffer_restyled): Use it.
71773
71774 2000-02-27  Jim Meyering  <meyering@lucent.com>
71775
71776         * m4/check-decl.m4: Add getenv to the list.
71777
71778 2000-02-27  Jim Meyering  <meyering@lucent.com>
71779
71780         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71781         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71782
71783         * lib/backupfile.c: Guard inclusion of stdlib.h with
71784         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71785         Declare malloc if needed.
71786
71787         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71788         `#ifndef HAVE_DECL..'
71789         now that autoconf always defines the HAVE_DECL_ symbols.
71790         * lib/human.c: Likewise.
71791         * lib/same.c: Likewise.
71792         * lib/strtoumax.c: Likewise.
71793
71794         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71795         declaration check was not run.
71796         * lib/hash.c: Likewise.
71797         * lib/human.c: Likewise.
71798         * lib/same.c: Likewise.
71799         * lib/strtoumax.c: Likewise.
71800
71801         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71802         `.', then first look up the entire `.'-containing string as a login
71803         name.
71804
71805 2000-02-23  Jim Meyering  <meyering@lucent.com>
71806
71807         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71808         in place of my hack.
71809
71810 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71811
71812         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71813         (textint): New typedef.
71814         (parser_control): Member year changed from int to textint.
71815         All uses changed.
71816         (YYSTYPE): Removed; replaced by %union with int and textint members.
71817         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71818         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71819         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71820         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71821         (date, number, to_year): Use width of number in digits, not its value,
71822         to determine whether it's a 2-digit year, or a 2-digit time.
71823         (yylex): Store number of digits of numeric tokens.
71824         Reported by John Kendall.
71825
71826         (parser_control): Changed from struct parser_control to typedef (for
71827         consistency).  All uses changed.
71828
71829         (tID): Removed; not used.
71830         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71831
71832 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71833
71834         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71835         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71836
71837 2000-02-12  Jim Meyering  <meyering@lucent.com>
71838
71839         * lib/userspec.c (ISDIGIT): Define it.
71840         (isdigit): Remove definition.
71841         (is_number): Use ISDIGIT, not isdigit.
71842         <libintl.h>: Include.
71843         (_ and N_): Define.
71844         (parse_user_spec): Mark translatable strings.
71845
71846 2000-02-10  Jim Meyering  <meyering@lucent.com>
71847
71848         With these changes, nanosleep.[ch] are finally enough like the other
71849         lib/* replacement files to compile on a few more losing systems.
71850
71851         * lib/nanosleep.h: Don't include config.h.
71852         Remove prototype from declaration of nanosleep.
71853         (PARAMS): Remove now-unneeded definition.
71854         * lib/nanosleep.c: #undef nanosleep.
71855         (rpl_nanosleep): Rename from nanosleep.
71856
71857 2000-02-10  Jim Meyering  <meyering@lucent.com>
71858
71859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71860         gnu_nanosleep to rpl_nanosleep.
71861
71862 2000-02-09  Jim Meyering  <meyering@lucent.com>
71863
71864         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
71865         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
71866
71867 2000-02-08  Akim Demaille  <akim@epita.fr>
71868
71869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
71870         `[' and `]' and remove uses of `changequote'.
71871         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
71872         (AC_SYS_LARGEFILE): Likewise.
71873         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
71874         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
71875         of changequote.
71876         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
71877         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
71878         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
71879         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
71880
71881 2000-02-05  Jim Meyering  <meyering@lucent.com>
71882
71883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
71884         Remove explicit use of AC_HEADER_TIME.  It is required by
71885         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
71886         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
71887         in autoconf whereby the expansion of the latter ended up preceding
71888         the expansion of its prerequisite, AC_HEADER_TIME.
71889         Reported by Volker Borchert.
71890
71891 2000-02-03  Jim Meyering  <meyering@lucent.com>
71892
71893         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
71894
71895 2000-02-03  Jim Meyering  <meyering@lucent.com>
71896
71897         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
71898         rather than with `#if HAVE_UTMPNAME'.
71899
71900 2000-02-02  Jim Meyering  <meyering@lucent.com>
71901
71902         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
71903         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
71904         Reported by Eli Zaretskii.
71905
71906 2000-02-01  Jim Meyering  <meyering@lucent.com>
71907
71908         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
71909
71910 2000-01-31  Jim Meyering  <meyering@lucent.com>
71911
71912         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
71913         functions.  Add the time.h and sys/time.h headers along with the
71914         AC_REQUIRE'ment of AC_HEADER_TIME.
71915
71916 2000-01-31  Jim Meyering  <meyering@lucent.com>
71917
71918         * lib/nanosleep.h (nanosleep): Guard declaration with
71919         `#if ! HAVE_DECL_NANOSLEEP'.
71920         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
71921         the declaration in that vendor's sys/timers.h.
71922         Reported by Christian Krackowizer.
71923
71924         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
71925         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
71926         (ISPRINT): Likewise.
71927         Reported by Tom Tromey.
71928
71929 2000-01-30  Jim Meyering  <meyering@lucent.com>
71930
71931         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
71932
71933         * m4/prereq.m4 (utmp_includes): Define.
71934         Check for ut_user and ut_name members in both struct utmpx
71935         and struct utmp.
71936
71937 2000-01-30  Jim Meyering  <meyering@lucent.com>
71938
71939         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
71940         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
71941         header files where only utmpx.ut_user is declared.
71942
71943         * lib/readutmp.h (UT_USER): Define.
71944
71945 2000-01-29  Jim Meyering  <meyering@lucent.com>
71946
71947         * m4/lib-check.m4: New file containing library-related checks from
71948         fileutils and sh-utils (textutils had none).
71949
71950 2000-01-28  Jim Meyering  <meyering@lucent.com>
71951
71952         * m4/perl.m4: Change format of warning message to look more like that
71953         from the missing script.  Suggestion from François Pinard.
71954
71955 2000-01-25  Jim Meyering  <meyering@lucent.com>
71956
71957         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
71958         well as time.h in the compile check.
71959         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
71960         Fix typo in cross-compiling case: s/yes/no/.
71961
71962 2000-01-23  Jim Meyering  <meyering@lucent.com>
71963
71964         * m4/jm-macros.m4: Move df-related tests here from
71965         fileutils/configure.in
71966
71967         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
71968         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
71969
71970         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
71971         s/space/ac_fsusage_space/.
71972         (jm_FILE_SYSTEM_USAGE): Take two parameters.
71973
71974         * m4/ftruncate.m4: New file (derived from part of
71975         fileutils/configure.in).
71976         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
71977         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
71978
71979         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
71980         AC_SUBST these here, rather than just in sh-util/configure.in, so
71981         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
71982         all the same.
71983         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
71984         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
71985         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
71986         (AC_SUBST(POW_LIBM)): Likewise.
71987         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
71988
71989 2000-01-23  Jim Meyering  <meyering@lucent.com>
71990
71991         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
71992         obstack.c.
71993
71994 2000-01-22  Jim Meyering  <meyering@lucent.com>
71995
71996         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
71997
71998         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
71999
72000         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72001         configure.in
72002         (AC_CHECK_HEADERS): Likewise for sh-utils.
72003         (AC_CHECK_HEADERS): Likewise for textutils.
72004         Merge the three lists of headers.
72005
72006         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72007         from fileutils' configure.in.
72008
72009         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72010         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72011         check-decl.m4.
72012
72013         * m4/check-decl.m4: Use #if rather than #ifdef.
72014         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72015         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72016         (_jm_DECL_HEADERS): Define new function.
72017         (jm_CHECK_DECLARATIONS): Require it.
72018
72019 2000-01-22  Jim Meyering  <meyering@lucent.com>
72020
72021         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72022         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72023         Required for some AIX systems.  Reported by Christian Krackowizer.
72024         [TESTING] (main): New function.
72025
72026         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72027         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72028         letters.
72029
72030         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72031         iswprint.
72032
72033         * lib/strverscmp.c (ISDIGIT): Define.
72034         (strverscmp): Use ISDIGIT, not isdigit.
72035
72036 2000-01-19  Jim Meyering  <meyering@lucent.com>
72037
72038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72039         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72040         defines `struct timespec' in <sys/time.h>
72041
72042         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72043         Thanks to Akim for explaining.
72044
72045 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72046
72047         * lib/nanosleep.c (nanosleep):
72048         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72049         POSIX.1 doesn't require SA_INTERRUPT and some systems
72050         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72051         it's been part of POSIX.1 since day 1 (in 1988).
72052
72053 2000-01-17  Jim Meyering  <meyering@lucent.com>
72054
72055         * lib/interlock: Remove unused file.  Reported by François Pinard.
72056
72057 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72058
72059         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72060         alert, backslash, formfeed, and vertical tab unnecessarily in
72061         shell quoting style.
72062
72063 2000-01-16  Jim Meyering  <meyering@lucent.com>
72064
72065         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72066         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72067         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72068         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72069
72070 2000-01-16  Jim Meyering  <meyering@lucent.com>
72071
72072         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72073         because the latter didn't work.
72074
72075 2000-01-15  Jim Meyering  <meyering@lucent.com>
72076
72077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72078         (AC_REPLACE_FUNCS): Add memcpy and memset.
72079         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72080         Add strpbrk.
72081         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72082
72083 2000-01-12  Jim Meyering  <meyering@lucent.com>
72084
72085         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72086         (jm_PREREQ): Use it.
72087         (jm_PREREQ_READUTMP): New macro.
72088         (jm_PREREQ): Use it.
72089
72090 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72091
72092         Quote multibyte characters correctly.
72093         * m4/c-bs-a.m4: New file.
72094         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72095         (jm_PREREQ): Use it.
72096
72097 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72098
72099         * m4/uintmax_t.m4: Port to autoconf 2.13.
72100
72101 2000-01-08  Jim Meyering  <meyering@ascend.com>
72102
72103         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72104         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72105
72106 2000-01-04  Jim Meyering  <meyering@ascend.com>
72107
72108         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72109         jm_STRUCT_DIRENT_D_TYPE.
72110         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72111         jm_STRUCT_DIRENT_D_INO.
72112         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72113         jm_STRUCT_UTIMBUF.
72114         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72115         renamings.
72116         * m4/utime.m4: Likewise.
72117
72118         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72119         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72120
72121 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72122
72123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72124         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72125
72126 2000-01-02  Jim Meyering  <meyering@ascend.com>
72127
72128         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72129         remember if this is necessary.
72130
72131 1999-12-26  Jim Meyering  <meyering@ascend.com>
72132
72133         * m4/jm-macros.m4: Use it here.
72134         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72135
72136 1999-12-23  Jim Meyering  <meyering@ascend.com>
72137
72138         * m4/jm-macros.m4: Check for clock_gettime (moved from
72139         fileutils/configure.in)
72140         Check for gettimeofday.
72141
72142 1999-12-20  Jim Meyering  <meyering@ascend.com>
72143
72144         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72145         autoconf-2.14a-1999-12-20.
72146
72147 1999-12-19  Jim Meyering  <meyering@ascend.com>
72148
72149         * m4/lstat-slash.m4: New file.
72150         * m4/jm-macros.m4: Use the new macro:
72151         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72152
72153 1999-12-07  Jim Meyering  <meyering@ascend.com>
72154
72155         * m4/perl.m4: Require that File::Compare be available, too.
72156         Too many systems seem to lack it.
72157
72158         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72159         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72160
72161 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72162
72163         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72164         problem with the QNX 4.25 shell, which doesn't propagate exit
72165         status of failed commands inside shell assignments.
72166
72167 1999-11-17  Jim Meyering  <meyering@ascend.com>
72168
72169         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72170
72171 1999-11-07  Jim Meyering  <meyering@ascend.com>
72172
72173         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72174
72175 1999-11-06  Jim Meyering  <meyering@ascend.com>
72176
72177         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72178         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72179
72180 1999-11-05  Jim Meyering  <meyering@ascend.com>
72181
72182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72183         configure.in of textutils, fileutils, and sh-utils into this one
72184         (shared between those packages) file.
72185         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72186         AC_STRUCT_ST_BLKSIZE.
72187
72188 1999-11-03  Jim Meyering  <meyering@ascend.com>
72189
72190         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72191         of AC_CHECK_TYPE checks includes unistd.h.
72192         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72193         Suggestion from Akim Demaille.
72194
72195 1999-10-30  Jim Meyering  <meyering@ascend.com>
72196
72197         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72198         m4-quoted string.
72199         * m4/ls-mntd-fs.m4: Likewise.
72200         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72201         * m4/jm-winsz1.m4: Likewise.
72202
72203         * m4/const.m4: Remove file, since the fix made it into the experimental
72204         version of autoconf.
72205         * m4/mktime.m4: Likewise.
72206
72207         * m4/check-type.m4: Remove file, now that the latest version of
72208         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72209
72210         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72211         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72212         AC_CHECK_TYPE.
72213
72214 1999-10-04  Jim Meyering  <meyering@ascend.com>
72215
72216         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72217
72218 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72219
72220         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72221         2.95.1 bug with HP-UX 10.20.
72222
72223 1999-09-17  Jim Meyering  <meyering@ascend.com>
72224
72225         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72226         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72227         due to missing strdup (against sh-utils-2.0).
72228
72229 1999-08-29  Jim Meyering  <meyering@ascend.com>
72230
72231         * m4/jm-macros.m4: Require jm_BISON.
72232         * m4/bison.m4: New file.
72233
72234 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72235
72236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72237         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72238
72239 1999-08-05  Jim Meyering  <meyering@ascend.com>
72240
72241         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72242         to avoid conflicts with `conftest' on 8+3 filesystems.
72243         Suggestion from Eli Zaretskii.
72244
72245 1999-08-04  Jim Meyering  <meyering@ascend.com>
72246
72247         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72248         fileutils and sh-utils (textutils's getline test was inadequate).
72249         (AM_FUNC_GETLINE): Run this test.
72250         (AC_CHECK_FUNCS): Check for getdelim.
72251         Reported by Bob Proulx.
72252
72253 1999-08-02  Jim Meyering  <meyering@ascend.com>
72254
72255         * m4/jm-macros.m4: Add a comment.
72256
72257 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72258
72259         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72260         <inttypes.h> defines strtoumax as a macro (and not as a
72261         function).
72262
72263 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72264
72265         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72266         that we can shift, multiply and divide unsigned long long
72267         values; Ultrix cc can't do it.
72268
72269 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72270
72271         * m4/mktime.m4: New file, which is a preview of what should appear
72272         in the next public autoconf release.
72273
72274 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72275
72276         * m4/lfs.m4: Remove this file.
72277         * m4/largefile.m4: New file.  It contains the old contents of
72278         lfs.m4, except that all names with prefix AC_LFS have been
72279         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72280         compatible with future autoconf versions.  Also, some minor m4
72281         quoting problems have been fixed.
72282
72283 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72284
72285         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72286         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72287         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72288         and simplify the shell code.
72289
72290 1999-08-01  Jim Meyering  <meyering@ascend.com>
72291
72292         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72293         m4.
72294
72295 1999-07-20  Jim Meyering  <meyering@ascend.com>
72296
72297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72298
72299 1999-07-15  Jim Meyering  <meyering@ascend.com>
72300
72301         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72302
72303 1999-05-22  Jim Meyering  <meyering@ascend.com>
72304
72305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72306
72307 1999-05-20  Jim Meyering  <meyering@ascend.com>
72308
72309         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72310         Add a colon after each `then' in case $4 is empty.
72311
72312 1999-05-16  Jim Meyering  <meyering@ascend.com>
72313
72314         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72315
72316 1999-05-10  Jim Meyering  <meyering@ascend.com>
72317
72318         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72319
72320         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72321         AC_FUNC_MKTIME.
72322
72323 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72324
72325         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72326
72327 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72328
72329         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72330         not CPPFLAGS, so that linking works correctly in IRIX.
72331
72332 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72333
72334         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72335
72336 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72337
72338         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72339         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72341         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72342         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72343
72344         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72345
72346 1999-04-20  Jim Meyering  <meyering@ascend.com>
72347
72348         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72349         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72350         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72351
72352 1999-04-18  Jim Meyering  <meyering@ascend.com>
72353
72354         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72355         * m4/jm-macros.m4: Use it.
72356
72357 1999-04-06  Jim Meyering  <meyering@ascend.com>
72358
72359         * m4/strftime.m4: Remove test for %f.
72360
72361 1999-03-29  Jim Meyering  <meyering@ascend.com>
72362
72363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72364         superset of the AC_TYPE_* checks in the textutils, fileutils,
72365         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72366         AC_TYPE_PID_T.
72367
72368 1999-03-28  Jim Meyering  <meyering@ascend.com>
72369
72370         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72371         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72372         replaced e.g., in the *.sh files of the sh-utils.
72373
72374 1999-03-20  Jim Meyering  <meyering@ascend.com>
72375
72376         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72377         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72378         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72379
72380 1999-03-19  Jim Meyering  <meyering@ascend.com>
72381
72382         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72383
72384 1999-03-12  Jim Meyering  <meyering@ascend.com>
72385
72386         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72387
72388 1999-03-07  Jim Meyering  <meyering@ascend.com>
72389
72390         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72391         declared.
72392
72393 1999-02-17  Jim Meyering  <meyering@ascend.com>
72394
72395         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72396         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72397
72398 1999-02-07  Jim Meyering  <meyering@ascend.com>
72399
72400         * m4/group-member.m4: New file -- extracted from sh-utils'
72401         configure.in.
72402
72403         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72404         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72405
72406 1999-02-06  Jim Meyering  <meyering@ascend.com>
72407
72408         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72409         * m4/fnmatch.m4: Likewise.
72410         * m4/getgroups.m4: Likewise.
72411         * m4/lstat.m4: Likewise.
72412         * m4/malloc.m4: Likewise.
72413         * m4/putenv.m4: Likewise.
72414         * m4/realloc.m4: Likewise.
72415         * m4/regex.m4: Likewise.
72416         * m4/stat.m4: Likewise.
72417         * m4/strftime.m4: Likewise.
72418         Suggestion from Alain Magloire.
72419
72420         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72421         * m4/fnmatch.m4: Likewise.
72422         * m4/getgroups.m4: Likewise.
72423         * m4/getline.m4: Likewise.
72424         * m4/lstat.m4: Likewise.
72425         * m4/malloc.m4: Likewise.
72426         * m4/memcmp.m4: Likewise.
72427         * m4/putenv.m4: Likewise.
72428         * m4/realloc.m4: Likewise.
72429         * m4/regex.m4: Likewise.
72430         * m4/stat.m4: Likewise.
72431         * m4/strftime.m4: Likewise.
72432         Suggestion from Alain Magloire.
72433
72434         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72435         an argument.
72436
72437         * m4/regex.m4: Add a run-time Test for proper operation of
72438         re_compile_pattern.
72439
72440 1999-01-31  Jim Meyering  <meyering@ascend.com>
72441
72442         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72443
72444 1999-01-30  Jim Meyering  <meyering@ascend.com>
72445
72446         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72447
72448         * m4/jm-mktime.m4: Make this a wrapper around the official
72449         AM_FUNC_MKTIME rather than my private copy, now that the official one
72450         is up to date.
72451         * m4/mktime.m4: Remove file.
72452
72453         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72454         * m4/uptime.m4: Likewise.
72455         * m4/uintmax_t.m4: Likewise.
72456
72457 1999-01-28  Jim Meyering  <meyering@ascend.com>
72458
72459         * m4/jm-macros.m4: Use jm_AFS.
72460         * m4/afs.m4: New file (from fileutils' configure.in).
72461
72462         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72463         * m4/chown.m4: Likewise.
72464         * m4/d-ino.m4: Likewise.
72465         * m4/d-type.m4: Likewise.
72466         * m4/fnmatch.m4: Likewise.
72467         * m4/getgroups.m4: Likewise.
72468         * m4/gettext.m4: Likewise.
72469         * m4/jm-mktime.m4: Likewise.
72470         * m4/jm-winsz2.m4: Likewise.
72471         * m4/lcmessage.m4: Likewise.
72472         * m4/ls-mntd-fs.m4: Likewise.
72473         * m4/malloc.m4: Likewise.
72474         * m4/memcmp.m4: Likewise.
72475         * m4/putenv.m4: Likewise.
72476         * m4/realloc.m4: Likewise.
72477         * m4/st_mtim.m4: Likewise.
72478         * m4/strftime.m4: Likewise.
72479
72480 1999-01-16  Jim Meyering  <meyering@ascend.com>
72481
72482         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72483         (ARGMATCH_DIE_DECL): Define.
72484
72485 1999-01-12  Jim Meyering  <meyering@ascend.com>
72486
72487         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72488         Reported by Lars Hecking.
72489
72490 1999-01-10  Jim Meyering  <meyering@ascend.com>
72491
72492         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72493         gross kludge.
72494         * m4/inttypes_h.m4: Likewise.
72495         * m4/lstat.m4: Likewise.
72496         * m4/malloc.m4: Likewise.
72497         * m4/readdir.m4: Likewise.
72498         * m4/realloc.m4: Likewise.
72499         * m4/st_dm_mode.m4: Likewise.
72500         * m4/stat.m4: Likewise.
72501         * m4/utimbuf.m4: Likewise.
72502         * m4/utimes.m4: Likewise.
72503
72504         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72505         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72506         comments in config.h.in are meaningful.
72507
72508         * m4/jm-macros.m4: Require autoconf-2.13 here.
72509
72510         * m4/regex.m4: By default, don't use the included regex.c on systems
72511         with glibc 2.  Suggestion from Uli Drepper.
72512
72513 1999-01-02  Jim Meyering  <meyering@ascend.com>
72514
72515         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72516
72517 1998-12-18  Jim Meyering  <meyering@ascend.com>
72518
72519         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72520         Based on a suggestion from Lars Hecking.
72521
72522 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72523
72524         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72525
72526 1998-11-16  Jim Meyering  <meyering@ascend.com>
72527
72528         * m4/lfs.m4: Double-quote the `uname...` expression.
72529
72530 1998-11-14  Jim Meyering  <meyering@ascend.com>
72531
72532         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72533         * m4/stat.m4: Likewise.
72534
72535 1998-11-03  Jim Meyering  <meyering@ascend.com>
72536
72537         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72538         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72539
72540 1998-10-18  Jim Meyering  <meyering@ascend.com>
72541
72542         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72543
72544 1998-10-17  Jim Meyering  <meyering@ascend.com>
72545
72546         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72547         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72548         calls for those previously hard-coded headers.  Instead, take a new
72549         parameter.
72550         (jm_CHECK_DECLARATIONS): Reflect interface change.
72551         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72552         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72553
72554         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72555
72556 1998-10-14  Jim Meyering  <meyering@ascend.com>
72557
72558         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72559         instead of "TZ=America/Vancouver".  From Paul Eggert.
72560
72561 1998-10-11  Jim Meyering  <meyering@ascend.com>
72562
72563         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72564         This adds a test for a recently added compatibility fix for mktime.c.
72565         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72566
72567 1998-09-27  Jim Meyering  <meyering@ascend.com>
72568
72569         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72570
72571         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72572         ../configure.in, including a change from Gordon Matzigkeit to allow
72573         cross-compiling for the Hurd.
72574
72575         * m4/glibc.m4: New file/macro to test for the GNU C Library
72576         versions 1 and 2.  From Gordon Matzigkeit.
72577         Indent.
72578
72579 1998-09-21  Jim Meyering  <meyering@ascend.com>
72580
72581         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72582
72583 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72584
72585         Port nanosecond-resolution times to UnixWare 2.1.2 and
72586         pedantic Solaris 2.6.
72587
72588         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72589         AC_STRUCT_ST_MTIM.
72590         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72591         Generate name of ns member, instead of just 1 or undef.
72592         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72593
72594 1998-08-15  Jim Meyering  <meyering@ascend.com>
72595
72596         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72597         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72598         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72599         instead of jm_TYPE_SSIZE_T.
72600
72601 1998-08-12  Jim Meyering  <meyering@ascend.com>
72602
72603         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72604
72605 1998-08-02  Jim Meyering  <meyering@ascend.com>
72606
72607         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72608         in acconfig.h manually.
72609
72610 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72611
72612         * m4/st_mtim.m4: New file.
72613
72614 1998-07-28  Jim Meyering  <meyering@ascend.com>
72615
72616         * m4/utimes.m4: Undef stat.
72617
72618 1998-07-25  Jim Meyering  <meyering@ascend.com>
72619
72620         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72621         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72622
72623 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72624
72625         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72626         uid and gid actually remain unchanged.
72627
72628 1998-07-07  Jim Meyering  <meyering@ascend.com>
72629
72630         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72631
72632 1998-07-04  Jim Meyering  <meyering@ascend.com>
72633
72634         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72635         to prove that this macro can be used in packages without regex.c.
72636
72637 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72638
72639         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72640         is to be used.
72641
72642 1998-07-03  Jim Meyering  <meyering@ascend.com>
72643
72644         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72645
72646         * m4/gettext.m4: New file -- from gettext-0.10.35.
72647         * m4/lcmessage.m4: Likewise.
72648         * m4/progtest.m4: Likewise.
72649
72650         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72651         * m4/jm-macros.m4: Require the new macro.
72652
72653 1998-06-29  Jim Meyering  <meyering@ascend.com>
72654
72655         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72656         for the definition of NGROUPS (used in a system header included
72657         by sys/mount.h).
72658
72659 1998-06-28  Jim Meyering  <meyering@ascend.com>
72660
72661         * m4/ls-mntd-fs.m4: New file.
72662         * m4/fstypename.m4: New file.
72663
72664         * m4/jm-macros.m4: Require the new macro.
72665         * m4/jm-glibc-io.m4: New file.
72666
72667 1998-05-19  Jim Meyering  <meyering@ascend.com>
72668
72669         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72670         * m4/lchown.m4: New file.
72671
72672         * m4/Makefile.am.in: New file.
72673         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72674
72675 1998-05-14  Jim Meyering  <meyering@ascend.com>
72676
72677         * m4/Makefile.am (EXTRA_DIST): Add them.
72678         * m4/jm-macros.m4: New file.
72679         * m4/utimbuf.m4: New file.
72680
72681 1998-05-12  Jim Meyering  <meyering@ascend.com>
72682
72683         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72684
72685 1998-05-11  Jim Meyering  <meyering@ascend.com>
72686
72687         * m4/isc-posix.m4: New file.
72688
72689 1998-05-10  Jim Meyering  <meyering@ascend.com>
72690
72691         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72692
72693 1998-05-09  Jim Meyering  <meyering@ascend.com>
72694
72695         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72696         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72697         with automake.
72698
72699         * m4/ssize_t.m4: New file.
72700         * m4/mktime.m4: Remove file -- the new automake has this now.
72701
72702 1998-04-26  Jim Meyering  <meyering@ascend.com>
72703
72704         * m4/assert.m4: New file.
72705         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72706
72707 1998-04-05  Jim Meyering  <meyering@ascend.com>
72708
72709         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72710         (jm_PREREQ): Use it here.
72711
72712 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72713
72714         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72715         in acconfig.h.
72716
72717 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72718
72719         * m4/prereq.m4: New file.
72720         * m4/error.m4: New file.
72721         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72722
72723 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72724
72725         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72726         cache-check for the same variable -- that defeated the purpose of
72727         the test; the test program was never run.  This was a problem only
72728         on systems with losing getline functions -- HP-UX 10.20 is one.
72729         Reported by Bjorn Helgaas.
72730
72731 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72732
72733         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72734
72735 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72736
72737         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72738
72739         * m4/const.m4: New file.  Use an initializer in this declaration
72740         typedef int charset[2]; const charset x;
72741         Reported by Bob Glickstein.
72742
72743 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72744
72745         * m4/chown.m4: Fix reversed types on -1 args to chown.
72746         From Kaveh Ghazi.
72747
72748 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72749
72750         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72751         Add lseek and memchr.
72752
72753         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72754         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72755         have a 20-character limit on names.
72756
72757 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72758
72759         * m4/inttypes_h.m4: New file.
72760         * m4/uintmax_t.m4: New file.
72761         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72762
72763
72764         -----
72765
72766         Local Variables:
72767         coding: utf-8
72768         End:
72769
72770         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72771
72772         Copying and distribution of this file, with or without
72773         modification, are permitted provided the copyright notice
72774         and this notice are preserved.